/** * 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 the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use. */ @JsonIgnoreProperties(ignoreUnknown = true) public class Credit implements Serializable { // Default Serial Version UID private static final long serialVersionUID = 1L; /** * The date and time the store credit or gift card was activated by the shopper. Credits cannot be used until activated. After the credit is activated, this property value is read-only. */ protected DateTime activationDate; public DateTime getActivationDate() { return this.activationDate; } public void setActivationDate(DateTime activationDate) { this.activationDate = activationDate; } /** * User-defined identifier of the credit, which is unique within the tenant. */ protected String code; public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } /** * The type of customer credit, which is "GiftCard" or "StoreCredit". */ protected String creditType; public String getCreditType() { return this.creditType; } public void setCreditType(String creditType) { this.creditType = creditType; } /** * 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; } /** * The current remaining balance of the credit applied to the customer account. */ protected Double currentBalance; public Double getCurrentBalance() { return this.currentBalance; } public void setCurrentBalance(Double currentBalance) { this.currentBalance = currentBalance; } /** * Unique identifier of the customer in Mozu, used to associate customers with data, orders, returns, and in-store credit. */ protected Integer customerId; public Integer getCustomerId() { return this.customerId; } public void setCustomerId(Integer customerId) { this.customerId = customerId; } /** * Date and time in UTC format when a discount, credit, wish list, or cart expires. An expired discount no longer can be redeemed. An expired wish list is no longer available. An expired credit can no longer be redeemed for a purchase. Acart becomes inactive and expired based on a system-calculated interval. For example, if an anonymous shopper has 14 days of inactivity, the cart is considered abandoned after that period of inactivity. System-supplied and read-only. */ protected DateTime expirationDate; public DateTime getExpirationDate() { return this.expirationDate; } public void setExpirationDate(DateTime expirationDate) { this.expirationDate = expirationDate; } /** * The initial balance of the credit applied to the customer account. This value cannot be changed after it is set. */ protected Double initialBalance; public Double getInitialBalance() { return this.initialBalance; } public void setInitialBalance(Double initialBalance) { this.initialBalance = initialBalance; } /** * 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; } }