com.shopify.model.ShopifyRefund Maven / Gradle / Ivy
package com.shopify.model;
import java.util.Currency;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.joda.time.DateTime;
import com.shopify.model.adapters.CurrencyAdapter;
import com.shopify.model.adapters.DateTimeAdapter;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class ShopifyRefund {
private String id;
@XmlElement(name = "order_id")
private String orderId;
@XmlElement(name = "created_at")
@XmlJavaTypeAdapter(DateTimeAdapter.class)
private DateTime createdAt;
private String note;
@XmlElement(name = "user_id")
private String userId;
@XmlElement(name = "processed_at")
@XmlJavaTypeAdapter(DateTimeAdapter.class)
private DateTime processedAt;
private boolean restock;
@XmlElement(name = "refund_line_items")
private List refundLineItems;
private ShopifyRefundShippingDetails shipping;
private List transactions;
@XmlJavaTypeAdapter(CurrencyAdapter.class)
private Currency currency;
public String getId() {
return id;
}
public void setId(final String id) {
this.id = id;
}
public List getRefundLineItems() {
return refundLineItems;
}
public void setRefundLineItems(final List refundLineItems) {
this.refundLineItems = refundLineItems;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(final String orderId) {
this.orderId = orderId;
}
public DateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(final DateTime createdAt) {
this.createdAt = createdAt;
}
public String getNote() {
return note;
}
public void setNote(final String note) {
this.note = note;
}
public String getUserId() {
return userId;
}
public void setUserId(final String userId) {
this.userId = userId;
}
public DateTime getProcessedAt() {
return processedAt;
}
public void setProcessedAt(final DateTime processedAt) {
this.processedAt = processedAt;
}
public boolean isRestock() {
return restock;
}
public void setRestock(final boolean restock) {
this.restock = restock;
}
public ShopifyRefundShippingDetails getShipping() {
return shipping;
}
public void setShipping(final ShopifyRefundShippingDetails shipping) {
this.shipping = shipping;
}
public List getTransactions() {
return transactions;
}
public void setTransactions(final List transactions) {
this.transactions = transactions;
}
public Currency getCurrency() {
return currency;
}
public void setCurrency(final Currency currency) {
this.currency = currency;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy