-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathAdjustment.java
More file actions
76 lines (52 loc) · 1.55 KB
/
Adjustment.java
File metadata and controls
76 lines (52 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package com.kwanzoo.recurly;
import java.util.Date;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "adjustment")
public class Adjustment extends Base {
private static String resourceName = "adjustments";
@XmlElement(name = "unit_amount_in_cents")
public Integer unitAmountInCents;
@XmlElement(name = "discount_in_cents")
public Integer discountInCents;
@XmlElement(name = "tax_in_cents")
public Integer taxInCents;
@XmlElement(name = "total_in_cents")
public Integer totalInCents;
@XmlElement(name = "description")
public String description;
@XmlElement(name = "currency")
public String currency;
@XmlElement(name = "uuid")
public String uuid;
@XmlElement(name = "accounting_code")
public String accountingCode;
@XmlElement(name = "tax_exempt")
public Boolean taxExempt;
@XmlElement(name = "product_code")
public String productCode;
@XmlElement(name = "origin")
public String origin;
@XmlElement(name = "quantity")
public String quantity;
@XmlElement(name = "start_date")
public Date startDate;
@XmlElement(name = "created_at")
public Date createdAt;
@XmlElement(name = "end_date")
public Date endDate;
private String accountCode;
@Override
protected String getResourcePath() {
return Account.pluralResourceName + "/" + accountCode + "/" + resourceName;
}
@Override
protected String getResourceCreationPath() {
return getResourcePath();
}
public Adjustment() {
}
public Adjustment(final String accountCode) {
this.accountCode = accountCode;
}
}