/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.contracts.commerceruntime.payments; import java.util.List; import java.util.HashMap; import java.io.Serializable; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.joda.time.DateTime; import java.io.IOException; import java.lang.ClassNotFoundException; import com.mozu.api.contracts.core.AuditInfo; import com.mozu.api.contracts.commerceruntime.payments.PaymentGatewayResponseData; /** * Properties of a resulting payment interaction that occurs when a payment action is performed. */ @JsonIgnoreProperties(ignoreUnknown = true) public class PaymentInteraction implements Serializable { // Default Serial Version UID private static final long serialVersionUID = 1L; /** * The current status of an object. This status is specific to the object including payment (New, Authorized, Captured, Declined, Failed, Voided, Credited, CheckRequested, or RolledBack), discount (Active, Scheduled, or Expired), returns (ReturnAuthorized), tenant, package (Fulfilled or NotFulfilled), application, master and product catalogs, orders (Pending, Submitted, Processing, Pending Review, Closed, or Canceled), and order validation results (Pass, Fail, Error, or Review). */ protected String status; public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } /** * If applicable, the total monetary amount associated with this payment interaction. */ protected Double amount; public Double getAmount() { return this.amount; } public void setAmount(Double amount) { this.amount = amount; } /** * If applicable, the check number associated with the payment action or interaction. */ protected String checkNumber; public String getCheckNumber() { return this.checkNumber; } public void setCheckNumber(String checkNumber) { this.checkNumber = checkNumber; } /** * 3-letter ISO 4217 standard global currency code. Currently, only "USD" (US Dollar) is supported. */ protected String currencyCode; public String getCurrencyCode() { return this.currencyCode; } public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } /** * If required by the payment gateway, the authorization code of the transaction. */ protected String gatewayAuthCode; public String getGatewayAuthCode() { return this.gatewayAuthCode; } public void setGatewayAuthCode(String gatewayAuthCode) { this.gatewayAuthCode = gatewayAuthCode; } /** * AVS (Address Verification Service) codes supplied by the payment gateway. The codes indicate partial to complete or failed matches against the billing address for the shopper against the financial institute data through the gateway. */ protected String gatewayAVSCodes; public String getGatewayAVSCodes() { return this.gatewayAVSCodes; } public void setGatewayAVSCodes(String gatewayAVSCodes) { this.gatewayAVSCodes = gatewayAVSCodes; } /** * CVV2 (Card Verification Value) codes supplied by the payment gateway. The codes indicate a verified or failed match of the encrypted code entered against the financial institution data through the gateway. */ protected String gatewayCVV2Codes; public String getGatewayCVV2Codes() { return this.gatewayCVV2Codes; } public void setGatewayCVV2Codes(String gatewayCVV2Codes) { this.gatewayCVV2Codes = gatewayCVV2Codes; } /** * Unique identifier of the payment interaction from the payment gateway. */ protected Integer gatewayInteractionId; public Integer getGatewayInteractionId() { return this.gatewayInteractionId; } public void setGatewayInteractionId(Integer gatewayInteractionId) { this.gatewayInteractionId = gatewayInteractionId; } /** * Response code from the gateway associated with the payment interaction. For example, if the gateway returns "Not Authorized," an interaction for voiding the payment transaction would result. */ protected String gatewayResponseCode; public String getGatewayResponseCode() { return this.gatewayResponseCode; } public void setGatewayResponseCode(String gatewayResponseCode) { this.gatewayResponseCode = gatewayResponseCode; } /** * Textual message returned by the payment gateway for the associated success or failure code. */ protected String gatewayResponseText; public String getGatewayResponseText() { return this.gatewayResponseText; } public void setGatewayResponseText(String gatewayResponseText) { this.gatewayResponseText = gatewayResponseText; } /** * Unique identifier of the gateway transaction associated with the payment interaction. */ protected String gatewayTransactionId; public String getGatewayTransactionId() { return this.gatewayTransactionId; } public void setGatewayTransactionId(String gatewayTransactionId) { this.gatewayTransactionId = gatewayTransactionId; } /** * Unique identifier of the source product property. For a product field it will be the name of the field. For a product attribute it will be the Attribute FQN. */ protected String id; public String getId() { return this.id; } public void setId(String id) { this.id = id; } /** * Date and time of a payment interaction, including handling and processing a payment and validating and completing a payment with a payment gateway. */ protected DateTime interactionDate; public DateTime getInteractionDate() { return this.interactionDate; } public void setInteractionDate(DateTime interactionDate) { this.interactionDate = interactionDate; } /** * The type of payment interaction. The payment can be Capture or CheckReceived. The value also includes customer payment interactions such as Website, Call, Store, or Unknown. */ protected String interactionType; public String getInteractionType() { return this.interactionType; } public void setInteractionType(String interactionType) { this.interactionType = interactionType; } /** * If true, the payment interaction was manually defined s part of offline order processing. */ protected Boolean isManual; public Boolean getIsManual() { return this.isManual; } public void setIsManual(Boolean isManual) { this.isManual = isManual; } /** * Indicates if the product in a cart, order, or wish list is purchased on a recurring schedule. If true, the item can be purchased or fulfilled at regular intervals, such as a monthly billing cycle. For example, digital or physical product subscriptions are recurring cart items. This property is not used at this time and is reserved for future functionality. */ protected Boolean isRecurring; public Boolean getIsRecurring() { return this.isRecurring; } public void setIsRecurring(Boolean isRecurring) { this.isRecurring = isRecurring; } /** * User-entered notation content for an object, used to save information such as payment, return, account, and order notes. */ protected String note; public String getNote() { return this.note; } public void setNote(String note) { this.note = note; } /** * Unique identifier of the order associated with the payment. */ protected String orderId; public String getOrderId() { return this.orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } /** * The status of the payment prior to the interaction being performed, which enables manual rollback of previous transactions. */ protected String paymentEntryStatus; public String getPaymentEntryStatus() { return this.paymentEntryStatus; } public void setPaymentEntryStatus(String paymentEntryStatus) { this.paymentEntryStatus = paymentEntryStatus; } /** * Unique identifier of the payment associated with this transaction. */ protected String paymentId; public String getPaymentId() { return this.paymentId; } public void setPaymentId(String paymentId) { this.paymentId = paymentId; } /** * Unique identifier of previous interaction that this payment interaction is modifying. For example, when refunding a payment, the crediting interaction would reference the capture interaction. */ protected Integer paymentTransactionInteractionIdReference; public Integer getPaymentTransactionInteractionIdReference() { return this.paymentTransactionInteractionIdReference; } public void setPaymentTransactionInteractionIdReference(Integer paymentTransactionInteractionIdReference) { this.paymentTransactionInteractionIdReference = paymentTransactionInteractionIdReference; } /** * Identifier and datetime stamp information recorded when a user or application creates, updates, or deletes a resource entity. This value is system-supplied and read-only. */ protected AuditInfo auditInfo; public AuditInfo getAuditInfo() { return this.auditInfo; } public void setAuditInfo(AuditInfo auditInfo) { this.auditInfo = auditInfo; } protected List<PaymentGatewayResponseData> gatewayResponseData; public List<PaymentGatewayResponseData> getGatewayResponseData() { return this.gatewayResponseData; } public void setGatewayResponseData(List<PaymentGatewayResponseData> gatewayResponseData) { this.gatewayResponseData = gatewayResponseData; } }