Skip to content

Commit 00c2fbc

Browse files
authored
Merge pull request #94 from ppatidar2021/added_image_field
Added image field in supported wallets method and Refund IPN/Webhook model.
2 parents 2f40bc6 + d6dc800 commit 00c2fbc

File tree

3 files changed

+171
-0
lines changed

3 files changed

+171
-0
lines changed
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
package com.bitpay.sdk.model.Invoice;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnore;
4+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
5+
import com.fasterxml.jackson.annotation.JsonInclude;
6+
import com.fasterxml.jackson.annotation.JsonProperty;
7+
8+
import java.util.Date;
9+
10+
@JsonIgnoreProperties(ignoreUnknown = true)
11+
public class RefundWebhook {
12+
13+
private String _id;
14+
private String _invoice;
15+
private String _supportRequest;
16+
private String _status;
17+
private Double _amount;
18+
private String _currency;
19+
private Date _lastRefundNotification;
20+
private Double _refundFee;
21+
private boolean _immediate;
22+
private boolean _buyerPaysRefundFee;
23+
private Date _requestDate;
24+
25+
public RefundWebhook() {
26+
}
27+
28+
@JsonProperty("id")
29+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
30+
public String getId() {
31+
return _id;
32+
}
33+
34+
@JsonProperty("id")
35+
public void setId(String _id) {
36+
this._id = _id;
37+
}
38+
39+
@JsonProperty("invoice")
40+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
41+
public String getInvoice() {
42+
return _invoice;
43+
}
44+
45+
@JsonProperty("invoice")
46+
public void setInvoice(String _invoice) {
47+
this._invoice = _invoice;
48+
}
49+
50+
@JsonProperty("supportRequest")
51+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
52+
public String getSupportRequest() {
53+
return _supportRequest;
54+
}
55+
56+
@JsonProperty("supportRequest")
57+
public void setSupportRequest(String _supportRequest) {
58+
this._supportRequest = _supportRequest;
59+
}
60+
61+
@JsonProperty("status")
62+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
63+
public String getStatus() {
64+
return _status;
65+
}
66+
67+
@JsonProperty("status")
68+
public void setStatus(String _status) {
69+
this._status = _status;
70+
}
71+
72+
@JsonProperty("amount")
73+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
74+
public Double getAmount() {
75+
return _amount;
76+
}
77+
78+
@JsonProperty("amount")
79+
public void setAmount(Double _amount) {
80+
this._amount = _amount;
81+
}
82+
83+
@JsonProperty("currency")
84+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
85+
public String getCurrency() {
86+
return _currency;
87+
}
88+
89+
@JsonProperty("currency")
90+
public void setCurrency(String _currency) {
91+
this._currency = _currency;
92+
}
93+
94+
@JsonProperty("lastRefundNotification")
95+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
96+
public Date getLastRefundNotification() {
97+
return _lastRefundNotification;
98+
}
99+
100+
@JsonProperty("lastRefundNotification")
101+
public void setLastRefundNotification(Date _lastRefundNotification) {
102+
this._lastRefundNotification = _lastRefundNotification;
103+
}
104+
105+
@JsonProperty("refundFee")
106+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
107+
public Double getRefundFee() {
108+
return _refundFee;
109+
}
110+
111+
@JsonProperty("refundFee")
112+
public void setRefundFee(Double _refundFee) {
113+
this._refundFee = _refundFee;
114+
}
115+
116+
@JsonProperty("immediate")
117+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
118+
public boolean getImmediate() {
119+
return _immediate;
120+
}
121+
122+
@JsonProperty("immediate")
123+
public void setImmediate(boolean _immediate) {
124+
this._immediate = _immediate;
125+
}
126+
127+
@JsonProperty("buyerPaysRefundFee")
128+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
129+
public boolean getBuyerPaysRefundFee() {
130+
return _buyerPaysRefundFee;
131+
}
132+
133+
@JsonProperty("buyerPaysRefundFee")
134+
public void setBuyerPaysRefundFee(boolean buyerPaysRefundFee) {
135+
this._buyerPaysRefundFee = _buyerPaysRefundFee;
136+
}
137+
138+
@JsonProperty("requestDate")
139+
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
140+
public Date getRequestDate() {
141+
return _requestDate;
142+
}
143+
144+
@JsonProperty("requestDate")
145+
public void setRequestDate(Date requestDate) {
146+
this._requestDate = _requestDate;
147+
}
148+
149+
}

src/main/java/com/bitpay/sdk/model/Wallet/Currencies.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class Currencies {
1111
private Boolean _dappBrowser;
1212
private Boolean _payPro;
1313
private CurrencyQr _qr;
14+
private String _image;
1415

1516
public Currencies() {
1617
}
@@ -60,4 +61,14 @@ public void setPayPro(Boolean payPro) {
6061
public void setQr(CurrencyQr qr) {
6162
this._qr = qr;
6263
}
64+
65+
@JsonIgnore
66+
public String getImage() {
67+
return _image;
68+
}
69+
70+
@JsonProperty("image")
71+
public void setImage(String image) {
72+
this._image = image;
73+
}
6374
}

src/main/java/com/bitpay/sdk/model/Wallet/Wallet.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public class Wallet {
1313
private String _avatar;
1414
private Boolean _payPro;
1515
private ArrayList<Currencies> _currencies;
16+
private String _image;
1617

1718
public Wallet() {
1819
}
@@ -62,4 +63,14 @@ public void setPayPro(Boolean payPro) {
6263
public void setCurrencies(ArrayList<Currencies> currencies) {
6364
this._currencies = currencies;
6465
}
66+
67+
@JsonIgnore
68+
public String getImage() {
69+
return _image;
70+
}
71+
72+
@JsonProperty("image")
73+
public void setImage(String image) {
74+
this._image = image;
75+
}
6576
}

0 commit comments

Comments
 (0)