
com.adyen.model.management.ReceiptPrinting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* Management API
*
* The version of the OpenAPI document: 3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adyen.model.management;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* ReceiptPrinting
*/
@JsonPropertyOrder({
ReceiptPrinting.JSON_PROPERTY_MERCHANT_APPROVED,
ReceiptPrinting.JSON_PROPERTY_MERCHANT_CANCELLED,
ReceiptPrinting.JSON_PROPERTY_MERCHANT_CAPTURE_APPROVED,
ReceiptPrinting.JSON_PROPERTY_MERCHANT_CAPTURE_REFUSED,
ReceiptPrinting.JSON_PROPERTY_MERCHANT_REFUND_APPROVED,
ReceiptPrinting.JSON_PROPERTY_MERCHANT_REFUND_REFUSED,
ReceiptPrinting.JSON_PROPERTY_MERCHANT_REFUSED,
ReceiptPrinting.JSON_PROPERTY_MERCHANT_VOID,
ReceiptPrinting.JSON_PROPERTY_SHOPPER_APPROVED,
ReceiptPrinting.JSON_PROPERTY_SHOPPER_CANCELLED,
ReceiptPrinting.JSON_PROPERTY_SHOPPER_CAPTURE_APPROVED,
ReceiptPrinting.JSON_PROPERTY_SHOPPER_CAPTURE_REFUSED,
ReceiptPrinting.JSON_PROPERTY_SHOPPER_REFUND_APPROVED,
ReceiptPrinting.JSON_PROPERTY_SHOPPER_REFUND_REFUSED,
ReceiptPrinting.JSON_PROPERTY_SHOPPER_REFUSED,
ReceiptPrinting.JSON_PROPERTY_SHOPPER_VOID
})
public class ReceiptPrinting {
public static final String JSON_PROPERTY_MERCHANT_APPROVED = "merchantApproved";
private Boolean merchantApproved;
public static final String JSON_PROPERTY_MERCHANT_CANCELLED = "merchantCancelled";
private Boolean merchantCancelled;
public static final String JSON_PROPERTY_MERCHANT_CAPTURE_APPROVED = "merchantCaptureApproved";
private Boolean merchantCaptureApproved;
public static final String JSON_PROPERTY_MERCHANT_CAPTURE_REFUSED = "merchantCaptureRefused";
private Boolean merchantCaptureRefused;
public static final String JSON_PROPERTY_MERCHANT_REFUND_APPROVED = "merchantRefundApproved";
private Boolean merchantRefundApproved;
public static final String JSON_PROPERTY_MERCHANT_REFUND_REFUSED = "merchantRefundRefused";
private Boolean merchantRefundRefused;
public static final String JSON_PROPERTY_MERCHANT_REFUSED = "merchantRefused";
private Boolean merchantRefused;
public static final String JSON_PROPERTY_MERCHANT_VOID = "merchantVoid";
private Boolean merchantVoid;
public static final String JSON_PROPERTY_SHOPPER_APPROVED = "shopperApproved";
private Boolean shopperApproved;
public static final String JSON_PROPERTY_SHOPPER_CANCELLED = "shopperCancelled";
private Boolean shopperCancelled;
public static final String JSON_PROPERTY_SHOPPER_CAPTURE_APPROVED = "shopperCaptureApproved";
private Boolean shopperCaptureApproved;
public static final String JSON_PROPERTY_SHOPPER_CAPTURE_REFUSED = "shopperCaptureRefused";
private Boolean shopperCaptureRefused;
public static final String JSON_PROPERTY_SHOPPER_REFUND_APPROVED = "shopperRefundApproved";
private Boolean shopperRefundApproved;
public static final String JSON_PROPERTY_SHOPPER_REFUND_REFUSED = "shopperRefundRefused";
private Boolean shopperRefundRefused;
public static final String JSON_PROPERTY_SHOPPER_REFUSED = "shopperRefused";
private Boolean shopperRefused;
public static final String JSON_PROPERTY_SHOPPER_VOID = "shopperVoid";
private Boolean shopperVoid;
public ReceiptPrinting() {
}
/**
* Print a merchant receipt when the payment is approved.
*
* @param merchantApproved Print a merchant receipt when the payment is approved.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting merchantApproved(Boolean merchantApproved) {
this.merchantApproved = merchantApproved;
return this;
}
/**
* Print a merchant receipt when the payment is approved.
* @return merchantApproved Print a merchant receipt when the payment is approved.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMerchantApproved() {
return merchantApproved;
}
/**
* Print a merchant receipt when the payment is approved.
*
* @param merchantApproved Print a merchant receipt when the payment is approved.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantApproved(Boolean merchantApproved) {
this.merchantApproved = merchantApproved;
}
/**
* Print a merchant receipt when the transaction is cancelled.
*
* @param merchantCancelled Print a merchant receipt when the transaction is cancelled.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting merchantCancelled(Boolean merchantCancelled) {
this.merchantCancelled = merchantCancelled;
return this;
}
/**
* Print a merchant receipt when the transaction is cancelled.
* @return merchantCancelled Print a merchant receipt when the transaction is cancelled.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_CANCELLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMerchantCancelled() {
return merchantCancelled;
}
/**
* Print a merchant receipt when the transaction is cancelled.
*
* @param merchantCancelled Print a merchant receipt when the transaction is cancelled.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_CANCELLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantCancelled(Boolean merchantCancelled) {
this.merchantCancelled = merchantCancelled;
}
/**
* Print a merchant receipt when capturing the payment is approved.
*
* @param merchantCaptureApproved Print a merchant receipt when capturing the payment is approved.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting merchantCaptureApproved(Boolean merchantCaptureApproved) {
this.merchantCaptureApproved = merchantCaptureApproved;
return this;
}
/**
* Print a merchant receipt when capturing the payment is approved.
* @return merchantCaptureApproved Print a merchant receipt when capturing the payment is approved.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_CAPTURE_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMerchantCaptureApproved() {
return merchantCaptureApproved;
}
/**
* Print a merchant receipt when capturing the payment is approved.
*
* @param merchantCaptureApproved Print a merchant receipt when capturing the payment is approved.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_CAPTURE_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantCaptureApproved(Boolean merchantCaptureApproved) {
this.merchantCaptureApproved = merchantCaptureApproved;
}
/**
* Print a merchant receipt when capturing the payment is refused.
*
* @param merchantCaptureRefused Print a merchant receipt when capturing the payment is refused.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting merchantCaptureRefused(Boolean merchantCaptureRefused) {
this.merchantCaptureRefused = merchantCaptureRefused;
return this;
}
/**
* Print a merchant receipt when capturing the payment is refused.
* @return merchantCaptureRefused Print a merchant receipt when capturing the payment is refused.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_CAPTURE_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMerchantCaptureRefused() {
return merchantCaptureRefused;
}
/**
* Print a merchant receipt when capturing the payment is refused.
*
* @param merchantCaptureRefused Print a merchant receipt when capturing the payment is refused.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_CAPTURE_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantCaptureRefused(Boolean merchantCaptureRefused) {
this.merchantCaptureRefused = merchantCaptureRefused;
}
/**
* Print a merchant receipt when the refund is approved.
*
* @param merchantRefundApproved Print a merchant receipt when the refund is approved.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting merchantRefundApproved(Boolean merchantRefundApproved) {
this.merchantRefundApproved = merchantRefundApproved;
return this;
}
/**
* Print a merchant receipt when the refund is approved.
* @return merchantRefundApproved Print a merchant receipt when the refund is approved.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMerchantRefundApproved() {
return merchantRefundApproved;
}
/**
* Print a merchant receipt when the refund is approved.
*
* @param merchantRefundApproved Print a merchant receipt when the refund is approved.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantRefundApproved(Boolean merchantRefundApproved) {
this.merchantRefundApproved = merchantRefundApproved;
}
/**
* Print a merchant receipt when the refund is refused.
*
* @param merchantRefundRefused Print a merchant receipt when the refund is refused.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting merchantRefundRefused(Boolean merchantRefundRefused) {
this.merchantRefundRefused = merchantRefundRefused;
return this;
}
/**
* Print a merchant receipt when the refund is refused.
* @return merchantRefundRefused Print a merchant receipt when the refund is refused.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMerchantRefundRefused() {
return merchantRefundRefused;
}
/**
* Print a merchant receipt when the refund is refused.
*
* @param merchantRefundRefused Print a merchant receipt when the refund is refused.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_REFUND_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantRefundRefused(Boolean merchantRefundRefused) {
this.merchantRefundRefused = merchantRefundRefused;
}
/**
* Print a merchant receipt when the payment is refused.
*
* @param merchantRefused Print a merchant receipt when the payment is refused.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting merchantRefused(Boolean merchantRefused) {
this.merchantRefused = merchantRefused;
return this;
}
/**
* Print a merchant receipt when the payment is refused.
* @return merchantRefused Print a merchant receipt when the payment is refused.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMerchantRefused() {
return merchantRefused;
}
/**
* Print a merchant receipt when the payment is refused.
*
* @param merchantRefused Print a merchant receipt when the payment is refused.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantRefused(Boolean merchantRefused) {
this.merchantRefused = merchantRefused;
}
/**
* Print a merchant receipt when a previous transaction is voided.
*
* @param merchantVoid Print a merchant receipt when a previous transaction is voided.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting merchantVoid(Boolean merchantVoid) {
this.merchantVoid = merchantVoid;
return this;
}
/**
* Print a merchant receipt when a previous transaction is voided.
* @return merchantVoid Print a merchant receipt when a previous transaction is voided.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_VOID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMerchantVoid() {
return merchantVoid;
}
/**
* Print a merchant receipt when a previous transaction is voided.
*
* @param merchantVoid Print a merchant receipt when a previous transaction is voided.
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_VOID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantVoid(Boolean merchantVoid) {
this.merchantVoid = merchantVoid;
}
/**
* Print a shopper receipt when the payment is approved.
*
* @param shopperApproved Print a shopper receipt when the payment is approved.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting shopperApproved(Boolean shopperApproved) {
this.shopperApproved = shopperApproved;
return this;
}
/**
* Print a shopper receipt when the payment is approved.
* @return shopperApproved Print a shopper receipt when the payment is approved.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShopperApproved() {
return shopperApproved;
}
/**
* Print a shopper receipt when the payment is approved.
*
* @param shopperApproved Print a shopper receipt when the payment is approved.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperApproved(Boolean shopperApproved) {
this.shopperApproved = shopperApproved;
}
/**
* Print a shopper receipt when the transaction is cancelled.
*
* @param shopperCancelled Print a shopper receipt when the transaction is cancelled.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting shopperCancelled(Boolean shopperCancelled) {
this.shopperCancelled = shopperCancelled;
return this;
}
/**
* Print a shopper receipt when the transaction is cancelled.
* @return shopperCancelled Print a shopper receipt when the transaction is cancelled.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_CANCELLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShopperCancelled() {
return shopperCancelled;
}
/**
* Print a shopper receipt when the transaction is cancelled.
*
* @param shopperCancelled Print a shopper receipt when the transaction is cancelled.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_CANCELLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperCancelled(Boolean shopperCancelled) {
this.shopperCancelled = shopperCancelled;
}
/**
* Print a shopper receipt when capturing the payment is approved.
*
* @param shopperCaptureApproved Print a shopper receipt when capturing the payment is approved.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting shopperCaptureApproved(Boolean shopperCaptureApproved) {
this.shopperCaptureApproved = shopperCaptureApproved;
return this;
}
/**
* Print a shopper receipt when capturing the payment is approved.
* @return shopperCaptureApproved Print a shopper receipt when capturing the payment is approved.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_CAPTURE_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShopperCaptureApproved() {
return shopperCaptureApproved;
}
/**
* Print a shopper receipt when capturing the payment is approved.
*
* @param shopperCaptureApproved Print a shopper receipt when capturing the payment is approved.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_CAPTURE_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperCaptureApproved(Boolean shopperCaptureApproved) {
this.shopperCaptureApproved = shopperCaptureApproved;
}
/**
* Print a shopper receipt when capturing the payment is refused.
*
* @param shopperCaptureRefused Print a shopper receipt when capturing the payment is refused.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting shopperCaptureRefused(Boolean shopperCaptureRefused) {
this.shopperCaptureRefused = shopperCaptureRefused;
return this;
}
/**
* Print a shopper receipt when capturing the payment is refused.
* @return shopperCaptureRefused Print a shopper receipt when capturing the payment is refused.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_CAPTURE_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShopperCaptureRefused() {
return shopperCaptureRefused;
}
/**
* Print a shopper receipt when capturing the payment is refused.
*
* @param shopperCaptureRefused Print a shopper receipt when capturing the payment is refused.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_CAPTURE_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperCaptureRefused(Boolean shopperCaptureRefused) {
this.shopperCaptureRefused = shopperCaptureRefused;
}
/**
* Print a shopper receipt when the refund is approved.
*
* @param shopperRefundApproved Print a shopper receipt when the refund is approved.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting shopperRefundApproved(Boolean shopperRefundApproved) {
this.shopperRefundApproved = shopperRefundApproved;
return this;
}
/**
* Print a shopper receipt when the refund is approved.
* @return shopperRefundApproved Print a shopper receipt when the refund is approved.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_REFUND_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShopperRefundApproved() {
return shopperRefundApproved;
}
/**
* Print a shopper receipt when the refund is approved.
*
* @param shopperRefundApproved Print a shopper receipt when the refund is approved.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_REFUND_APPROVED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperRefundApproved(Boolean shopperRefundApproved) {
this.shopperRefundApproved = shopperRefundApproved;
}
/**
* Print a shopper receipt when the refund is refused.
*
* @param shopperRefundRefused Print a shopper receipt when the refund is refused.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting shopperRefundRefused(Boolean shopperRefundRefused) {
this.shopperRefundRefused = shopperRefundRefused;
return this;
}
/**
* Print a shopper receipt when the refund is refused.
* @return shopperRefundRefused Print a shopper receipt when the refund is refused.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_REFUND_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShopperRefundRefused() {
return shopperRefundRefused;
}
/**
* Print a shopper receipt when the refund is refused.
*
* @param shopperRefundRefused Print a shopper receipt when the refund is refused.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_REFUND_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperRefundRefused(Boolean shopperRefundRefused) {
this.shopperRefundRefused = shopperRefundRefused;
}
/**
* Print a shopper receipt when the payment is refused.
*
* @param shopperRefused Print a shopper receipt when the payment is refused.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting shopperRefused(Boolean shopperRefused) {
this.shopperRefused = shopperRefused;
return this;
}
/**
* Print a shopper receipt when the payment is refused.
* @return shopperRefused Print a shopper receipt when the payment is refused.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShopperRefused() {
return shopperRefused;
}
/**
* Print a shopper receipt when the payment is refused.
*
* @param shopperRefused Print a shopper receipt when the payment is refused.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_REFUSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperRefused(Boolean shopperRefused) {
this.shopperRefused = shopperRefused;
}
/**
* Print a shopper receipt when a previous transaction is voided.
*
* @param shopperVoid Print a shopper receipt when a previous transaction is voided.
* @return the current {@code ReceiptPrinting} instance, allowing for method chaining
*/
public ReceiptPrinting shopperVoid(Boolean shopperVoid) {
this.shopperVoid = shopperVoid;
return this;
}
/**
* Print a shopper receipt when a previous transaction is voided.
* @return shopperVoid Print a shopper receipt when a previous transaction is voided.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_VOID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getShopperVoid() {
return shopperVoid;
}
/**
* Print a shopper receipt when a previous transaction is voided.
*
* @param shopperVoid Print a shopper receipt when a previous transaction is voided.
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_VOID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperVoid(Boolean shopperVoid) {
this.shopperVoid = shopperVoid;
}
/**
* Return true if this ReceiptPrinting object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReceiptPrinting receiptPrinting = (ReceiptPrinting) o;
return Objects.equals(this.merchantApproved, receiptPrinting.merchantApproved) &&
Objects.equals(this.merchantCancelled, receiptPrinting.merchantCancelled) &&
Objects.equals(this.merchantCaptureApproved, receiptPrinting.merchantCaptureApproved) &&
Objects.equals(this.merchantCaptureRefused, receiptPrinting.merchantCaptureRefused) &&
Objects.equals(this.merchantRefundApproved, receiptPrinting.merchantRefundApproved) &&
Objects.equals(this.merchantRefundRefused, receiptPrinting.merchantRefundRefused) &&
Objects.equals(this.merchantRefused, receiptPrinting.merchantRefused) &&
Objects.equals(this.merchantVoid, receiptPrinting.merchantVoid) &&
Objects.equals(this.shopperApproved, receiptPrinting.shopperApproved) &&
Objects.equals(this.shopperCancelled, receiptPrinting.shopperCancelled) &&
Objects.equals(this.shopperCaptureApproved, receiptPrinting.shopperCaptureApproved) &&
Objects.equals(this.shopperCaptureRefused, receiptPrinting.shopperCaptureRefused) &&
Objects.equals(this.shopperRefundApproved, receiptPrinting.shopperRefundApproved) &&
Objects.equals(this.shopperRefundRefused, receiptPrinting.shopperRefundRefused) &&
Objects.equals(this.shopperRefused, receiptPrinting.shopperRefused) &&
Objects.equals(this.shopperVoid, receiptPrinting.shopperVoid);
}
@Override
public int hashCode() {
return Objects.hash(merchantApproved, merchantCancelled, merchantCaptureApproved, merchantCaptureRefused, merchantRefundApproved, merchantRefundRefused, merchantRefused, merchantVoid, shopperApproved, shopperCancelled, shopperCaptureApproved, shopperCaptureRefused, shopperRefundApproved, shopperRefundRefused, shopperRefused, shopperVoid);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReceiptPrinting {\n");
sb.append(" merchantApproved: ").append(toIndentedString(merchantApproved)).append("\n");
sb.append(" merchantCancelled: ").append(toIndentedString(merchantCancelled)).append("\n");
sb.append(" merchantCaptureApproved: ").append(toIndentedString(merchantCaptureApproved)).append("\n");
sb.append(" merchantCaptureRefused: ").append(toIndentedString(merchantCaptureRefused)).append("\n");
sb.append(" merchantRefundApproved: ").append(toIndentedString(merchantRefundApproved)).append("\n");
sb.append(" merchantRefundRefused: ").append(toIndentedString(merchantRefundRefused)).append("\n");
sb.append(" merchantRefused: ").append(toIndentedString(merchantRefused)).append("\n");
sb.append(" merchantVoid: ").append(toIndentedString(merchantVoid)).append("\n");
sb.append(" shopperApproved: ").append(toIndentedString(shopperApproved)).append("\n");
sb.append(" shopperCancelled: ").append(toIndentedString(shopperCancelled)).append("\n");
sb.append(" shopperCaptureApproved: ").append(toIndentedString(shopperCaptureApproved)).append("\n");
sb.append(" shopperCaptureRefused: ").append(toIndentedString(shopperCaptureRefused)).append("\n");
sb.append(" shopperRefundApproved: ").append(toIndentedString(shopperRefundApproved)).append("\n");
sb.append(" shopperRefundRefused: ").append(toIndentedString(shopperRefundRefused)).append("\n");
sb.append(" shopperRefused: ").append(toIndentedString(shopperRefused)).append("\n");
sb.append(" shopperVoid: ").append(toIndentedString(shopperVoid)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Create an instance of ReceiptPrinting given an JSON string
*
* @param jsonString JSON string
* @return An instance of ReceiptPrinting
* @throws JsonProcessingException if the JSON string is invalid with respect to ReceiptPrinting
*/
public static ReceiptPrinting fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, ReceiptPrinting.class);
}
/**
* Convert an instance of ReceiptPrinting to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy