1010
1111import java .util .List ;
1212
13+ /**
14+ * The type Payout instruction.
15+ */
1316@ JsonIgnoreProperties (ignoreUnknown = true )
1417public class PayoutInstruction {
1518 private Double _amount ;
@@ -56,67 +59,159 @@ public PayoutInstruction(Double amount, int method, String methodValue) throws P
5659 }
5760 }
5861
62+ /**
63+ * Gets the payout amount in the requested currency. The minimum amount per instruction is $5 USD equivalent.
64+ *
65+ * @return the amount
66+ */
5967 @ JsonProperty ("amount" )
6068 @ JsonInclude (JsonInclude .Include .NON_DEFAULT )
6169 public Double getAmount () {
6270 return _amount ;
6371 }
6472
73+ /**
74+ * Sets the payout amount in the requested currency. The minimum amount per instruction is $5 USD equivalent.
75+ *
76+ * @param amount the amount
77+ */
6578 @ JsonProperty ("amount" )
6679 public void setAmount (Double amount ) {
6780 this ._amount = amount ;
6881 }
6982
83+ /**
84+ * Gets email address of an active recipient.
85+ * Note: In the future, BitPay may allow Recipients to update the email address tied to their personal account.
86+ * BitPay encourages the use of recipientId or shopperId when programatically creating payouts.
87+ *
88+ * @return the email
89+ */
7090 @ JsonProperty ("email" )
7191 @ JsonInclude (JsonInclude .Include .NON_DEFAULT )
7292 public String getEmail () {
7393 return _email ;
7494 }
7595
96+ /**
97+ * Sets email address of an active recipient.
98+ * Note: In the future, BitPay may allow Recipients to update the email address tied to their personal account.
99+ * BitPay encourages the use of recipientId or shopperId when programatically creating payouts.
100+ *
101+ * @param email the email
102+ */
76103 @ JsonProperty ("email" )
77104 public void setEmail (String email ) {
78105 this ._email = email ;
79106 }
80107
108+ /**
109+ * Gets Bitpay recipient id of an active recipient,
110+ * assigned by BitPay for a given recipient email during the onboarding process (see Recipients below).
111+ *
112+ * @return the recipient id
113+ * @see <a href="https://bitpay.com/api/#rest-api-resources-recipients">Recipients</a>
114+ */
81115 @ JsonProperty ("recipientId" )
82116 @ JsonInclude (JsonInclude .Include .NON_DEFAULT )
83117 public String getRecipientId () {
84118 return _recipientId ;
85119 }
86120
121+ /**
122+ * Sets Bitpay recipient id of an active recipient,
123+ * assigned by BitPay for a given recipient email during the onboarding process (see Recipients below).
124+ *
125+ * @param recipientId the recipient id
126+ * @see <a href="https://bitpay.com/api/#rest-api-resources-recipients">Recipients</a>
127+ */
87128 @ JsonProperty ("recipientId" )
88129 public void setRecipientId (String recipientId ) {
89130 this ._recipientId = recipientId ;
90131 }
91132
133+ /**
134+ * Gets shopper id.
135+ * <p>
136+ * This is the unique id assigned by BitPay if the shopper used their personal BitPay account to authenticate
137+ * pay an invoice. For customers signing up for a brand new BitPay personal account, this id will only
138+ * be created as part of the payout onboarding.
139+ * </p>
140+ * <p>
141+ * The same field would also be available on paid invoices if the customer signed in with their
142+ * BitPay personal account before completing the payment.
143+ * This can allow merchants to monitor the activity of a customer (deposits and payouts).
144+ * </p>
145+ *
146+ * @return the shopper id
147+ */
92148 @ JsonProperty ("shopperId" )
93149 @ JsonInclude (JsonInclude .Include .NON_DEFAULT )
94150 public String getShopperId () {
95151 return _shopperId ;
96152 }
97153
154+ /**
155+ * Sets shopper id.
156+ * <p>
157+ * This is the unique id assigned by BitPay if the shopper used their personal BitPay account to authenticate
158+ * pay an invoice. For customers signing up for a brand new BitPay personal account, this id will only
159+ * be created as part of the payout onboarding.
160+ * </p>
161+ * <p>
162+ * The same field would also be available on paid invoices if the customer signed in with their
163+ * BitPay personal account before completing the payment.
164+ * This can allow merchants to monitor the activity of a customer (deposits and payouts).
165+ * </p>
166+ *
167+ * @param shopperId the shopper id
168+ */
98169 @ JsonProperty ("shopperId" )
99170 public void setShopperId (String shopperId ) {
100171 this ._shopperId = shopperId ;
101172 }
102173
174+ /**
175+ * Gets label.
176+ * For merchant use, pass through - can be the customer name or unique payout reference assigned by the merchant
177+ * to the recipient.
178+ *
179+ * @return the label
180+ */
103181 @ JsonProperty ("label" )
104182 @ JsonInclude (JsonInclude .Include .NON_DEFAULT )
105183 public String getLabel () {
106184 return _label ;
107185 }
108186
187+ /**
188+ * Sets label.
189+ * For merchant use, pass through - can be the customer name or unique payout reference assigned by the merchant
190+ * to the recipient.
191+ *
192+ * @param label the label
193+ */
109194 @ JsonProperty ("label" )
110195 public void setLabel (String label ) {
111196 this ._label = label ;
112197 }
113198
199+ /**
200+ * Gets wallet provider.
201+ *
202+ * @return the wallet provider
203+ */
114204 @ JsonProperty ("walletProvider" )
115205 @ JsonInclude (JsonInclude .Include .NON_DEFAULT )
116206 public String getWalletProvider () {
117207 return _walletProvider ;
118208 }
119209
210+ /**
211+ * Sets wallet provider.
212+ *
213+ * @param walletProvider the wallet provider
214+ */
120215 @ JsonProperty ("walletProvider" )
121216 public void setWalletProvider (String walletProvider ) {
122217 this ._walletProvider = walletProvider ;
@@ -125,53 +220,133 @@ public void setWalletProvider(String walletProvider) {
125220 // Response fields
126221 //
127222
223+ /**
224+ * Gets id.
225+ *
226+ * @return the id
227+ */
128228 @ JsonIgnore
129229 public String getId () {
130230 return _id ;
131231 }
132232
233+ /**
234+ * Sets id.
235+ *
236+ * @param id the id
237+ */
133238 @ JsonProperty ("id" )
134239 public void setId (String id ) {
135240 this ._id = id ;
136241 }
137242
243+ /**
244+ * Gets btc.
245+ *
246+ * @return the btc
247+ */
138248 @ JsonIgnore
139249 public PayoutInstructionBtcSummary getBtc () {
140250 return _btc ;
141251 }
142252
253+ /**
254+ * Sets btc.
255+ *
256+ * @param btc the btc
257+ */
143258 @ JsonProperty ("btc" )
144259 @ JsonDeserialize (using = PayoutInstructionBtcSummaryDeserializer .class )
145260 public void setBtc (PayoutInstructionBtcSummary btc ) {
146261 this ._btc = btc ;
147262 }
148263
264+ /**
265+ * Gets the cryptocurrency transactions details for the executed payout.
266+ *
267+ * @return the transactions
268+ */
149269 @ JsonIgnore
150270 public List <PayoutInstructionTransaction > getTransactions () {
151271 return _transactions ;
152272 }
153273
274+ /**
275+ * Sets the cryptocurrency transactions details for the executed payout.
276+ *
277+ * @param transactions the transactions
278+ */
154279 @ JsonProperty ("transactions" )
155280 public void setTransactions (List <PayoutInstructionTransaction > transactions ) {
156281 this ._transactions = transactions ;
157282 }
158283
284+ /**
285+ * Gets status, the possible values are:
286+ * <ul>
287+ * <li>new - initial status when the payout batch is created</li>
288+ * <li>funded - if there are enough funds available on the merchant account,
289+ * the payout batches are set to funded. This happens at the daily cutoff time for payout processing,
290+ * e.g. 2pm and 9pm UTC
291+ * </li>
292+ * <li>processing - the payout batches switch to this status whenever the corresponding cryptocurrency
293+ * transactions are broadcasted by BitPay
294+ * </li>
295+ * <li>complete - the payout batches are marked as complete when the cryptocurrency transaction has reached
296+ * the typical target confirmation for the corresponding asset. For instance,
297+ * 6 confirmations for a bitcoin transaction.
298+ * </li>
299+ * <li>cancelled - when the merchant cancels a payout batch (only possible for requests in the status new</li>
300+ * </ul>
301+ *
302+ * @return the status
303+ */
159304 @ JsonIgnore
160305 public String getStatus () {
161306 return _status ;
162307 }
163308
309+ /**
310+ * Sets status, the possible values are:
311+ * <ul>
312+ * <li>new - initial status when the payout batch is created</li>
313+ * <li>funded - if there are enough funds available on the merchant account,
314+ * the payout batches are set to funded. This happens at the daily cutoff time for payout processing,
315+ * e.g. 2pm and 9pm UTC
316+ * </li>
317+ * <li>processing - the payout batches switch to this status whenever the corresponding cryptocurrency
318+ * transactions are broadcasted by BitPay
319+ * </li>
320+ * <li>complete - the payout batches are marked as complete when the cryptocurrency transaction has reached
321+ * the typical target confirmation for the corresponding asset. For instance,
322+ * 6 confirmations for a bitcoin transaction.
323+ * </li>
324+ * <li>cancelled - when the merchant cancels a payout batch (only possible for requests in the status new</li>
325+ * </ul>
326+ *
327+ * @param status the status
328+ */
164329 @ JsonProperty ("status" )
165330 public void setStatus (String status ) {
166331 this ._status = status ;
167332 }
168333
334+ /**
335+ * Gets address.
336+ *
337+ * @return the address
338+ */
169339 @ JsonProperty ("address" )
170340 @ JsonInclude (JsonInclude .Include .NON_DEFAULT )
171341 public String getAddress () {
172342 return _address ;
173343 }
174344
345+ /**
346+ * Sets address.
347+ *
348+ * @param address the address
349+ */
175350 @ JsonProperty ("address" )
176351 public void setAddress (String address ) {
177352 this ._address = address ;
0 commit comments