com.cardpay.sdk.model.PayoutRequestPayoutData Maven / Gradle / Ivy
The newest version!
/*
* 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 PayoutRequestPayoutData {
@SerializedName("amount")
private BigDecimal amount = null;
@SerializedName("currency")
private String currency = null;
@SerializedName("dynamic_descriptor")
private String dynamicDescriptor = null;
@SerializedName("generate_token")
private Boolean generateToken = null;
@SerializedName("note")
private String note = null;
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
/**
* @param amount Represents the amount to be transferred to Customer's card, must be less than 10 billion.
* @return bean instance
**/
public PayoutRequestPayoutData amount(BigDecimal amount) {
this.amount = amount;
return this;
}
public void setCurrency(String currency) {
this.currency = currency;
}
/**
* @param currency [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the payout transaction. Must match terminal currency
* @return bean instance
**/
public PayoutRequestPayoutData currency(String currency) {
this.currency = currency;
return this;
}
public void setDynamicDescriptor(String dynamicDescriptor) {
this.dynamicDescriptor = dynamicDescriptor;
}
/**
* @param dynamicDescriptor Short description of the service or product, must be enabled by CardPay manager to be used *(for BANKCARD, QIWI, WEBMONEY and BITCOIN methods only)*
* @return bean instance
**/
public PayoutRequestPayoutData dynamicDescriptor(String dynamicDescriptor) {
this.dynamicDescriptor = dynamicDescriptor;
return this;
}
public void setGenerateToken(Boolean generateToken) {
this.generateToken = generateToken;
}
/**
* @param generateToken If set to `true`, token will be generated and returned in the response (callback). Token can be generated only for successful transactions (not for declined transactions) *(for BANKCARD payment method only)*
* @return bean instance
**/
public PayoutRequestPayoutData generateToken(Boolean generateToken) {
this.generateToken = generateToken;
return this;
}
public void setNote(String note) {
this.note = note;
}
/**
* @param note Note about the payout, not shown to Customer
* @return bean instance
**/
public PayoutRequestPayoutData note(String note) {
this.note = note;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("PayoutRequestPayoutData( ");
if (amount != null) sb.append("amount=").append(amount.toString()).append("; ");
if (currency != null) sb.append("currency=").append(currency.toString()).append("; ");
if (dynamicDescriptor != null) sb.append("dynamicDescriptor=").append(dynamicDescriptor.toString()).append("; ");
if (generateToken != null) sb.append("generateToken=").append(generateToken.toString()).append("; ");
if (note != null) sb.append("note=").append(note.toString()).append("; ");
sb.append(")");
return sb.toString();
}
}