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

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

02 Oct 2023 02:08PM UTC coverage: 12.623%. First build
#2676

push

web-flow
Merge 8c2a459f7 into 9e36e9c01

9362 of 9362 new or added lines in 164 files covered. (100.0%)

11051 of 87544 relevant lines covered (12.62%)

0.13 hits per line

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

0.0
/src/main/java/com/adyen/model/marketpayfund/Transaction.java
1
/*
2
 * Fund API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Fund API provides endpoints for managing the funds in the accounts on your platform. These management operations include, for example, the transfer of funds from one account to another, the payout of funds to an account holder, and the retrieval of balances in an account.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic/). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Fund API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Fund/v6/accountHolderBalance ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayfund;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.adyen.model.marketpayfund.Amount;
21
import com.adyen.model.marketpayfund.BankAccountDetail;
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.time.OffsetDateTime;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * Transaction
36
 */
37
@JsonPropertyOrder({
38
  Transaction.JSON_PROPERTY_AMOUNT,
39
  Transaction.JSON_PROPERTY_BANK_ACCOUNT_DETAIL,
40
  Transaction.JSON_PROPERTY_CAPTURE_MERCHANT_REFERENCE,
41
  Transaction.JSON_PROPERTY_CAPTURE_PSP_REFERENCE,
42
  Transaction.JSON_PROPERTY_CREATION_DATE,
43
  Transaction.JSON_PROPERTY_DESCRIPTION,
44
  Transaction.JSON_PROPERTY_DESTINATION_ACCOUNT_CODE,
45
  Transaction.JSON_PROPERTY_DISPUTE_PSP_REFERENCE,
46
  Transaction.JSON_PROPERTY_DISPUTE_REASON_CODE,
47
  Transaction.JSON_PROPERTY_MERCHANT_REFERENCE,
48
  Transaction.JSON_PROPERTY_PAYMENT_PSP_REFERENCE,
49
  Transaction.JSON_PROPERTY_PAYOUT_PSP_REFERENCE,
50
  Transaction.JSON_PROPERTY_PSP_REFERENCE,
51
  Transaction.JSON_PROPERTY_SOURCE_ACCOUNT_CODE,
52
  Transaction.JSON_PROPERTY_TRANSACTION_STATUS,
53
  Transaction.JSON_PROPERTY_TRANSFER_CODE
54
})
55

56
public class Transaction {
57
  public static final String JSON_PROPERTY_AMOUNT = "amount";
58
  private Amount amount;
59

60
  public static final String JSON_PROPERTY_BANK_ACCOUNT_DETAIL = "bankAccountDetail";
61
  private BankAccountDetail bankAccountDetail;
62

63
  public static final String JSON_PROPERTY_CAPTURE_MERCHANT_REFERENCE = "captureMerchantReference";
64
  private String captureMerchantReference;
65

66
  public static final String JSON_PROPERTY_CAPTURE_PSP_REFERENCE = "capturePspReference";
67
  private String capturePspReference;
68

69
  public static final String JSON_PROPERTY_CREATION_DATE = "creationDate";
70
  private OffsetDateTime creationDate;
71

72
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
73
  private String description;
74

75
  public static final String JSON_PROPERTY_DESTINATION_ACCOUNT_CODE = "destinationAccountCode";
76
  private String destinationAccountCode;
77

78
  public static final String JSON_PROPERTY_DISPUTE_PSP_REFERENCE = "disputePspReference";
79
  private String disputePspReference;
80

81
  public static final String JSON_PROPERTY_DISPUTE_REASON_CODE = "disputeReasonCode";
82
  private String disputeReasonCode;
83

84
  public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference";
85
  private String merchantReference;
86

87
  public static final String JSON_PROPERTY_PAYMENT_PSP_REFERENCE = "paymentPspReference";
88
  private String paymentPspReference;
89

90
  public static final String JSON_PROPERTY_PAYOUT_PSP_REFERENCE = "payoutPspReference";
91
  private String payoutPspReference;
92

93
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
94
  private String pspReference;
95

96
  public static final String JSON_PROPERTY_SOURCE_ACCOUNT_CODE = "sourceAccountCode";
97
  private String sourceAccountCode;
98

99
  /**
100
   * The status of the transaction. >Permitted values: `PendingCredit`, `CreditFailed`, `CreditClosed`, `CreditSuspended`, `Credited`, `Converted`, `PendingDebit`, `DebitFailed`, `Debited`, `DebitReversedReceived`, `DebitedReversed`, `ChargebackReceived`, `Chargeback`, `ChargebackReversedReceived`, `ChargebackReversed`, `Payout`, `PayoutReversed`, `FundTransfer`, `PendingFundTransfer`, `ManualCorrected`.
101
   */
102
  public enum TransactionStatusEnum {
×
103
    BALANCENOTPAIDOUTTRANSFER("BalanceNotPaidOutTransfer"),
×
104
    
105
    BALANCEPLATFORMSWEEP("BalancePlatformSweep"),
×
106
    
107
    BALANCEPLATFORMSWEEPRETURNED("BalancePlatformSweepReturned"),
×
108
    
109
    CHARGEBACK("Chargeback"),
×
110
    
111
    CHARGEBACKCORRECTION("ChargebackCorrection"),
×
112
    
113
    CHARGEBACKCORRECTIONRECEIVED("ChargebackCorrectionReceived"),
×
114
    
115
    CHARGEBACKRECEIVED("ChargebackReceived"),
×
116
    
117
    CHARGEBACKREVERSED("ChargebackReversed"),
×
118
    
119
    CHARGEBACKREVERSEDCORRECTION("ChargebackReversedCorrection"),
×
120
    
121
    CHARGEBACKREVERSEDCORRECTIONRECEIVED("ChargebackReversedCorrectionReceived"),
×
122
    
123
    CHARGEBACKREVERSEDRECEIVED("ChargebackReversedReceived"),
×
124
    
125
    CONVERTED("Converted"),
×
126
    
127
    CREDITCLOSED("CreditClosed"),
×
128
    
129
    CREDITFAILED("CreditFailed"),
×
130
    
131
    CREDITREVERSED("CreditReversed"),
×
132
    
133
    CREDITREVERSEDRECEIVED("CreditReversedReceived"),
×
134
    
135
    CREDITSUSPENDED("CreditSuspended"),
×
136
    
137
    CREDITED("Credited"),
×
138
    
139
    DEBITFAILED("DebitFailed"),
×
140
    
141
    DEBITREVERSEDRECEIVED("DebitReversedReceived"),
×
142
    
143
    DEBITED("Debited"),
×
144
    
145
    DEBITEDREVERSED("DebitedReversed"),
×
146
    
147
    DEPOSITCORRECTIONCREDITED("DepositCorrectionCredited"),
×
148
    
149
    DEPOSITCORRECTIONDEBITED("DepositCorrectionDebited"),
×
150
    
151
    FEE("Fee"),
×
152
    
153
    FUNDTRANSFER("FundTransfer"),
×
154
    
155
    FUNDTRANSFERREVERSED("FundTransferReversed"),
×
156
    
157
    INVOICEDEDUCTIONCREDITED("InvoiceDeductionCredited"),
×
158
    
159
    INVOICEDEDUCTIONDEBITED("InvoiceDeductionDebited"),
×
160
    
161
    MANUALCORRECTED("ManualCorrected"),
×
162
    
163
    MANUALCORRECTIONCREDITED("ManualCorrectionCredited"),
×
164
    
165
    MANUALCORRECTIONDEBITED("ManualCorrectionDebited"),
×
166
    
167
    MERCHANTPAYIN("MerchantPayin"),
×
168
    
169
    MERCHANTPAYINREVERSED("MerchantPayinReversed"),
×
170
    
171
    PAYOUT("Payout"),
×
172
    
173
    PAYOUTREVERSED("PayoutReversed"),
×
174
    
175
    PENDINGCREDIT("PendingCredit"),
×
176
    
177
    PENDINGDEBIT("PendingDebit"),
×
178
    
179
    PENDINGFUNDTRANSFER("PendingFundTransfer"),
×
180
    
181
    RECREDITED("ReCredited"),
×
182
    
183
    RECREDITEDRECEIVED("ReCreditedReceived"),
×
184
    
185
    SECONDCHARGEBACK("SecondChargeback"),
×
186
    
187
    SECONDCHARGEBACKCORRECTION("SecondChargebackCorrection"),
×
188
    
189
    SECONDCHARGEBACKCORRECTIONRECEIVED("SecondChargebackCorrectionReceived"),
×
190
    
191
    SECONDCHARGEBACKRECEIVED("SecondChargebackReceived");
×
192

193
    private String value;
194

195
    TransactionStatusEnum(String value) {
×
196
      this.value = value;
×
197
    }
×
198

199
    @JsonValue
200
    public String getValue() {
201
      return value;
×
202
    }
203

204
    @Override
205
    public String toString() {
206
      return String.valueOf(value);
×
207
    }
208

209
    @JsonCreator
210
    public static TransactionStatusEnum fromValue(String value) {
211
      for (TransactionStatusEnum b : TransactionStatusEnum.values()) {
×
212
        if (b.value.equals(value)) {
×
213
          return b;
×
214
        }
215
      }
216
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
217
    }
218
  }
219

220
  public static final String JSON_PROPERTY_TRANSACTION_STATUS = "transactionStatus";
221
  private TransactionStatusEnum transactionStatus;
222

223
  public static final String JSON_PROPERTY_TRANSFER_CODE = "transferCode";
224
  private String transferCode;
225

226
  public Transaction() { 
×
227
  }
×
228

229
  public Transaction amount(Amount amount) {
230
    this.amount = amount;
×
231
    return this;
×
232
  }
233

234
   /**
235
   * Get amount
236
   * @return amount
237
  **/
238
  @ApiModelProperty(value = "")
239
  @JsonProperty(JSON_PROPERTY_AMOUNT)
240
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
241

242
  public Amount getAmount() {
243
    return amount;
×
244
  }
245

246

247
  @JsonProperty(JSON_PROPERTY_AMOUNT)
248
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
249
  public void setAmount(Amount amount) {
250
    this.amount = amount;
×
251
  }
×
252

253

254
  public Transaction bankAccountDetail(BankAccountDetail bankAccountDetail) {
255
    this.bankAccountDetail = bankAccountDetail;
×
256
    return this;
×
257
  }
258

259
   /**
260
   * Get bankAccountDetail
261
   * @return bankAccountDetail
262
  **/
263
  @ApiModelProperty(value = "")
264
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_DETAIL)
265
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
266

267
  public BankAccountDetail getBankAccountDetail() {
268
    return bankAccountDetail;
×
269
  }
270

271

272
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_DETAIL)
273
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
274
  public void setBankAccountDetail(BankAccountDetail bankAccountDetail) {
275
    this.bankAccountDetail = bankAccountDetail;
×
276
  }
×
277

278

279
  public Transaction captureMerchantReference(String captureMerchantReference) {
280
    this.captureMerchantReference = captureMerchantReference;
×
281
    return this;
×
282
  }
283

284
   /**
285
   * The merchant reference of a related capture.
286
   * @return captureMerchantReference
287
  **/
288
  @ApiModelProperty(value = "The merchant reference of a related capture.")
289
  @JsonProperty(JSON_PROPERTY_CAPTURE_MERCHANT_REFERENCE)
290
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
291

292
  public String getCaptureMerchantReference() {
293
    return captureMerchantReference;
×
294
  }
295

296

297
  @JsonProperty(JSON_PROPERTY_CAPTURE_MERCHANT_REFERENCE)
298
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
299
  public void setCaptureMerchantReference(String captureMerchantReference) {
300
    this.captureMerchantReference = captureMerchantReference;
×
301
  }
×
302

303

304
  public Transaction capturePspReference(String capturePspReference) {
305
    this.capturePspReference = capturePspReference;
×
306
    return this;
×
307
  }
308

309
   /**
310
   * The psp reference of a related capture.
311
   * @return capturePspReference
312
  **/
313
  @ApiModelProperty(value = "The psp reference of a related capture.")
314
  @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE)
315
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
316

317
  public String getCapturePspReference() {
318
    return capturePspReference;
×
319
  }
320

321

322
  @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE)
323
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
324
  public void setCapturePspReference(String capturePspReference) {
325
    this.capturePspReference = capturePspReference;
×
326
  }
×
327

328

329
  public Transaction creationDate(OffsetDateTime creationDate) {
330
    this.creationDate = creationDate;
×
331
    return this;
×
332
  }
333

334
   /**
335
   * The date on which the transaction was performed.
336
   * @return creationDate
337
  **/
338
  @ApiModelProperty(value = "The date on which the transaction was performed.")
339
  @JsonProperty(JSON_PROPERTY_CREATION_DATE)
340
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
341

342
  public OffsetDateTime getCreationDate() {
343
    return creationDate;
×
344
  }
345

346

347
  @JsonProperty(JSON_PROPERTY_CREATION_DATE)
348
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
349
  public void setCreationDate(OffsetDateTime creationDate) {
350
    this.creationDate = creationDate;
×
351
  }
×
352

353

354
  public Transaction description(String description) {
355
    this.description = description;
×
356
    return this;
×
357
  }
358

359
   /**
360
   * A description of the transaction.
361
   * @return description
362
  **/
363
  @ApiModelProperty(value = "A description of the transaction.")
364
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
365
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
366

367
  public String getDescription() {
368
    return description;
×
369
  }
370

371

372
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
373
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
374
  public void setDescription(String description) {
375
    this.description = description;
×
376
  }
×
377

378

379
  public Transaction destinationAccountCode(String destinationAccountCode) {
380
    this.destinationAccountCode = destinationAccountCode;
×
381
    return this;
×
382
  }
383

384
   /**
385
   * The code of the account to which funds were credited during an outgoing fund transfer.
386
   * @return destinationAccountCode
387
  **/
388
  @ApiModelProperty(value = "The code of the account to which funds were credited during an outgoing fund transfer.")
389
  @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT_CODE)
390
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
391

392
  public String getDestinationAccountCode() {
393
    return destinationAccountCode;
×
394
  }
395

396

397
  @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT_CODE)
398
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
399
  public void setDestinationAccountCode(String destinationAccountCode) {
400
    this.destinationAccountCode = destinationAccountCode;
×
401
  }
×
402

403

404
  public Transaction disputePspReference(String disputePspReference) {
405
    this.disputePspReference = disputePspReference;
×
406
    return this;
×
407
  }
408

409
   /**
410
   * The psp reference of the related dispute.
411
   * @return disputePspReference
412
  **/
413
  @ApiModelProperty(value = "The psp reference of the related dispute.")
414
  @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE)
415
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
416

417
  public String getDisputePspReference() {
418
    return disputePspReference;
×
419
  }
420

421

422
  @JsonProperty(JSON_PROPERTY_DISPUTE_PSP_REFERENCE)
423
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
424
  public void setDisputePspReference(String disputePspReference) {
425
    this.disputePspReference = disputePspReference;
×
426
  }
×
427

428

429
  public Transaction disputeReasonCode(String disputeReasonCode) {
430
    this.disputeReasonCode = disputeReasonCode;
×
431
    return this;
×
432
  }
433

434
   /**
435
   * The reason code of a dispute.
436
   * @return disputeReasonCode
437
  **/
438
  @ApiModelProperty(value = "The reason code of a dispute.")
439
  @JsonProperty(JSON_PROPERTY_DISPUTE_REASON_CODE)
440
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
441

442
  public String getDisputeReasonCode() {
443
    return disputeReasonCode;
×
444
  }
445

446

447
  @JsonProperty(JSON_PROPERTY_DISPUTE_REASON_CODE)
448
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
449
  public void setDisputeReasonCode(String disputeReasonCode) {
450
    this.disputeReasonCode = disputeReasonCode;
×
451
  }
×
452

453

454
  public Transaction merchantReference(String merchantReference) {
455
    this.merchantReference = merchantReference;
×
456
    return this;
×
457
  }
458

459
   /**
460
   * The merchant reference of a transaction.
461
   * @return merchantReference
462
  **/
463
  @ApiModelProperty(value = "The merchant reference of a transaction.")
464
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
465
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
466

467
  public String getMerchantReference() {
468
    return merchantReference;
×
469
  }
470

471

472
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
473
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
474
  public void setMerchantReference(String merchantReference) {
475
    this.merchantReference = merchantReference;
×
476
  }
×
477

478

479
  public Transaction paymentPspReference(String paymentPspReference) {
480
    this.paymentPspReference = paymentPspReference;
×
481
    return this;
×
482
  }
483

484
   /**
485
   * The psp reference of the related authorisation or transfer.
486
   * @return paymentPspReference
487
  **/
488
  @ApiModelProperty(value = "The psp reference of the related authorisation or transfer.")
489
  @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE)
490
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
491

492
  public String getPaymentPspReference() {
493
    return paymentPspReference;
×
494
  }
495

496

497
  @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE)
498
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
499
  public void setPaymentPspReference(String paymentPspReference) {
500
    this.paymentPspReference = paymentPspReference;
×
501
  }
×
502

503

504
  public Transaction payoutPspReference(String payoutPspReference) {
505
    this.payoutPspReference = payoutPspReference;
×
506
    return this;
×
507
  }
508

509
   /**
510
   * The psp reference of the related payout.
511
   * @return payoutPspReference
512
  **/
513
  @ApiModelProperty(value = "The psp reference of the related payout.")
514
  @JsonProperty(JSON_PROPERTY_PAYOUT_PSP_REFERENCE)
515
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
516

517
  public String getPayoutPspReference() {
518
    return payoutPspReference;
×
519
  }
520

521

522
  @JsonProperty(JSON_PROPERTY_PAYOUT_PSP_REFERENCE)
523
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
524
  public void setPayoutPspReference(String payoutPspReference) {
525
    this.payoutPspReference = payoutPspReference;
×
526
  }
×
527

528

529
  public Transaction pspReference(String pspReference) {
530
    this.pspReference = pspReference;
×
531
    return this;
×
532
  }
533

534
   /**
535
   * The psp reference of a transaction.
536
   * @return pspReference
537
  **/
538
  @ApiModelProperty(value = "The psp reference of a transaction.")
539
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
540
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
541

542
  public String getPspReference() {
543
    return pspReference;
×
544
  }
545

546

547
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
548
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
549
  public void setPspReference(String pspReference) {
550
    this.pspReference = pspReference;
×
551
  }
×
552

553

554
  public Transaction sourceAccountCode(String sourceAccountCode) {
555
    this.sourceAccountCode = sourceAccountCode;
×
556
    return this;
×
557
  }
558

559
   /**
560
   * The code of the account from which funds were debited during an incoming fund transfer.
561
   * @return sourceAccountCode
562
  **/
563
  @ApiModelProperty(value = "The code of the account from which funds were debited during an incoming fund transfer.")
564
  @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_CODE)
565
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
566

567
  public String getSourceAccountCode() {
568
    return sourceAccountCode;
×
569
  }
570

571

572
  @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_CODE)
573
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
574
  public void setSourceAccountCode(String sourceAccountCode) {
575
    this.sourceAccountCode = sourceAccountCode;
×
576
  }
×
577

578

579
  public Transaction transactionStatus(TransactionStatusEnum transactionStatus) {
580
    this.transactionStatus = transactionStatus;
×
581
    return this;
×
582
  }
583

584
   /**
585
   * The status of the transaction. >Permitted values: `PendingCredit`, `CreditFailed`, `CreditClosed`, `CreditSuspended`, `Credited`, `Converted`, `PendingDebit`, `DebitFailed`, `Debited`, `DebitReversedReceived`, `DebitedReversed`, `ChargebackReceived`, `Chargeback`, `ChargebackReversedReceived`, `ChargebackReversed`, `Payout`, `PayoutReversed`, `FundTransfer`, `PendingFundTransfer`, `ManualCorrected`.
586
   * @return transactionStatus
587
  **/
588
  @ApiModelProperty(value = "The status of the transaction. >Permitted values: `PendingCredit`, `CreditFailed`, `CreditClosed`, `CreditSuspended`, `Credited`, `Converted`, `PendingDebit`, `DebitFailed`, `Debited`, `DebitReversedReceived`, `DebitedReversed`, `ChargebackReceived`, `Chargeback`, `ChargebackReversedReceived`, `ChargebackReversed`, `Payout`, `PayoutReversed`, `FundTransfer`, `PendingFundTransfer`, `ManualCorrected`.")
589
  @JsonProperty(JSON_PROPERTY_TRANSACTION_STATUS)
590
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
591

592
  public TransactionStatusEnum getTransactionStatus() {
593
    return transactionStatus;
×
594
  }
595

596

597
  @JsonProperty(JSON_PROPERTY_TRANSACTION_STATUS)
598
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
599
  public void setTransactionStatus(TransactionStatusEnum transactionStatus) {
600
    this.transactionStatus = transactionStatus;
×
601
  }
×
602

603

604
  public Transaction transferCode(String transferCode) {
605
    this.transferCode = transferCode;
×
606
    return this;
×
607
  }
608

609
   /**
610
   * The transfer code of the transaction.
611
   * @return transferCode
612
  **/
613
  @ApiModelProperty(value = "The transfer code of the transaction.")
614
  @JsonProperty(JSON_PROPERTY_TRANSFER_CODE)
615
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
616

617
  public String getTransferCode() {
618
    return transferCode;
×
619
  }
620

621

622
  @JsonProperty(JSON_PROPERTY_TRANSFER_CODE)
623
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
624
  public void setTransferCode(String transferCode) {
625
    this.transferCode = transferCode;
×
626
  }
×
627

628

629
  /**
630
   * Return true if this Transaction object is equal to o.
631
   */
632
  @Override
633
  public boolean equals(Object o) {
634
    if (this == o) {
×
635
      return true;
×
636
    }
637
    if (o == null || getClass() != o.getClass()) {
×
638
      return false;
×
639
    }
640
    Transaction transaction = (Transaction) o;
×
641
    return Objects.equals(this.amount, transaction.amount) &&
×
642
        Objects.equals(this.bankAccountDetail, transaction.bankAccountDetail) &&
×
643
        Objects.equals(this.captureMerchantReference, transaction.captureMerchantReference) &&
×
644
        Objects.equals(this.capturePspReference, transaction.capturePspReference) &&
×
645
        Objects.equals(this.creationDate, transaction.creationDate) &&
×
646
        Objects.equals(this.description, transaction.description) &&
×
647
        Objects.equals(this.destinationAccountCode, transaction.destinationAccountCode) &&
×
648
        Objects.equals(this.disputePspReference, transaction.disputePspReference) &&
×
649
        Objects.equals(this.disputeReasonCode, transaction.disputeReasonCode) &&
×
650
        Objects.equals(this.merchantReference, transaction.merchantReference) &&
×
651
        Objects.equals(this.paymentPspReference, transaction.paymentPspReference) &&
×
652
        Objects.equals(this.payoutPspReference, transaction.payoutPspReference) &&
×
653
        Objects.equals(this.pspReference, transaction.pspReference) &&
×
654
        Objects.equals(this.sourceAccountCode, transaction.sourceAccountCode) &&
×
655
        Objects.equals(this.transactionStatus, transaction.transactionStatus) &&
×
656
        Objects.equals(this.transferCode, transaction.transferCode);
×
657
  }
658

659
  @Override
660
  public int hashCode() {
661
    return Objects.hash(amount, bankAccountDetail, captureMerchantReference, capturePspReference, creationDate, description, destinationAccountCode, disputePspReference, disputeReasonCode, merchantReference, paymentPspReference, payoutPspReference, pspReference, sourceAccountCode, transactionStatus, transferCode);
×
662
  }
663

664
  @Override
665
  public String toString() {
666
    StringBuilder sb = new StringBuilder();
×
667
    sb.append("class Transaction {\n");
×
668
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
669
    sb.append("    bankAccountDetail: ").append(toIndentedString(bankAccountDetail)).append("\n");
×
670
    sb.append("    captureMerchantReference: ").append(toIndentedString(captureMerchantReference)).append("\n");
×
671
    sb.append("    capturePspReference: ").append(toIndentedString(capturePspReference)).append("\n");
×
672
    sb.append("    creationDate: ").append(toIndentedString(creationDate)).append("\n");
×
673
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
674
    sb.append("    destinationAccountCode: ").append(toIndentedString(destinationAccountCode)).append("\n");
×
675
    sb.append("    disputePspReference: ").append(toIndentedString(disputePspReference)).append("\n");
×
676
    sb.append("    disputeReasonCode: ").append(toIndentedString(disputeReasonCode)).append("\n");
×
677
    sb.append("    merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
×
678
    sb.append("    paymentPspReference: ").append(toIndentedString(paymentPspReference)).append("\n");
×
679
    sb.append("    payoutPspReference: ").append(toIndentedString(payoutPspReference)).append("\n");
×
680
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
681
    sb.append("    sourceAccountCode: ").append(toIndentedString(sourceAccountCode)).append("\n");
×
682
    sb.append("    transactionStatus: ").append(toIndentedString(transactionStatus)).append("\n");
×
683
    sb.append("    transferCode: ").append(toIndentedString(transferCode)).append("\n");
×
684
    sb.append("}");
×
685
    return sb.toString();
×
686
  }
687

688
  /**
689
   * Convert the given object to string with each line indented by 4 spaces
690
   * (except the first line).
691
   */
692
  private String toIndentedString(Object o) {
693
    if (o == null) {
×
694
      return "null";
×
695
    }
696
    return o.toString().replace("\n", "\n    ");
×
697
  }
698

699
/**
700
   * Create an instance of Transaction given an JSON string
701
   *
702
   * @param jsonString JSON string
703
   * @return An instance of Transaction
704
   * @throws JsonProcessingException if the JSON string is invalid with respect to Transaction
705
   */
706
  public static Transaction fromJson(String jsonString) throws JsonProcessingException {
707
    return JSON.getMapper().readValue(jsonString, Transaction.class);
×
708
  }
709
/**
710
  * Convert an instance of Transaction to an JSON string
711
  *
712
  * @return JSON string
713
  */
714
  public String toJson() throws JsonProcessingException {
715
    return JSON.getMapper().writeValueAsString(this);
×
716
  }
717
}
718

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

© 2025 Coveralls, Inc