lithic 0.10.0 → 0.12.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 (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +49 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/util.rb +22 -7
  5. data/lib/lithic/models/auth_rules/backtest_stats.rb +9 -1
  6. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +158 -1
  7. data/lib/lithic/models/auth_rules/report_stats.rb +46 -81
  8. data/lib/lithic/models/auth_rules/rule_feature.rb +47 -1
  9. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  10. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +36 -4
  11. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +4 -531
  12. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +17 -26
  13. data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +103 -0
  14. data/lib/lithic/models/card_bulk_order.rb +8 -3
  15. data/lib/lithic/models/card_bulk_order_create_params.rb +8 -3
  16. data/lib/lithic/models/card_convert_physical_params.rb +5 -3
  17. data/lib/lithic/models/card_create_params.rb +5 -3
  18. data/lib/lithic/models/card_reissue_params.rb +5 -3
  19. data/lib/lithic/models/card_renew_params.rb +5 -3
  20. data/lib/lithic/models/event.rb +5 -0
  21. data/lib/lithic/models/event_list_params.rb +3 -0
  22. data/lib/lithic/models/event_subscription.rb +3 -0
  23. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  24. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  25. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  26. data/lib/lithic/models/external_bank_account_set_verification_method_params.rb +55 -0
  27. data/lib/lithic/models/financial_account.rb +1 -0
  28. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  29. data/lib/lithic/models/financial_accounts/statement.rb +11 -4
  30. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  31. data/lib/lithic/models/parsed_webhook_event.rb +3 -1
  32. data/lib/lithic/models/payment_create_params.rb +13 -1
  33. data/lib/lithic/models.rb +6 -0
  34. data/lib/lithic/resources/card_bulk_orders.rb +10 -11
  35. data/lib/lithic/resources/external_bank_accounts.rb +31 -0
  36. data/lib/lithic/resources/webhooks.rb +1 -1
  37. data/lib/lithic/version.rb +1 -1
  38. data/lib/lithic.rb +2 -0
  39. data/rbi/lithic/internal/util.rbi +8 -0
  40. data/rbi/lithic/models/auth_rules/backtest_stats.rbi +11 -3
  41. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +370 -3
  42. data/rbi/lithic/models/auth_rules/report_stats.rbi +73 -177
  43. data/rbi/lithic/models/auth_rules/rule_feature.rbi +104 -1
  44. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -3
  45. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +38 -6
  46. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +3 -1721
  47. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +23 -78
  48. data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +175 -0
  49. data/rbi/lithic/models/card_bulk_order.rbi +21 -3
  50. data/rbi/lithic/models/card_bulk_order_create_params.rbi +21 -3
  51. data/rbi/lithic/models/card_convert_physical_params.rbi +8 -5
  52. data/rbi/lithic/models/card_create_params.rbi +8 -8
  53. data/rbi/lithic/models/card_reissue_params.rbi +8 -8
  54. data/rbi/lithic/models/card_renew_params.rbi +8 -8
  55. data/rbi/lithic/models/event.rbi +11 -0
  56. data/rbi/lithic/models/event_list_params.rbi +7 -0
  57. data/rbi/lithic/models/event_subscription.rbi +7 -0
  58. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  59. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  60. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  61. data/rbi/lithic/models/external_bank_account_set_verification_method_params.rbi +111 -0
  62. data/rbi/lithic/models/financial_account.rbi +5 -0
  63. data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
  64. data/rbi/lithic/models/financial_accounts/statement.rbi +15 -6
  65. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  66. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  67. data/rbi/lithic/models/payment_create_params.rbi +13 -3
  68. data/rbi/lithic/models.rbi +6 -0
  69. data/rbi/lithic/resources/card_bulk_orders.rbi +11 -11
  70. data/rbi/lithic/resources/cards.rbi +8 -4
  71. data/rbi/lithic/resources/external_bank_accounts.rbi +22 -0
  72. data/rbi/lithic/resources/webhooks.rbi +1 -0
  73. data/sig/lithic/internal/util.rbs +4 -0
  74. data/sig/lithic/models/auth_rules/backtest_stats.rbs +8 -3
  75. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +93 -3
  76. data/sig/lithic/models/auth_rules/report_stats.rbs +34 -70
  77. data/sig/lithic/models/auth_rules/rule_feature.rbs +42 -0
  78. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +29 -9
  79. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +4 -667
  80. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +14 -41
  81. data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +76 -0
  82. data/sig/lithic/models/card_bulk_order.rbs +5 -1
  83. data/sig/lithic/models/card_bulk_order_create_params.rbs +5 -1
  84. data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
  85. data/sig/lithic/models/card_create_params.rbs +2 -2
  86. data/sig/lithic/models/card_reissue_params.rbs +2 -2
  87. data/sig/lithic/models/card_renew_params.rbs +2 -2
  88. data/sig/lithic/models/event.rbs +2 -0
  89. data/sig/lithic/models/event_list_params.rbs +2 -0
  90. data/sig/lithic/models/event_subscription.rbs +2 -0
  91. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  92. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  93. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  94. data/sig/lithic/models/external_bank_account_set_verification_method_params.rbs +51 -0
  95. data/sig/lithic/models/financial_account.rbs +2 -0
  96. data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
  97. data/sig/lithic/models/financial_accounts/statement.rbs +16 -7
  98. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  99. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  100. data/sig/lithic/models/payment_create_params.rbs +8 -3
  101. data/sig/lithic/models.rbs +4 -0
  102. data/sig/lithic/resources/external_bank_accounts.rbs +7 -0
  103. data/sig/lithic/resources/webhooks.rbs +1 -0
  104. metadata +8 -2
@@ -86,6 +86,8 @@ module Lithic
86
86
  # created.
87
87
  # - book_transfer_transaction.updated: Occurs when a book transfer transaction is
88
88
  # updated.
89
+ # - card_authorization.challenge_response: Occurs when a cardholder responds to an
90
+ # SMS challenge during card authorization.
89
91
  # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
90
92
  # data is processed for a transaction event.
91
93
  # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
@@ -217,6 +219,11 @@ module Lithic
217
219
  :"book_transfer_transaction.updated",
218
220
  Lithic::EventSubscription::EventType::TaggedSymbol
219
221
  )
222
+ CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
223
+ T.let(
224
+ :"card_authorization.challenge_response",
225
+ Lithic::EventSubscription::EventType::TaggedSymbol
226
+ )
220
227
  CARD_TRANSACTION_ENHANCED_DATA_CREATED =
221
228
  T.let(
222
229
  :"card_transaction.enhanced_data.created",
@@ -113,6 +113,8 @@ module Lithic
113
113
  # created.
114
114
  # - book_transfer_transaction.updated: Occurs when a book transfer transaction is
115
115
  # updated.
116
+ # - card_authorization.challenge_response: Occurs when a cardholder responds to an
117
+ # SMS challenge during card authorization.
116
118
  # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
117
119
  # data is processed for a transaction event.
118
120
  # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
@@ -246,6 +248,11 @@ module Lithic
246
248
  :"book_transfer_transaction.updated",
247
249
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
248
250
  )
251
+ CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
252
+ T.let(
253
+ :"card_authorization.challenge_response",
254
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
255
+ )
249
256
  CARD_TRANSACTION_ENHANCED_DATA_CREATED =
250
257
  T.let(
251
258
  :"card_transaction.enhanced_data.created",
@@ -118,6 +118,11 @@ module Lithic
118
118
  :"book_transfer_transaction.updated",
119
119
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
120
120
  )
121
+ CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
122
+ T.let(
123
+ :"card_authorization.challenge_response",
124
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
125
+ )
121
126
  CARD_TRANSACTION_ENHANCED_DATA_CREATED =
122
127
  T.let(
123
128
  :"card_transaction.enhanced_data.created",
@@ -119,6 +119,8 @@ module Lithic
119
119
  # created.
120
120
  # - book_transfer_transaction.updated: Occurs when a book transfer transaction is
121
121
  # updated.
122
+ # - card_authorization.challenge_response: Occurs when a cardholder responds to an
123
+ # SMS challenge during card authorization.
122
124
  # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial
123
125
  # data is processed for a transaction event.
124
126
  # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial
@@ -252,6 +254,11 @@ module Lithic
252
254
  :"book_transfer_transaction.updated",
253
255
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
254
256
  )
257
+ CARD_AUTHORIZATION_CHALLENGE_RESPONSE =
258
+ T.let(
259
+ :"card_authorization.challenge_response",
260
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
261
+ )
255
262
  CARD_TRANSACTION_ENHANCED_DATA_CREATED =
256
263
  T.let(
257
264
  :"card_transaction.enhanced_data.created",
@@ -0,0 +1,111 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class ExternalBankAccountSetVerificationMethodParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Lithic::ExternalBankAccountSetVerificationMethodParams,
13
+ Lithic::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig { returns(String) }
18
+ attr_accessor :external_bank_account_token
19
+
20
+ # The verification method to set for the external bank account
21
+ sig do
22
+ returns(
23
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod::OrSymbol
24
+ )
25
+ end
26
+ attr_accessor :verification_method
27
+
28
+ # The financial account token of the operating account to fund the micro deposits.
29
+ # Required when verification_method is MICRO_DEPOSIT or PRENOTE.
30
+ sig { returns(T.nilable(String)) }
31
+ attr_reader :financial_account_token
32
+
33
+ sig { params(financial_account_token: String).void }
34
+ attr_writer :financial_account_token
35
+
36
+ sig do
37
+ params(
38
+ external_bank_account_token: String,
39
+ verification_method:
40
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod::OrSymbol,
41
+ financial_account_token: String,
42
+ request_options: Lithic::RequestOptions::OrHash
43
+ ).returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+ external_bank_account_token:,
47
+ # The verification method to set for the external bank account
48
+ verification_method:,
49
+ # The financial account token of the operating account to fund the micro deposits.
50
+ # Required when verification_method is MICRO_DEPOSIT or PRENOTE.
51
+ financial_account_token: nil,
52
+ request_options: {}
53
+ )
54
+ end
55
+
56
+ sig do
57
+ override.returns(
58
+ {
59
+ external_bank_account_token: String,
60
+ verification_method:
61
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod::OrSymbol,
62
+ financial_account_token: String,
63
+ request_options: Lithic::RequestOptions
64
+ }
65
+ )
66
+ end
67
+ def to_hash
68
+ end
69
+
70
+ # The verification method to set for the external bank account
71
+ module VerificationMethod
72
+ extend Lithic::Internal::Type::Enum
73
+
74
+ TaggedSymbol =
75
+ T.type_alias do
76
+ T.all(
77
+ Symbol,
78
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod
79
+ )
80
+ end
81
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
82
+
83
+ MICRO_DEPOSIT =
84
+ T.let(
85
+ :MICRO_DEPOSIT,
86
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod::TaggedSymbol
87
+ )
88
+ PRENOTE =
89
+ T.let(
90
+ :PRENOTE,
91
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod::TaggedSymbol
92
+ )
93
+ EXTERNALLY_VERIFIED =
94
+ T.let(
95
+ :EXTERNALLY_VERIFIED,
96
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod::TaggedSymbol
97
+ )
98
+
99
+ sig do
100
+ override.returns(
101
+ T::Array[
102
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod::TaggedSymbol
103
+ ]
104
+ )
105
+ end
106
+ def self.values
107
+ end
108
+ end
109
+ end
110
+ end
111
+ end
@@ -349,6 +349,11 @@ module Lithic
349
349
  :EARLY_DIRECT_DEPOSIT_FLOAT,
350
350
  Lithic::FinancialAccount::Type::TaggedSymbol
351
351
  )
352
+ PROVISIONAL_CREDIT_ACCOUNT =
353
+ T.let(
354
+ :PROVISIONAL_CREDIT_ACCOUNT,
355
+ Lithic::FinancialAccount::Type::TaggedSymbol
356
+ )
352
357
 
353
358
  sig do
354
359
  override.returns(
@@ -159,6 +159,11 @@ module Lithic
159
159
  :INTEREST_AND_FEES_PAUSED,
160
160
  Lithic::FinancialAccountUpdateStatusParams::Substatus::TaggedSymbol
161
161
  )
162
+ DELINQUENT =
163
+ T.let(
164
+ :DELINQUENT,
165
+ Lithic::FinancialAccountUpdateStatusParams::Substatus::TaggedSymbol
166
+ )
162
167
 
163
168
  sig do
164
169
  override.returns(
@@ -50,7 +50,7 @@ module Lithic
50
50
  attr_accessor :credit_limit
51
51
 
52
52
  # Globally unique identifier for a credit product
53
- sig { returns(String) }
53
+ sig { returns(T.nilable(String)) }
54
54
  attr_accessor :credit_product_token
55
55
 
56
56
  # Number of days in the billing cycle
@@ -154,6 +154,12 @@ module Lithic
154
154
  end
155
155
  attr_writer :payoff_details
156
156
 
157
+ sig { returns(T.nilable(Lithic::StatementTotals)) }
158
+ attr_reader :statement_totals
159
+
160
+ sig { params(statement_totals: Lithic::StatementTotals::OrHash).void }
161
+ attr_writer :statement_totals
162
+
157
163
  sig do
158
164
  params(
159
165
  token: String,
@@ -163,7 +169,7 @@ module Lithic
163
169
  available_credit: Integer,
164
170
  created: Time,
165
171
  credit_limit: Integer,
166
- credit_product_token: String,
172
+ credit_product_token: T.nilable(String),
167
173
  days_in_billing_cycle: Integer,
168
174
  ending_balance: Integer,
169
175
  financial_account_token: String,
@@ -185,7 +191,8 @@ module Lithic
185
191
  payoff_details:
186
192
  T.nilable(
187
193
  Lithic::FinancialAccounts::Statement::PayoffDetails::OrHash
188
- )
194
+ ),
195
+ statement_totals: Lithic::StatementTotals::OrHash
189
196
  ).returns(T.attached_class)
190
197
  end
191
198
  def self.new(
@@ -227,7 +234,8 @@ module Lithic
227
234
  # Date when the next billing period will end
228
235
  next_statement_end_date: nil,
229
236
  # Details on number and size of payments to pay off balance
230
- payoff_details: nil
237
+ payoff_details: nil,
238
+ statement_totals: nil
231
239
  )
232
240
  end
233
241
 
@@ -241,7 +249,7 @@ module Lithic
241
249
  available_credit: Integer,
242
250
  created: Time,
243
251
  credit_limit: Integer,
244
- credit_product_token: String,
252
+ credit_product_token: T.nilable(String),
245
253
  days_in_billing_cycle: Integer,
246
254
  ending_balance: Integer,
247
255
  financial_account_token: String,
@@ -261,7 +269,8 @@ module Lithic
261
269
  next_payment_due_date: Date,
262
270
  next_statement_end_date: Date,
263
271
  payoff_details:
264
- T.nilable(Lithic::FinancialAccounts::Statement::PayoffDetails)
272
+ T.nilable(Lithic::FinancialAccounts::Statement::PayoffDetails),
273
+ statement_totals: Lithic::StatementTotals
265
274
  }
266
275
  )
267
276
  end
@@ -50,6 +50,11 @@ module Lithic
50
50
  :EARLY_DIRECT_DEPOSIT_FLOAT,
51
51
  Lithic::InstanceFinancialAccountType::TaggedSymbol
52
52
  )
53
+ PROVISIONAL_CREDIT_ACCOUNT =
54
+ T.let(
55
+ :PROVISIONAL_CREDIT_ACCOUNT,
56
+ Lithic::InstanceFinancialAccountType::TaggedSymbol
57
+ )
53
58
 
54
59
  sig do
55
60
  override.returns(
@@ -16,6 +16,7 @@ module Lithic
16
16
  Lithic::AccountHolderVerificationWebhookEvent,
17
17
  Lithic::AccountHolderDocumentUpdatedWebhookEvent,
18
18
  Lithic::CardAuthorizationApprovalRequestWebhookEvent,
19
+ Lithic::CardAuthorizationChallengeResponseWebhookEvent,
19
20
  Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
20
21
  Lithic::BalanceUpdatedWebhookEvent,
21
22
  Lithic::BookTransferTransactionCreatedWebhookEvent,
@@ -171,19 +171,28 @@ module Lithic
171
171
  sig { returns(T.nilable(String)) }
172
172
  attr_accessor :addenda
173
173
 
174
+ # Value to override the configured company name with. Can only be used if allowed
175
+ # to override
176
+ sig { returns(T.nilable(String)) }
177
+ attr_accessor :override_company_name
178
+
174
179
  sig do
175
180
  params(
176
181
  sec_code:
177
182
  Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol,
178
183
  ach_hold_period: Integer,
179
- addenda: T.nilable(String)
184
+ addenda: T.nilable(String),
185
+ override_company_name: T.nilable(String)
180
186
  ).returns(T.attached_class)
181
187
  end
182
188
  def self.new(
183
189
  sec_code:,
184
190
  # Number of days to hold the ACH payment
185
191
  ach_hold_period: nil,
186
- addenda: nil
192
+ addenda: nil,
193
+ # Value to override the configured company name with. Can only be used if allowed
194
+ # to override
195
+ override_company_name: nil
187
196
  )
188
197
  end
189
198
 
@@ -193,7 +202,8 @@ module Lithic
193
202
  sec_code:
194
203
  Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol,
195
204
  ach_hold_period: Integer,
196
- addenda: T.nilable(String)
205
+ addenda: T.nilable(String),
206
+ override_company_name: T.nilable(String)
197
207
  }
198
208
  )
199
209
  end
@@ -108,6 +108,9 @@ module Lithic
108
108
  CardAuthorizationApprovalRequestWebhookEvent =
109
109
  Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent
110
110
 
111
+ CardAuthorizationChallengeResponseWebhookEvent =
112
+ Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent
113
+
111
114
  CardBulkOrder = Lithic::Models::CardBulkOrder
112
115
 
113
116
  CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams
@@ -285,6 +288,9 @@ module Lithic
285
288
 
286
289
  ExternalBankAccounts = Lithic::Models::ExternalBankAccounts
287
290
 
291
+ ExternalBankAccountSetVerificationMethodParams =
292
+ Lithic::Models::ExternalBankAccountSetVerificationMethodParams
293
+
288
294
  ExternalBankAccountUnpauseParams =
289
295
  Lithic::Models::ExternalBankAccountUnpauseParams
290
296
 
@@ -3,12 +3,11 @@
3
3
  module Lithic
4
4
  module Resources
5
5
  class CardBulkOrders
6
- # Create a new bulk order for physical card shipments **[BETA]**. Cards can be
7
- # added to the order via the POST /v1/cards endpoint by specifying the
8
- # bulk_order_token. Lock the order via PATCH
9
- # /v1/card_bulk_orders/{bulk_order_token} to prepare for shipment. Please work
10
- # with your Customer Success Manager and card personalization bureau to ensure
11
- # bulk shipping is supported for your program.
6
+ # Create a new bulk order for physical card shipments. Cards can be added to the
7
+ # order via the POST /v1/cards endpoint by specifying the bulk_order_token. Lock
8
+ # the order via PATCH /v1/card_bulk_orders/{bulk_order_token} to prepare for
9
+ # shipment. Please work with your Customer Success Manager and card
10
+ # personalization bureau to ensure bulk shipping is supported for your program.
12
11
  sig do
13
12
  params(
14
13
  customer_product_id: String,
@@ -24,13 +23,14 @@ module Lithic
24
23
  customer_product_id:,
25
24
  # Shipping address for all cards in this bulk order
26
25
  shipping_address:,
27
- # Shipping method for all cards in this bulk order
26
+ # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
27
+ # BULK_EXPRESS are only available with Perfect Plastic Printing
28
28
  shipping_method:,
29
29
  request_options: {}
30
30
  )
31
31
  end
32
32
 
33
- # Retrieve a specific bulk order by token **[BETA]**
33
+ # Retrieve a specific bulk order by token
34
34
  sig do
35
35
  params(
36
36
  bulk_order_token: String,
@@ -44,8 +44,8 @@ module Lithic
44
44
  )
45
45
  end
46
46
 
47
- # Update a bulk order **[BETA]**. Primarily used to lock the order, preventing
48
- # additional cards from being added
47
+ # Update a bulk order. Primarily used to lock the order, preventing additional
48
+ # cards from being added
49
49
  sig do
50
50
  params(
51
51
  bulk_order_token: String,
@@ -62,7 +62,7 @@ module Lithic
62
62
  )
63
63
  end
64
64
 
65
- # List bulk orders for physical card shipments **[BETA]**
65
+ # List bulk orders for physical card shipments
66
66
  sig do
67
67
  params(
68
68
  begin_: Time,
@@ -153,7 +153,8 @@ module Lithic
153
153
  # tracking
154
154
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
155
155
  # or similar international option, with tracking
156
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
156
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
157
+ # shipping method and timeline are inherited from the parent bulk order.
157
158
  shipping_method: nil,
158
159
  # Body param: Amount (in cents) to limit approved authorizations (e.g. 100000
159
160
  # would be a $1,000 limit). Transaction requests above the spend limit will be
@@ -383,7 +384,8 @@ module Lithic
383
384
  # tracking
384
385
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
385
386
  # or similar international option, with tracking
386
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
387
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
388
+ # shipping method and timeline are inherited from the parent bulk order.
387
389
  shipping_method: nil,
388
390
  request_options: {}
389
391
  )
@@ -519,7 +521,8 @@ module Lithic
519
521
  # tracking
520
522
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
521
523
  # or similar international option, with tracking
522
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
524
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
525
+ # shipping method and timeline are inherited from the parent bulk order.
523
526
  shipping_method: nil,
524
527
  request_options: {}
525
528
  )
@@ -576,7 +579,8 @@ module Lithic
576
579
  # tracking
577
580
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
578
581
  # or similar international option, with tracking
579
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
582
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
583
+ # shipping method and timeline are inherited from the parent bulk order.
580
584
  shipping_method: nil,
581
585
  request_options: {}
582
586
  )
@@ -146,6 +146,28 @@ module Lithic
146
146
  )
147
147
  end
148
148
 
149
+ # Update the verification method for an external bank account. Verification method
150
+ # can only be updated if the `verification_state` is `PENDING`.
151
+ sig do
152
+ params(
153
+ external_bank_account_token: String,
154
+ verification_method:
155
+ Lithic::ExternalBankAccountSetVerificationMethodParams::VerificationMethod::OrSymbol,
156
+ financial_account_token: String,
157
+ request_options: Lithic::RequestOptions::OrHash
158
+ ).returns(Lithic::ExternalBankAccount)
159
+ end
160
+ def set_verification_method(
161
+ external_bank_account_token,
162
+ # The verification method to set for the external bank account
163
+ verification_method:,
164
+ # The financial account token of the operating account to fund the micro deposits.
165
+ # Required when verification_method is MICRO_DEPOSIT or PRENOTE.
166
+ financial_account_token: nil,
167
+ request_options: {}
168
+ )
169
+ end
170
+
149
171
  # Unpause an external bank account
150
172
  sig do
151
173
  params(
@@ -17,6 +17,7 @@ module Lithic
17
17
  Lithic::AccountHolderVerificationWebhookEvent,
18
18
  Lithic::AccountHolderDocumentUpdatedWebhookEvent,
19
19
  Lithic::CardAuthorizationApprovalRequestWebhookEvent,
20
+ Lithic::CardAuthorizationChallengeResponseWebhookEvent,
20
21
  Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
21
22
  Lithic::BalanceUpdatedWebhookEvent,
22
23
  Lithic::BookTransferTransactionCreatedWebhookEvent,
@@ -45,8 +45,12 @@ module Lithic
45
45
  -> top?
46
46
  } -> top?
47
47
 
48
+ RFC_3986_NOT_PCHARS: Regexp
49
+
48
50
  def self?.uri_origin: (URI::Generic uri) -> String
49
51
 
52
+ def self?.encode_path: (String | Integer path) -> String
53
+
50
54
  def self?.interpolate_path: (String | ::Array[String] path) -> String
51
55
 
52
56
  def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]]
@@ -53,7 +53,8 @@ module Lithic
53
53
  {
54
54
  decision: Lithic::Models::AuthRules::BacktestStats::Example::decision,
55
55
  event_token: String,
56
- timestamp: Time
56
+ timestamp: Time,
57
+ transaction_token: String?
57
58
  }
58
59
 
59
60
  class Example < Lithic::Internal::Type::BaseModel
@@ -71,16 +72,20 @@ module Lithic
71
72
 
72
73
  def timestamp=: (Time) -> Time
73
74
 
75
+ attr_accessor transaction_token: String?
76
+
74
77
  def initialize: (
75
78
  ?decision: Lithic::Models::AuthRules::BacktestStats::Example::decision,
76
79
  ?event_token: String,
77
- ?timestamp: Time
80
+ ?timestamp: Time,
81
+ ?transaction_token: String?
78
82
  ) -> void
79
83
 
80
84
  def to_hash: -> {
81
85
  decision: Lithic::Models::AuthRules::BacktestStats::Example::decision,
82
86
  event_token: String,
83
- timestamp: Time
87
+ timestamp: Time,
88
+ transaction_token: String?
84
89
  }
85
90
 
86
91
  type decision = :APPROVED | :DECLINED | :CHALLENGED