com.docusign.esign.model.PurchasedEnvelopesInformation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-esign-java Show documentation
Show all versions of docusign-esign-java Show documentation
The official Docusign eSignature JAVA client is based on version 2.1 of the Docusign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.
package com.docusign.esign.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
/** PurchasedEnvelopesInformation. */
public class PurchasedEnvelopesInformation {
@JsonProperty("amount")
private String amount = null;
@JsonProperty("appName")
private String appName = null;
@JsonProperty("currencyCode")
private String currencyCode = null;
@JsonProperty("platform")
private String platform = null;
@JsonProperty("productId")
private String productId = null;
@JsonProperty("quantity")
private String quantity = null;
@JsonProperty("receiptData")
private String receiptData = null;
@JsonProperty("storeName")
private String storeName = null;
@JsonProperty("transactionId")
private String transactionId = null;
/**
* amount.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation amount(String amount) {
this.amount = amount;
return this;
}
/**
* The total amount of the purchase..
*
* @return amount
*/
@Schema(description = "The total amount of the purchase.")
public String getAmount() {
return amount;
}
/** setAmount. */
public void setAmount(String amount) {
this.amount = amount;
}
/**
* appName.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation appName(String appName) {
this.appName = appName;
return this;
}
/**
* The AppName of the client application..
*
* @return appName
*/
@Schema(description = "The AppName of the client application.")
public String getAppName() {
return appName;
}
/** setAppName. */
public void setAppName(String appName) {
this.appName = appName;
}
/**
* currencyCode.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation currencyCode(String currencyCode) {
this.currencyCode = currencyCode;
return this;
}
/**
* Specifies the ISO currency code of the purchase. This is based on the ISO 4217 currency code
* information..
*
* @return currencyCode
*/
@Schema(
description =
"Specifies the ISO currency code of the purchase. This is based on the ISO 4217 currency code information.")
public String getCurrencyCode() {
return currencyCode;
}
/** setCurrencyCode. */
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
/**
* platform.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation platform(String platform) {
this.platform = platform;
return this;
}
/**
* The Platform of the client application.
*
* @return platform
*/
@Schema(description = "The Platform of the client application")
public String getPlatform() {
return platform;
}
/** setPlatform. */
public void setPlatform(String platform) {
this.platform = platform;
}
/**
* productId.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation productId(String productId) {
this.productId = productId;
return this;
}
/**
* The Product ID from the AppStore..
*
* @return productId
*/
@Schema(description = "The Product ID from the AppStore.")
public String getProductId() {
return productId;
}
/** setProductId. */
public void setProductId(String productId) {
this.productId = productId;
}
/**
* quantity.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation quantity(String quantity) {
this.quantity = quantity;
return this;
}
/**
* The quantity of envelopes to add to the account..
*
* @return quantity
*/
@Schema(description = "The quantity of envelopes to add to the account.")
public String getQuantity() {
return quantity;
}
/** setQuantity. */
public void setQuantity(String quantity) {
this.quantity = quantity;
}
/**
* receiptData.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation receiptData(String receiptData) {
this.receiptData = receiptData;
return this;
}
/**
* The encrypted Base64 encoded receipt data..
*
* @return receiptData
*/
@Schema(description = "The encrypted Base64 encoded receipt data.")
public String getReceiptData() {
return receiptData;
}
/** setReceiptData. */
public void setReceiptData(String receiptData) {
this.receiptData = receiptData;
}
/**
* storeName.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation storeName(String storeName) {
this.storeName = storeName;
return this;
}
/**
* The name of the AppStore..
*
* @return storeName
*/
@Schema(description = "The name of the AppStore.")
public String getStoreName() {
return storeName;
}
/** setStoreName. */
public void setStoreName(String storeName) {
this.storeName = storeName;
}
/**
* transactionId.
*
* @return PurchasedEnvelopesInformation
*/
public PurchasedEnvelopesInformation transactionId(String transactionId) {
this.transactionId = transactionId;
return this;
}
/**
* Specifies the Transaction ID from the AppStore..
*
* @return transactionId
*/
@Schema(description = "Specifies the Transaction ID from the AppStore.")
public String getTransactionId() {
return transactionId;
}
/** setTransactionId. */
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
/**
* Compares objects.
*
* @return true or false depending on comparison result.
*/
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PurchasedEnvelopesInformation purchasedEnvelopesInformation = (PurchasedEnvelopesInformation) o;
return Objects.equals(this.amount, purchasedEnvelopesInformation.amount)
&& Objects.equals(this.appName, purchasedEnvelopesInformation.appName)
&& Objects.equals(this.currencyCode, purchasedEnvelopesInformation.currencyCode)
&& Objects.equals(this.platform, purchasedEnvelopesInformation.platform)
&& Objects.equals(this.productId, purchasedEnvelopesInformation.productId)
&& Objects.equals(this.quantity, purchasedEnvelopesInformation.quantity)
&& Objects.equals(this.receiptData, purchasedEnvelopesInformation.receiptData)
&& Objects.equals(this.storeName, purchasedEnvelopesInformation.storeName)
&& Objects.equals(this.transactionId, purchasedEnvelopesInformation.transactionId);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(
amount,
appName,
currencyCode,
platform,
productId,
quantity,
receiptData,
storeName,
transactionId);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PurchasedEnvelopesInformation {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" appName: ").append(toIndentedString(appName)).append("\n");
sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
sb.append(" platform: ").append(toIndentedString(platform)).append("\n");
sb.append(" productId: ").append(toIndentedString(productId)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
sb.append(" receiptData: ").append(toIndentedString(receiptData)).append("\n");
sb.append(" storeName: ").append(toIndentedString(storeName)).append("\n");
sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}