
com.bitpay.sdk.model.invoice.SupportedTransactionCurrency 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.
The 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.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The currency that may be used to pay this invoice. The values are objects with an "enabled" boolean and option.
* An extra "reason" parameter is added in the object if a cryptocurrency is disabled on a specific invoice.
*
* @see REST API Invoices
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class SupportedTransactionCurrency {
protected Boolean enabled;
protected String reason = ModelConfiguration.DEFAULT_NON_SENT_VALUE;
/**
* Instantiates a new Supported transaction currency.
*/
public SupportedTransactionCurrency() {
}
/**
* Gets enabled.
*
* @return the enabled
*/
@JsonIgnore
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public Boolean getEnabled() {
return this.enabled;
}
/**
* Sets enabled.
*
* @param enabled the enabled
*/
@JsonProperty("enabled")
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
/**
* Gets reason.
*
* @return the reason
*/
@JsonIgnore
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public String getReason() {
return this.reason;
}
/**
* Sets reason.
*
* @param reason the reason
*/
@JsonProperty("reason")
public void setReason(String reason) {
this.reason = reason;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy