lithic 0.2.0 → 0.3.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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +5 -10
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/lithic/internal/util.rb +7 -2
  7. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
  8. data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
  9. data/lib/lithic/models/{asa_request_webhook_event.rb → card_authorization_approval_request_webhook_event.rb} +151 -129
  10. data/lib/lithic/models/external_payment_create_params.rb +15 -1
  11. data/lib/lithic/models/financial_account.rb +33 -25
  12. data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
  13. data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
  14. data/lib/lithic/models/management_operation_create_params.rb +6 -1
  15. data/lib/lithic/models/parsed_webhook_event.rb +3 -4
  16. data/lib/lithic/models/payment.rb +10 -1
  17. data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
  18. data/lib/lithic/models/transaction.rb +2 -0
  19. data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
  20. data/lib/lithic/models/transfer_limits_response.rb +274 -0
  21. data/lib/lithic/models.rb +12 -6
  22. data/lib/lithic/resources/book_transfers.rb +27 -0
  23. data/lib/lithic/resources/cards.rb +1 -5
  24. data/lib/lithic/resources/external_payments.rb +13 -1
  25. data/lib/lithic/resources/financial_accounts.rb +3 -1
  26. data/lib/lithic/resources/management_operations.rb +4 -1
  27. data/lib/lithic/resources/transfer_limits.rb +37 -0
  28. data/lib/lithic/resources/webhooks.rb +3 -2
  29. data/lib/lithic/version.rb +1 -1
  30. data/lib/lithic.rb +6 -7
  31. data/rbi/lithic/client.rbi +3 -3
  32. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
  33. data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
  34. data/rbi/lithic/models/{asa_request_webhook_event.rbi → card_authorization_approval_request_webhook_event.rbi} +394 -256
  35. data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
  36. data/rbi/lithic/models/financial_account.rbi +62 -54
  37. data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
  38. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
  39. data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
  40. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -2
  41. data/rbi/lithic/models/payment.rbi +13 -3
  42. data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
  43. data/rbi/lithic/models/transaction.rbi +10 -0
  44. data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
  45. data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
  46. data/rbi/lithic/models.rbi +12 -6
  47. data/rbi/lithic/resources/book_transfers.rbi +18 -0
  48. data/rbi/lithic/resources/cards.rbi +1 -4
  49. data/rbi/lithic/resources/external_payments.rbi +2 -0
  50. data/rbi/lithic/resources/financial_accounts.rbi +3 -0
  51. data/rbi/lithic/resources/management_operations.rbi +2 -0
  52. data/rbi/lithic/resources/transfer_limits.rbi +28 -0
  53. data/rbi/lithic/resources/webhooks.rbi +2 -124
  54. data/sig/lithic/client.rbs +2 -2
  55. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  56. data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
  57. data/sig/lithic/models/{asa_request_webhook_event.rbs → card_authorization_approval_request_webhook_event.rbs} +161 -156
  58. data/sig/lithic/models/financial_account.rbs +32 -27
  59. data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
  60. data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
  61. data/sig/lithic/models/parsed_webhook_event.rbs +2 -2
  62. data/sig/lithic/models/payment.rbs +10 -3
  63. data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
  64. data/sig/lithic/models/transaction.rbs +4 -0
  65. data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
  66. data/sig/lithic/models/transfer_limits_response.rbs +232 -0
  67. data/sig/lithic/models.rbs +10 -6
  68. data/sig/lithic/resources/book_transfers.rbs +6 -0
  69. data/sig/lithic/resources/cards.rbs +0 -2
  70. data/sig/lithic/resources/financial_accounts.rbs +1 -0
  71. data/sig/lithic/resources/transfer_limits.rbs +12 -0
  72. data/sig/lithic/resources/webhooks.rbs +2 -116
  73. metadata +20 -23
  74. data/lib/lithic/models/aggregate_balance.rb +0 -113
  75. data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
  76. data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
  77. data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
  78. data/lib/lithic/resources/aggregate_balances.rb +0 -38
  79. data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
  80. data/rbi/lithic/models/aggregate_balance.rbi +0 -164
  81. data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
  82. data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
  83. data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
  84. data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
  85. data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
  86. data/sig/lithic/models/aggregate_balance.rbs +0 -78
  87. data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
  88. data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
  89. data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
  90. data/sig/lithic/resources/aggregate_balances.rbs +0 -12
  91. data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
@@ -9,11 +9,12 @@ module Lithic
9
9
  is_for_benefit_of: bool,
10
10
  nickname: String?,
11
11
  status: Lithic::Models::FinancialAccount::status,
12
+ substatus: Lithic::Models::FinancialAccount::substatus?,
12
13
  type: Lithic::Models::FinancialAccount::type_,
13
14
  updated: Time,
15
+ user_defined_status: String?,
14
16
  account_number: String?,
15
- routing_number: String?,
16
- substatus: Lithic::Models::FinancialAccount::substatus?
17
+ routing_number: String?
17
18
  }
18
19
 
19
20
  class FinancialAccount < Lithic::Internal::Type::BaseModel
@@ -31,16 +32,18 @@ module Lithic
31
32
 
32
33
  attr_accessor status: Lithic::Models::FinancialAccount::status
33
34
 
35
+ attr_accessor substatus: Lithic::Models::FinancialAccount::substatus?
36
+
34
37
  attr_accessor type: Lithic::Models::FinancialAccount::type_
35
38
 
36
39
  attr_accessor updated: Time
37
40
 
41
+ attr_accessor user_defined_status: String?
42
+
38
43
  attr_accessor account_number: String?
39
44
 
40
45
  attr_accessor routing_number: String?
41
46
 
42
- attr_accessor substatus: Lithic::Models::FinancialAccount::substatus?
43
-
44
47
  def initialize: (
45
48
  token: String,
46
49
  account_token: String?,
@@ -49,11 +52,12 @@ module Lithic
49
52
  is_for_benefit_of: bool,
50
53
  nickname: String?,
51
54
  status: Lithic::Models::FinancialAccount::status,
55
+ substatus: Lithic::Models::FinancialAccount::substatus?,
52
56
  type: Lithic::Models::FinancialAccount::type_,
53
57
  updated: Time,
58
+ user_defined_status: String?,
54
59
  ?account_number: String?,
55
- ?routing_number: String?,
56
- ?substatus: Lithic::Models::FinancialAccount::substatus?
60
+ ?routing_number: String?
57
61
  ) -> void
58
62
 
59
63
  def to_hash: -> {
@@ -64,11 +68,12 @@ module Lithic
64
68
  is_for_benefit_of: bool,
65
69
  nickname: String?,
66
70
  status: Lithic::Models::FinancialAccount::status,
71
+ substatus: Lithic::Models::FinancialAccount::substatus?,
67
72
  type: Lithic::Models::FinancialAccount::type_,
68
73
  updated: Time,
74
+ user_defined_status: String?,
69
75
  account_number: String?,
70
- routing_number: String?,
71
- substatus: Lithic::Models::FinancialAccount::substatus?
76
+ routing_number: String?
72
77
  }
73
78
 
74
79
  type credit_configuration =
@@ -131,6 +136,25 @@ module Lithic
131
136
  def self?.values: -> ::Array[Lithic::Models::FinancialAccount::status]
132
137
  end
133
138
 
139
+ type substatus =
140
+ :CHARGED_OFF_DELINQUENT
141
+ | :CHARGED_OFF_FRAUD
142
+ | :END_USER_REQUEST
143
+ | :BANK_REQUEST
144
+ | :DELINQUENT
145
+
146
+ module Substatus
147
+ extend Lithic::Internal::Type::Enum
148
+
149
+ CHARGED_OFF_DELINQUENT: :CHARGED_OFF_DELINQUENT
150
+ CHARGED_OFF_FRAUD: :CHARGED_OFF_FRAUD
151
+ END_USER_REQUEST: :END_USER_REQUEST
152
+ BANK_REQUEST: :BANK_REQUEST
153
+ DELINQUENT: :DELINQUENT
154
+
155
+ def self?.values: -> ::Array[Lithic::Models::FinancialAccount::substatus]
156
+ end
157
+
134
158
  type type_ =
135
159
  :ISSUING
136
160
  | :RESERVE
@@ -159,25 +183,6 @@ module Lithic
159
183
 
160
184
  def self?.values: -> ::Array[Lithic::Models::FinancialAccount::type_]
161
185
  end
162
-
163
- type substatus =
164
- :CHARGED_OFF_DELINQUENT
165
- | :CHARGED_OFF_FRAUD
166
- | :END_USER_REQUEST
167
- | :BANK_REQUEST
168
- | :DELINQUENT
169
-
170
- module Substatus
171
- extend Lithic::Internal::Type::Enum
172
-
173
- CHARGED_OFF_DELINQUENT: :CHARGED_OFF_DELINQUENT
174
- CHARGED_OFF_FRAUD: :CHARGED_OFF_FRAUD
175
- END_USER_REQUEST: :END_USER_REQUEST
176
- BANK_REQUEST: :BANK_REQUEST
177
- DELINQUENT: :DELINQUENT
178
-
179
- def self?.values: -> ::Array[Lithic::Models::FinancialAccount::substatus]
180
- end
181
186
  end
182
187
  end
183
188
  end
@@ -3,7 +3,8 @@ module Lithic
3
3
  type financial_account_update_status_params =
4
4
  {
5
5
  status: Lithic::Models::FinancialAccountUpdateStatusParams::status,
6
- substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?
6
+ substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?,
7
+ user_defined_status: String
7
8
  }
8
9
  & Lithic::Internal::Type::request_parameters
9
10
 
@@ -15,15 +16,21 @@ module Lithic
15
16
 
16
17
  attr_accessor substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?
17
18
 
19
+ attr_reader user_defined_status: String?
20
+
21
+ def user_defined_status=: (String) -> String
22
+
18
23
  def initialize: (
19
24
  status: Lithic::Models::FinancialAccountUpdateStatusParams::status,
20
25
  substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?,
26
+ ?user_defined_status: String,
21
27
  ?request_options: Lithic::request_opts
22
28
  ) -> void
23
29
 
24
30
  def to_hash: -> {
25
31
  status: Lithic::Models::FinancialAccountUpdateStatusParams::status,
26
32
  substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?,
33
+ user_defined_status: String,
27
34
  request_options: Lithic::RequestOptions
28
35
  }
29
36
 
@@ -17,7 +17,7 @@ module Lithic
17
17
  financial_account_token: String,
18
18
  interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
19
19
  minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
20
- payment_allocation: Lithic::FinancialAccounts::CategoryBalances,
20
+ payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
21
21
  period_totals: Lithic::StatementTotals,
22
22
  previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
23
23
  starting_balance: Integer,
@@ -56,7 +56,7 @@ module Lithic
56
56
 
57
57
  attr_accessor minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance
58
58
 
59
- attr_accessor payment_allocation: Lithic::FinancialAccounts::CategoryBalances
59
+ attr_accessor payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation
60
60
 
61
61
  attr_accessor period_totals: Lithic::StatementTotals
62
62
 
@@ -87,7 +87,7 @@ module Lithic
87
87
  financial_account_token: String,
88
88
  interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
89
89
  minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
90
- payment_allocation: Lithic::FinancialAccounts::CategoryBalances,
90
+ payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
91
91
  period_totals: Lithic::StatementTotals,
92
92
  previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
93
93
  starting_balance: Integer,
@@ -112,7 +112,7 @@ module Lithic
112
112
  financial_account_token: String,
113
113
  interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
114
114
  minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
115
- payment_allocation: Lithic::FinancialAccounts::CategoryBalances,
115
+ payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
116
116
  period_totals: Lithic::StatementTotals,
117
117
  previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
118
118
  starting_balance: Integer,
@@ -342,6 +342,48 @@ module Lithic
342
342
  def to_hash: -> { amount: Integer, remaining: Integer }
343
343
  end
344
344
 
345
+ type payment_allocation =
346
+ {
347
+ fee_details: Lithic::CategoryDetails?,
348
+ fees: Integer,
349
+ interest: Integer,
350
+ interest_details: Lithic::CategoryDetails?,
351
+ principal: Integer,
352
+ principal_details: Lithic::CategoryDetails?
353
+ }
354
+
355
+ class PaymentAllocation < Lithic::Internal::Type::BaseModel
356
+ attr_accessor fee_details: Lithic::CategoryDetails?
357
+
358
+ attr_accessor fees: Integer
359
+
360
+ attr_accessor interest: Integer
361
+
362
+ attr_accessor interest_details: Lithic::CategoryDetails?
363
+
364
+ attr_accessor principal: Integer
365
+
366
+ attr_accessor principal_details: Lithic::CategoryDetails?
367
+
368
+ def initialize: (
369
+ fee_details: Lithic::CategoryDetails?,
370
+ fees: Integer,
371
+ interest: Integer,
372
+ interest_details: Lithic::CategoryDetails?,
373
+ principal: Integer,
374
+ principal_details: Lithic::CategoryDetails?
375
+ ) -> void
376
+
377
+ def to_hash: -> {
378
+ fee_details: Lithic::CategoryDetails?,
379
+ fees: Integer,
380
+ interest: Integer,
381
+ interest_details: Lithic::CategoryDetails?,
382
+ principal: Integer,
383
+ principal_details: Lithic::CategoryDetails?
384
+ }
385
+ end
386
+
345
387
  type previous_statement_balance =
346
388
  { amount: Integer, remaining: Integer }
347
389
 
@@ -7,7 +7,7 @@ module Lithic
7
7
  | Lithic::ParsedWebhookEvent::LegacyPayload
8
8
  | Lithic::AccountHolderVerificationWebhookEvent
9
9
  | Lithic::AccountHolderDocumentUpdatedWebhookEvent
10
- | Lithic::AsaRequestWebhookEvent
10
+ | Lithic::CardAuthorizationApprovalRequestWebhookEvent
11
11
  | Lithic::TokenizationDecisioningRequestWebhookEvent
12
12
  | Lithic::AuthRulesBacktestReportCreatedWebhookEvent
13
13
  | Lithic::BalanceUpdatedWebhookEvent
@@ -55,7 +55,7 @@ module Lithic
55
55
  | Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent
56
56
  | Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent
57
57
  | Lithic::TokenizationUpdatedWebhookEvent
58
- | Lithic::ThreeDSAuthentication
58
+ | Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent
59
59
  | Lithic::DisputeTransactionCreatedWebhookEvent
60
60
  | Lithic::DisputeTransactionUpdatedWebhookEvent
61
61
 
@@ -194,7 +194,8 @@ module Lithic
194
194
  created: Time,
195
195
  result: Lithic::Models::Payment::Event::result,
196
196
  type: Lithic::Models::Payment::Event::type_,
197
- detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result]
197
+ detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result],
198
+ external_id: String?
198
199
  }
199
200
 
200
201
  class Event < Lithic::Internal::Type::BaseModel
@@ -214,13 +215,16 @@ module Lithic
214
215
  ::Array[Lithic::Models::Payment::Event::detailed_result]
215
216
  ) -> ::Array[Lithic::Models::Payment::Event::detailed_result]
216
217
 
218
+ attr_accessor external_id: String?
219
+
217
220
  def initialize: (
218
221
  token: String,
219
222
  amount: Integer,
220
223
  created: Time,
221
224
  result: Lithic::Models::Payment::Event::result,
222
225
  type: Lithic::Models::Payment::Event::type_,
223
- ?detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result]
226
+ ?detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result],
227
+ ?external_id: String?
224
228
  ) -> void
225
229
 
226
230
  def to_hash: -> {
@@ -229,7 +233,8 @@ module Lithic
229
233
  created: Time,
230
234
  result: Lithic::Models::Payment::Event::result,
231
235
  type: Lithic::Models::Payment::Event::type_,
232
- detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result]
236
+ detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result],
237
+ external_id: String?
233
238
  }
234
239
 
235
240
  type result = :APPROVED | :DECLINED
@@ -519,6 +524,7 @@ module Lithic
519
524
  | :WIRE_INBOUND_ADMIN
520
525
  | :WIRE_OUTBOUND_PAYMENT
521
526
  | :WIRE_OUTBOUND_ADMIN
527
+ | :WIRE_DRAWDOWN_REQUEST
522
528
 
523
529
  module Type
524
530
  extend Lithic::Internal::Type::Enum
@@ -531,6 +537,7 @@ module Lithic
531
537
  WIRE_INBOUND_ADMIN: :WIRE_INBOUND_ADMIN
532
538
  WIRE_OUTBOUND_PAYMENT: :WIRE_OUTBOUND_PAYMENT
533
539
  WIRE_OUTBOUND_ADMIN: :WIRE_OUTBOUND_ADMIN
540
+ WIRE_DRAWDOWN_REQUEST: :WIRE_DRAWDOWN_REQUEST
534
541
 
535
542
  def self?.values: -> ::Array[Lithic::Models::Payment::type_]
536
543
  end
@@ -0,0 +1,22 @@
1
+ module Lithic
2
+ module Models
3
+ type three_ds_authentication_approval_request_webhook_event =
4
+ { event_type: :"three_ds_authentication.approval_request" }
5
+
6
+ class ThreeDSAuthenticationApprovalRequestWebhookEvent < Lithic::Models::ThreeDSAuthentication
7
+ def event_type: -> :"three_ds_authentication.approval_request"
8
+
9
+ def event_type=: (
10
+ :"three_ds_authentication.approval_request" _
11
+ ) -> :"three_ds_authentication.approval_request"
12
+
13
+ def initialize: (
14
+ ?event_type: :"three_ds_authentication.approval_request"
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ event_type: :"three_ds_authentication.approval_request"
19
+ }
20
+ end
21
+ end
22
+ end
@@ -787,6 +787,7 @@ module Lithic
787
787
  | :AUTH_RULE_ALLOWED_MCC
788
788
  | :AUTH_RULE_BLOCKED_COUNTRY
789
789
  | :AUTH_RULE_BLOCKED_MCC
790
+ | :AUTH_RULE
790
791
  | :CARD_CLOSED
791
792
  | :CARD_CRYPTOGRAM_VALIDATION_FAILURE
792
793
  | :CARD_EXPIRED
@@ -847,6 +848,7 @@ module Lithic
847
848
  AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC
848
849
  AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY
849
850
  AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC
851
+ AUTH_RULE: :AUTH_RULE
850
852
  CARD_CLOSED: :CARD_CLOSED
851
853
  CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE
852
854
  CARD_EXPIRED: :CARD_EXPIRED
@@ -1133,6 +1135,7 @@ module Lithic
1133
1135
  | :AUTH_RULE_ALLOWED_MCC
1134
1136
  | :AUTH_RULE_BLOCKED_COUNTRY
1135
1137
  | :AUTH_RULE_BLOCKED_MCC
1138
+ | :AUTH_RULE
1136
1139
  | :CARD_CLOSED
1137
1140
  | :CARD_CRYPTOGRAM_VALIDATION_FAILURE
1138
1141
  | :CARD_EXPIRED
@@ -1193,6 +1196,7 @@ module Lithic
1193
1196
  AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC
1194
1197
  AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY
1195
1198
  AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC
1199
+ AUTH_RULE: :AUTH_RULE
1196
1200
  CARD_CLOSED: :CARD_CLOSED
1197
1201
  CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE
1198
1202
  CARD_EXPIRED: :CARD_EXPIRED
@@ -0,0 +1,22 @@
1
+ module Lithic
2
+ module Models
3
+ type transfer_limit_list_params =
4
+ { date: Date } & Lithic::Internal::Type::request_parameters
5
+
6
+ class TransferLimitListParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ attr_reader date: Date?
11
+
12
+ def date=: (Date) -> Date
13
+
14
+ def initialize: (
15
+ ?date: Date,
16
+ ?request_options: Lithic::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> { date: Date, request_options: Lithic::RequestOptions }
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,232 @@
1
+ module Lithic
2
+ module Models
3
+ type transfer_limits_response =
4
+ { data: ::Array[Lithic::TransferLimitsResponse::Data], has_more: bool }
5
+
6
+ class TransferLimitsResponse < Lithic::Internal::Type::BaseModel
7
+ attr_accessor data: ::Array[Lithic::TransferLimitsResponse::Data]
8
+
9
+ attr_accessor has_more: bool
10
+
11
+ def initialize: (
12
+ data: ::Array[Lithic::TransferLimitsResponse::Data],
13
+ has_more: bool
14
+ ) -> void
15
+
16
+ def to_hash: -> {
17
+ data: ::Array[Lithic::TransferLimitsResponse::Data],
18
+ has_more: bool
19
+ }
20
+
21
+ type data =
22
+ {
23
+ company_id: String,
24
+ daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit,
25
+ date: Date,
26
+ is_fbo: bool,
27
+ monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit,
28
+ program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
29
+ }
30
+
31
+ class Data < Lithic::Internal::Type::BaseModel
32
+ attr_accessor company_id: String
33
+
34
+ attr_accessor daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit
35
+
36
+ attr_accessor date: Date
37
+
38
+ attr_accessor is_fbo: bool
39
+
40
+ attr_accessor monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit
41
+
42
+ attr_accessor program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
43
+
44
+ def initialize: (
45
+ company_id: String,
46
+ daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit,
47
+ date: Date,
48
+ is_fbo: bool,
49
+ monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit,
50
+ program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
51
+ ) -> void
52
+
53
+ def to_hash: -> {
54
+ company_id: String,
55
+ daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit,
56
+ date: Date,
57
+ is_fbo: bool,
58
+ monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit,
59
+ program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction
60
+ }
61
+
62
+ type daily_limit =
63
+ {
64
+ credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit,
65
+ debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
66
+ }
67
+
68
+ class DailyLimit < Lithic::Internal::Type::BaseModel
69
+ attr_accessor credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit
70
+
71
+ attr_accessor debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
72
+
73
+ def initialize: (
74
+ credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit,
75
+ debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
76
+ ) -> void
77
+
78
+ def to_hash: -> {
79
+ credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit,
80
+ debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit
81
+ }
82
+
83
+ type credit = { limit: Integer, amount_originated: Integer }
84
+
85
+ class Credit < Lithic::Internal::Type::BaseModel
86
+ attr_accessor limit: Integer
87
+
88
+ attr_reader amount_originated: Integer?
89
+
90
+ def amount_originated=: (Integer) -> Integer
91
+
92
+ def initialize: (
93
+ limit: Integer,
94
+ ?amount_originated: Integer
95
+ ) -> void
96
+
97
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
98
+ end
99
+
100
+ type debit = { limit: Integer, amount_originated: Integer }
101
+
102
+ class Debit < Lithic::Internal::Type::BaseModel
103
+ attr_accessor limit: Integer
104
+
105
+ attr_reader amount_originated: Integer?
106
+
107
+ def amount_originated=: (Integer) -> Integer
108
+
109
+ def initialize: (
110
+ limit: Integer,
111
+ ?amount_originated: Integer
112
+ ) -> void
113
+
114
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
115
+ end
116
+ end
117
+
118
+ type monthly_limit =
119
+ {
120
+ credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit,
121
+ debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
122
+ }
123
+
124
+ class MonthlyLimit < Lithic::Internal::Type::BaseModel
125
+ attr_accessor credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit
126
+
127
+ attr_accessor debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
128
+
129
+ def initialize: (
130
+ credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit,
131
+ debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
132
+ ) -> void
133
+
134
+ def to_hash: -> {
135
+ credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit,
136
+ debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit
137
+ }
138
+
139
+ type credit = { limit: Integer, amount_originated: Integer }
140
+
141
+ class Credit < Lithic::Internal::Type::BaseModel
142
+ attr_accessor limit: Integer
143
+
144
+ attr_reader amount_originated: Integer?
145
+
146
+ def amount_originated=: (Integer) -> Integer
147
+
148
+ def initialize: (
149
+ limit: Integer,
150
+ ?amount_originated: Integer
151
+ ) -> void
152
+
153
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
154
+ end
155
+
156
+ type debit = { limit: Integer, amount_originated: Integer }
157
+
158
+ class Debit < Lithic::Internal::Type::BaseModel
159
+ attr_accessor limit: Integer
160
+
161
+ attr_reader amount_originated: Integer?
162
+
163
+ def amount_originated=: (Integer) -> Integer
164
+
165
+ def initialize: (
166
+ limit: Integer,
167
+ ?amount_originated: Integer
168
+ ) -> void
169
+
170
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
171
+ end
172
+ end
173
+
174
+ type program_limit_per_transaction =
175
+ {
176
+ credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit,
177
+ debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
178
+ }
179
+
180
+ class ProgramLimitPerTransaction < Lithic::Internal::Type::BaseModel
181
+ attr_accessor credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit
182
+
183
+ attr_accessor debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
184
+
185
+ def initialize: (
186
+ credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit,
187
+ debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
188
+ ) -> void
189
+
190
+ def to_hash: -> {
191
+ credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit,
192
+ debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit
193
+ }
194
+
195
+ type credit = { limit: Integer, amount_originated: Integer }
196
+
197
+ class Credit < Lithic::Internal::Type::BaseModel
198
+ attr_accessor limit: Integer
199
+
200
+ attr_reader amount_originated: Integer?
201
+
202
+ def amount_originated=: (Integer) -> Integer
203
+
204
+ def initialize: (
205
+ limit: Integer,
206
+ ?amount_originated: Integer
207
+ ) -> void
208
+
209
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
210
+ end
211
+
212
+ type debit = { limit: Integer, amount_originated: Integer }
213
+
214
+ class Debit < Lithic::Internal::Type::BaseModel
215
+ attr_accessor limit: Integer
216
+
217
+ attr_reader amount_originated: Integer?
218
+
219
+ def amount_originated=: (Integer) -> Integer
220
+
221
+ def initialize: (
222
+ limit: Integer,
223
+ ?amount_originated: Integer
224
+ ) -> void
225
+
226
+ def to_hash: -> { limit: Integer, amount_originated: Integer }
227
+ end
228
+ end
229
+ end
230
+ end
231
+ end
232
+ end
@@ -49,14 +49,8 @@ module Lithic
49
49
 
50
50
  class AddressUpdate = Lithic::Models::AddressUpdate
51
51
 
52
- class AggregateBalance = Lithic::Models::AggregateBalance
53
-
54
- class AggregateBalanceListParams = Lithic::Models::AggregateBalanceListParams
55
-
56
52
  class APIStatus = Lithic::Models::APIStatus
57
53
 
58
- class AsaRequestWebhookEvent = Lithic::Models::AsaRequestWebhookEvent
59
-
60
54
  module AuthRules = Lithic::Models::AuthRules
61
55
 
62
56
  class AuthRulesBacktestReportCreatedWebhookEvent = Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent
@@ -81,6 +75,8 @@ module Lithic
81
75
 
82
76
  class BookTransferRetrieveParams = Lithic::Models::BookTransferRetrieveParams
83
77
 
78
+ class BookTransferRetryParams = Lithic::Models::BookTransferRetryParams
79
+
84
80
  class BookTransferReverseParams = Lithic::Models::BookTransferReverseParams
85
81
 
86
82
  class BookTransferTransactionCreatedWebhookEvent = Lithic::Models::BookTransferTransactionCreatedWebhookEvent
@@ -89,6 +85,8 @@ module Lithic
89
85
 
90
86
  class Card = Lithic::Models::Card
91
87
 
88
+ class CardAuthorizationApprovalRequestWebhookEvent = Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent
89
+
92
90
  class CardBulkOrder = Lithic::Models::CardBulkOrder
93
91
 
94
92
  class CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams
@@ -431,6 +429,8 @@ module Lithic
431
429
 
432
430
  class ThreeDSAuthentication = Lithic::Models::ThreeDSAuthentication
433
431
 
432
+ class ThreeDSAuthenticationApprovalRequestWebhookEvent = Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent
433
+
434
434
  class ThreeDSAuthenticationChallengeWebhookEvent = Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent
435
435
 
436
436
  class ThreeDSAuthenticationCreatedWebhookEvent = Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent
@@ -511,6 +511,10 @@ module Lithic
511
511
 
512
512
  class TransferCreateParams = Lithic::Models::TransferCreateParams
513
513
 
514
+ class TransferLimitListParams = Lithic::Models::TransferLimitListParams
515
+
516
+ class TransferLimitsResponse = Lithic::Models::TransferLimitsResponse
517
+
514
518
  module VerificationMethod = Lithic::Models::VerificationMethod
515
519
 
516
520
  class WalletDecisioningInfo = Lithic::Models::WalletDecisioningInfo
@@ -35,6 +35,12 @@ module Lithic
35
35
  ?request_options: Lithic::request_opts
36
36
  ) -> Lithic::Internal::CursorPage[Lithic::BookTransferResponse]
37
37
 
38
+ def retry_: (
39
+ String book_transfer_token,
40
+ retry_token: String,
41
+ ?request_options: Lithic::request_opts
42
+ ) -> Lithic::BookTransferResponse
43
+
38
44
  def reverse: (
39
45
  String book_transfer_token,
40
46
  ?memo: String,
@@ -1,8 +1,6 @@
1
1
  module Lithic
2
2
  module Resources
3
3
  class Cards
4
- attr_reader aggregate_balances: Lithic::Resources::Cards::AggregateBalances
5
-
6
4
  attr_reader balances: Lithic::Resources::Cards::Balances
7
5
 
8
6
  attr_reader financial_transactions: Lithic::Resources::Cards::FinancialTransactions