All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bitpay.sdk.model.invoice.InvoiceUniversalCodes Maven / Gradle / Ivy

Go to download

Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically Secure RESTful API.

There is a newer version: 10.1.1
Show newest version
/*
 * Copyright (c) 2019 BitPay.
 * All rights reserved.
 */

package com.bitpay.sdk.model.invoice;

import com.bitpay.sdk.model.ModelConfiguration;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Object containing wallet-specific URLs for payment protocol.
 *
 * @see REST API Invoices
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class InvoiceUniversalCodes {

    protected String paymentString = ModelConfiguration.DEFAULT_NON_SENT_VALUE;
    protected String verificationLink = ModelConfiguration.DEFAULT_NON_SENT_VALUE;

    /**
     * Instantiates a new Invoice universal codes.
     */
    public InvoiceUniversalCodes() {
    }

    /**
     * Gets payment protocol URL for selected wallet, defaults to BitPay URL if no wallet selected.
     *
     * @return the bitpay
     */
    @JsonIgnore
    public String getBitpay() {
        return this.paymentString;
    }

    /**
     * Sets payment protocol URL for selected wallet, defaults to BitPay URL if no wallet selected.
     *
     * @param paymentString the payment string
     */
    @JsonProperty("paymentString")
    public void setBitpay(String paymentString) {
        this.paymentString = paymentString;
    }

    /**
     * Gets link to bring user to BitPay ID flow, only present when bitpayIdRequired is true.
     *
     * @return the verification link
     */
    @JsonIgnore
    public String getVerificationLink() {
        return this.verificationLink;
    }

    /**
     * Sets link to bring user to BitPay ID flow, only present when bitpayIdRequired is true.
     *
     * @param verificationLink the verification link
     */
    @JsonProperty("verificationLink")
    public void setVerificationLink(String verificationLink) {
        this.verificationLink = verificationLink;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy