lithic 0.13.0 → 0.15.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.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/transport/base_client.rb +2 -0
  6. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
  7. data/lib/lithic/models/account_retrieve_signals_params.rb +20 -0
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +10 -6
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
  10. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  11. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
  12. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
  13. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +119 -44
  14. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +533 -0
  15. data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +18 -14
  16. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
  17. data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
  18. data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -9
  19. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  20. data/lib/lithic/models/balance.rb +8 -6
  21. data/lib/lithic/models/card_authorization.rb +1266 -0
  22. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
  23. data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
  24. data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
  25. data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
  26. data/lib/lithic/models/card_program.rb +2 -2
  27. data/lib/lithic/models/card_retrieve_signals_params.rb +20 -0
  28. data/lib/lithic/models/event.rb +13 -4
  29. data/lib/lithic/models/event_list_params.rb +7 -2
  30. data/lib/lithic/models/event_subscription.rb +7 -2
  31. data/lib/lithic/models/events/subscription_create_params.rb +7 -2
  32. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  33. data/lib/lithic/models/events/subscription_update_params.rb +7 -2
  34. data/lib/lithic/models/external_bank_account.rb +1 -1
  35. data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
  36. data/lib/lithic/models/financial_accounts/statement.rb +4 -4
  37. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
  38. data/lib/lithic/models/financial_event.rb +1 -0
  39. data/lib/lithic/models/kyb_business_entity.rb +2 -2
  40. data/lib/lithic/models/parsed_webhook_event.rb +4 -1
  41. data/lib/lithic/models/settlement_detail.rb +14 -14
  42. data/lib/lithic/models/signals_response.rb +306 -0
  43. data/lib/lithic/models/statement_totals.rb +6 -6
  44. data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
  45. data/lib/lithic/models/transaction.rb +2 -2
  46. data/lib/lithic/models/transfer_limits_response.rb +12 -12
  47. data/lib/lithic/models.rb +14 -0
  48. data/lib/lithic/resources/accounts.rb +27 -0
  49. data/lib/lithic/resources/auth_rules/v2.rb +1 -1
  50. data/lib/lithic/resources/card_authorizations.rb +45 -0
  51. data/lib/lithic/resources/cards.rb +25 -0
  52. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  53. data/lib/lithic/resources/webhooks.rb +1 -1
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +9 -0
  56. data/rbi/lithic/client.rbi +3 -0
  57. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
  58. data/rbi/lithic/models/account_retrieve_signals_params.rbi +35 -0
  59. data/rbi/lithic/models/auth_rules/auth_rule.rbi +8 -4
  60. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
  61. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
  62. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  63. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +214 -63
  64. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
  65. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +24 -18
  66. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
  67. data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
  68. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +24 -12
  69. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  70. data/rbi/lithic/models/balance.rbi +12 -6
  71. data/rbi/lithic/models/card_authorization.rbi +2540 -0
  72. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
  73. data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
  74. data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
  75. data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
  76. data/rbi/lithic/models/card_program.rbi +3 -6
  77. data/rbi/lithic/models/card_retrieve_signals_params.rbi +35 -0
  78. data/rbi/lithic/models/event.rbi +23 -6
  79. data/rbi/lithic/models/event_list_params.rbi +11 -2
  80. data/rbi/lithic/models/event_subscription.rbi +11 -2
  81. data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
  82. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  83. data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
  84. data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
  85. data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
  86. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
  87. data/rbi/lithic/models/financial_event.rbi +2 -0
  88. data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
  89. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  90. data/rbi/lithic/models/settlement_detail.rbi +15 -15
  91. data/rbi/lithic/models/signals_response.rbi +352 -0
  92. data/rbi/lithic/models/statement_totals.rbi +9 -18
  93. data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
  94. data/rbi/lithic/models/transaction.rbi +3 -3
  95. data/rbi/lithic/models/transfer_limits_response.rbi +48 -48
  96. data/rbi/lithic/models.rbi +17 -0
  97. data/rbi/lithic/resources/accounts.rbi +21 -0
  98. data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
  99. data/rbi/lithic/resources/card_authorizations.rbi +35 -0
  100. data/rbi/lithic/resources/cards.rbi +19 -0
  101. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  102. data/rbi/lithic/resources/webhooks.rbi +4 -1
  103. data/sig/lithic/client.rbs +2 -0
  104. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
  105. data/sig/lithic/models/account_retrieve_signals_params.rbs +23 -0
  106. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  107. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  108. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +29 -3
  109. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
  110. data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
  111. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  112. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  113. data/sig/lithic/models/balance.rbs +17 -9
  114. data/sig/lithic/models/card_authorization.rbs +1038 -0
  115. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
  116. data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
  117. data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
  118. data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
  119. data/sig/lithic/models/card_program.rbs +4 -6
  120. data/sig/lithic/models/card_retrieve_signals_params.rbs +23 -0
  121. data/sig/lithic/models/event.rbs +2 -0
  122. data/sig/lithic/models/event_list_params.rbs +2 -0
  123. data/sig/lithic/models/event_subscription.rbs +2 -0
  124. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  125. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  126. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  127. data/sig/lithic/models/external_bank_account_pause_params.rbs +24 -0
  128. data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
  129. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
  130. data/sig/lithic/models/financial_event.rbs +2 -0
  131. data/sig/lithic/models/kyb_business_entity.rbs +4 -6
  132. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  133. data/sig/lithic/models/settlement_detail.rbs +18 -18
  134. data/sig/lithic/models/signals_response.rbs +170 -0
  135. data/sig/lithic/models/statement_totals.rbs +12 -18
  136. data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
  137. data/sig/lithic/models/transaction.rbs +4 -8
  138. data/sig/lithic/models/transfer_limits_response.rbs +24 -36
  139. data/sig/lithic/models.rbs +14 -0
  140. data/sig/lithic/resources/accounts.rbs +5 -0
  141. data/sig/lithic/resources/card_authorizations.rbs +13 -0
  142. data/sig/lithic/resources/cards.rbs +5 -0
  143. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  144. data/sig/lithic/resources/webhooks.rbs +1 -0
  145. metadata +29 -2
@@ -0,0 +1,170 @@
1
+ module Lithic
2
+ module Models
3
+ type signals_response =
4
+ {
5
+ :approved_txn_amount_m2 => Float?,
6
+ :approved_txn_amount_m2_30d => Float?,
7
+ :approved_txn_amount_m2_7d => Float?,
8
+ :approved_txn_amount_m2_90d => Float?,
9
+ approved_txn_count: Integer?,
10
+ :approved_txn_count_30d => Integer?,
11
+ :approved_txn_count_7d => Integer?,
12
+ :approved_txn_count_90d => Integer?,
13
+ avg_transaction_amount: Float?,
14
+ :avg_transaction_amount_30d => Float?,
15
+ :avg_transaction_amount_7d => Float?,
16
+ :avg_transaction_amount_90d => Float?,
17
+ distinct_country_count: Integer?,
18
+ distinct_mcc_count: Integer?,
19
+ first_txn_at: Time?,
20
+ is_first_transaction: bool?,
21
+ last_cp_country: String?,
22
+ last_cp_postal_code: String?,
23
+ last_cp_timestamp: Time?,
24
+ last_txn_approved_at: Time?,
25
+ seen_countries: ::Array[String]?,
26
+ seen_mccs: ::Array[String]?,
27
+ seen_merchants: ::Array[String]?,
28
+ stdev_transaction_amount: Float?,
29
+ :stdev_transaction_amount_30d => Float?,
30
+ :stdev_transaction_amount_7d => Float?,
31
+ :stdev_transaction_amount_90d => Float?,
32
+ three_ds_success_count: Integer?,
33
+ three_ds_success_rate: Float?,
34
+ three_ds_total_count: Integer?,
35
+ time_since_last_transaction_days: Float?
36
+ }
37
+
38
+ class SignalsResponse < Lithic::Internal::Type::BaseModel
39
+ attr_accessor approved_txn_amount_m2: Float?
40
+
41
+ attr_accessor approved_txn_amount_m2_30d: Float?
42
+
43
+ attr_accessor approved_txn_amount_m2_7d: Float?
44
+
45
+ attr_accessor approved_txn_amount_m2_90d: Float?
46
+
47
+ attr_accessor approved_txn_count: Integer?
48
+
49
+ attr_accessor approved_txn_count_30d: Integer?
50
+
51
+ attr_accessor approved_txn_count_7d: Integer?
52
+
53
+ attr_accessor approved_txn_count_90d: Integer?
54
+
55
+ attr_accessor avg_transaction_amount: Float?
56
+
57
+ attr_accessor avg_transaction_amount_30d: Float?
58
+
59
+ attr_accessor avg_transaction_amount_7d: Float?
60
+
61
+ attr_accessor avg_transaction_amount_90d: Float?
62
+
63
+ attr_accessor distinct_country_count: Integer?
64
+
65
+ attr_accessor distinct_mcc_count: Integer?
66
+
67
+ attr_accessor first_txn_at: Time?
68
+
69
+ attr_accessor is_first_transaction: bool?
70
+
71
+ attr_accessor last_cp_country: String?
72
+
73
+ attr_accessor last_cp_postal_code: String?
74
+
75
+ attr_accessor last_cp_timestamp: Time?
76
+
77
+ attr_accessor last_txn_approved_at: Time?
78
+
79
+ attr_accessor seen_countries: ::Array[String]?
80
+
81
+ attr_accessor seen_mccs: ::Array[String]?
82
+
83
+ attr_accessor seen_merchants: ::Array[String]?
84
+
85
+ attr_accessor stdev_transaction_amount: Float?
86
+
87
+ attr_accessor stdev_transaction_amount_30d: Float?
88
+
89
+ attr_accessor stdev_transaction_amount_7d: Float?
90
+
91
+ attr_accessor stdev_transaction_amount_90d: Float?
92
+
93
+ attr_accessor three_ds_success_count: Integer?
94
+
95
+ attr_accessor three_ds_success_rate: Float?
96
+
97
+ attr_accessor three_ds_total_count: Integer?
98
+
99
+ attr_accessor time_since_last_transaction_days: Float?
100
+
101
+ def initialize: (
102
+ approved_txn_amount_m2: Float?,
103
+ approved_txn_amount_m2_30d: Float?,
104
+ approved_txn_amount_m2_7d: Float?,
105
+ approved_txn_amount_m2_90d: Float?,
106
+ approved_txn_count: Integer?,
107
+ approved_txn_count_30d: Integer?,
108
+ approved_txn_count_7d: Integer?,
109
+ approved_txn_count_90d: Integer?,
110
+ avg_transaction_amount: Float?,
111
+ avg_transaction_amount_30d: Float?,
112
+ avg_transaction_amount_7d: Float?,
113
+ avg_transaction_amount_90d: Float?,
114
+ distinct_country_count: Integer?,
115
+ distinct_mcc_count: Integer?,
116
+ first_txn_at: Time?,
117
+ is_first_transaction: bool?,
118
+ last_cp_country: String?,
119
+ last_cp_postal_code: String?,
120
+ last_cp_timestamp: Time?,
121
+ last_txn_approved_at: Time?,
122
+ seen_countries: ::Array[String]?,
123
+ seen_mccs: ::Array[String]?,
124
+ seen_merchants: ::Array[String]?,
125
+ stdev_transaction_amount: Float?,
126
+ stdev_transaction_amount_30d: Float?,
127
+ stdev_transaction_amount_7d: Float?,
128
+ stdev_transaction_amount_90d: Float?,
129
+ three_ds_success_count: Integer?,
130
+ three_ds_success_rate: Float?,
131
+ three_ds_total_count: Integer?,
132
+ time_since_last_transaction_days: Float?
133
+ ) -> void
134
+
135
+ def to_hash: -> {
136
+ :approved_txn_amount_m2 => Float?,
137
+ :approved_txn_amount_m2_30d => Float?,
138
+ :approved_txn_amount_m2_7d => Float?,
139
+ :approved_txn_amount_m2_90d => Float?,
140
+ approved_txn_count: Integer?,
141
+ :approved_txn_count_30d => Integer?,
142
+ :approved_txn_count_7d => Integer?,
143
+ :approved_txn_count_90d => Integer?,
144
+ avg_transaction_amount: Float?,
145
+ :avg_transaction_amount_30d => Float?,
146
+ :avg_transaction_amount_7d => Float?,
147
+ :avg_transaction_amount_90d => Float?,
148
+ distinct_country_count: Integer?,
149
+ distinct_mcc_count: Integer?,
150
+ first_txn_at: Time?,
151
+ is_first_transaction: bool?,
152
+ last_cp_country: String?,
153
+ last_cp_postal_code: String?,
154
+ last_cp_timestamp: Time?,
155
+ last_txn_approved_at: Time?,
156
+ seen_countries: ::Array[String]?,
157
+ seen_mccs: ::Array[String]?,
158
+ seen_merchants: ::Array[String]?,
159
+ stdev_transaction_amount: Float?,
160
+ :stdev_transaction_amount_30d => Float?,
161
+ :stdev_transaction_amount_7d => Float?,
162
+ :stdev_transaction_amount_90d => Float?,
163
+ three_ds_success_count: Integer?,
164
+ three_ds_success_rate: Float?,
165
+ three_ds_total_count: Integer?,
166
+ time_since_last_transaction_days: Float?
167
+ }
168
+ end
169
+ end
170
+ end
@@ -10,9 +10,9 @@ module Lithic
10
10
  interest: Integer,
11
11
  payments: Integer,
12
12
  purchases: Integer,
13
- credit_details: top,
14
- debit_details: top,
15
- payment_details: top
13
+ credit_details: top?,
14
+ debit_details: top?,
15
+ payment_details: top?
16
16
  }
17
17
 
18
18
  class StatementTotals < Lithic::Internal::Type::BaseModel
@@ -32,17 +32,11 @@ module Lithic
32
32
 
33
33
  attr_accessor purchases: Integer
34
34
 
35
- attr_reader credit_details: top?
35
+ attr_accessor credit_details: top?
36
36
 
37
- def credit_details=: (top) -> top
37
+ attr_accessor debit_details: top?
38
38
 
39
- attr_reader debit_details: top?
40
-
41
- def debit_details=: (top) -> top
42
-
43
- attr_reader payment_details: top?
44
-
45
- def payment_details=: (top) -> top
39
+ attr_accessor payment_details: top?
46
40
 
47
41
  def initialize: (
48
42
  balance_transfers: Integer,
@@ -53,9 +47,9 @@ module Lithic
53
47
  interest: Integer,
54
48
  payments: Integer,
55
49
  purchases: Integer,
56
- ?credit_details: top,
57
- ?debit_details: top,
58
- ?payment_details: top
50
+ ?credit_details: top?,
51
+ ?debit_details: top?,
52
+ ?payment_details: top?
59
53
  ) -> void
60
54
 
61
55
  def to_hash: -> {
@@ -67,9 +61,9 @@ module Lithic
67
61
  interest: Integer,
68
62
  payments: Integer,
69
63
  purchases: Integer,
70
- credit_details: top,
71
- debit_details: top,
72
- payment_details: top
64
+ credit_details: top?,
65
+ debit_details: top?,
66
+ payment_details: top?
73
67
  }
74
68
  end
75
69
  end
@@ -14,6 +14,7 @@ module Lithic
14
14
  | :NETWORK_FAILURE
15
15
  | :GENERIC_DECLINE
16
16
  | :DIGITAL_CARD_ART_REQUIRED
17
+ | :INVALID_PAN
17
18
 
18
19
  module TokenizationDeclineReason
19
20
  extend Lithic::Internal::Type::Enum
@@ -31,6 +32,7 @@ module Lithic
31
32
  NETWORK_FAILURE: :NETWORK_FAILURE
32
33
  GENERIC_DECLINE: :GENERIC_DECLINE
33
34
  DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED
35
+ INVALID_PAN: :INVALID_PAN
34
36
 
35
37
  def self?.values: -> ::Array[Lithic::Models::tokenization_decline_reason]
36
38
  end
@@ -698,7 +698,7 @@ module Lithic
698
698
  rule_results: ::Array[Lithic::Transaction::Event::RuleResult],
699
699
  type: Lithic::Models::Transaction::Event::type_,
700
700
  account_type: Lithic::Models::Transaction::Event::account_type,
701
- network_specific_data: Lithic::Transaction::Event::NetworkSpecificData
701
+ network_specific_data: Lithic::Transaction::Event::NetworkSpecificData?
702
702
  }
703
703
 
704
704
  class Event < Lithic::Internal::Type::BaseModel
@@ -728,11 +728,7 @@ module Lithic
728
728
  Lithic::Models::Transaction::Event::account_type
729
729
  ) -> Lithic::Models::Transaction::Event::account_type
730
730
 
731
- attr_reader network_specific_data: Lithic::Transaction::Event::NetworkSpecificData?
732
-
733
- def network_specific_data=: (
734
- Lithic::Transaction::Event::NetworkSpecificData
735
- ) -> Lithic::Transaction::Event::NetworkSpecificData
731
+ attr_accessor network_specific_data: Lithic::Transaction::Event::NetworkSpecificData?
736
732
 
737
733
  def initialize: (
738
734
  token: String,
@@ -746,7 +742,7 @@ module Lithic
746
742
  rule_results: ::Array[Lithic::Transaction::Event::RuleResult],
747
743
  type: Lithic::Models::Transaction::Event::type_,
748
744
  ?account_type: Lithic::Models::Transaction::Event::account_type,
749
- ?network_specific_data: Lithic::Transaction::Event::NetworkSpecificData
745
+ ?network_specific_data: Lithic::Transaction::Event::NetworkSpecificData?
750
746
  ) -> void
751
747
 
752
748
  def to_hash: -> {
@@ -761,7 +757,7 @@ module Lithic
761
757
  rule_results: ::Array[Lithic::Transaction::Event::RuleResult],
762
758
  type: Lithic::Models::Transaction::Event::type_,
763
759
  account_type: Lithic::Models::Transaction::Event::account_type,
764
- network_specific_data: Lithic::Transaction::Event::NetworkSpecificData
760
+ network_specific_data: Lithic::Transaction::Event::NetworkSpecificData?
765
761
  }
766
762
 
767
763
  type amounts =
@@ -80,38 +80,34 @@ module Lithic
80
80
  debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
81
81
  }
82
82
 
83
- type credit = { limit: Integer, amount_originated: Integer }
83
+ type credit = { limit: Integer, amount_originated: Integer? }
84
84
 
85
85
  class Credit < Lithic::Internal::Type::BaseModel
86
86
  attr_accessor limit: Integer
87
87
 
88
- attr_reader amount_originated: Integer?
89
-
90
- def amount_originated=: (Integer) -> Integer
88
+ attr_accessor amount_originated: Integer?
91
89
 
92
90
  def initialize: (
93
91
  limit: Integer,
94
- ?amount_originated: Integer
92
+ ?amount_originated: Integer?
95
93
  ) -> void
96
94
 
97
- def to_hash: -> { limit: Integer, amount_originated: Integer }
95
+ def to_hash: -> { limit: Integer, amount_originated: Integer? }
98
96
  end
99
97
 
100
- type debit = { limit: Integer, amount_originated: Integer }
98
+ type debit = { limit: Integer, amount_originated: Integer? }
101
99
 
102
100
  class Debit < Lithic::Internal::Type::BaseModel
103
101
  attr_accessor limit: Integer
104
102
 
105
- attr_reader amount_originated: Integer?
106
-
107
- def amount_originated=: (Integer) -> Integer
103
+ attr_accessor amount_originated: Integer?
108
104
 
109
105
  def initialize: (
110
106
  limit: Integer,
111
- ?amount_originated: Integer
107
+ ?amount_originated: Integer?
112
108
  ) -> void
113
109
 
114
- def to_hash: -> { limit: Integer, amount_originated: Integer }
110
+ def to_hash: -> { limit: Integer, amount_originated: Integer? }
115
111
  end
116
112
  end
117
113
 
@@ -136,38 +132,34 @@ module Lithic
136
132
  debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
137
133
  }
138
134
 
139
- type credit = { limit: Integer, amount_originated: Integer }
135
+ type credit = { limit: Integer, amount_originated: Integer? }
140
136
 
141
137
  class Credit < Lithic::Internal::Type::BaseModel
142
138
  attr_accessor limit: Integer
143
139
 
144
- attr_reader amount_originated: Integer?
145
-
146
- def amount_originated=: (Integer) -> Integer
140
+ attr_accessor amount_originated: Integer?
147
141
 
148
142
  def initialize: (
149
143
  limit: Integer,
150
- ?amount_originated: Integer
144
+ ?amount_originated: Integer?
151
145
  ) -> void
152
146
 
153
- def to_hash: -> { limit: Integer, amount_originated: Integer }
147
+ def to_hash: -> { limit: Integer, amount_originated: Integer? }
154
148
  end
155
149
 
156
- type debit = { limit: Integer, amount_originated: Integer }
150
+ type debit = { limit: Integer, amount_originated: Integer? }
157
151
 
158
152
  class Debit < Lithic::Internal::Type::BaseModel
159
153
  attr_accessor limit: Integer
160
154
 
161
- attr_reader amount_originated: Integer?
162
-
163
- def amount_originated=: (Integer) -> Integer
155
+ attr_accessor amount_originated: Integer?
164
156
 
165
157
  def initialize: (
166
158
  limit: Integer,
167
- ?amount_originated: Integer
159
+ ?amount_originated: Integer?
168
160
  ) -> void
169
161
 
170
- def to_hash: -> { limit: Integer, amount_originated: Integer }
162
+ def to_hash: -> { limit: Integer, amount_originated: Integer? }
171
163
  end
172
164
  end
173
165
 
@@ -192,38 +184,34 @@ module Lithic
192
184
  debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
193
185
  }
194
186
 
195
- type credit = { limit: Integer, amount_originated: Integer }
187
+ type credit = { limit: Integer, amount_originated: Integer? }
196
188
 
197
189
  class Credit < Lithic::Internal::Type::BaseModel
198
190
  attr_accessor limit: Integer
199
191
 
200
- attr_reader amount_originated: Integer?
201
-
202
- def amount_originated=: (Integer) -> Integer
192
+ attr_accessor amount_originated: Integer?
203
193
 
204
194
  def initialize: (
205
195
  limit: Integer,
206
- ?amount_originated: Integer
196
+ ?amount_originated: Integer?
207
197
  ) -> void
208
198
 
209
- def to_hash: -> { limit: Integer, amount_originated: Integer }
199
+ def to_hash: -> { limit: Integer, amount_originated: Integer? }
210
200
  end
211
201
 
212
- type debit = { limit: Integer, amount_originated: Integer }
202
+ type debit = { limit: Integer, amount_originated: Integer? }
213
203
 
214
204
  class Debit < Lithic::Internal::Type::BaseModel
215
205
  attr_accessor limit: Integer
216
206
 
217
- attr_reader amount_originated: Integer?
218
-
219
- def amount_originated=: (Integer) -> Integer
207
+ attr_accessor amount_originated: Integer?
220
208
 
221
209
  def initialize: (
222
210
  limit: Integer,
223
- ?amount_originated: Integer
211
+ ?amount_originated: Integer?
224
212
  ) -> void
225
213
 
226
- def to_hash: -> { limit: Integer, amount_originated: Integer }
214
+ def to_hash: -> { limit: Integer, amount_originated: Integer? }
227
215
  end
228
216
  end
229
217
  end
@@ -41,6 +41,8 @@ module Lithic
41
41
 
42
42
  class AccountRetrieveParams = Lithic::Models::AccountRetrieveParams
43
43
 
44
+ class AccountRetrieveSignalsParams = Lithic::Models::AccountRetrieveSignalsParams
45
+
44
46
  class AccountRetrieveSpendLimitsParams = Lithic::Models::AccountRetrieveSpendLimitsParams
45
47
 
46
48
  class AccountSpendLimits = Lithic::Models::AccountSpendLimits
@@ -87,10 +89,16 @@ module Lithic
87
89
 
88
90
  class Card = Lithic::Models::Card
89
91
 
92
+ class CardAuthorization = Lithic::Models::CardAuthorization
93
+
90
94
  class CardAuthorizationApprovalRequestWebhookEvent = Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent
91
95
 
96
+ class CardAuthorizationChallengeResponseParams = Lithic::Models::CardAuthorizationChallengeResponseParams
97
+
92
98
  class CardAuthorizationChallengeResponseWebhookEvent = Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent
93
99
 
100
+ class CardAuthorizationChallengeWebhookEvent = Lithic::Models::CardAuthorizationChallengeWebhookEvent
101
+
94
102
  class CardBulkOrder = Lithic::Models::CardBulkOrder
95
103
 
96
104
  class CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams
@@ -133,6 +141,8 @@ module Lithic
133
141
 
134
142
  class CardRetrieveParams = Lithic::Models::CardRetrieveParams
135
143
 
144
+ class CardRetrieveSignalsParams = Lithic::Models::CardRetrieveSignalsParams
145
+
136
146
  class CardRetrieveSpendLimitsParams = Lithic::Models::CardRetrieveSpendLimitsParams
137
147
 
138
148
  module Cards = Lithic::Models::Cards
@@ -243,6 +253,8 @@ module Lithic
243
253
 
244
254
  class ExternalBankAccountListParams = Lithic::Models::ExternalBankAccountListParams
245
255
 
256
+ class ExternalBankAccountPauseParams = Lithic::Models::ExternalBankAccountPauseParams
257
+
246
258
  class ExternalBankAccountRetrieveParams = Lithic::Models::ExternalBankAccountRetrieveParams
247
259
 
248
260
  class ExternalBankAccountRetryMicroDepositsParams = Lithic::Models::ExternalBankAccountRetryMicroDepositsParams
@@ -437,6 +449,8 @@ module Lithic
437
449
 
438
450
  class ShippingAddress = Lithic::Models::ShippingAddress
439
451
 
452
+ class SignalsResponse = Lithic::Models::SignalsResponse
453
+
440
454
  module SpendLimitDuration = Lithic::Models::SpendLimitDuration
441
455
 
442
456
  class StatementsCreatedWebhookEvent = Lithic::Models::StatementsCreatedWebhookEvent
@@ -27,6 +27,11 @@ module Lithic
27
27
  ?request_options: Lithic::request_opts
28
28
  ) -> Lithic::Internal::CursorPage[Lithic::Account]
29
29
 
30
+ def retrieve_signals: (
31
+ String account_token,
32
+ ?request_options: Lithic::request_opts
33
+ ) -> Lithic::SignalsResponse
34
+
30
35
  def retrieve_spend_limits: (
31
36
  String account_token,
32
37
  ?request_options: Lithic::request_opts
@@ -0,0 +1,13 @@
1
+ module Lithic
2
+ module Resources
3
+ class CardAuthorizations
4
+ def challenge_response: (
5
+ String event_token,
6
+ response: Lithic::Models::CardAuthorizationChallengeResponseParams::response,
7
+ ?request_options: Lithic::request_opts
8
+ ) -> nil
9
+
10
+ def initialize: (client: Lithic::Client) -> void
11
+ end
12
+ end
13
+ end
@@ -108,6 +108,11 @@ module Lithic
108
108
  ?request_options: Lithic::request_opts
109
109
  ) -> Lithic::Card
110
110
 
111
+ def retrieve_signals: (
112
+ String card_token,
113
+ ?request_options: Lithic::request_opts
114
+ ) -> Lithic::SignalsResponse
115
+
111
116
  def retrieve_spend_limits: (
112
117
  String card_token,
113
118
  ?request_options: Lithic::request_opts
@@ -40,6 +40,11 @@ module Lithic
40
40
  ?request_options: Lithic::request_opts
41
41
  ) -> Lithic::Internal::CursorPage[Lithic::Models::ExternalBankAccountListResponse]
42
42
 
43
+ def pause: (
44
+ String external_bank_account_token,
45
+ ?request_options: Lithic::request_opts
46
+ ) -> Lithic::ExternalBankAccount
47
+
43
48
  def retry_micro_deposits: (
44
49
  String external_bank_account_token,
45
50
  ?financial_account_token: String,
@@ -12,6 +12,7 @@ module Lithic
12
12
  | Lithic::AccountHolderVerificationWebhookEvent
13
13
  | Lithic::AccountHolderDocumentUpdatedWebhookEvent
14
14
  | Lithic::CardAuthorizationApprovalRequestWebhookEvent
15
+ | Lithic::CardAuthorizationChallengeWebhookEvent
15
16
  | Lithic::CardAuthorizationChallengeResponseWebhookEvent
16
17
  | Lithic::AuthRulesBacktestReportCreatedWebhookEvent
17
18
  | Lithic::BalanceUpdatedWebhookEvent