increase 1.19.0 → 1.21.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +1 -1
- data/lib/increase/models/card_payment.rb +1543 -77
- data/lib/increase/models/declined_transaction.rb +374 -1
- data/lib/increase/models/pending_transaction.rb +375 -1
- data/lib/increase/models/real_time_decision.rb +356 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card_payment.rbi +10210 -7508
- data/rbi/increase/models/declined_transaction.rbi +678 -0
- data/rbi/increase/models/pending_transaction.rbi +668 -0
- data/rbi/increase/models/real_time_decision.rbi +668 -0
- data/sig/increase/models/card_payment.rbs +695 -0
- data/sig/increase/models/declined_transaction.rbs +175 -0
- data/sig/increase/models/pending_transaction.rbs +170 -0
- data/sig/increase/models/real_time_decision.rbs +170 -0
- metadata +1 -1
@@ -248,6 +248,14 @@ module Increase
|
|
248
248
|
# @return [String]
|
249
249
|
required :account_id, String
|
250
250
|
|
251
|
+
# @!attribute additional_amounts
|
252
|
+
# Additional amounts associated with the card authorization, such as ATM
|
253
|
+
# surcharges fees. These are usually a subset of the `amount` field and are used
|
254
|
+
# to provide more detailed information about the transaction.
|
255
|
+
#
|
256
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts]
|
257
|
+
required :additional_amounts, -> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts }
|
258
|
+
|
251
259
|
# @!attribute card_id
|
252
260
|
# The identifier of the Card that is being authorized.
|
253
261
|
#
|
@@ -411,7 +419,7 @@ module Increase
|
|
411
419
|
# @return [Increase::Models::RealTimeDecision::CardAuthorization::Verification]
|
412
420
|
required :verification, -> { Increase::RealTimeDecision::CardAuthorization::Verification }
|
413
421
|
|
414
|
-
# @!method initialize(account_id:, card_id:, decision:, digital_wallet_token_id:, direction:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network_details:, network_identifiers:, network_risk_score:, physical_card_id:, presentment_amount:, presentment_currency:, processing_category:, request_details:, settlement_amount:, settlement_currency:, terminal_id:, upcoming_card_payment_id:, verification:)
|
422
|
+
# @!method initialize(account_id:, additional_amounts:, card_id:, decision:, digital_wallet_token_id:, direction:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network_details:, network_identifiers:, network_risk_score:, physical_card_id:, presentment_amount:, presentment_currency:, processing_category:, request_details:, settlement_amount:, settlement_currency:, terminal_id:, upcoming_card_payment_id:, verification:)
|
415
423
|
# Some parameter documentations has been truncated, see
|
416
424
|
# {Increase::Models::RealTimeDecision::CardAuthorization} for more details.
|
417
425
|
#
|
@@ -419,6 +427,8 @@ module Increase
|
|
419
427
|
#
|
420
428
|
# @param account_id [String] The identifier of the Account the authorization will debit.
|
421
429
|
#
|
430
|
+
# @param additional_amounts [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts] Additional amounts associated with the card authorization, such as ATM surcharge
|
431
|
+
#
|
422
432
|
# @param card_id [String] The identifier of the Card that is being authorized.
|
423
433
|
#
|
424
434
|
# @param decision [Symbol, Increase::Models::RealTimeDecision::CardAuthorization::Decision, nil] Whether or not the authorization was approved.
|
@@ -467,6 +477,351 @@ module Increase
|
|
467
477
|
#
|
468
478
|
# @param verification [Increase::Models::RealTimeDecision::CardAuthorization::Verification] Fields related to verification of cardholder-provided values.
|
469
479
|
|
480
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization#additional_amounts
|
481
|
+
class AdditionalAmounts < Increase::Internal::Type::BaseModel
|
482
|
+
# @!attribute clinic
|
483
|
+
# The part of this transaction amount that was for clinic-related services.
|
484
|
+
#
|
485
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Clinic, nil]
|
486
|
+
required :clinic,
|
487
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Clinic },
|
488
|
+
nil?: true
|
489
|
+
|
490
|
+
# @!attribute dental
|
491
|
+
# The part of this transaction amount that was for dental-related services.
|
492
|
+
#
|
493
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental, nil]
|
494
|
+
required :dental,
|
495
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental },
|
496
|
+
nil?: true
|
497
|
+
|
498
|
+
# @!attribute prescription
|
499
|
+
# The part of this transaction amount that was for healthcare prescriptions.
|
500
|
+
#
|
501
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription, nil]
|
502
|
+
required :prescription,
|
503
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription },
|
504
|
+
nil?: true
|
505
|
+
|
506
|
+
# @!attribute surcharge
|
507
|
+
# The surcharge amount charged for this transaction by the merchant.
|
508
|
+
#
|
509
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge, nil]
|
510
|
+
required :surcharge,
|
511
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge },
|
512
|
+
nil?: true
|
513
|
+
|
514
|
+
# @!attribute total_cumulative
|
515
|
+
# The total amount of a series of incremental authorizations, optionally provided.
|
516
|
+
#
|
517
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalCumulative, nil]
|
518
|
+
required :total_cumulative,
|
519
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalCumulative },
|
520
|
+
nil?: true
|
521
|
+
|
522
|
+
# @!attribute total_healthcare
|
523
|
+
# The total amount of healthcare-related additional amounts.
|
524
|
+
#
|
525
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalHealthcare, nil]
|
526
|
+
required :total_healthcare,
|
527
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalHealthcare },
|
528
|
+
nil?: true
|
529
|
+
|
530
|
+
# @!attribute transit
|
531
|
+
# The part of this transaction amount that was for transit-related services.
|
532
|
+
#
|
533
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Transit, nil]
|
534
|
+
required :transit,
|
535
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Transit },
|
536
|
+
nil?: true
|
537
|
+
|
538
|
+
# @!attribute unknown
|
539
|
+
# An unknown additional amount.
|
540
|
+
#
|
541
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Unknown, nil]
|
542
|
+
required :unknown,
|
543
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Unknown },
|
544
|
+
nil?: true
|
545
|
+
|
546
|
+
# @!attribute vision
|
547
|
+
# The part of this transaction amount that was for vision-related services.
|
548
|
+
#
|
549
|
+
# @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Vision, nil]
|
550
|
+
required :vision,
|
551
|
+
-> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Vision },
|
552
|
+
nil?: true
|
553
|
+
|
554
|
+
# @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:)
|
555
|
+
# Some parameter documentations has been truncated, see
|
556
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts} for
|
557
|
+
# more details.
|
558
|
+
#
|
559
|
+
# Additional amounts associated with the card authorization, such as ATM
|
560
|
+
# surcharges fees. These are usually a subset of the `amount` field and are used
|
561
|
+
# to provide more detailed information about the transaction.
|
562
|
+
#
|
563
|
+
# @param clinic [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Clinic, nil] The part of this transaction amount that was for clinic-related services.
|
564
|
+
#
|
565
|
+
# @param dental [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services.
|
566
|
+
#
|
567
|
+
# @param prescription [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions.
|
568
|
+
#
|
569
|
+
# @param surcharge [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant.
|
570
|
+
#
|
571
|
+
# @param total_cumulative [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalCumulative, nil] The total amount of a series of incremental authorizations, optionally provided.
|
572
|
+
#
|
573
|
+
# @param total_healthcare [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalHealthcare, nil] The total amount of healthcare-related additional amounts.
|
574
|
+
#
|
575
|
+
# @param transit [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Transit, nil] The part of this transaction amount that was for transit-related services.
|
576
|
+
#
|
577
|
+
# @param unknown [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Unknown, nil] An unknown additional amount.
|
578
|
+
#
|
579
|
+
# @param vision [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Vision, nil] The part of this transaction amount that was for vision-related services.
|
580
|
+
|
581
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#clinic
|
582
|
+
class Clinic < Increase::Internal::Type::BaseModel
|
583
|
+
# @!attribute amount
|
584
|
+
# The amount in minor units of the `currency` field.
|
585
|
+
#
|
586
|
+
# @return [Integer]
|
587
|
+
required :amount, Integer
|
588
|
+
|
589
|
+
# @!attribute currency
|
590
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
591
|
+
# amount's currency.
|
592
|
+
#
|
593
|
+
# @return [String]
|
594
|
+
required :currency, String
|
595
|
+
|
596
|
+
# @!method initialize(amount:, currency:)
|
597
|
+
# Some parameter documentations has been truncated, see
|
598
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Clinic}
|
599
|
+
# for more details.
|
600
|
+
#
|
601
|
+
# The part of this transaction amount that was for clinic-related services.
|
602
|
+
#
|
603
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
604
|
+
#
|
605
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
606
|
+
end
|
607
|
+
|
608
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#dental
|
609
|
+
class Dental < Increase::Internal::Type::BaseModel
|
610
|
+
# @!attribute amount
|
611
|
+
# The amount in minor units of the `currency` field.
|
612
|
+
#
|
613
|
+
# @return [Integer]
|
614
|
+
required :amount, Integer
|
615
|
+
|
616
|
+
# @!attribute currency
|
617
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
618
|
+
# amount's currency.
|
619
|
+
#
|
620
|
+
# @return [String]
|
621
|
+
required :currency, String
|
622
|
+
|
623
|
+
# @!method initialize(amount:, currency:)
|
624
|
+
# Some parameter documentations has been truncated, see
|
625
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental}
|
626
|
+
# for more details.
|
627
|
+
#
|
628
|
+
# The part of this transaction amount that was for dental-related services.
|
629
|
+
#
|
630
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
631
|
+
#
|
632
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
633
|
+
end
|
634
|
+
|
635
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#prescription
|
636
|
+
class Prescription < Increase::Internal::Type::BaseModel
|
637
|
+
# @!attribute amount
|
638
|
+
# The amount in minor units of the `currency` field.
|
639
|
+
#
|
640
|
+
# @return [Integer]
|
641
|
+
required :amount, Integer
|
642
|
+
|
643
|
+
# @!attribute currency
|
644
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
645
|
+
# amount's currency.
|
646
|
+
#
|
647
|
+
# @return [String]
|
648
|
+
required :currency, String
|
649
|
+
|
650
|
+
# @!method initialize(amount:, currency:)
|
651
|
+
# Some parameter documentations has been truncated, see
|
652
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription}
|
653
|
+
# for more details.
|
654
|
+
#
|
655
|
+
# The part of this transaction amount that was for healthcare prescriptions.
|
656
|
+
#
|
657
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
658
|
+
#
|
659
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
660
|
+
end
|
661
|
+
|
662
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#surcharge
|
663
|
+
class Surcharge < Increase::Internal::Type::BaseModel
|
664
|
+
# @!attribute amount
|
665
|
+
# The amount in minor units of the `currency` field.
|
666
|
+
#
|
667
|
+
# @return [Integer]
|
668
|
+
required :amount, Integer
|
669
|
+
|
670
|
+
# @!attribute currency
|
671
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
672
|
+
# amount's currency.
|
673
|
+
#
|
674
|
+
# @return [String]
|
675
|
+
required :currency, String
|
676
|
+
|
677
|
+
# @!method initialize(amount:, currency:)
|
678
|
+
# Some parameter documentations has been truncated, see
|
679
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge}
|
680
|
+
# for more details.
|
681
|
+
#
|
682
|
+
# The surcharge amount charged for this transaction by the merchant.
|
683
|
+
#
|
684
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
685
|
+
#
|
686
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
687
|
+
end
|
688
|
+
|
689
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#total_cumulative
|
690
|
+
class TotalCumulative < Increase::Internal::Type::BaseModel
|
691
|
+
# @!attribute amount
|
692
|
+
# The amount in minor units of the `currency` field.
|
693
|
+
#
|
694
|
+
# @return [Integer]
|
695
|
+
required :amount, Integer
|
696
|
+
|
697
|
+
# @!attribute currency
|
698
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
699
|
+
# amount's currency.
|
700
|
+
#
|
701
|
+
# @return [String]
|
702
|
+
required :currency, String
|
703
|
+
|
704
|
+
# @!method initialize(amount:, currency:)
|
705
|
+
# Some parameter documentations has been truncated, see
|
706
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalCumulative}
|
707
|
+
# for more details.
|
708
|
+
#
|
709
|
+
# The total amount of a series of incremental authorizations, optionally provided.
|
710
|
+
#
|
711
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
712
|
+
#
|
713
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
714
|
+
end
|
715
|
+
|
716
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#total_healthcare
|
717
|
+
class TotalHealthcare < Increase::Internal::Type::BaseModel
|
718
|
+
# @!attribute amount
|
719
|
+
# The amount in minor units of the `currency` field.
|
720
|
+
#
|
721
|
+
# @return [Integer]
|
722
|
+
required :amount, Integer
|
723
|
+
|
724
|
+
# @!attribute currency
|
725
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
726
|
+
# amount's currency.
|
727
|
+
#
|
728
|
+
# @return [String]
|
729
|
+
required :currency, String
|
730
|
+
|
731
|
+
# @!method initialize(amount:, currency:)
|
732
|
+
# Some parameter documentations has been truncated, see
|
733
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalHealthcare}
|
734
|
+
# for more details.
|
735
|
+
#
|
736
|
+
# The total amount of healthcare-related additional amounts.
|
737
|
+
#
|
738
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
739
|
+
#
|
740
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
741
|
+
end
|
742
|
+
|
743
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#transit
|
744
|
+
class Transit < Increase::Internal::Type::BaseModel
|
745
|
+
# @!attribute amount
|
746
|
+
# The amount in minor units of the `currency` field.
|
747
|
+
#
|
748
|
+
# @return [Integer]
|
749
|
+
required :amount, Integer
|
750
|
+
|
751
|
+
# @!attribute currency
|
752
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
753
|
+
# amount's currency.
|
754
|
+
#
|
755
|
+
# @return [String]
|
756
|
+
required :currency, String
|
757
|
+
|
758
|
+
# @!method initialize(amount:, currency:)
|
759
|
+
# Some parameter documentations has been truncated, see
|
760
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Transit}
|
761
|
+
# for more details.
|
762
|
+
#
|
763
|
+
# The part of this transaction amount that was for transit-related services.
|
764
|
+
#
|
765
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
766
|
+
#
|
767
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
768
|
+
end
|
769
|
+
|
770
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#unknown
|
771
|
+
class Unknown < Increase::Internal::Type::BaseModel
|
772
|
+
# @!attribute amount
|
773
|
+
# The amount in minor units of the `currency` field.
|
774
|
+
#
|
775
|
+
# @return [Integer]
|
776
|
+
required :amount, Integer
|
777
|
+
|
778
|
+
# @!attribute currency
|
779
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
780
|
+
# amount's currency.
|
781
|
+
#
|
782
|
+
# @return [String]
|
783
|
+
required :currency, String
|
784
|
+
|
785
|
+
# @!method initialize(amount:, currency:)
|
786
|
+
# Some parameter documentations has been truncated, see
|
787
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Unknown}
|
788
|
+
# for more details.
|
789
|
+
#
|
790
|
+
# An unknown additional amount.
|
791
|
+
#
|
792
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
793
|
+
#
|
794
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
795
|
+
end
|
796
|
+
|
797
|
+
# @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#vision
|
798
|
+
class Vision < Increase::Internal::Type::BaseModel
|
799
|
+
# @!attribute amount
|
800
|
+
# The amount in minor units of the `currency` field.
|
801
|
+
#
|
802
|
+
# @return [Integer]
|
803
|
+
required :amount, Integer
|
804
|
+
|
805
|
+
# @!attribute currency
|
806
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
807
|
+
# amount's currency.
|
808
|
+
#
|
809
|
+
# @return [String]
|
810
|
+
required :currency, String
|
811
|
+
|
812
|
+
# @!method initialize(amount:, currency:)
|
813
|
+
# Some parameter documentations has been truncated, see
|
814
|
+
# {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Vision}
|
815
|
+
# for more details.
|
816
|
+
#
|
817
|
+
# The part of this transaction amount that was for vision-related services.
|
818
|
+
#
|
819
|
+
# @param amount [Integer] The amount in minor units of the `currency` field.
|
820
|
+
#
|
821
|
+
# @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a
|
822
|
+
end
|
823
|
+
end
|
824
|
+
|
470
825
|
# Whether or not the authorization was approved.
|
471
826
|
#
|
472
827
|
# @see Increase::Models::RealTimeDecision::CardAuthorization#decision
|
data/lib/increase/version.rb
CHANGED