lithic 0.1.0.pre.alpha.53 → 0.1.0.pre.alpha.55

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.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +6 -2
  6. data/lib/lithic/models/account_activity_list_response.rb +1 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  9. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
  11. data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
  12. data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
  13. data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
  14. data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
  15. data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
  16. data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  18. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
  19. data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
  20. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  21. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  22. data/lib/lithic/models/book_transfer_response.rb +5 -5
  23. data/lib/lithic/models/dispute.rb +510 -242
  24. data/lib/lithic/models/dispute_create_response.rb +326 -0
  25. data/lib/lithic/models/dispute_delete_response.rb +326 -0
  26. data/lib/lithic/models/dispute_list_response.rb +326 -0
  27. data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
  28. data/lib/lithic/models/dispute_update_response.rb +326 -0
  29. data/lib/lithic/models/event.rb +213 -69
  30. data/lib/lithic/models/event_list_params.rb +112 -6
  31. data/lib/lithic/models/event_subscription.rb +112 -6
  32. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  33. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  34. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  35. data/lib/lithic/models/financial_account.rb +1 -65
  36. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  37. data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
  38. data/lib/lithic/models/financial_accounts/statement.rb +66 -2
  39. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  40. data/lib/lithic/models/financial_transaction.rb +1 -0
  41. data/lib/lithic/models/payment.rb +29 -18
  42. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  43. data/lib/lithic/models/tokenization.rb +189 -23
  44. data/lib/lithic/models/transaction.rb +12 -116
  45. data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
  46. data/lib/lithic/models/transfer.rb +1 -0
  47. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  48. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  49. data/lib/lithic/resources/disputes.rb +10 -10
  50. data/lib/lithic/resources/payments.rb +5 -1
  51. data/lib/lithic/version.rb +1 -1
  52. data/lib/lithic.rb +8 -3
  53. data/manifest.yaml +1 -0
  54. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  55. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  56. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  57. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  58. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  59. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  60. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  61. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
  63. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
  64. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
  65. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
  66. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
  67. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
  68. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
  70. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
  71. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  72. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  73. data/rbi/lithic/models/book_transfer_response.rbi +14 -11
  74. data/rbi/lithic/models/dispute.rbi +942 -395
  75. data/rbi/lithic/models/dispute_create_response.rbi +599 -0
  76. data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
  77. data/rbi/lithic/models/dispute_list_response.rbi +582 -0
  78. data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
  79. data/rbi/lithic/models/dispute_update_response.rbi +599 -0
  80. data/rbi/lithic/models/event.rbi +348 -111
  81. data/rbi/lithic/models/event_list_params.rbi +155 -25
  82. data/rbi/lithic/models/event_subscription.rbi +155 -25
  83. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  84. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  85. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  86. data/rbi/lithic/models/financial_account.rbi +3 -132
  87. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  88. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
  89. data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
  90. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  91. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  92. data/rbi/lithic/models/payment.rbi +52 -28
  93. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  94. data/rbi/lithic/models/tokenization.rbi +429 -34
  95. data/rbi/lithic/models/transaction.rbi +22 -246
  96. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
  97. data/rbi/lithic/models/transfer.rbi +5 -0
  98. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  99. data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
  100. data/rbi/lithic/resources/disputes.rbi +7 -5
  101. data/rbi/lithic/resources/payments.rbi +6 -0
  102. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  103. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  104. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  105. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  106. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  107. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  108. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
  109. data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
  110. data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
  111. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
  112. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
  113. data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
  114. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
  115. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  116. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
  117. data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
  118. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  119. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  120. data/sig/lithic/models/book_transfer_response.rbs +7 -7
  121. data/sig/lithic/models/dispute.rbs +417 -157
  122. data/sig/lithic/models/dispute_create_response.rbs +210 -0
  123. data/sig/lithic/models/dispute_delete_response.rbs +210 -0
  124. data/sig/lithic/models/dispute_list_response.rbs +210 -0
  125. data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
  126. data/sig/lithic/models/dispute_update_response.rbs +210 -0
  127. data/sig/lithic/models/event.rbs +25 -13
  128. data/sig/lithic/models/event_list_params.rbs +25 -13
  129. data/sig/lithic/models/event_subscription.rbs +25 -13
  130. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  131. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  132. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  133. data/sig/lithic/models/financial_account.rbs +3 -45
  134. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  135. data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
  136. data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
  137. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  138. data/sig/lithic/models/financial_transaction.rbs +2 -0
  139. data/sig/lithic/models/payment.rbs +16 -12
  140. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  141. data/sig/lithic/models/tokenization.rbs +160 -13
  142. data/sig/lithic/models/transaction.rbs +13 -94
  143. data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
  144. data/sig/lithic/models/transfer.rbs +2 -0
  145. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  146. data/sig/lithic/resources/disputes.rbs +5 -5
  147. data/sig/lithic/resources/payments.rbs +2 -0
  148. metadata +23 -11
  149. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  150. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  151. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  152. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  153. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  154. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  155. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  156. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  157. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -525,18 +525,13 @@ module Lithic
525
525
  )
526
526
  end
527
527
 
528
- # The 3DS version used for the authentication
529
- sig { returns(T.nilable(String)) }
530
- attr_accessor :three_ds_version
531
-
532
- # Whether an acquirer exemption applied to the transaction. Not currently
533
- # populated and will be removed in the future.
528
+ # Indicates the method used to authenticate the cardholder.
534
529
  sig do
535
530
  returns(
536
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
531
+ Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
537
532
  )
538
533
  end
539
- attr_accessor :acquirer_exemption
534
+ attr_accessor :authentication_method
540
535
 
541
536
  # Indicates the outcome of the 3DS authentication process.
542
537
  sig do
@@ -578,68 +573,22 @@ module Lithic
578
573
  sig { returns(T.nilable(String)) }
579
574
  attr_accessor :three_ds_authentication_token
580
575
 
581
- # Indicates whether a 3DS challenge flow was used, and if so, what the
582
- # verification method was. (deprecated, use `authentication_result`)
583
- sig do
584
- returns(
585
- Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
586
- )
587
- end
588
- attr_accessor :verification_attempted
589
-
590
- # Indicates whether a transaction is considered 3DS authenticated. (deprecated,
591
- # use `authentication_result`)
592
- sig do
593
- returns(
594
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
595
- )
596
- end
597
- attr_accessor :verification_result
598
-
599
- # Indicates the method used to authenticate the cardholder.
600
- sig do
601
- returns(
602
- T.nilable(
603
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
604
- )
605
- )
606
- end
607
- attr_reader :authentication_method
608
-
609
576
  sig do
610
577
  params(
611
578
  authentication_method:
612
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol
613
- ).void
614
- end
615
- attr_writer :authentication_method
616
-
617
- sig do
618
- params(
619
- three_ds_version: T.nilable(String),
620
- acquirer_exemption:
621
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::OrSymbol,
579
+ Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol,
622
580
  authentication_result:
623
581
  Lithic::Transaction::CardholderAuthentication::AuthenticationResult::OrSymbol,
624
582
  decision_made_by:
625
583
  Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::OrSymbol,
626
584
  liability_shift:
627
585
  Lithic::Transaction::CardholderAuthentication::LiabilityShift::OrSymbol,
628
- three_ds_authentication_token: T.nilable(String),
629
- verification_attempted:
630
- Lithic::Transaction::CardholderAuthentication::VerificationAttempted::OrSymbol,
631
- verification_result:
632
- Lithic::Transaction::CardholderAuthentication::VerificationResult::OrSymbol,
633
- authentication_method:
634
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol
586
+ three_ds_authentication_token: T.nilable(String)
635
587
  ).returns(T.attached_class)
636
588
  end
637
589
  def self.new(
638
- # The 3DS version used for the authentication
639
- three_ds_version:,
640
- # Whether an acquirer exemption applied to the transaction. Not currently
641
- # populated and will be removed in the future.
642
- acquirer_exemption:,
590
+ # Indicates the method used to authenticate the cardholder.
591
+ authentication_method:,
643
592
  # Indicates the outcome of the 3DS authentication process.
644
593
  authentication_result:,
645
594
  # Indicates which party made the 3DS authentication decision.
@@ -659,102 +608,61 @@ module Lithic
659
608
  # the three_ds_authentication.created event webhook) and the transaction. Note
660
609
  # that in cases where liability shift does not occur, this token is matched to the
661
610
  # transaction on a best-effort basis.
662
- three_ds_authentication_token:,
663
- # Indicates whether a 3DS challenge flow was used, and if so, what the
664
- # verification method was. (deprecated, use `authentication_result`)
665
- verification_attempted:,
666
- # Indicates whether a transaction is considered 3DS authenticated. (deprecated,
667
- # use `authentication_result`)
668
- verification_result:,
669
- # Indicates the method used to authenticate the cardholder.
670
- authentication_method: nil
611
+ three_ds_authentication_token:
671
612
  )
672
613
  end
673
614
 
674
615
  sig do
675
616
  override.returns(
676
617
  {
677
- three_ds_version: T.nilable(String),
678
- acquirer_exemption:
679
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol,
618
+ authentication_method:
619
+ Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol,
680
620
  authentication_result:
681
621
  Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol,
682
622
  decision_made_by:
683
623
  Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol,
684
624
  liability_shift:
685
625
  Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol,
686
- three_ds_authentication_token: T.nilable(String),
687
- verification_attempted:
688
- Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol,
689
- verification_result:
690
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol,
691
- authentication_method:
692
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
626
+ three_ds_authentication_token: T.nilable(String)
693
627
  }
694
628
  )
695
629
  end
696
630
  def to_hash
697
631
  end
698
632
 
699
- # Whether an acquirer exemption applied to the transaction. Not currently
700
- # populated and will be removed in the future.
701
- module AcquirerExemption
633
+ # Indicates the method used to authenticate the cardholder.
634
+ module AuthenticationMethod
702
635
  extend Lithic::Internal::Type::Enum
703
636
 
704
637
  TaggedSymbol =
705
638
  T.type_alias do
706
639
  T.all(
707
640
  Symbol,
708
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption
641
+ Lithic::Transaction::CardholderAuthentication::AuthenticationMethod
709
642
  )
710
643
  end
711
644
  OrSymbol = T.type_alias { T.any(Symbol, String) }
712
645
 
713
- AUTHENTICATION_OUTAGE_EXCEPTION =
714
- T.let(
715
- :AUTHENTICATION_OUTAGE_EXCEPTION,
716
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
717
- )
718
- LOW_VALUE =
646
+ FRICTIONLESS =
719
647
  T.let(
720
- :LOW_VALUE,
721
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
648
+ :FRICTIONLESS,
649
+ Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
722
650
  )
723
- MERCHANT_INITIATED_TRANSACTION =
651
+ CHALLENGE =
724
652
  T.let(
725
- :MERCHANT_INITIATED_TRANSACTION,
726
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
653
+ :CHALLENGE,
654
+ Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
727
655
  )
728
656
  NONE =
729
657
  T.let(
730
658
  :NONE,
731
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
732
- )
733
- RECURRING_PAYMENT =
734
- T.let(
735
- :RECURRING_PAYMENT,
736
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
737
- )
738
- SECURE_CORPORATE_PAYMENT =
739
- T.let(
740
- :SECURE_CORPORATE_PAYMENT,
741
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
742
- )
743
- STRONG_CUSTOMER_AUTHENTICATION_DELEGATION =
744
- T.let(
745
- :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION,
746
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
747
- )
748
- TRANSACTION_RISK_ANALYSIS =
749
- T.let(
750
- :TRANSACTION_RISK_ANALYSIS,
751
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
659
+ Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
752
660
  )
753
661
 
754
662
  sig do
755
663
  override.returns(
756
664
  T::Array[
757
- Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
665
+ Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
758
666
  ]
759
667
  )
760
668
  end
@@ -910,138 +818,6 @@ module Lithic
910
818
  def self.values
911
819
  end
912
820
  end
913
-
914
- # Indicates whether a 3DS challenge flow was used, and if so, what the
915
- # verification method was. (deprecated, use `authentication_result`)
916
- module VerificationAttempted
917
- extend Lithic::Internal::Type::Enum
918
-
919
- TaggedSymbol =
920
- T.type_alias do
921
- T.all(
922
- Symbol,
923
- Lithic::Transaction::CardholderAuthentication::VerificationAttempted
924
- )
925
- end
926
- OrSymbol = T.type_alias { T.any(Symbol, String) }
927
-
928
- NONE =
929
- T.let(
930
- :NONE,
931
- Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
932
- )
933
- OTHER =
934
- T.let(
935
- :OTHER,
936
- Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
937
- )
938
-
939
- sig do
940
- override.returns(
941
- T::Array[
942
- Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
943
- ]
944
- )
945
- end
946
- def self.values
947
- end
948
- end
949
-
950
- # Indicates whether a transaction is considered 3DS authenticated. (deprecated,
951
- # use `authentication_result`)
952
- module VerificationResult
953
- extend Lithic::Internal::Type::Enum
954
-
955
- TaggedSymbol =
956
- T.type_alias do
957
- T.all(
958
- Symbol,
959
- Lithic::Transaction::CardholderAuthentication::VerificationResult
960
- )
961
- end
962
- OrSymbol = T.type_alias { T.any(Symbol, String) }
963
-
964
- CANCELLED =
965
- T.let(
966
- :CANCELLED,
967
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
968
- )
969
- FAILED =
970
- T.let(
971
- :FAILED,
972
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
973
- )
974
- FRICTIONLESS =
975
- T.let(
976
- :FRICTIONLESS,
977
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
978
- )
979
- NOT_ATTEMPTED =
980
- T.let(
981
- :NOT_ATTEMPTED,
982
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
983
- )
984
- REJECTED =
985
- T.let(
986
- :REJECTED,
987
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
988
- )
989
- SUCCESS =
990
- T.let(
991
- :SUCCESS,
992
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
993
- )
994
-
995
- sig do
996
- override.returns(
997
- T::Array[
998
- Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
999
- ]
1000
- )
1001
- end
1002
- def self.values
1003
- end
1004
- end
1005
-
1006
- # Indicates the method used to authenticate the cardholder.
1007
- module AuthenticationMethod
1008
- extend Lithic::Internal::Type::Enum
1009
-
1010
- TaggedSymbol =
1011
- T.type_alias do
1012
- T.all(
1013
- Symbol,
1014
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod
1015
- )
1016
- end
1017
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1018
-
1019
- FRICTIONLESS =
1020
- T.let(
1021
- :FRICTIONLESS,
1022
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
1023
- )
1024
- CHALLENGE =
1025
- T.let(
1026
- :CHALLENGE,
1027
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
1028
- )
1029
- NONE =
1030
- T.let(
1031
- :NONE,
1032
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
1033
- )
1034
-
1035
- sig do
1036
- override.returns(
1037
- T::Array[
1038
- Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
1039
- ]
1040
- )
1041
- end
1042
- def self.values
1043
- end
1044
- end
1045
821
  end
1046
822
 
1047
823
  class Merchant < Lithic::Internal::Type::BaseModel
@@ -184,10 +184,10 @@ module Lithic
184
184
  end
185
185
 
186
186
  # The price of the item purchased in merchant currency.
187
- sig { returns(T.nilable(Float)) }
187
+ sig { returns(T.nilable(String)) }
188
188
  attr_reader :amount
189
189
 
190
- sig { params(amount: Float).void }
190
+ sig { params(amount: String).void }
191
191
  attr_writer :amount
192
192
 
193
193
  # A human-readable description of the item.
@@ -205,19 +205,19 @@ module Lithic
205
205
  attr_writer :product_code
206
206
 
207
207
  # The quantity of the item purchased.
208
- sig { returns(T.nilable(Float)) }
208
+ sig { returns(T.nilable(String)) }
209
209
  attr_reader :quantity
210
210
 
211
- sig { params(quantity: Float).void }
211
+ sig { params(quantity: String).void }
212
212
  attr_writer :quantity
213
213
 
214
214
  # An L2/L3 enhanced commercial data line item.
215
215
  sig do
216
216
  params(
217
- amount: Float,
217
+ amount: String,
218
218
  description: String,
219
219
  product_code: String,
220
- quantity: Float
220
+ quantity: String
221
221
  ).returns(T.attached_class)
222
222
  end
223
223
  def self.new(
@@ -235,10 +235,10 @@ module Lithic
235
235
  sig do
236
236
  override.returns(
237
237
  {
238
- amount: Float,
238
+ amount: String,
239
239
  description: String,
240
240
  product_code: String,
241
- quantity: Float
241
+ quantity: String
242
242
  }
243
243
  )
244
244
  end
@@ -550,10 +550,10 @@ module Lithic
550
550
  end
551
551
 
552
552
  # The quantity of fuel purchased.
553
- sig { returns(T.nilable(Float)) }
553
+ sig { returns(T.nilable(String)) }
554
554
  attr_reader :quantity
555
555
 
556
- sig { params(quantity: Float).void }
556
+ sig { params(quantity: String).void }
557
557
  attr_writer :quantity
558
558
 
559
559
  # The type of fuel purchased.
@@ -601,7 +601,7 @@ module Lithic
601
601
 
602
602
  sig do
603
603
  params(
604
- quantity: Float,
604
+ quantity: String,
605
605
  type:
606
606
  Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::Type::OrSymbol,
607
607
  unit_of_measure:
@@ -624,7 +624,7 @@ module Lithic
624
624
  sig do
625
625
  override.returns(
626
626
  {
627
- quantity: Float,
627
+ quantity: String,
628
628
  type:
629
629
  Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::Type::TaggedSymbol,
630
630
  unit_of_measure:
@@ -369,6 +369,11 @@ module Lithic
369
369
  :ACH_RECEIPT_PROCESSED,
370
370
  Lithic::Transfer::Event::Type::TaggedSymbol
371
371
  )
372
+ ACH_RECEIPT_RELEASED =
373
+ T.let(
374
+ :ACH_RECEIPT_RELEASED,
375
+ Lithic::Transfer::Event::Type::TaggedSymbol
376
+ )
372
377
  ACH_RECEIPT_SETTLED =
373
378
  T.let(
374
379
  :ACH_RECEIPT_SETTLED,
@@ -39,7 +39,6 @@ module Lithic
39
39
  ).returns(Lithic::Models::AuthRules::V2::BacktestCreateResponse)
40
40
  end
41
41
  def create(
42
- # Globally unique identifier for the Auth Rule.
43
42
  auth_rule_token,
44
43
  # The end time of the backtest.
45
44
  end_: nil,
@@ -75,9 +74,7 @@ module Lithic
75
74
  ).returns(Lithic::AuthRules::V2::BacktestResults)
76
75
  end
77
76
  def retrieve(
78
- # Globally unique identifier for an Auth Rule backtest.
79
77
  auth_rule_backtest_token,
80
- # Globally unique identifier for the Auth Rule.
81
78
  auth_rule_token:,
82
79
  request_options: {}
83
80
  )
@@ -10,27 +10,39 @@ module Lithic
10
10
  # Creates a new V2 Auth rule in draft mode
11
11
  sig do
12
12
  params(
13
- card_tokens: T::Array[String],
14
- program_level: T::Boolean,
15
- account_tokens: T::Array[String],
16
- business_account_tokens: T::Array[String],
17
- event_stream:
18
- Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol,
19
- name: T.nilable(String),
20
13
  parameters:
21
14
  T.any(
22
15
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
23
16
  Lithic::AuthRules::VelocityLimitParams::OrHash,
24
17
  Lithic::AuthRules::MerchantLockParameters::OrHash,
25
18
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
26
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::OrHash
19
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash
27
20
  ),
28
21
  type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
22
+ card_tokens: T::Array[String],
23
+ program_level: T::Boolean,
24
+ account_tokens: T::Array[String],
25
+ business_account_tokens: T::Array[String],
26
+ event_stream:
27
+ Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol,
28
+ name: T.nilable(String),
29
29
  excluded_card_tokens: T::Array[String],
30
30
  request_options: Lithic::RequestOptions::OrHash
31
31
  ).returns(Lithic::Models::AuthRules::V2CreateResponse)
32
32
  end
33
33
  def create(
34
+ # Parameters for the Auth Rule
35
+ parameters:,
36
+ # The type of Auth Rule. For certain rule types, this determines the event stream
37
+ # during which it will be evaluated. For rules that can be applied to one of
38
+ # several event streams, the effective one is defined by the separate
39
+ # `event_stream` field.
40
+ #
41
+ # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
42
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
43
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
44
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
45
+ type:,
34
46
  # Card tokens to which the Auth Rule applies.
35
47
  card_tokens:,
36
48
  # Whether the Auth Rule applies to all authorizations on the card program.
@@ -43,18 +55,6 @@ module Lithic
43
55
  event_stream: nil,
44
56
  # Auth Rule Name
45
57
  name: nil,
46
- # Parameters for the Auth Rule
47
- parameters: nil,
48
- # The type of Auth Rule. For certain rule types, this determines the event stream
49
- # during which it will be evaluated. For rules that can be applied to one of
50
- # several event streams, the effective one is defined by the separate
51
- # `event_stream` field.
52
- #
53
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
54
- # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
55
- # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
56
- # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
57
- type: nil,
58
58
  # Card tokens to which the Auth Rule does not apply.
59
59
  excluded_card_tokens: nil,
60
60
  request_options: {}
@@ -68,11 +68,7 @@ module Lithic
68
68
  request_options: Lithic::RequestOptions::OrHash
69
69
  ).returns(Lithic::Models::AuthRules::V2RetrieveResponse)
70
70
  end
71
- def retrieve(
72
- # Globally unique identifier for the Auth Rule.
73
- auth_rule_token,
74
- request_options: {}
75
- )
71
+ def retrieve(auth_rule_token, request_options: {})
76
72
  end
77
73
 
78
74
  # Updates a V2 Auth rule's properties
@@ -94,7 +90,6 @@ module Lithic
94
90
  ).returns(Lithic::Models::AuthRules::V2UpdateResponse)
95
91
  end
96
92
  def update(
97
- # Globally unique identifier for the Auth Rule.
98
93
  auth_rule_token,
99
94
  # Account tokens to which the Auth Rule applies.
100
95
  account_tokens: nil,
@@ -167,43 +162,7 @@ module Lithic
167
162
  request_options: Lithic::RequestOptions::OrHash
168
163
  ).void
169
164
  end
170
- def delete(
171
- # Globally unique identifier for the Auth Rule.
172
- auth_rule_token,
173
- request_options: {}
174
- )
175
- end
176
-
177
- # Associates a V2 Auth rule with a card program, the provided account(s) or
178
- # card(s).
179
- #
180
- # Prefer using the `PATCH` method for this operation.
181
- sig do
182
- params(
183
- auth_rule_token: String,
184
- card_tokens: T::Array[String],
185
- program_level: T::Boolean,
186
- account_tokens: T::Array[String],
187
- business_account_tokens: T::Array[String],
188
- excluded_card_tokens: T::Array[String],
189
- request_options: Lithic::RequestOptions::OrHash
190
- ).returns(Lithic::Models::AuthRules::V2ApplyResponse)
191
- end
192
- def apply(
193
- # Globally unique identifier for the Auth Rule.
194
- auth_rule_token,
195
- # Card tokens to which the Auth Rule applies.
196
- card_tokens:,
197
- # Whether the Auth Rule applies to all authorizations on the card program.
198
- program_level:,
199
- # Account tokens to which the Auth Rule applies.
200
- account_tokens: nil,
201
- # Business Account tokens to which the Auth Rule applies.
202
- business_account_tokens: nil,
203
- # Card tokens to which the Auth Rule does not apply.
204
- excluded_card_tokens: nil,
205
- request_options: {}
206
- )
165
+ def delete(auth_rule_token, request_options: {})
207
166
  end
208
167
 
209
168
  # Creates a new draft version of a rule that will be ran in shadow mode.
@@ -220,14 +179,13 @@ module Lithic
220
179
  Lithic::AuthRules::VelocityLimitParams::OrHash,
221
180
  Lithic::AuthRules::MerchantLockParameters::OrHash,
222
181
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
223
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::OrHash
182
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash
224
183
  )
225
184
  ),
226
185
  request_options: Lithic::RequestOptions::OrHash
227
186
  ).returns(Lithic::Models::AuthRules::V2DraftResponse)
228
187
  end
229
188
  def draft(
230
- # Globally unique identifier for the Auth Rule.
231
189
  auth_rule_token,
232
190
  # Parameters for the Auth Rule
233
191
  parameters: nil,
@@ -243,11 +201,7 @@ module Lithic
243
201
  request_options: Lithic::RequestOptions::OrHash
244
202
  ).returns(Lithic::Models::AuthRules::V2PromoteResponse)
245
203
  end
246
- def promote(
247
- # Globally unique identifier for the Auth Rule.
248
- auth_rule_token,
249
- request_options: {}
250
- )
204
+ def promote(auth_rule_token, request_options: {})
251
205
  end
252
206
 
253
207
  # Fetches the current calculated Feature values for the given Auth Rule
@@ -268,7 +222,6 @@ module Lithic
268
222
  ).returns(Lithic::Models::AuthRules::V2RetrieveFeaturesResponse)
269
223
  end
270
224
  def retrieve_features(
271
- # Globally unique identifier for the Auth Rule.
272
225
  auth_rule_token,
273
226
  account_token: nil,
274
227
  card_token: nil,
@@ -298,7 +251,6 @@ module Lithic
298
251
  ).returns(Lithic::Models::AuthRules::V2RetrieveReportResponse)
299
252
  end
300
253
  def retrieve_report(
301
- # Globally unique identifier for the Auth Rule.
302
254
  auth_rule_token,
303
255
  # Start date for the report
304
256
  begin_:,
@@ -12,7 +12,7 @@ module Lithic
12
12
  customer_filed_date: Time,
13
13
  customer_note: String,
14
14
  request_options: Lithic::RequestOptions::OrHash
15
- ).returns(Lithic::Dispute)
15
+ ).returns(Lithic::Models::DisputeCreateResponse)
16
16
  end
17
17
  def create(
18
18
  # Amount to dispute
@@ -34,7 +34,7 @@ module Lithic
34
34
  params(
35
35
  dispute_token: String,
36
36
  request_options: Lithic::RequestOptions::OrHash
37
- ).returns(Lithic::Dispute)
37
+ ).returns(Lithic::Models::DisputeRetrieveResponse)
38
38
  end
39
39
  def retrieve(dispute_token, request_options: {})
40
40
  end
@@ -48,7 +48,7 @@ module Lithic
48
48
  customer_note: String,
49
49
  reason: Lithic::DisputeUpdateParams::Reason::OrSymbol,
50
50
  request_options: Lithic::RequestOptions::OrHash
51
- ).returns(Lithic::Dispute)
51
+ ).returns(Lithic::Models::DisputeUpdateResponse)
52
52
  end
53
53
  def update(
54
54
  dispute_token,
@@ -75,7 +75,9 @@ module Lithic
75
75
  status: Lithic::DisputeListParams::Status::OrSymbol,
76
76
  transaction_tokens: T::Array[String],
77
77
  request_options: Lithic::RequestOptions::OrHash
78
- ).returns(Lithic::Internal::CursorPage[Lithic::Dispute])
78
+ ).returns(
79
+ Lithic::Internal::CursorPage[Lithic::Models::DisputeListResponse]
80
+ )
79
81
  end
80
82
  def list(
81
83
  # Date string in RFC 3339 format. Only entries created after the specified time
@@ -105,7 +107,7 @@ module Lithic
105
107
  params(
106
108
  dispute_token: String,
107
109
  request_options: Lithic::RequestOptions::OrHash
108
- ).returns(Lithic::Dispute)
110
+ ).returns(Lithic::Models::DisputeDeleteResponse)
109
111
  end
110
112
  def delete(dispute_token, request_options: {})
111
113
  end