-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,365 additions
and
1,308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
package com.shopify.model; | ||
|
||
import java.math.BigDecimal; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
@XmlRootElement | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
public class ShopifyAdjustment { | ||
|
||
private String id; | ||
@XmlElement(name = "order_id") | ||
private String orderId; | ||
@XmlElement(name = "refund_id") | ||
private String refundId; | ||
private BigDecimal amount; | ||
@XmlElement(name = "tax_amount") | ||
private BigDecimal taxAmount; | ||
private String kind; | ||
private String reason; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(final String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getOrderId() { | ||
return orderId; | ||
} | ||
|
||
public void setOrderId(final String orderId) { | ||
this.orderId = orderId; | ||
} | ||
|
||
public String getRefundId() { | ||
return refundId; | ||
} | ||
|
||
public void setRefundId(final String refundId) { | ||
this.refundId = refundId; | ||
} | ||
|
||
public BigDecimal getAmount() { | ||
return amount; | ||
} | ||
|
||
public void setAmount(final BigDecimal amount) { | ||
this.amount = amount; | ||
} | ||
|
||
public BigDecimal getTaxAmount() { | ||
return taxAmount; | ||
} | ||
|
||
public void setTaxAmount(final BigDecimal taxAmount) { | ||
this.taxAmount = taxAmount; | ||
} | ||
|
||
public String getKind() { | ||
return kind; | ||
} | ||
|
||
public void setKind(final String kind) { | ||
this.kind = kind; | ||
} | ||
|
||
public String getReason() { | ||
return reason; | ||
} | ||
|
||
public void setReason(final String reason) { | ||
this.reason = reason; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/shopify/model/ShopifyAdjustmentsRoot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.shopify.model; | ||
|
||
import java.util.LinkedList; | ||
import java.util.List; | ||
|
||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
@XmlRootElement | ||
public class ShopifyAdjustmentsRoot { | ||
|
||
private List<ShopifyAdjustment> adjustments = new LinkedList<>(); | ||
|
||
public List<ShopifyAdjustment> getAdjustments() { | ||
return adjustments; | ||
} | ||
|
||
public void setAdjustments(final List<ShopifyAdjustment> adjustments) { | ||
this.adjustments = adjustments; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.