1818import java .util .ArrayList ;
1919import java .util .Hashtable ;
2020import java .util .List ;
21+ import java .util .Map ;
2122
2223/**
2324 * The type Invoice.
2728@ JsonIgnoreProperties (ignoreUnknown = true )
2829public class Invoice {
2930
30- private String currency = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
31-
32- private String guid ;
33- private String token ;
34-
35- private Double price ;
36- private String posData ;
37- private String notificationUrl = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
38- private String transactionSpeed = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
39- private Boolean fullNotifications ;
40- private String notificationEmail = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
41- private String redirectUrl = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
42- private String closeUrl = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
43- private String orderId = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
44- private String itemDesc = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
45- private String itemCode = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
46- private Boolean physical ;
47- private List <String > paymentCurrencies ;
48- private Integer acceptanceWindow ;
49- private Buyer buyer ;
50- private String buyerSms = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
51- private String merchantName = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
52- private String selectedTransactionCurrency = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
53- private String forcedBuyerSelectedWallet = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
54- private InvoiceUniversalCodes universalCodes ;
55- private List <InvoiceItemizedDetails > itemizedDetails ;
56- private Boolean autoRedirect ;
57-
58- private String id ;
59- private String url = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
60- private String status = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
61- private Boolean lowFeeDetected ;
62- private Long invoiceTime ;
63- private Long expirationTime ;
64- private Long currentTime ;
65- private String exceptionStatus = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
66- private Integer targetConfirmations ;
67- private List <InvoiceTransaction > transactions ;
68- private ArrayList refundAddresses ;
69- private Boolean refundAddressRequestPending ;
70- private String buyerProvidedEmail = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
71- private InvoiceBuyerProvidedInfo invoiceBuyerProvidedInfo ;
72- private SupportedTransactionCurrencies supportedTransactionCurrencies ;
73- private MinerFees minerFees ;
74- private Shopper shopper ;
75- private String billId = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
76- private ArrayList <RefundInfo > refundInfo ;
77- private Boolean extendedNotifications ;
78- private String transactionCurrency = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
79- private String forcedBuyerSelectedTransactionCurrency = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
80- private BigDecimal amountPaid ;
81- private String displayAmountPaid ;
82- private Hashtable <String , Hashtable <String , BigDecimal >> exchangeRates ;
83- private Boolean isCancelled ;
84- private Boolean bitpayIdRequired ;
85- private Hashtable <String , BigInteger > paymentSubtotals ;
86- private Hashtable <String , BigInteger > paymentTotals ;
87- private Hashtable <String , String > paymentDisplayTotals ;
88- private Hashtable <String , String > paymentDisplaySubTotals ;
89- private Boolean nonPayProPaymentReceived ;
90- private Boolean jsonPayProRequired ;
91- private BigDecimal underpaidAmount ;
92- private BigDecimal overpaidAmount ;
93- private Hashtable <String , Hashtable <String , String >> paymentCodes ;
31+ protected String currency = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
32+
33+ protected String guid ;
34+ protected String token ;
35+
36+ protected Double price ;
37+ protected String posData ;
38+ protected String notificationUrl = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
39+ protected String transactionSpeed = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
40+ protected Boolean fullNotifications ;
41+ protected String notificationEmail = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
42+ protected String redirectUrl = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
43+ protected String closeUrl = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
44+ protected String orderId = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
45+ protected String itemDesc = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
46+ protected String itemCode = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
47+ protected Boolean physical ;
48+ protected List <String > paymentCurrencies ;
49+ protected Integer acceptanceWindow ;
50+ protected Buyer buyer ;
51+ protected String buyerSms = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
52+ protected String merchantName = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
53+ protected String selectedTransactionCurrency = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
54+ protected String forcedBuyerSelectedWallet = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
55+ protected InvoiceUniversalCodes universalCodes ;
56+ protected List <InvoiceItemizedDetails > itemizedDetails ;
57+ protected Boolean autoRedirect ;
58+
59+ protected String id ;
60+ protected String url = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
61+ protected String status = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
62+ protected Boolean lowFeeDetected ;
63+ protected Long invoiceTime ;
64+ protected Long expirationTime ;
65+ protected Long currentTime ;
66+ protected String exceptionStatus = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
67+ protected Integer targetConfirmations ;
68+ protected List <InvoiceTransaction > transactions ;
69+ protected List < Map < String , InvoiceRefundAddresses >> refundAddresses ;
70+ protected Boolean refundAddressRequestPending ;
71+ protected String buyerProvidedEmail = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
72+ protected InvoiceBuyerProvidedInfo invoiceBuyerProvidedInfo ;
73+ protected SupportedTransactionCurrencies supportedTransactionCurrencies ;
74+ protected MinerFees minerFees ;
75+ protected Shopper shopper ;
76+ protected String billId = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
77+ protected ArrayList <RefundInfo > refundInfo ;
78+ protected Boolean extendedNotifications ;
79+ protected String transactionCurrency = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
80+ protected String forcedBuyerSelectedTransactionCurrency = ModelConfiguration .DEFAULT_NON_SENT_VALUE ;
81+ protected BigDecimal amountPaid ;
82+ protected String displayAmountPaid ;
83+ protected Hashtable <String , Hashtable <String , BigDecimal >> exchangeRates ;
84+ protected Boolean isCancelled ;
85+ protected Boolean bitpayIdRequired ;
86+ protected Hashtable <String , BigInteger > paymentSubtotals ;
87+ protected Hashtable <String , BigInteger > paymentTotals ;
88+ protected Hashtable <String , String > paymentDisplayTotals ;
89+ protected Hashtable <String , String > paymentDisplaySubTotals ;
90+ protected Boolean nonPayProPaymentReceived ;
91+ protected Boolean jsonPayProRequired ;
92+ protected BigDecimal underpaidAmount ;
93+ protected BigDecimal overpaidAmount ;
94+ protected Hashtable <String , Hashtable <String , String >> paymentCodes ;
9495
9596 /**
9697 * Constructor, create an empty Invoice object.
@@ -1168,7 +1169,7 @@ public void setTargetConfirmations(final Integer targetConfirmations) {
11681169 * @return the refund addresses
11691170 */
11701171 @ JsonIgnore
1171- public ArrayList getRefundAddresses () {
1172+ public List < Map < String , InvoiceRefundAddresses >> getRefundAddresses () {
11721173 return this .refundAddresses ;
11731174 }
11741175
@@ -1179,7 +1180,7 @@ public ArrayList getRefundAddresses() {
11791180 * @param refundAddresses the refund addresses
11801181 */
11811182 @ JsonProperty ("refundAddresses" )
1182- public void setRefundAddresses (final ArrayList refundAddresses ) {
1183+ public void setRefundAddresses (final List < Map < String , InvoiceRefundAddresses >> refundAddresses ) {
11831184 this .refundAddresses = refundAddresses ;
11841185 }
11851186
0 commit comments