• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #3387

10 Jul 2024 02:20PM UTC coverage: 11.978%. First build
#3387

push

web-flow
Merge bdc77c74a into d27083dc3

3 of 62 new or added lines in 6 files covered. (4.84%)

12515 of 104487 relevant lines covered (11.98%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

9.64
/src/main/java/com/adyen/model/transfers/TransferInfo.java
1
/*
2
 * Transfers API
3
 *
4
 * The version of the OpenAPI document: 4
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.transfers;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.transfers.Amount;
20
import com.adyen.model.transfers.CounterpartyInfoV3;
21
import com.adyen.model.transfers.UltimatePartyIdentification;
22
import com.fasterxml.jackson.annotation.JsonInclude;
23
import com.fasterxml.jackson.annotation.JsonProperty;
24
import com.fasterxml.jackson.annotation.JsonCreator;
25
import com.fasterxml.jackson.annotation.JsonTypeName;
26
import com.fasterxml.jackson.annotation.JsonValue;
27
import io.swagger.annotations.ApiModel;
28
import io.swagger.annotations.ApiModelProperty;
29
import java.util.ArrayList;
30
import java.util.List;
31
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
32
import com.fasterxml.jackson.core.JsonProcessingException;
33

34

35
/**
36
 * TransferInfo
37
 */
38
@JsonPropertyOrder({
39
  TransferInfo.JSON_PROPERTY_AMOUNT,
40
  TransferInfo.JSON_PROPERTY_BALANCE_ACCOUNT_ID,
41
  TransferInfo.JSON_PROPERTY_CATEGORY,
42
  TransferInfo.JSON_PROPERTY_COUNTERPARTY,
43
  TransferInfo.JSON_PROPERTY_DESCRIPTION,
44
  TransferInfo.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID,
45
  TransferInfo.JSON_PROPERTY_PRIORITIES,
46
  TransferInfo.JSON_PROPERTY_PRIORITY,
47
  TransferInfo.JSON_PROPERTY_REFERENCE,
48
  TransferInfo.JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY,
49
  TransferInfo.JSON_PROPERTY_TYPE,
50
  TransferInfo.JSON_PROPERTY_ULTIMATE_PARTY
51
})
52

53
public class TransferInfo {
54
  public static final String JSON_PROPERTY_AMOUNT = "amount";
55
  private Amount amount;
56

57
  public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId";
58
  private String balanceAccountId;
59

60
  /**
61
   * The type of transfer.  Possible values:   - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.  - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.  - **issuedCard**: a transfer initiated by a Adyen-issued card.  - **platformPayment**: funds movements related to payments that are acquired for your users.
62
   */
63
  public enum CategoryEnum {
×
64
    BANK("bank"),
×
65
    
66
    INTERNAL("internal"),
×
67
    
68
    ISSUEDCARD("issuedCard"),
×
69
    
70
    PLATFORMPAYMENT("platformPayment"),
×
71
    
72
    CARD("card");
×
73

74
    private String value;
75

76
    CategoryEnum(String value) {
×
77
      this.value = value;
×
78
    }
×
79

80
    @JsonValue
81
    public String getValue() {
82
      return value;
×
83
    }
84

85
    @Override
86
    public String toString() {
87
      return String.valueOf(value);
×
88
    }
89

90
    @JsonCreator
91
    public static CategoryEnum fromValue(String value) {
92
      for (CategoryEnum b : CategoryEnum.values()) {
×
93
        if (b.value.equals(value)) {
×
94
          return b;
×
95
        }
96
      }
97
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
98
    }
99
  }
100

101
  public static final String JSON_PROPERTY_CATEGORY = "category";
102
  private CategoryEnum category;
103

104
  public static final String JSON_PROPERTY_COUNTERPARTY = "counterparty";
105
  private CounterpartyInfoV3 counterparty;
106

107
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
108
  private String description;
109

110
  public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID = "paymentInstrumentId";
111
  private String paymentInstrumentId;
112

113
  /**
114
   * Gets or Sets priorities
115
   */
NEW
116
  public enum PrioritiesEnum {
×
NEW
117
    CROSSBORDER("crossBorder"),
×
118
    
NEW
119
    FAST("fast"),
×
120
    
NEW
121
    INSTANT("instant"),
×
122
    
NEW
123
    INTERNAL("internal"),
×
124
    
NEW
125
    REGULAR("regular"),
×
126
    
NEW
127
    WIRE("wire");
×
128

129
    private String value;
130

NEW
131
    PrioritiesEnum(String value) {
×
NEW
132
      this.value = value;
×
NEW
133
    }
×
134

135
    @JsonValue
136
    public String getValue() {
NEW
137
      return value;
×
138
    }
139

140
    @Override
141
    public String toString() {
NEW
142
      return String.valueOf(value);
×
143
    }
144

145
    @JsonCreator
146
    public static PrioritiesEnum fromValue(String value) {
NEW
147
      for (PrioritiesEnum b : PrioritiesEnum.values()) {
×
NEW
148
        if (b.value.equals(value)) {
×
NEW
149
          return b;
×
150
        }
151
      }
NEW
152
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
153
    }
154
  }
155

156
  public static final String JSON_PROPERTY_PRIORITIES = "priorities";
157
  private List<PrioritiesEnum> priorities = null;
1✔
158

159
  /**
160
   * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**.  Possible values:  * **regular**: for normal, low-value transactions.  * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.  * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: for high-value transfers to a recipient in a different country.  * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).
161
   */
162
  public enum PriorityEnum {
×
163
    CROSSBORDER("crossBorder"),
×
164
    
165
    FAST("fast"),
×
166
    
167
    INSTANT("instant"),
×
168
    
169
    INTERNAL("internal"),
×
170
    
171
    REGULAR("regular"),
×
172
    
173
    WIRE("wire");
×
174

175
    private String value;
176

177
    PriorityEnum(String value) {
×
178
      this.value = value;
×
179
    }
×
180

181
    @JsonValue
182
    public String getValue() {
183
      return value;
×
184
    }
185

186
    @Override
187
    public String toString() {
188
      return String.valueOf(value);
×
189
    }
190

191
    @JsonCreator
192
    public static PriorityEnum fromValue(String value) {
193
      for (PriorityEnum b : PriorityEnum.values()) {
×
194
        if (b.value.equals(value)) {
×
195
          return b;
×
196
        }
197
      }
198
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
199
    }
200
  }
201

202
  public static final String JSON_PROPERTY_PRIORITY = "priority";
203
  private PriorityEnum priority;
204

205
  public static final String JSON_PROPERTY_REFERENCE = "reference";
206
  private String reference;
207

208
  public static final String JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY = "referenceForBeneficiary";
209
  private String referenceForBeneficiary;
210

211
  /**
212
   * The type of transfer.  Possible values:   - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The &#x60;category&#x60; must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The &#x60;category&#x60; must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The &#x60;category&#x60; must be **internal**.   
213
   */
214
  public enum TypeEnum {
×
215
    BANKTRANSFER("bankTransfer"),
×
216
    
217
    INTERNALTRANSFER("internalTransfer"),
×
218
    
219
    INTERNALDIRECTDEBIT("internalDirectDebit");
×
220

221
    private String value;
222

223
    TypeEnum(String value) {
×
224
      this.value = value;
×
225
    }
×
226

227
    @JsonValue
228
    public String getValue() {
229
      return value;
×
230
    }
231

232
    @Override
233
    public String toString() {
234
      return String.valueOf(value);
×
235
    }
236

237
    @JsonCreator
238
    public static TypeEnum fromValue(String value) {
239
      for (TypeEnum b : TypeEnum.values()) {
×
240
        if (b.value.equals(value)) {
×
241
          return b;
×
242
        }
243
      }
244
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
245
    }
246
  }
247

248
  public static final String JSON_PROPERTY_TYPE = "type";
249
  private TypeEnum type;
250

251
  public static final String JSON_PROPERTY_ULTIMATE_PARTY = "ultimateParty";
252
  private UltimatePartyIdentification ultimateParty;
253

254
  public TransferInfo() { 
1✔
255
  }
1✔
256

257
  public TransferInfo amount(Amount amount) {
258
    this.amount = amount;
×
259
    return this;
×
260
  }
261

262
   /**
263
   * Get amount
264
   * @return amount
265
  **/
266
  @ApiModelProperty(required = true, value = "")
267
  @JsonProperty(JSON_PROPERTY_AMOUNT)
268
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
269

270
  public Amount getAmount() {
271
    return amount;
1✔
272
  }
273

274

275
 /**
276
  * amount
277
  *
278
  * @param amount
279
  */ 
280
  @JsonProperty(JSON_PROPERTY_AMOUNT)
281
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
282
  public void setAmount(Amount amount) {
283
    this.amount = amount;
×
284
  }
×
285

286

287
  public TransferInfo balanceAccountId(String balanceAccountId) {
288
    this.balanceAccountId = balanceAccountId;
×
289
    return this;
×
290
  }
291

292
   /**
293
   * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).  If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account.
294
   * @return balanceAccountId
295
  **/
296
  @ApiModelProperty(value = "The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).  If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account.")
297
  @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID)
298
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
299

300
  public String getBalanceAccountId() {
301
    return balanceAccountId;
1✔
302
  }
303

304

305
 /**
306
  * The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).  If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account.
307
  *
308
  * @param balanceAccountId
309
  */ 
310
  @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID)
311
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
312
  public void setBalanceAccountId(String balanceAccountId) {
313
    this.balanceAccountId = balanceAccountId;
×
314
  }
×
315

316

317
  public TransferInfo category(CategoryEnum category) {
318
    this.category = category;
×
319
    return this;
×
320
  }
321

322
   /**
323
   * The type of transfer.  Possible values:   - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.  - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.  - **issuedCard**: a transfer initiated by a Adyen-issued card.  - **platformPayment**: funds movements related to payments that are acquired for your users.
324
   * @return category
325
  **/
326
  @ApiModelProperty(required = true, value = "The type of transfer.  Possible values:   - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.  - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.  - **issuedCard**: a transfer initiated by a Adyen-issued card.  - **platformPayment**: funds movements related to payments that are acquired for your users.")
327
  @JsonProperty(JSON_PROPERTY_CATEGORY)
328
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
329

330
  public CategoryEnum getCategory() {
331
    return category;
1✔
332
  }
333

334

335
 /**
336
  * The type of transfer.  Possible values:   - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.  - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.  - **issuedCard**: a transfer initiated by a Adyen-issued card.  - **platformPayment**: funds movements related to payments that are acquired for your users.
337
  *
338
  * @param category
339
  */ 
340
  @JsonProperty(JSON_PROPERTY_CATEGORY)
341
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
342
  public void setCategory(CategoryEnum category) {
343
    this.category = category;
×
344
  }
×
345

346

347
  public TransferInfo counterparty(CounterpartyInfoV3 counterparty) {
348
    this.counterparty = counterparty;
×
349
    return this;
×
350
  }
351

352
   /**
353
   * Get counterparty
354
   * @return counterparty
355
  **/
356
  @ApiModelProperty(required = true, value = "")
357
  @JsonProperty(JSON_PROPERTY_COUNTERPARTY)
358
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
359

360
  public CounterpartyInfoV3 getCounterparty() {
361
    return counterparty;
1✔
362
  }
363

364

365
 /**
366
  * counterparty
367
  *
368
  * @param counterparty
369
  */ 
370
  @JsonProperty(JSON_PROPERTY_COUNTERPARTY)
371
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
372
  public void setCounterparty(CounterpartyInfoV3 counterparty) {
373
    this.counterparty = counterparty;
×
374
  }
×
375

376

377
  public TransferInfo description(String description) {
378
    this.description = description;
×
379
    return this;
×
380
  }
381

382
   /**
383
   * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated.  Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , &#39; + Space**  Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] &amp; $ % # @** **~ &#x3D; + - _ &#39; \&quot; ! ?**
384
   * @return description
385
  **/
386
  @ApiModelProperty(value = "Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated.  Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space**  Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**")
387
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
388
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
389

390
  public String getDescription() {
391
    return description;
1✔
392
  }
393

394

395
 /**
396
  * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated.  Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , &#39; + Space**  Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] &amp; $ % # @** **~ &#x3D; + - _ &#39; \&quot; ! ?**
397
  *
398
  * @param description
399
  */ 
400
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
401
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
402
  public void setDescription(String description) {
403
    this.description = description;
×
404
  }
×
405

406

407
  public TransferInfo paymentInstrumentId(String paymentInstrumentId) {
408
    this.paymentInstrumentId = paymentInstrumentId;
×
409
    return this;
×
410
  }
411

412
   /**
413
   * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id).  If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account.
414
   * @return paymentInstrumentId
415
  **/
416
  @ApiModelProperty(value = "The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id).  If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account.")
417
  @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID)
418
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
419

420
  public String getPaymentInstrumentId() {
421
    return paymentInstrumentId;
1✔
422
  }
423

424

425
 /**
426
  * The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id).  If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account.
427
  *
428
  * @param paymentInstrumentId
429
  */ 
430
  @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT_ID)
431
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
432
  public void setPaymentInstrumentId(String paymentInstrumentId) {
433
    this.paymentInstrumentId = paymentInstrumentId;
×
434
  }
×
435

436

437
  public TransferInfo priorities(List<PrioritiesEnum> priorities) {
NEW
438
    this.priorities = priorities;
×
NEW
439
    return this;
×
440
  }
441

442
  public TransferInfo addPrioritiesItem(PrioritiesEnum prioritiesItem) {
NEW
443
    if (this.priorities == null) {
×
NEW
444
      this.priorities = new ArrayList<>();
×
445
    }
NEW
446
    this.priorities.add(prioritiesItem);
×
NEW
447
    return this;
×
448
  }
449

450
   /**
451
   *  The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that&#39;s not possible, it moves on to the next option in the order of your provided priorities.   Possible values:  * **regular**: for normal, low-value transactions.  * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.  * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: for high-value transfers to a recipient in a different country.  * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).  Required for transfers with &#x60;category&#x60; **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities).
452
   * @return priorities
453
  **/
454
  @ApiModelProperty(value = " The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities.   Possible values:  * **regular**: for normal, low-value transactions.  * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.  * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: for high-value transfers to a recipient in a different country.  * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).  Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities).")
455
  @JsonProperty(JSON_PROPERTY_PRIORITIES)
456
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
457

458
  public List<PrioritiesEnum> getPriorities() {
459
    return priorities;
1✔
460
  }
461

462

463
 /**
464
  *  The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that&#39;s not possible, it moves on to the next option in the order of your provided priorities.   Possible values:  * **regular**: for normal, low-value transactions.  * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.  * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: for high-value transfers to a recipient in a different country.  * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).  Required for transfers with &#x60;category&#x60; **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities).
465
  *
466
  * @param priorities
467
  */ 
468
  @JsonProperty(JSON_PROPERTY_PRIORITIES)
469
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
470
  public void setPriorities(List<PrioritiesEnum> priorities) {
NEW
471
    this.priorities = priorities;
×
NEW
472
  }
×
473

474

475
  public TransferInfo priority(PriorityEnum priority) {
476
    this.priority = priority;
×
477
    return this;
×
478
  }
479

480
   /**
481
   * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**.  Possible values:  * **regular**: for normal, low-value transactions.  * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.  * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: for high-value transfers to a recipient in a different country.  * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).
482
   * @return priority
483
  **/
484
  @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**.  Possible values:  * **regular**: for normal, low-value transactions.  * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.  * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: for high-value transfers to a recipient in a different country.  * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).")
485
  @JsonProperty(JSON_PROPERTY_PRIORITY)
486
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
487

488
  public PriorityEnum getPriority() {
489
    return priority;
1✔
490
  }
491

492

493
 /**
494
  * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**.  Possible values:  * **regular**: for normal, low-value transactions.  * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.  * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: for high-value transfers to a recipient in a different country.  * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).
495
  *
496
  * @param priority
497
  */ 
498
  @JsonProperty(JSON_PROPERTY_PRIORITY)
499
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
500
  public void setPriority(PriorityEnum priority) {
501
    this.priority = priority;
×
502
  }
×
503

504

505
  public TransferInfo reference(String reference) {
506
    this.reference = reference;
×
507
    return this;
×
508
  }
509

510
   /**
511
   * Your reference for the transfer, used internally within your platform. If you don&#39;t provide this in the request, Adyen generates a unique reference.
512
   * @return reference
513
  **/
514
  @ApiModelProperty(value = "Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference.")
515
  @JsonProperty(JSON_PROPERTY_REFERENCE)
516
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
517

518
  public String getReference() {
519
    return reference;
1✔
520
  }
521

522

523
 /**
524
  * Your reference for the transfer, used internally within your platform. If you don&#39;t provide this in the request, Adyen generates a unique reference.
525
  *
526
  * @param reference
527
  */ 
528
  @JsonProperty(JSON_PROPERTY_REFERENCE)
529
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
530
  public void setReference(String reference) {
531
    this.reference = reference;
×
532
  }
×
533

534

535
  public TransferInfo referenceForBeneficiary(String referenceForBeneficiary) {
536
    this.referenceForBeneficiary = referenceForBeneficiary;
×
537
    return this;
×
538
  }
539

540
   /**
541
   *  A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement.   Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the &#x60;category&#x60;.  - **internal**: 80 characters  - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.
542
   * @return referenceForBeneficiary
543
  **/
544
  @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement.   Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`.  - **internal**: 80 characters  - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.")
545
  @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY)
546
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
547

548
  public String getReferenceForBeneficiary() {
549
    return referenceForBeneficiary;
1✔
550
  }
551

552

553
 /**
554
  *  A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement.   Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the &#x60;category&#x60;.  - **internal**: 80 characters  - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.
555
  *
556
  * @param referenceForBeneficiary
557
  */ 
558
  @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY)
559
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
560
  public void setReferenceForBeneficiary(String referenceForBeneficiary) {
561
    this.referenceForBeneficiary = referenceForBeneficiary;
×
562
  }
×
563

564

565
  public TransferInfo type(TypeEnum type) {
566
    this.type = type;
×
567
    return this;
×
568
  }
569

570
   /**
571
   * The type of transfer.  Possible values:   - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The &#x60;category&#x60; must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The &#x60;category&#x60; must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The &#x60;category&#x60; must be **internal**.   
572
   * @return type
573
  **/
574
  @ApiModelProperty(value = "The type of transfer.  Possible values:   - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**.   ")
575
  @JsonProperty(JSON_PROPERTY_TYPE)
576
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
577

578
  public TypeEnum getType() {
579
    return type;
1✔
580
  }
581

582

583
 /**
584
  * The type of transfer.  Possible values:   - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The &#x60;category&#x60; must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The &#x60;category&#x60; must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The &#x60;category&#x60; must be **internal**.   
585
  *
586
  * @param type
587
  */ 
588
  @JsonProperty(JSON_PROPERTY_TYPE)
589
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
590
  public void setType(TypeEnum type) {
591
    this.type = type;
×
592
  }
×
593

594

595
  public TransferInfo ultimateParty(UltimatePartyIdentification ultimateParty) {
596
    this.ultimateParty = ultimateParty;
×
597
    return this;
×
598
  }
599

600
   /**
601
   * Get ultimateParty
602
   * @return ultimateParty
603
  **/
604
  @ApiModelProperty(value = "")
605
  @JsonProperty(JSON_PROPERTY_ULTIMATE_PARTY)
606
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
607

608
  public UltimatePartyIdentification getUltimateParty() {
609
    return ultimateParty;
1✔
610
  }
611

612

613
 /**
614
  * ultimateParty
615
  *
616
  * @param ultimateParty
617
  */ 
618
  @JsonProperty(JSON_PROPERTY_ULTIMATE_PARTY)
619
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
620
  public void setUltimateParty(UltimatePartyIdentification ultimateParty) {
621
    this.ultimateParty = ultimateParty;
×
622
  }
×
623

624

625
  /**
626
   * Return true if this TransferInfo object is equal to o.
627
   */
628
  @Override
629
  public boolean equals(Object o) {
630
    if (this == o) {
×
631
      return true;
×
632
    }
633
    if (o == null || getClass() != o.getClass()) {
×
634
      return false;
×
635
    }
636
    TransferInfo transferInfo = (TransferInfo) o;
×
637
    return Objects.equals(this.amount, transferInfo.amount) &&
×
638
        Objects.equals(this.balanceAccountId, transferInfo.balanceAccountId) &&
×
639
        Objects.equals(this.category, transferInfo.category) &&
×
640
        Objects.equals(this.counterparty, transferInfo.counterparty) &&
×
641
        Objects.equals(this.description, transferInfo.description) &&
×
642
        Objects.equals(this.paymentInstrumentId, transferInfo.paymentInstrumentId) &&
×
NEW
643
        Objects.equals(this.priorities, transferInfo.priorities) &&
×
644
        Objects.equals(this.priority, transferInfo.priority) &&
×
645
        Objects.equals(this.reference, transferInfo.reference) &&
×
646
        Objects.equals(this.referenceForBeneficiary, transferInfo.referenceForBeneficiary) &&
×
647
        Objects.equals(this.type, transferInfo.type) &&
×
648
        Objects.equals(this.ultimateParty, transferInfo.ultimateParty);
×
649
  }
650

651
  @Override
652
  public int hashCode() {
NEW
653
    return Objects.hash(amount, balanceAccountId, category, counterparty, description, paymentInstrumentId, priorities, priority, reference, referenceForBeneficiary, type, ultimateParty);
×
654
  }
655

656
  @Override
657
  public String toString() {
658
    StringBuilder sb = new StringBuilder();
×
659
    sb.append("class TransferInfo {\n");
×
660
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
661
    sb.append("    balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n");
×
662
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
×
663
    sb.append("    counterparty: ").append(toIndentedString(counterparty)).append("\n");
×
664
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
665
    sb.append("    paymentInstrumentId: ").append(toIndentedString(paymentInstrumentId)).append("\n");
×
NEW
666
    sb.append("    priorities: ").append(toIndentedString(priorities)).append("\n");
×
667
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
×
668
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
669
    sb.append("    referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n");
×
670
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
671
    sb.append("    ultimateParty: ").append(toIndentedString(ultimateParty)).append("\n");
×
672
    sb.append("}");
×
673
    return sb.toString();
×
674
  }
675

676
  /**
677
   * Convert the given object to string with each line indented by 4 spaces
678
   * (except the first line).
679
   */
680
  private String toIndentedString(Object o) {
681
    if (o == null) {
×
682
      return "null";
×
683
    }
684
    return o.toString().replace("\n", "\n    ");
×
685
  }
686

687
/**
688
   * Create an instance of TransferInfo given an JSON string
689
   *
690
   * @param jsonString JSON string
691
   * @return An instance of TransferInfo
692
   * @throws JsonProcessingException if the JSON string is invalid with respect to TransferInfo
693
   */
694
  public static TransferInfo fromJson(String jsonString) throws JsonProcessingException {
695
    return JSON.getMapper().readValue(jsonString, TransferInfo.class);
×
696
  }
697
/**
698
  * Convert an instance of TransferInfo to an JSON string
699
  *
700
  * @return JSON string
701
  */
702
  public String toJson() throws JsonProcessingException {
703
    return JSON.getMapper().writeValueAsString(this);
1✔
704
  }
705
}
706

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc