@infrab4a/connect 4.1.2-beta.6 → 4.1.2-beta.7
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 +51 -41
- package/index.esm.js +51 -41
- package/package.json +1 -1
- package/src/domain/shopping/models/payment.d.ts +7 -61
- package/src/domain/shopping/models/transaction.d.ts +67 -0
package/index.cjs.js
CHANGED
|
@@ -498,7 +498,7 @@ class Edition extends BaseModel {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
class
|
|
501
|
+
class Transaction extends BaseModel {
|
|
502
502
|
static get identifiersFields() {
|
|
503
503
|
return ['id'];
|
|
504
504
|
}
|
|
@@ -506,163 +506,173 @@ class Payment extends BaseModel {
|
|
|
506
506
|
tslib_1.__decorate([
|
|
507
507
|
classTransformer.Expose({ name: 'refuse_reason' }),
|
|
508
508
|
tslib_1.__metadata("design:type", String)
|
|
509
|
-
],
|
|
509
|
+
], Transaction.prototype, "refuseReason", void 0);
|
|
510
510
|
tslib_1.__decorate([
|
|
511
511
|
classTransformer.Expose({ name: 'status_reason' }),
|
|
512
512
|
tslib_1.__metadata("design:type", String)
|
|
513
|
-
],
|
|
513
|
+
], Transaction.prototype, "statusReason", void 0);
|
|
514
514
|
tslib_1.__decorate([
|
|
515
515
|
classTransformer.Expose({ name: 'acquirer_response_code' }),
|
|
516
516
|
tslib_1.__metadata("design:type", String)
|
|
517
|
-
],
|
|
517
|
+
], Transaction.prototype, "acquirerResponseCode", void 0);
|
|
518
518
|
tslib_1.__decorate([
|
|
519
519
|
classTransformer.Expose({ name: 'acquirer_name' }),
|
|
520
520
|
tslib_1.__metadata("design:type", String)
|
|
521
|
-
],
|
|
521
|
+
], Transaction.prototype, "acquirerName", void 0);
|
|
522
522
|
tslib_1.__decorate([
|
|
523
523
|
classTransformer.Expose({ name: 'acquirer_id' }),
|
|
524
524
|
tslib_1.__metadata("design:type", String)
|
|
525
|
-
],
|
|
525
|
+
], Transaction.prototype, "acquirerId", void 0);
|
|
526
526
|
tslib_1.__decorate([
|
|
527
527
|
classTransformer.Expose({ name: 'authorization_code' }),
|
|
528
528
|
tslib_1.__metadata("design:type", String)
|
|
529
|
-
],
|
|
529
|
+
], Transaction.prototype, "authorizationCode", void 0);
|
|
530
530
|
tslib_1.__decorate([
|
|
531
531
|
classTransformer.Expose({ name: 'soft_descriptor' }),
|
|
532
532
|
tslib_1.__metadata("design:type", String)
|
|
533
|
-
],
|
|
533
|
+
], Transaction.prototype, "softDescriptor", void 0);
|
|
534
534
|
tslib_1.__decorate([
|
|
535
535
|
classTransformer.Expose({ name: 'date_created' }),
|
|
536
536
|
tslib_1.__metadata("design:type", String)
|
|
537
|
-
],
|
|
537
|
+
], Transaction.prototype, "dateCreated", void 0);
|
|
538
538
|
tslib_1.__decorate([
|
|
539
539
|
classTransformer.Expose({ name: 'date_updated' }),
|
|
540
540
|
tslib_1.__metadata("design:type", String)
|
|
541
|
-
],
|
|
541
|
+
], Transaction.prototype, "dateUpdated", void 0);
|
|
542
542
|
tslib_1.__decorate([
|
|
543
543
|
classTransformer.Expose({ name: 'authorized_amount' }),
|
|
544
544
|
tslib_1.__metadata("design:type", Number)
|
|
545
|
-
],
|
|
545
|
+
], Transaction.prototype, "authorizedAmount", void 0);
|
|
546
546
|
tslib_1.__decorate([
|
|
547
547
|
classTransformer.Expose({ name: 'paid_amount' }),
|
|
548
548
|
tslib_1.__metadata("design:type", Number)
|
|
549
|
-
],
|
|
549
|
+
], Transaction.prototype, "paidAmount", void 0);
|
|
550
550
|
tslib_1.__decorate([
|
|
551
551
|
classTransformer.Expose({ name: 'refunded_amount' }),
|
|
552
552
|
tslib_1.__metadata("design:type", Number)
|
|
553
|
-
],
|
|
553
|
+
], Transaction.prototype, "refundedAmount", void 0);
|
|
554
554
|
tslib_1.__decorate([
|
|
555
555
|
classTransformer.Expose({ name: 'card_holder_name' }),
|
|
556
556
|
tslib_1.__metadata("design:type", String)
|
|
557
|
-
],
|
|
557
|
+
], Transaction.prototype, "cardHolderName", void 0);
|
|
558
558
|
tslib_1.__decorate([
|
|
559
559
|
classTransformer.Expose({ name: 'card_last_digits' }),
|
|
560
560
|
tslib_1.__metadata("design:type", String)
|
|
561
|
-
],
|
|
561
|
+
], Transaction.prototype, "cardLastDigits", void 0);
|
|
562
562
|
tslib_1.__decorate([
|
|
563
563
|
classTransformer.Expose({ name: 'card_first_digits' }),
|
|
564
564
|
tslib_1.__metadata("design:type", String)
|
|
565
|
-
],
|
|
565
|
+
], Transaction.prototype, "cardFirstDigits", void 0);
|
|
566
566
|
tslib_1.__decorate([
|
|
567
567
|
classTransformer.Expose({ name: 'card_brand' }),
|
|
568
568
|
tslib_1.__metadata("design:type", String)
|
|
569
|
-
],
|
|
569
|
+
], Transaction.prototype, "cardBrand", void 0);
|
|
570
570
|
tslib_1.__decorate([
|
|
571
571
|
classTransformer.Expose({ name: 'card_pin_mode' }),
|
|
572
572
|
tslib_1.__metadata("design:type", String)
|
|
573
|
-
],
|
|
573
|
+
], Transaction.prototype, "cardPinMode", void 0);
|
|
574
574
|
tslib_1.__decorate([
|
|
575
575
|
classTransformer.Expose({ name: 'card_magstripe_fallback' }),
|
|
576
576
|
tslib_1.__metadata("design:type", Boolean)
|
|
577
|
-
],
|
|
577
|
+
], Transaction.prototype, "cardMagstripeFallback", void 0);
|
|
578
578
|
tslib_1.__decorate([
|
|
579
579
|
classTransformer.Expose({ name: 'cvm_pin' }),
|
|
580
580
|
tslib_1.__metadata("design:type", Boolean)
|
|
581
|
-
],
|
|
581
|
+
], Transaction.prototype, "cvmPin", void 0);
|
|
582
582
|
tslib_1.__decorate([
|
|
583
583
|
classTransformer.Expose({ name: 'postback_url' }),
|
|
584
584
|
tslib_1.__metadata("design:type", String)
|
|
585
|
-
],
|
|
585
|
+
], Transaction.prototype, "postbackUrl", void 0);
|
|
586
586
|
tslib_1.__decorate([
|
|
587
587
|
classTransformer.Expose({ name: 'payment_method' }),
|
|
588
588
|
tslib_1.__metadata("design:type", String)
|
|
589
|
-
],
|
|
589
|
+
], Transaction.prototype, "paymentMethod", void 0);
|
|
590
590
|
tslib_1.__decorate([
|
|
591
591
|
classTransformer.Expose({ name: 'capture_method' }),
|
|
592
592
|
tslib_1.__metadata("design:type", String)
|
|
593
|
-
],
|
|
593
|
+
], Transaction.prototype, "captureMethod", void 0);
|
|
594
594
|
tslib_1.__decorate([
|
|
595
595
|
classTransformer.Expose({ name: 'antifraud_score' }),
|
|
596
596
|
tslib_1.__metadata("design:type", String)
|
|
597
|
-
],
|
|
597
|
+
], Transaction.prototype, "antifraudScore", void 0);
|
|
598
598
|
tslib_1.__decorate([
|
|
599
599
|
classTransformer.Expose({ name: 'boleto_url' }),
|
|
600
600
|
tslib_1.__metadata("design:type", String)
|
|
601
|
-
],
|
|
601
|
+
], Transaction.prototype, "boletoUrl", void 0);
|
|
602
602
|
tslib_1.__decorate([
|
|
603
603
|
classTransformer.Expose({ name: 'boleto_barcode' }),
|
|
604
604
|
tslib_1.__metadata("design:type", String)
|
|
605
|
-
],
|
|
605
|
+
], Transaction.prototype, "boletoBarcode", void 0);
|
|
606
606
|
tslib_1.__decorate([
|
|
607
607
|
classTransformer.Expose({ name: 'boleto_expiration_date' }),
|
|
608
608
|
tslib_1.__metadata("design:type", String)
|
|
609
|
-
],
|
|
609
|
+
], Transaction.prototype, "boletoExpirationDate", void 0);
|
|
610
610
|
tslib_1.__decorate([
|
|
611
611
|
classTransformer.Expose({ name: 'subscription_id' }),
|
|
612
612
|
tslib_1.__metadata("design:type", String)
|
|
613
|
-
],
|
|
613
|
+
], Transaction.prototype, "subscriptionId", void 0);
|
|
614
614
|
tslib_1.__decorate([
|
|
615
615
|
classTransformer.Expose({ name: 'split_rules' }),
|
|
616
616
|
tslib_1.__metadata("design:type", String)
|
|
617
|
-
],
|
|
617
|
+
], Transaction.prototype, "splitRules", void 0);
|
|
618
618
|
tslib_1.__decorate([
|
|
619
619
|
classTransformer.Expose({ name: 'antifraud_metadata' }),
|
|
620
620
|
tslib_1.__metadata("design:type", Object)
|
|
621
|
-
],
|
|
621
|
+
], Transaction.prototype, "antifraudMetadata", void 0);
|
|
622
622
|
tslib_1.__decorate([
|
|
623
623
|
classTransformer.Expose({ name: 'reference_key' }),
|
|
624
624
|
tslib_1.__metadata("design:type", String)
|
|
625
|
-
],
|
|
625
|
+
], Transaction.prototype, "referenceKey", void 0);
|
|
626
626
|
tslib_1.__decorate([
|
|
627
627
|
classTransformer.Expose({ name: 'local_transaction_id' }),
|
|
628
628
|
tslib_1.__metadata("design:type", String)
|
|
629
|
-
],
|
|
629
|
+
], Transaction.prototype, "localTransactionId", void 0);
|
|
630
630
|
tslib_1.__decorate([
|
|
631
631
|
classTransformer.Expose({ name: 'local_time' }),
|
|
632
632
|
tslib_1.__metadata("design:type", String)
|
|
633
|
-
],
|
|
633
|
+
], Transaction.prototype, "localTime", void 0);
|
|
634
634
|
tslib_1.__decorate([
|
|
635
635
|
classTransformer.Expose({ name: 'fraud_covered' }),
|
|
636
636
|
tslib_1.__metadata("design:type", Boolean)
|
|
637
|
-
],
|
|
637
|
+
], Transaction.prototype, "fraudCovered", void 0);
|
|
638
638
|
tslib_1.__decorate([
|
|
639
639
|
classTransformer.Expose({ name: 'fraud_reimbursed' }),
|
|
640
640
|
tslib_1.__metadata("design:type", String)
|
|
641
|
-
],
|
|
641
|
+
], Transaction.prototype, "fraudReimbursed", void 0);
|
|
642
642
|
tslib_1.__decorate([
|
|
643
643
|
classTransformer.Expose({ name: 'order_id' }),
|
|
644
644
|
tslib_1.__metadata("design:type", String)
|
|
645
|
-
],
|
|
645
|
+
], Transaction.prototype, "orderId", void 0);
|
|
646
646
|
tslib_1.__decorate([
|
|
647
647
|
classTransformer.Expose({ name: 'risk_level' }),
|
|
648
648
|
tslib_1.__metadata("design:type", String)
|
|
649
|
-
],
|
|
649
|
+
], Transaction.prototype, "riskLevel", void 0);
|
|
650
650
|
tslib_1.__decorate([
|
|
651
651
|
classTransformer.Expose({ name: 'receipt_url' }),
|
|
652
652
|
tslib_1.__metadata("design:type", String)
|
|
653
|
-
],
|
|
653
|
+
], Transaction.prototype, "receiptUrl", void 0);
|
|
654
654
|
tslib_1.__decorate([
|
|
655
655
|
classTransformer.Expose({ name: 'private_label' }),
|
|
656
656
|
tslib_1.__metadata("design:type", String)
|
|
657
|
-
],
|
|
657
|
+
], Transaction.prototype, "privateLabel", void 0);
|
|
658
658
|
tslib_1.__decorate([
|
|
659
659
|
classTransformer.Expose({ name: 'pix_qr_code' }),
|
|
660
660
|
tslib_1.__metadata("design:type", String)
|
|
661
|
-
],
|
|
661
|
+
], Transaction.prototype, "pixQrCode", void 0);
|
|
662
662
|
tslib_1.__decorate([
|
|
663
663
|
classTransformer.Expose({ name: 'pix_expiration_date' }),
|
|
664
664
|
tslib_1.__metadata("design:type", String)
|
|
665
|
-
],
|
|
665
|
+
], Transaction.prototype, "pixExpirationDate", void 0);
|
|
666
|
+
|
|
667
|
+
class Payment extends BaseModel {
|
|
668
|
+
static get identifiersFields() {
|
|
669
|
+
return ['id'];
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
tslib_1.__decorate([
|
|
673
|
+
classTransformer.Type(() => Transaction),
|
|
674
|
+
tslib_1.__metadata("design:type", Transaction)
|
|
675
|
+
], Payment.prototype, "transaction", void 0);
|
|
666
676
|
|
|
667
677
|
class SubscriptionPayment extends BaseModel {
|
|
668
678
|
static get identifiersFields() {
|
package/index.esm.js
CHANGED
|
@@ -474,7 +474,7 @@ class Edition extends BaseModel {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
class
|
|
477
|
+
class Transaction extends BaseModel {
|
|
478
478
|
static get identifiersFields() {
|
|
479
479
|
return ['id'];
|
|
480
480
|
}
|
|
@@ -482,163 +482,173 @@ class Payment extends BaseModel {
|
|
|
482
482
|
__decorate([
|
|
483
483
|
Expose({ name: 'refuse_reason' }),
|
|
484
484
|
__metadata("design:type", String)
|
|
485
|
-
],
|
|
485
|
+
], Transaction.prototype, "refuseReason", void 0);
|
|
486
486
|
__decorate([
|
|
487
487
|
Expose({ name: 'status_reason' }),
|
|
488
488
|
__metadata("design:type", String)
|
|
489
|
-
],
|
|
489
|
+
], Transaction.prototype, "statusReason", void 0);
|
|
490
490
|
__decorate([
|
|
491
491
|
Expose({ name: 'acquirer_response_code' }),
|
|
492
492
|
__metadata("design:type", String)
|
|
493
|
-
],
|
|
493
|
+
], Transaction.prototype, "acquirerResponseCode", void 0);
|
|
494
494
|
__decorate([
|
|
495
495
|
Expose({ name: 'acquirer_name' }),
|
|
496
496
|
__metadata("design:type", String)
|
|
497
|
-
],
|
|
497
|
+
], Transaction.prototype, "acquirerName", void 0);
|
|
498
498
|
__decorate([
|
|
499
499
|
Expose({ name: 'acquirer_id' }),
|
|
500
500
|
__metadata("design:type", String)
|
|
501
|
-
],
|
|
501
|
+
], Transaction.prototype, "acquirerId", void 0);
|
|
502
502
|
__decorate([
|
|
503
503
|
Expose({ name: 'authorization_code' }),
|
|
504
504
|
__metadata("design:type", String)
|
|
505
|
-
],
|
|
505
|
+
], Transaction.prototype, "authorizationCode", void 0);
|
|
506
506
|
__decorate([
|
|
507
507
|
Expose({ name: 'soft_descriptor' }),
|
|
508
508
|
__metadata("design:type", String)
|
|
509
|
-
],
|
|
509
|
+
], Transaction.prototype, "softDescriptor", void 0);
|
|
510
510
|
__decorate([
|
|
511
511
|
Expose({ name: 'date_created' }),
|
|
512
512
|
__metadata("design:type", String)
|
|
513
|
-
],
|
|
513
|
+
], Transaction.prototype, "dateCreated", void 0);
|
|
514
514
|
__decorate([
|
|
515
515
|
Expose({ name: 'date_updated' }),
|
|
516
516
|
__metadata("design:type", String)
|
|
517
|
-
],
|
|
517
|
+
], Transaction.prototype, "dateUpdated", void 0);
|
|
518
518
|
__decorate([
|
|
519
519
|
Expose({ name: 'authorized_amount' }),
|
|
520
520
|
__metadata("design:type", Number)
|
|
521
|
-
],
|
|
521
|
+
], Transaction.prototype, "authorizedAmount", void 0);
|
|
522
522
|
__decorate([
|
|
523
523
|
Expose({ name: 'paid_amount' }),
|
|
524
524
|
__metadata("design:type", Number)
|
|
525
|
-
],
|
|
525
|
+
], Transaction.prototype, "paidAmount", void 0);
|
|
526
526
|
__decorate([
|
|
527
527
|
Expose({ name: 'refunded_amount' }),
|
|
528
528
|
__metadata("design:type", Number)
|
|
529
|
-
],
|
|
529
|
+
], Transaction.prototype, "refundedAmount", void 0);
|
|
530
530
|
__decorate([
|
|
531
531
|
Expose({ name: 'card_holder_name' }),
|
|
532
532
|
__metadata("design:type", String)
|
|
533
|
-
],
|
|
533
|
+
], Transaction.prototype, "cardHolderName", void 0);
|
|
534
534
|
__decorate([
|
|
535
535
|
Expose({ name: 'card_last_digits' }),
|
|
536
536
|
__metadata("design:type", String)
|
|
537
|
-
],
|
|
537
|
+
], Transaction.prototype, "cardLastDigits", void 0);
|
|
538
538
|
__decorate([
|
|
539
539
|
Expose({ name: 'card_first_digits' }),
|
|
540
540
|
__metadata("design:type", String)
|
|
541
|
-
],
|
|
541
|
+
], Transaction.prototype, "cardFirstDigits", void 0);
|
|
542
542
|
__decorate([
|
|
543
543
|
Expose({ name: 'card_brand' }),
|
|
544
544
|
__metadata("design:type", String)
|
|
545
|
-
],
|
|
545
|
+
], Transaction.prototype, "cardBrand", void 0);
|
|
546
546
|
__decorate([
|
|
547
547
|
Expose({ name: 'card_pin_mode' }),
|
|
548
548
|
__metadata("design:type", String)
|
|
549
|
-
],
|
|
549
|
+
], Transaction.prototype, "cardPinMode", void 0);
|
|
550
550
|
__decorate([
|
|
551
551
|
Expose({ name: 'card_magstripe_fallback' }),
|
|
552
552
|
__metadata("design:type", Boolean)
|
|
553
|
-
],
|
|
553
|
+
], Transaction.prototype, "cardMagstripeFallback", void 0);
|
|
554
554
|
__decorate([
|
|
555
555
|
Expose({ name: 'cvm_pin' }),
|
|
556
556
|
__metadata("design:type", Boolean)
|
|
557
|
-
],
|
|
557
|
+
], Transaction.prototype, "cvmPin", void 0);
|
|
558
558
|
__decorate([
|
|
559
559
|
Expose({ name: 'postback_url' }),
|
|
560
560
|
__metadata("design:type", String)
|
|
561
|
-
],
|
|
561
|
+
], Transaction.prototype, "postbackUrl", void 0);
|
|
562
562
|
__decorate([
|
|
563
563
|
Expose({ name: 'payment_method' }),
|
|
564
564
|
__metadata("design:type", String)
|
|
565
|
-
],
|
|
565
|
+
], Transaction.prototype, "paymentMethod", void 0);
|
|
566
566
|
__decorate([
|
|
567
567
|
Expose({ name: 'capture_method' }),
|
|
568
568
|
__metadata("design:type", String)
|
|
569
|
-
],
|
|
569
|
+
], Transaction.prototype, "captureMethod", void 0);
|
|
570
570
|
__decorate([
|
|
571
571
|
Expose({ name: 'antifraud_score' }),
|
|
572
572
|
__metadata("design:type", String)
|
|
573
|
-
],
|
|
573
|
+
], Transaction.prototype, "antifraudScore", void 0);
|
|
574
574
|
__decorate([
|
|
575
575
|
Expose({ name: 'boleto_url' }),
|
|
576
576
|
__metadata("design:type", String)
|
|
577
|
-
],
|
|
577
|
+
], Transaction.prototype, "boletoUrl", void 0);
|
|
578
578
|
__decorate([
|
|
579
579
|
Expose({ name: 'boleto_barcode' }),
|
|
580
580
|
__metadata("design:type", String)
|
|
581
|
-
],
|
|
581
|
+
], Transaction.prototype, "boletoBarcode", void 0);
|
|
582
582
|
__decorate([
|
|
583
583
|
Expose({ name: 'boleto_expiration_date' }),
|
|
584
584
|
__metadata("design:type", String)
|
|
585
|
-
],
|
|
585
|
+
], Transaction.prototype, "boletoExpirationDate", void 0);
|
|
586
586
|
__decorate([
|
|
587
587
|
Expose({ name: 'subscription_id' }),
|
|
588
588
|
__metadata("design:type", String)
|
|
589
|
-
],
|
|
589
|
+
], Transaction.prototype, "subscriptionId", void 0);
|
|
590
590
|
__decorate([
|
|
591
591
|
Expose({ name: 'split_rules' }),
|
|
592
592
|
__metadata("design:type", String)
|
|
593
|
-
],
|
|
593
|
+
], Transaction.prototype, "splitRules", void 0);
|
|
594
594
|
__decorate([
|
|
595
595
|
Expose({ name: 'antifraud_metadata' }),
|
|
596
596
|
__metadata("design:type", Object)
|
|
597
|
-
],
|
|
597
|
+
], Transaction.prototype, "antifraudMetadata", void 0);
|
|
598
598
|
__decorate([
|
|
599
599
|
Expose({ name: 'reference_key' }),
|
|
600
600
|
__metadata("design:type", String)
|
|
601
|
-
],
|
|
601
|
+
], Transaction.prototype, "referenceKey", void 0);
|
|
602
602
|
__decorate([
|
|
603
603
|
Expose({ name: 'local_transaction_id' }),
|
|
604
604
|
__metadata("design:type", String)
|
|
605
|
-
],
|
|
605
|
+
], Transaction.prototype, "localTransactionId", void 0);
|
|
606
606
|
__decorate([
|
|
607
607
|
Expose({ name: 'local_time' }),
|
|
608
608
|
__metadata("design:type", String)
|
|
609
|
-
],
|
|
609
|
+
], Transaction.prototype, "localTime", void 0);
|
|
610
610
|
__decorate([
|
|
611
611
|
Expose({ name: 'fraud_covered' }),
|
|
612
612
|
__metadata("design:type", Boolean)
|
|
613
|
-
],
|
|
613
|
+
], Transaction.prototype, "fraudCovered", void 0);
|
|
614
614
|
__decorate([
|
|
615
615
|
Expose({ name: 'fraud_reimbursed' }),
|
|
616
616
|
__metadata("design:type", String)
|
|
617
|
-
],
|
|
617
|
+
], Transaction.prototype, "fraudReimbursed", void 0);
|
|
618
618
|
__decorate([
|
|
619
619
|
Expose({ name: 'order_id' }),
|
|
620
620
|
__metadata("design:type", String)
|
|
621
|
-
],
|
|
621
|
+
], Transaction.prototype, "orderId", void 0);
|
|
622
622
|
__decorate([
|
|
623
623
|
Expose({ name: 'risk_level' }),
|
|
624
624
|
__metadata("design:type", String)
|
|
625
|
-
],
|
|
625
|
+
], Transaction.prototype, "riskLevel", void 0);
|
|
626
626
|
__decorate([
|
|
627
627
|
Expose({ name: 'receipt_url' }),
|
|
628
628
|
__metadata("design:type", String)
|
|
629
|
-
],
|
|
629
|
+
], Transaction.prototype, "receiptUrl", void 0);
|
|
630
630
|
__decorate([
|
|
631
631
|
Expose({ name: 'private_label' }),
|
|
632
632
|
__metadata("design:type", String)
|
|
633
|
-
],
|
|
633
|
+
], Transaction.prototype, "privateLabel", void 0);
|
|
634
634
|
__decorate([
|
|
635
635
|
Expose({ name: 'pix_qr_code' }),
|
|
636
636
|
__metadata("design:type", String)
|
|
637
|
-
],
|
|
637
|
+
], Transaction.prototype, "pixQrCode", void 0);
|
|
638
638
|
__decorate([
|
|
639
639
|
Expose({ name: 'pix_expiration_date' }),
|
|
640
640
|
__metadata("design:type", String)
|
|
641
|
-
],
|
|
641
|
+
], Transaction.prototype, "pixExpirationDate", void 0);
|
|
642
|
+
|
|
643
|
+
class Payment extends BaseModel {
|
|
644
|
+
static get identifiersFields() {
|
|
645
|
+
return ['id'];
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
__decorate([
|
|
649
|
+
Type(() => Transaction),
|
|
650
|
+
__metadata("design:type", Transaction)
|
|
651
|
+
], Payment.prototype, "transaction", void 0);
|
|
642
652
|
|
|
643
653
|
class SubscriptionPayment extends BaseModel {
|
|
644
654
|
static get identifiersFields() {
|
package/package.json
CHANGED
|
@@ -1,67 +1,13 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
2
|
-
import {
|
|
2
|
+
import { Transaction } from './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: Transaction;
|
|
66
12
|
static get identifiersFields(): GenericIdentifier[];
|
|
67
13
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
2
|
+
import { PaymentBilling, PaymentCard, PaymentCustomer, PaymentItem, PaymentShipping } from './types';
|
|
3
|
+
export declare class Transaction extends BaseModel<Transaction> {
|
|
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
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
67
|
+
}
|