/** * 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.customer.credit; 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; /** * Properties of a transaction performed for a customer credit that update the remaining balance of the credit. */ @JsonIgnoreProperties(ignoreUnknown = true) public class CreditTransaction implements Serializable { // Default Serial Version UID private static final long serialVersionUID = 1L; /** * Notes entered and saved with an order. These notes may be entered by a shopper on a wishlist or for an order. Comments may also be entered by Admins on an order that may be visible only to authorized shoppers and users. */ protected String comments; public String getComments() { return this.comments; } public void setComments(String comments) { this.comments = comments; } /** * Unique identifier of the source property, such as a catalog, discount, order, or email template.For a product field it will be the name of the field.For a category ID, must be a positive integer not greater than 2000000. By default, auto-generates a category ID when categories are created. If you want to specify an ID during creation (which preserves category link relationships when migrating tenant data from one sandbox to another), you must also include the query string in the endpoint. For example, . Then, use the property to specify the desired category ID.For a product attribute it will be the Attribute FQN.For a document, the ID must be specified as a 32 character, case-insensitive, alphanumeric string. You can specify the ID as 32 sequential characters or as groups separated by dashes in the format 8-4-4-4-12. For example, or.For email templates, the ID must be one of the following values: */ protected Integer id; public Integer getId() { return this.id; } public void setId(Integer id) { this.id = id; } /** * The amount to apply to the credit balance. The defined transaction type determines whether this amount represents a positive or negative integer. */ protected Double impactAmount; public Double getImpactAmount() { return this.impactAmount; } public void setImpactAmount(Double impactAmount) { this.impactAmount = impactAmount; } /** * 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; } /** * Specifies the type of transaction, including customer transactions and credit transactions.Valid values for credit transactions are the following:* —decreases the credit amount* —updates the credit amountValid values for customer transaction types are the following:* * * * */ protected String transactionType; public String getTransactionType() { return this.transactionType; } public void setTransactionType(String transactionType) { this.transactionType = transactionType; } /** * 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; } }