com.bitpay.sdk.model.invoice.InvoiceUniversalCodes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitpay_sdk Show documentation
Show all versions of bitpay_sdk Show documentation
Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically
Secure RESTful API.
/*
* 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;
}
}