com.cardpay.sdk.model.PayoutResponseCryptocurrencyAccount Maven / Gradle / Ivy
/*
* CardPay REST API
* Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant uses API to create payments, refunds, payouts or recurrings, check or update transaction status and get information about created transactions. In API authentication process based on [OAuth 2.0](https://oauth.net/2/) standard. For recent changes see changelog section.
*
* OpenAPI spec version: 3.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.cardpay.sdk.model;
import com.google.gson.annotations.SerializedName;
import java.math.BigDecimal;
import lombok.Data;
@Data
public class PayoutResponseCryptocurrencyAccount {
@SerializedName("crypto_address")
private String cryptoAddress = null;
@SerializedName("crypto_transaction_id")
private String cryptoTransactionId = null;
@SerializedName("prc_amount")
private BigDecimal prcAmount = null;
@SerializedName("prc_currency")
private String prcCurrency = null;
public void setCryptoAddress(String cryptoAddress) {
this.cryptoAddress = cryptoAddress;
}
/**
* @param cryptoAddress Customer's bitcoin address can be used for payout
* @return bean instance
**/
public PayoutResponseCryptocurrencyAccount cryptoAddress(String cryptoAddress) {
this.cryptoAddress = cryptoAddress;
return this;
}
public void setCryptoTransactionId(String cryptoTransactionId) {
this.cryptoTransactionId = cryptoTransactionId;
}
/**
* @param cryptoTransactionId Id of created transaction in the bitcoin system
* @return bean instance
**/
public PayoutResponseCryptocurrencyAccount cryptoTransactionId(String cryptoTransactionId) {
this.cryptoTransactionId = cryptoTransactionId;
return this;
}
public void setPrcAmount(BigDecimal prcAmount) {
this.prcAmount = prcAmount;
}
/**
* @param prcAmount Transaction amount
* @return bean instance
**/
public PayoutResponseCryptocurrencyAccount prcAmount(BigDecimal prcAmount) {
this.prcAmount = prcAmount;
return this;
}
public void setPrcCurrency(String prcCurrency) {
this.prcCurrency = prcCurrency;
}
/**
* @param prcCurrency Currency of transaction
* @return bean instance
**/
public PayoutResponseCryptocurrencyAccount prcCurrency(String prcCurrency) {
this.prcCurrency = prcCurrency;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("PayoutResponseCryptocurrencyAccount( ");
if (cryptoAddress != null) sb.append("cryptoAddress=").append(cryptoAddress.toString()).append("; ");
if (cryptoTransactionId != null) sb.append("cryptoTransactionId=").append(cryptoTransactionId.toString()).append("; ");
if (prcAmount != null) sb.append("prcAmount=").append(prcAmount.toString()).append("; ");
if (prcCurrency != null) sb.append("prcCurrency=").append(prcCurrency.toString()).append("; ");
sb.append(")");
return sb.toString();
}
}