Skip to content

Commit aa6dfb4

Browse files
committed
merge account
1 parent 7d05c4d commit aa6dfb4

78 files changed

Lines changed: 7028 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.pingplusplus;
2+
3+
/**
4+
* Created by Afon on 2016/12/22.
5+
*/
6+
public abstract class PingppAccount extends Pingpp {
7+
public static final String VERSION = "1.2.3";
8+
}
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
package com.pingplusplus.model;
2+
3+
import com.pingplusplus.exception.*;
4+
import com.pingplusplus.net.APIResource;
5+
import com.pingplusplus.net.AppBasedResource;
6+
7+
import java.util.Map;
8+
9+
public class BalanceBonus extends AppBasedResource {
10+
String id;
11+
String object;
12+
String app;
13+
Long created;
14+
Boolean livemode;
15+
Boolean paid;
16+
Boolean refunded;
17+
Integer amount;
18+
Integer amountRefunded;
19+
String orderNo;
20+
Long timePaid;
21+
String user;
22+
String balanceTransaction;
23+
String description;
24+
Map<String, Object> metadata;
25+
26+
public String getId() {
27+
return id;
28+
}
29+
30+
public void setId(String id) {
31+
this.id = id;
32+
}
33+
34+
public String getObject() {
35+
return object;
36+
}
37+
38+
public void setObject(String object) {
39+
this.object = object;
40+
}
41+
42+
public String getApp() {
43+
return app;
44+
}
45+
46+
public void setApp(String app) {
47+
this.app = app;
48+
}
49+
50+
public Long getCreated() {
51+
return created;
52+
}
53+
54+
public void setCreated(Long created) {
55+
this.created = created;
56+
}
57+
58+
public Boolean getLivemode() {
59+
return livemode;
60+
}
61+
62+
public void setLivemode(Boolean livemode) {
63+
this.livemode = livemode;
64+
}
65+
66+
public Boolean getPaid() {
67+
return paid;
68+
}
69+
70+
public void setPaid(Boolean paid) {
71+
this.paid = paid;
72+
}
73+
74+
public Boolean getRefunded() {
75+
return refunded;
76+
}
77+
78+
public void setRefunded(Boolean refunded) {
79+
this.refunded = refunded;
80+
}
81+
82+
public Integer getAmount() {
83+
return amount;
84+
}
85+
86+
public void setAmount(Integer amount) {
87+
this.amount = amount;
88+
}
89+
90+
public Integer getAmountRefunded() {
91+
return amountRefunded;
92+
}
93+
94+
public void setAmountRefunded(Integer amountRefunded) {
95+
this.amountRefunded = amountRefunded;
96+
}
97+
98+
public String getOrderNo() {
99+
return orderNo;
100+
}
101+
102+
public void setOrderNo(String orderNo) {
103+
this.orderNo = orderNo;
104+
}
105+
106+
public Long getTimePaid() {
107+
return timePaid;
108+
}
109+
110+
public void setTimePaid(Long timePaid) {
111+
this.timePaid = timePaid;
112+
}
113+
114+
public String getUser() {
115+
return user;
116+
}
117+
118+
public void setUser(String user) {
119+
this.user = user;
120+
}
121+
122+
public String getBalanceTransaction() {
123+
return balanceTransaction;
124+
}
125+
126+
public void setBalanceTransaction(String balanceTransaction) {
127+
this.balanceTransaction = balanceTransaction;
128+
}
129+
130+
public String getDescription() {
131+
return description;
132+
}
133+
134+
public void setDescription(String description) {
135+
this.description = description;
136+
}
137+
138+
public Map<String, Object> getMetadata() {
139+
return metadata;
140+
}
141+
142+
public void setMetadata(Map<String, Object> metadata) {
143+
this.metadata = metadata;
144+
}
145+
146+
/**
147+
* 创建 balance_bonus
148+
*
149+
* @param params
150+
* @return
151+
* @throws AuthenticationException
152+
* @throws InvalidRequestException
153+
* @throws APIConnectionException
154+
* @throws APIException
155+
* @throws ChannelException
156+
* @throws RateLimitException
157+
*/
158+
public static BalanceBonus create(Map<String, Object> params)
159+
throws AuthenticationException, InvalidRequestException,
160+
APIConnectionException, APIException, ChannelException, RateLimitException {
161+
return request(APIResource.RequestMethod.POST, classURL(BalanceBonus.class), params, BalanceBonus.class);
162+
}
163+
164+
/**
165+
* 查询 balance_bonus
166+
*
167+
* @param id
168+
* @return
169+
* @throws AuthenticationException
170+
* @throws InvalidRequestException
171+
* @throws APIConnectionException
172+
* @throws APIException
173+
* @throws ChannelException
174+
* @throws RateLimitException
175+
*/
176+
public static BalanceBonus retrieve(String id)
177+
throws AuthenticationException, InvalidRequestException,
178+
APIConnectionException, APIException, ChannelException, RateLimitException {
179+
return request(APIResource.RequestMethod.GET, instanceURL(BalanceBonus.class, id), null, BalanceBonus.class);
180+
}
181+
182+
/**
183+
* 查询 balance_bonus 列表
184+
*
185+
* @param params
186+
* @return
187+
* @throws AuthenticationException
188+
* @throws InvalidRequestException
189+
* @throws APIConnectionException
190+
* @throws APIException
191+
* @throws ChannelException
192+
* @throws RateLimitException
193+
*/
194+
public static BalanceBonusCollection list(Map<String, Object> params)
195+
throws AuthenticationException, InvalidRequestException,
196+
APIConnectionException, APIException, ChannelException, RateLimitException {
197+
return request(APIResource.RequestMethod.GET, classURL(BalanceBonus.class), params, BalanceBonusCollection.class);
198+
}
199+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.pingplusplus.model;
2+
3+
public class BalanceBonusCollection extends PingppCollection<BalanceBonus> {
4+
}

0 commit comments

Comments
 (0)