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

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

16 Oct 2023 09:08AM CUT coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

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/marketpaywebhooks/Transaction.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
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.marketpaywebhooks.Amount;
20
import com.adyen.model.marketpaywebhooks.BankAccountDetail;
21
import com.fasterxml.jackson.annotation.JsonInclude;
22
import com.fasterxml.jackson.annotation.JsonProperty;
23
import com.fasterxml.jackson.annotation.JsonCreator;
24
import com.fasterxml.jackson.annotation.JsonTypeName;
25
import com.fasterxml.jackson.annotation.JsonValue;
26
import io.swagger.annotations.ApiModel;
27
import io.swagger.annotations.ApiModelProperty;
28
import java.time.OffsetDateTime;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

192
    private String value;
193

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

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

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

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

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

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

225
  public Transaction() { 
×
226
  }
×
227

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

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

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

245

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

252

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

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

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

270

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

277

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

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

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

295

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

302

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

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

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

320

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

327

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

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

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

345

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

352

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

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

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

370

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

377

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

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

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

395

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

402

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

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

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

420

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

427

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

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

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

445

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

452

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

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

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

470

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

477

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

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

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

495

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

502

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

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

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

520

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

527

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

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

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

545

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

552

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

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

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

570

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

577

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

583
   /**
584
   * 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`.
585
   * @return transactionStatus
586
  **/
587
  @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`.")
588
  @JsonProperty(JSON_PROPERTY_TRANSACTION_STATUS)
589
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
590

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

595

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

602

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

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

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

620

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

627

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

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

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

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

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

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