@infrab4a/connect 4.1.2-beta.6 → 4.1.2-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js
CHANGED
|
@@ -498,171 +498,178 @@ class Edition extends BaseModel {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
class
|
|
502
|
-
static get identifiersFields() {
|
|
503
|
-
return ['id'];
|
|
504
|
-
}
|
|
501
|
+
class PaymentTransaction extends BaseModel {
|
|
505
502
|
}
|
|
506
503
|
tslib_1.__decorate([
|
|
507
504
|
classTransformer.Expose({ name: 'refuse_reason' }),
|
|
508
505
|
tslib_1.__metadata("design:type", String)
|
|
509
|
-
],
|
|
506
|
+
], PaymentTransaction.prototype, "refuseReason", void 0);
|
|
510
507
|
tslib_1.__decorate([
|
|
511
508
|
classTransformer.Expose({ name: 'status_reason' }),
|
|
512
509
|
tslib_1.__metadata("design:type", String)
|
|
513
|
-
],
|
|
510
|
+
], PaymentTransaction.prototype, "statusReason", void 0);
|
|
514
511
|
tslib_1.__decorate([
|
|
515
512
|
classTransformer.Expose({ name: 'acquirer_response_code' }),
|
|
516
513
|
tslib_1.__metadata("design:type", String)
|
|
517
|
-
],
|
|
514
|
+
], PaymentTransaction.prototype, "acquirerResponseCode", void 0);
|
|
518
515
|
tslib_1.__decorate([
|
|
519
516
|
classTransformer.Expose({ name: 'acquirer_name' }),
|
|
520
517
|
tslib_1.__metadata("design:type", String)
|
|
521
|
-
],
|
|
518
|
+
], PaymentTransaction.prototype, "acquirerName", void 0);
|
|
522
519
|
tslib_1.__decorate([
|
|
523
520
|
classTransformer.Expose({ name: 'acquirer_id' }),
|
|
524
521
|
tslib_1.__metadata("design:type", String)
|
|
525
|
-
],
|
|
522
|
+
], PaymentTransaction.prototype, "acquirerId", void 0);
|
|
526
523
|
tslib_1.__decorate([
|
|
527
524
|
classTransformer.Expose({ name: 'authorization_code' }),
|
|
528
525
|
tslib_1.__metadata("design:type", String)
|
|
529
|
-
],
|
|
526
|
+
], PaymentTransaction.prototype, "authorizationCode", void 0);
|
|
530
527
|
tslib_1.__decorate([
|
|
531
528
|
classTransformer.Expose({ name: 'soft_descriptor' }),
|
|
532
529
|
tslib_1.__metadata("design:type", String)
|
|
533
|
-
],
|
|
530
|
+
], PaymentTransaction.prototype, "softDescriptor", void 0);
|
|
534
531
|
tslib_1.__decorate([
|
|
535
532
|
classTransformer.Expose({ name: 'date_created' }),
|
|
536
533
|
tslib_1.__metadata("design:type", String)
|
|
537
|
-
],
|
|
534
|
+
], PaymentTransaction.prototype, "dateCreated", void 0);
|
|
538
535
|
tslib_1.__decorate([
|
|
539
536
|
classTransformer.Expose({ name: 'date_updated' }),
|
|
540
537
|
tslib_1.__metadata("design:type", String)
|
|
541
|
-
],
|
|
538
|
+
], PaymentTransaction.prototype, "dateUpdated", void 0);
|
|
542
539
|
tslib_1.__decorate([
|
|
543
540
|
classTransformer.Expose({ name: 'authorized_amount' }),
|
|
544
541
|
tslib_1.__metadata("design:type", Number)
|
|
545
|
-
],
|
|
542
|
+
], PaymentTransaction.prototype, "authorizedAmount", void 0);
|
|
546
543
|
tslib_1.__decorate([
|
|
547
544
|
classTransformer.Expose({ name: 'paid_amount' }),
|
|
548
545
|
tslib_1.__metadata("design:type", Number)
|
|
549
|
-
],
|
|
546
|
+
], PaymentTransaction.prototype, "paidAmount", void 0);
|
|
550
547
|
tslib_1.__decorate([
|
|
551
548
|
classTransformer.Expose({ name: 'refunded_amount' }),
|
|
552
549
|
tslib_1.__metadata("design:type", Number)
|
|
553
|
-
],
|
|
550
|
+
], PaymentTransaction.prototype, "refundedAmount", void 0);
|
|
554
551
|
tslib_1.__decorate([
|
|
555
552
|
classTransformer.Expose({ name: 'card_holder_name' }),
|
|
556
553
|
tslib_1.__metadata("design:type", String)
|
|
557
|
-
],
|
|
554
|
+
], PaymentTransaction.prototype, "cardHolderName", void 0);
|
|
558
555
|
tslib_1.__decorate([
|
|
559
556
|
classTransformer.Expose({ name: 'card_last_digits' }),
|
|
560
557
|
tslib_1.__metadata("design:type", String)
|
|
561
|
-
],
|
|
558
|
+
], PaymentTransaction.prototype, "cardLastDigits", void 0);
|
|
562
559
|
tslib_1.__decorate([
|
|
563
560
|
classTransformer.Expose({ name: 'card_first_digits' }),
|
|
564
561
|
tslib_1.__metadata("design:type", String)
|
|
565
|
-
],
|
|
562
|
+
], PaymentTransaction.prototype, "cardFirstDigits", void 0);
|
|
566
563
|
tslib_1.__decorate([
|
|
567
564
|
classTransformer.Expose({ name: 'card_brand' }),
|
|
568
565
|
tslib_1.__metadata("design:type", String)
|
|
569
|
-
],
|
|
566
|
+
], PaymentTransaction.prototype, "cardBrand", void 0);
|
|
570
567
|
tslib_1.__decorate([
|
|
571
568
|
classTransformer.Expose({ name: 'card_pin_mode' }),
|
|
572
569
|
tslib_1.__metadata("design:type", String)
|
|
573
|
-
],
|
|
570
|
+
], PaymentTransaction.prototype, "cardPinMode", void 0);
|
|
574
571
|
tslib_1.__decorate([
|
|
575
572
|
classTransformer.Expose({ name: 'card_magstripe_fallback' }),
|
|
576
573
|
tslib_1.__metadata("design:type", Boolean)
|
|
577
|
-
],
|
|
574
|
+
], PaymentTransaction.prototype, "cardMagstripeFallback", void 0);
|
|
578
575
|
tslib_1.__decorate([
|
|
579
576
|
classTransformer.Expose({ name: 'cvm_pin' }),
|
|
580
577
|
tslib_1.__metadata("design:type", Boolean)
|
|
581
|
-
],
|
|
578
|
+
], PaymentTransaction.prototype, "cvmPin", void 0);
|
|
582
579
|
tslib_1.__decorate([
|
|
583
580
|
classTransformer.Expose({ name: 'postback_url' }),
|
|
584
581
|
tslib_1.__metadata("design:type", String)
|
|
585
|
-
],
|
|
582
|
+
], PaymentTransaction.prototype, "postbackUrl", void 0);
|
|
586
583
|
tslib_1.__decorate([
|
|
587
584
|
classTransformer.Expose({ name: 'payment_method' }),
|
|
588
585
|
tslib_1.__metadata("design:type", String)
|
|
589
|
-
],
|
|
586
|
+
], PaymentTransaction.prototype, "paymentMethod", void 0);
|
|
590
587
|
tslib_1.__decorate([
|
|
591
588
|
classTransformer.Expose({ name: 'capture_method' }),
|
|
592
589
|
tslib_1.__metadata("design:type", String)
|
|
593
|
-
],
|
|
590
|
+
], PaymentTransaction.prototype, "captureMethod", void 0);
|
|
594
591
|
tslib_1.__decorate([
|
|
595
592
|
classTransformer.Expose({ name: 'antifraud_score' }),
|
|
596
593
|
tslib_1.__metadata("design:type", String)
|
|
597
|
-
],
|
|
594
|
+
], PaymentTransaction.prototype, "antifraudScore", void 0);
|
|
598
595
|
tslib_1.__decorate([
|
|
599
596
|
classTransformer.Expose({ name: 'boleto_url' }),
|
|
600
597
|
tslib_1.__metadata("design:type", String)
|
|
601
|
-
],
|
|
598
|
+
], PaymentTransaction.prototype, "boletoUrl", void 0);
|
|
602
599
|
tslib_1.__decorate([
|
|
603
600
|
classTransformer.Expose({ name: 'boleto_barcode' }),
|
|
604
601
|
tslib_1.__metadata("design:type", String)
|
|
605
|
-
],
|
|
602
|
+
], PaymentTransaction.prototype, "boletoBarcode", void 0);
|
|
606
603
|
tslib_1.__decorate([
|
|
607
604
|
classTransformer.Expose({ name: 'boleto_expiration_date' }),
|
|
608
605
|
tslib_1.__metadata("design:type", String)
|
|
609
|
-
],
|
|
606
|
+
], PaymentTransaction.prototype, "boletoExpirationDate", void 0);
|
|
610
607
|
tslib_1.__decorate([
|
|
611
608
|
classTransformer.Expose({ name: 'subscription_id' }),
|
|
612
609
|
tslib_1.__metadata("design:type", String)
|
|
613
|
-
],
|
|
610
|
+
], PaymentTransaction.prototype, "subscriptionId", void 0);
|
|
614
611
|
tslib_1.__decorate([
|
|
615
612
|
classTransformer.Expose({ name: 'split_rules' }),
|
|
616
613
|
tslib_1.__metadata("design:type", String)
|
|
617
|
-
],
|
|
614
|
+
], PaymentTransaction.prototype, "splitRules", void 0);
|
|
618
615
|
tslib_1.__decorate([
|
|
619
616
|
classTransformer.Expose({ name: 'antifraud_metadata' }),
|
|
620
617
|
tslib_1.__metadata("design:type", Object)
|
|
621
|
-
],
|
|
618
|
+
], PaymentTransaction.prototype, "antifraudMetadata", void 0);
|
|
622
619
|
tslib_1.__decorate([
|
|
623
620
|
classTransformer.Expose({ name: 'reference_key' }),
|
|
624
621
|
tslib_1.__metadata("design:type", String)
|
|
625
|
-
],
|
|
622
|
+
], PaymentTransaction.prototype, "referenceKey", void 0);
|
|
626
623
|
tslib_1.__decorate([
|
|
627
624
|
classTransformer.Expose({ name: 'local_transaction_id' }),
|
|
628
625
|
tslib_1.__metadata("design:type", String)
|
|
629
|
-
],
|
|
626
|
+
], PaymentTransaction.prototype, "localTransactionId", void 0);
|
|
630
627
|
tslib_1.__decorate([
|
|
631
628
|
classTransformer.Expose({ name: 'local_time' }),
|
|
632
629
|
tslib_1.__metadata("design:type", String)
|
|
633
|
-
],
|
|
630
|
+
], PaymentTransaction.prototype, "localTime", void 0);
|
|
634
631
|
tslib_1.__decorate([
|
|
635
632
|
classTransformer.Expose({ name: 'fraud_covered' }),
|
|
636
633
|
tslib_1.__metadata("design:type", Boolean)
|
|
637
|
-
],
|
|
634
|
+
], PaymentTransaction.prototype, "fraudCovered", void 0);
|
|
638
635
|
tslib_1.__decorate([
|
|
639
636
|
classTransformer.Expose({ name: 'fraud_reimbursed' }),
|
|
640
637
|
tslib_1.__metadata("design:type", String)
|
|
641
|
-
],
|
|
638
|
+
], PaymentTransaction.prototype, "fraudReimbursed", void 0);
|
|
642
639
|
tslib_1.__decorate([
|
|
643
640
|
classTransformer.Expose({ name: 'order_id' }),
|
|
644
641
|
tslib_1.__metadata("design:type", String)
|
|
645
|
-
],
|
|
642
|
+
], PaymentTransaction.prototype, "orderId", void 0);
|
|
646
643
|
tslib_1.__decorate([
|
|
647
644
|
classTransformer.Expose({ name: 'risk_level' }),
|
|
648
645
|
tslib_1.__metadata("design:type", String)
|
|
649
|
-
],
|
|
646
|
+
], PaymentTransaction.prototype, "riskLevel", void 0);
|
|
650
647
|
tslib_1.__decorate([
|
|
651
648
|
classTransformer.Expose({ name: 'receipt_url' }),
|
|
652
649
|
tslib_1.__metadata("design:type", String)
|
|
653
|
-
],
|
|
650
|
+
], PaymentTransaction.prototype, "receiptUrl", void 0);
|
|
654
651
|
tslib_1.__decorate([
|
|
655
652
|
classTransformer.Expose({ name: 'private_label' }),
|
|
656
653
|
tslib_1.__metadata("design:type", String)
|
|
657
|
-
],
|
|
654
|
+
], PaymentTransaction.prototype, "privateLabel", void 0);
|
|
658
655
|
tslib_1.__decorate([
|
|
659
656
|
classTransformer.Expose({ name: 'pix_qr_code' }),
|
|
660
657
|
tslib_1.__metadata("design:type", String)
|
|
661
|
-
],
|
|
658
|
+
], PaymentTransaction.prototype, "pixQrCode", void 0);
|
|
662
659
|
tslib_1.__decorate([
|
|
663
660
|
classTransformer.Expose({ name: 'pix_expiration_date' }),
|
|
664
661
|
tslib_1.__metadata("design:type", String)
|
|
665
|
-
],
|
|
662
|
+
], PaymentTransaction.prototype, "pixExpirationDate", void 0);
|
|
663
|
+
|
|
664
|
+
class Payment extends BaseModel {
|
|
665
|
+
static get identifiersFields() {
|
|
666
|
+
return ['id'];
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
tslib_1.__decorate([
|
|
670
|
+
classTransformer.Type(() => PaymentTransaction),
|
|
671
|
+
tslib_1.__metadata("design:type", PaymentTransaction)
|
|
672
|
+
], Payment.prototype, "transaction", void 0);
|
|
666
673
|
|
|
667
674
|
class SubscriptionPayment extends BaseModel {
|
|
668
675
|
static get identifiersFields() {
|
|
@@ -2228,8 +2235,8 @@ exports.OrderStatus = void 0;
|
|
|
2228
2235
|
class Order extends Checkout {
|
|
2229
2236
|
}
|
|
2230
2237
|
tslib_1.__decorate([
|
|
2231
|
-
classTransformer.Type(() =>
|
|
2232
|
-
tslib_1.__metadata("design:type",
|
|
2238
|
+
classTransformer.Type(() => PaymentTransaction),
|
|
2239
|
+
tslib_1.__metadata("design:type", PaymentTransaction)
|
|
2233
2240
|
], Order.prototype, "payment", void 0);
|
|
2234
2241
|
|
|
2235
2242
|
class OrderBlocked extends BaseModel {
|
package/index.esm.js
CHANGED
|
@@ -474,171 +474,178 @@ class Edition extends BaseModel {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
class
|
|
478
|
-
static get identifiersFields() {
|
|
479
|
-
return ['id'];
|
|
480
|
-
}
|
|
477
|
+
class PaymentTransaction extends BaseModel {
|
|
481
478
|
}
|
|
482
479
|
__decorate([
|
|
483
480
|
Expose({ name: 'refuse_reason' }),
|
|
484
481
|
__metadata("design:type", String)
|
|
485
|
-
],
|
|
482
|
+
], PaymentTransaction.prototype, "refuseReason", void 0);
|
|
486
483
|
__decorate([
|
|
487
484
|
Expose({ name: 'status_reason' }),
|
|
488
485
|
__metadata("design:type", String)
|
|
489
|
-
],
|
|
486
|
+
], PaymentTransaction.prototype, "statusReason", void 0);
|
|
490
487
|
__decorate([
|
|
491
488
|
Expose({ name: 'acquirer_response_code' }),
|
|
492
489
|
__metadata("design:type", String)
|
|
493
|
-
],
|
|
490
|
+
], PaymentTransaction.prototype, "acquirerResponseCode", void 0);
|
|
494
491
|
__decorate([
|
|
495
492
|
Expose({ name: 'acquirer_name' }),
|
|
496
493
|
__metadata("design:type", String)
|
|
497
|
-
],
|
|
494
|
+
], PaymentTransaction.prototype, "acquirerName", void 0);
|
|
498
495
|
__decorate([
|
|
499
496
|
Expose({ name: 'acquirer_id' }),
|
|
500
497
|
__metadata("design:type", String)
|
|
501
|
-
],
|
|
498
|
+
], PaymentTransaction.prototype, "acquirerId", void 0);
|
|
502
499
|
__decorate([
|
|
503
500
|
Expose({ name: 'authorization_code' }),
|
|
504
501
|
__metadata("design:type", String)
|
|
505
|
-
],
|
|
502
|
+
], PaymentTransaction.prototype, "authorizationCode", void 0);
|
|
506
503
|
__decorate([
|
|
507
504
|
Expose({ name: 'soft_descriptor' }),
|
|
508
505
|
__metadata("design:type", String)
|
|
509
|
-
],
|
|
506
|
+
], PaymentTransaction.prototype, "softDescriptor", void 0);
|
|
510
507
|
__decorate([
|
|
511
508
|
Expose({ name: 'date_created' }),
|
|
512
509
|
__metadata("design:type", String)
|
|
513
|
-
],
|
|
510
|
+
], PaymentTransaction.prototype, "dateCreated", void 0);
|
|
514
511
|
__decorate([
|
|
515
512
|
Expose({ name: 'date_updated' }),
|
|
516
513
|
__metadata("design:type", String)
|
|
517
|
-
],
|
|
514
|
+
], PaymentTransaction.prototype, "dateUpdated", void 0);
|
|
518
515
|
__decorate([
|
|
519
516
|
Expose({ name: 'authorized_amount' }),
|
|
520
517
|
__metadata("design:type", Number)
|
|
521
|
-
],
|
|
518
|
+
], PaymentTransaction.prototype, "authorizedAmount", void 0);
|
|
522
519
|
__decorate([
|
|
523
520
|
Expose({ name: 'paid_amount' }),
|
|
524
521
|
__metadata("design:type", Number)
|
|
525
|
-
],
|
|
522
|
+
], PaymentTransaction.prototype, "paidAmount", void 0);
|
|
526
523
|
__decorate([
|
|
527
524
|
Expose({ name: 'refunded_amount' }),
|
|
528
525
|
__metadata("design:type", Number)
|
|
529
|
-
],
|
|
526
|
+
], PaymentTransaction.prototype, "refundedAmount", void 0);
|
|
530
527
|
__decorate([
|
|
531
528
|
Expose({ name: 'card_holder_name' }),
|
|
532
529
|
__metadata("design:type", String)
|
|
533
|
-
],
|
|
530
|
+
], PaymentTransaction.prototype, "cardHolderName", void 0);
|
|
534
531
|
__decorate([
|
|
535
532
|
Expose({ name: 'card_last_digits' }),
|
|
536
533
|
__metadata("design:type", String)
|
|
537
|
-
],
|
|
534
|
+
], PaymentTransaction.prototype, "cardLastDigits", void 0);
|
|
538
535
|
__decorate([
|
|
539
536
|
Expose({ name: 'card_first_digits' }),
|
|
540
537
|
__metadata("design:type", String)
|
|
541
|
-
],
|
|
538
|
+
], PaymentTransaction.prototype, "cardFirstDigits", void 0);
|
|
542
539
|
__decorate([
|
|
543
540
|
Expose({ name: 'card_brand' }),
|
|
544
541
|
__metadata("design:type", String)
|
|
545
|
-
],
|
|
542
|
+
], PaymentTransaction.prototype, "cardBrand", void 0);
|
|
546
543
|
__decorate([
|
|
547
544
|
Expose({ name: 'card_pin_mode' }),
|
|
548
545
|
__metadata("design:type", String)
|
|
549
|
-
],
|
|
546
|
+
], PaymentTransaction.prototype, "cardPinMode", void 0);
|
|
550
547
|
__decorate([
|
|
551
548
|
Expose({ name: 'card_magstripe_fallback' }),
|
|
552
549
|
__metadata("design:type", Boolean)
|
|
553
|
-
],
|
|
550
|
+
], PaymentTransaction.prototype, "cardMagstripeFallback", void 0);
|
|
554
551
|
__decorate([
|
|
555
552
|
Expose({ name: 'cvm_pin' }),
|
|
556
553
|
__metadata("design:type", Boolean)
|
|
557
|
-
],
|
|
554
|
+
], PaymentTransaction.prototype, "cvmPin", void 0);
|
|
558
555
|
__decorate([
|
|
559
556
|
Expose({ name: 'postback_url' }),
|
|
560
557
|
__metadata("design:type", String)
|
|
561
|
-
],
|
|
558
|
+
], PaymentTransaction.prototype, "postbackUrl", void 0);
|
|
562
559
|
__decorate([
|
|
563
560
|
Expose({ name: 'payment_method' }),
|
|
564
561
|
__metadata("design:type", String)
|
|
565
|
-
],
|
|
562
|
+
], PaymentTransaction.prototype, "paymentMethod", void 0);
|
|
566
563
|
__decorate([
|
|
567
564
|
Expose({ name: 'capture_method' }),
|
|
568
565
|
__metadata("design:type", String)
|
|
569
|
-
],
|
|
566
|
+
], PaymentTransaction.prototype, "captureMethod", void 0);
|
|
570
567
|
__decorate([
|
|
571
568
|
Expose({ name: 'antifraud_score' }),
|
|
572
569
|
__metadata("design:type", String)
|
|
573
|
-
],
|
|
570
|
+
], PaymentTransaction.prototype, "antifraudScore", void 0);
|
|
574
571
|
__decorate([
|
|
575
572
|
Expose({ name: 'boleto_url' }),
|
|
576
573
|
__metadata("design:type", String)
|
|
577
|
-
],
|
|
574
|
+
], PaymentTransaction.prototype, "boletoUrl", void 0);
|
|
578
575
|
__decorate([
|
|
579
576
|
Expose({ name: 'boleto_barcode' }),
|
|
580
577
|
__metadata("design:type", String)
|
|
581
|
-
],
|
|
578
|
+
], PaymentTransaction.prototype, "boletoBarcode", void 0);
|
|
582
579
|
__decorate([
|
|
583
580
|
Expose({ name: 'boleto_expiration_date' }),
|
|
584
581
|
__metadata("design:type", String)
|
|
585
|
-
],
|
|
582
|
+
], PaymentTransaction.prototype, "boletoExpirationDate", void 0);
|
|
586
583
|
__decorate([
|
|
587
584
|
Expose({ name: 'subscription_id' }),
|
|
588
585
|
__metadata("design:type", String)
|
|
589
|
-
],
|
|
586
|
+
], PaymentTransaction.prototype, "subscriptionId", void 0);
|
|
590
587
|
__decorate([
|
|
591
588
|
Expose({ name: 'split_rules' }),
|
|
592
589
|
__metadata("design:type", String)
|
|
593
|
-
],
|
|
590
|
+
], PaymentTransaction.prototype, "splitRules", void 0);
|
|
594
591
|
__decorate([
|
|
595
592
|
Expose({ name: 'antifraud_metadata' }),
|
|
596
593
|
__metadata("design:type", Object)
|
|
597
|
-
],
|
|
594
|
+
], PaymentTransaction.prototype, "antifraudMetadata", void 0);
|
|
598
595
|
__decorate([
|
|
599
596
|
Expose({ name: 'reference_key' }),
|
|
600
597
|
__metadata("design:type", String)
|
|
601
|
-
],
|
|
598
|
+
], PaymentTransaction.prototype, "referenceKey", void 0);
|
|
602
599
|
__decorate([
|
|
603
600
|
Expose({ name: 'local_transaction_id' }),
|
|
604
601
|
__metadata("design:type", String)
|
|
605
|
-
],
|
|
602
|
+
], PaymentTransaction.prototype, "localTransactionId", void 0);
|
|
606
603
|
__decorate([
|
|
607
604
|
Expose({ name: 'local_time' }),
|
|
608
605
|
__metadata("design:type", String)
|
|
609
|
-
],
|
|
606
|
+
], PaymentTransaction.prototype, "localTime", void 0);
|
|
610
607
|
__decorate([
|
|
611
608
|
Expose({ name: 'fraud_covered' }),
|
|
612
609
|
__metadata("design:type", Boolean)
|
|
613
|
-
],
|
|
610
|
+
], PaymentTransaction.prototype, "fraudCovered", void 0);
|
|
614
611
|
__decorate([
|
|
615
612
|
Expose({ name: 'fraud_reimbursed' }),
|
|
616
613
|
__metadata("design:type", String)
|
|
617
|
-
],
|
|
614
|
+
], PaymentTransaction.prototype, "fraudReimbursed", void 0);
|
|
618
615
|
__decorate([
|
|
619
616
|
Expose({ name: 'order_id' }),
|
|
620
617
|
__metadata("design:type", String)
|
|
621
|
-
],
|
|
618
|
+
], PaymentTransaction.prototype, "orderId", void 0);
|
|
622
619
|
__decorate([
|
|
623
620
|
Expose({ name: 'risk_level' }),
|
|
624
621
|
__metadata("design:type", String)
|
|
625
|
-
],
|
|
622
|
+
], PaymentTransaction.prototype, "riskLevel", void 0);
|
|
626
623
|
__decorate([
|
|
627
624
|
Expose({ name: 'receipt_url' }),
|
|
628
625
|
__metadata("design:type", String)
|
|
629
|
-
],
|
|
626
|
+
], PaymentTransaction.prototype, "receiptUrl", void 0);
|
|
630
627
|
__decorate([
|
|
631
628
|
Expose({ name: 'private_label' }),
|
|
632
629
|
__metadata("design:type", String)
|
|
633
|
-
],
|
|
630
|
+
], PaymentTransaction.prototype, "privateLabel", void 0);
|
|
634
631
|
__decorate([
|
|
635
632
|
Expose({ name: 'pix_qr_code' }),
|
|
636
633
|
__metadata("design:type", String)
|
|
637
|
-
],
|
|
634
|
+
], PaymentTransaction.prototype, "pixQrCode", void 0);
|
|
638
635
|
__decorate([
|
|
639
636
|
Expose({ name: 'pix_expiration_date' }),
|
|
640
637
|
__metadata("design:type", String)
|
|
641
|
-
],
|
|
638
|
+
], PaymentTransaction.prototype, "pixExpirationDate", void 0);
|
|
639
|
+
|
|
640
|
+
class Payment extends BaseModel {
|
|
641
|
+
static get identifiersFields() {
|
|
642
|
+
return ['id'];
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
__decorate([
|
|
646
|
+
Type(() => PaymentTransaction),
|
|
647
|
+
__metadata("design:type", PaymentTransaction)
|
|
648
|
+
], Payment.prototype, "transaction", void 0);
|
|
642
649
|
|
|
643
650
|
class SubscriptionPayment extends BaseModel {
|
|
644
651
|
static get identifiersFields() {
|
|
@@ -2204,8 +2211,8 @@ var OrderStatus;
|
|
|
2204
2211
|
class Order extends Checkout {
|
|
2205
2212
|
}
|
|
2206
2213
|
__decorate([
|
|
2207
|
-
Type(() =>
|
|
2208
|
-
__metadata("design:type",
|
|
2214
|
+
Type(() => PaymentTransaction),
|
|
2215
|
+
__metadata("design:type", PaymentTransaction)
|
|
2209
2216
|
], Order.prototype, "payment", void 0);
|
|
2210
2217
|
|
|
2211
2218
|
class OrderBlocked extends BaseModel {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Checkout } from './checkout';
|
|
2
2
|
import { OrderStatus } from './enums/order-status.enum';
|
|
3
|
-
import {
|
|
3
|
+
import { PaymentTransaction } from './payment.transaction';
|
|
4
4
|
export declare class Order extends Checkout {
|
|
5
5
|
status: OrderStatus;
|
|
6
6
|
orderNumber?: string;
|
|
7
7
|
trackingCode?: string;
|
|
8
8
|
trackingUrl?: string;
|
|
9
|
-
payment:
|
|
9
|
+
payment: PaymentTransaction;
|
|
10
10
|
}
|
|
@@ -1,67 +1,13 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
2
|
-
import {
|
|
2
|
+
import { PaymentTransaction } from './payment.transaction';
|
|
3
3
|
export declare class Payment extends BaseModel<Payment> {
|
|
4
4
|
id: number;
|
|
5
|
-
|
|
6
|
-
status: string;
|
|
7
|
-
tid: number;
|
|
8
|
-
nsu: number;
|
|
9
|
-
amount: number;
|
|
10
|
-
cost: number;
|
|
11
|
-
installments: number;
|
|
12
|
-
referer: string;
|
|
13
|
-
ip: string;
|
|
14
|
-
phone: string;
|
|
15
|
-
address: string;
|
|
16
|
-
metadata: any;
|
|
17
|
-
device: string;
|
|
18
|
-
payment: string;
|
|
19
|
-
addition: string;
|
|
20
|
-
discount: string;
|
|
21
|
-
customer: PaymentCustomer;
|
|
22
|
-
billing: PaymentBilling;
|
|
23
|
-
shipping: PaymentShipping;
|
|
24
|
-
items: PaymentItem[];
|
|
25
|
-
card: PaymentCard;
|
|
26
|
-
refuseReason: string;
|
|
27
|
-
statusReason: string;
|
|
28
|
-
acquirerResponseCode: string;
|
|
29
|
-
acquirerName: string;
|
|
30
|
-
acquirerId: string;
|
|
31
|
-
authorizationCode: string;
|
|
32
|
-
softDescriptor: string;
|
|
33
|
-
dateCreated: string;
|
|
34
|
-
dateUpdated: string;
|
|
35
|
-
authorizedAmount: number;
|
|
36
|
-
paidAmount: number;
|
|
37
|
-
refundedAmount: number;
|
|
38
|
-
cardHolderName: string;
|
|
39
|
-
cardLastDigits: string;
|
|
40
|
-
cardFirstDigits: string;
|
|
41
|
-
cardBrand: string;
|
|
42
|
-
cardPinMode: string;
|
|
43
|
-
cardMagstripeFallback: boolean;
|
|
44
|
-
cvmPin: boolean;
|
|
45
|
-
postbackUrl: string;
|
|
46
|
-
paymentMethod: string;
|
|
47
|
-
captureMethod: string;
|
|
48
|
-
antifraudScore: string;
|
|
49
|
-
boletoUrl: string;
|
|
50
|
-
boletoBarcode: string;
|
|
51
|
-
boletoExpirationDate: string;
|
|
52
|
-
subscriptionId: string;
|
|
53
|
-
splitRules: string;
|
|
54
|
-
antifraudMetadata: any;
|
|
55
|
-
referenceKey: string;
|
|
56
|
-
localTransactionId: string;
|
|
57
|
-
localTime: string;
|
|
58
|
-
fraudCovered: boolean;
|
|
59
|
-
fraudReimbursed: string;
|
|
5
|
+
checkoutId: string;
|
|
60
6
|
orderId: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
7
|
+
totalPrice: number;
|
|
8
|
+
userId: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
transaction: PaymentTransaction;
|
|
66
12
|
static get identifiersFields(): GenericIdentifier[];
|
|
67
13
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BaseModel } from '../../generic/model/base.model';
|
|
2
|
+
import { PaymentBilling, PaymentCard, PaymentCustomer, PaymentItem, PaymentShipping } from './types';
|
|
3
|
+
export declare class PaymentTransaction extends BaseModel<PaymentTransaction> {
|
|
4
|
+
id: number;
|
|
5
|
+
object: string;
|
|
6
|
+
status: string;
|
|
7
|
+
tid: number;
|
|
8
|
+
nsu: number;
|
|
9
|
+
amount: number;
|
|
10
|
+
cost: number;
|
|
11
|
+
installments: number;
|
|
12
|
+
referer: string;
|
|
13
|
+
ip: string;
|
|
14
|
+
phone: string;
|
|
15
|
+
address: string;
|
|
16
|
+
metadata: any;
|
|
17
|
+
device: string;
|
|
18
|
+
payment: string;
|
|
19
|
+
addition: string;
|
|
20
|
+
discount: string;
|
|
21
|
+
customer: PaymentCustomer;
|
|
22
|
+
billing: PaymentBilling;
|
|
23
|
+
shipping: PaymentShipping;
|
|
24
|
+
items: PaymentItem[];
|
|
25
|
+
card: PaymentCard;
|
|
26
|
+
refuseReason: string;
|
|
27
|
+
statusReason: string;
|
|
28
|
+
acquirerResponseCode: string;
|
|
29
|
+
acquirerName: string;
|
|
30
|
+
acquirerId: string;
|
|
31
|
+
authorizationCode: string;
|
|
32
|
+
softDescriptor: string;
|
|
33
|
+
dateCreated: string;
|
|
34
|
+
dateUpdated: string;
|
|
35
|
+
authorizedAmount: number;
|
|
36
|
+
paidAmount: number;
|
|
37
|
+
refundedAmount: number;
|
|
38
|
+
cardHolderName: string;
|
|
39
|
+
cardLastDigits: string;
|
|
40
|
+
cardFirstDigits: string;
|
|
41
|
+
cardBrand: string;
|
|
42
|
+
cardPinMode: string;
|
|
43
|
+
cardMagstripeFallback: boolean;
|
|
44
|
+
cvmPin: boolean;
|
|
45
|
+
postbackUrl: string;
|
|
46
|
+
paymentMethod: string;
|
|
47
|
+
captureMethod: string;
|
|
48
|
+
antifraudScore: string;
|
|
49
|
+
boletoUrl: string;
|
|
50
|
+
boletoBarcode: string;
|
|
51
|
+
boletoExpirationDate: string;
|
|
52
|
+
subscriptionId: string;
|
|
53
|
+
splitRules: string;
|
|
54
|
+
antifraudMetadata: any;
|
|
55
|
+
referenceKey: string;
|
|
56
|
+
localTransactionId: string;
|
|
57
|
+
localTime: string;
|
|
58
|
+
fraudCovered: boolean;
|
|
59
|
+
fraudReimbursed: string;
|
|
60
|
+
orderId: string;
|
|
61
|
+
riskLevel: string;
|
|
62
|
+
receiptUrl: string;
|
|
63
|
+
privateLabel: string;
|
|
64
|
+
pixQrCode: string;
|
|
65
|
+
pixExpirationDate: string;
|
|
66
|
+
}
|