lithic 0.10.0 → 0.11.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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -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 +15 -0
  7. data/lib/lithic/models/auth_rules/report_stats.rb +46 -81
  8. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +36 -4
  9. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +4 -531
  10. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +17 -26
  11. data/lib/lithic/models/card_bulk_order.rb +8 -3
  12. data/lib/lithic/models/card_bulk_order_create_params.rb +8 -3
  13. data/lib/lithic/models/card_convert_physical_params.rb +5 -3
  14. data/lib/lithic/models/card_create_params.rb +5 -3
  15. data/lib/lithic/models/card_reissue_params.rb +5 -3
  16. data/lib/lithic/models/card_renew_params.rb +5 -3
  17. data/lib/lithic/models/financial_account.rb +1 -0
  18. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  19. data/lib/lithic/models/financial_accounts/statement.rb +11 -4
  20. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  21. data/lib/lithic/models/payment_create_params.rb +13 -1
  22. data/lib/lithic/resources/card_bulk_orders.rb +10 -11
  23. data/lib/lithic/version.rb +1 -1
  24. data/rbi/lithic/internal/util.rbi +8 -0
  25. data/rbi/lithic/models/auth_rules/backtest_stats.rbi +11 -3
  26. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +33 -0
  27. data/rbi/lithic/models/auth_rules/report_stats.rbi +73 -177
  28. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +38 -6
  29. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +3 -1721
  30. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +23 -78
  31. data/rbi/lithic/models/card_bulk_order.rbi +21 -3
  32. data/rbi/lithic/models/card_bulk_order_create_params.rbi +21 -3
  33. data/rbi/lithic/models/card_convert_physical_params.rbi +8 -5
  34. data/rbi/lithic/models/card_create_params.rbi +8 -8
  35. data/rbi/lithic/models/card_reissue_params.rbi +8 -8
  36. data/rbi/lithic/models/card_renew_params.rbi +8 -8
  37. data/rbi/lithic/models/financial_account.rbi +5 -0
  38. data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
  39. data/rbi/lithic/models/financial_accounts/statement.rbi +15 -6
  40. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  41. data/rbi/lithic/models/payment_create_params.rbi +13 -3
  42. data/rbi/lithic/resources/card_bulk_orders.rbi +11 -11
  43. data/rbi/lithic/resources/cards.rbi +8 -4
  44. data/sig/lithic/internal/util.rbs +4 -0
  45. data/sig/lithic/models/auth_rules/backtest_stats.rbs +8 -3
  46. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +6 -0
  47. data/sig/lithic/models/auth_rules/report_stats.rbs +34 -70
  48. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +29 -9
  49. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +4 -667
  50. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +14 -41
  51. data/sig/lithic/models/card_bulk_order.rbs +5 -1
  52. data/sig/lithic/models/card_bulk_order_create_params.rbs +5 -1
  53. data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
  54. data/sig/lithic/models/card_create_params.rbs +2 -2
  55. data/sig/lithic/models/card_reissue_params.rbs +2 -2
  56. data/sig/lithic/models/card_renew_params.rbs +2 -2
  57. data/sig/lithic/models/financial_account.rbs +2 -0
  58. data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
  59. data/sig/lithic/models/financial_accounts/statement.rbs +16 -7
  60. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  61. data/sig/lithic/models/payment_create_params.rbs +8 -3
  62. metadata +2 -2
@@ -334,7 +334,6 @@ module Lithic
334
334
  type card =
335
335
  {
336
336
  token: String,
337
- hostname: String,
338
337
  last_four: String,
339
338
  memo: String,
340
339
  spend_limit: Integer,
@@ -344,58 +343,32 @@ module Lithic
344
343
  }
345
344
 
346
345
  class Card < Lithic::Internal::Type::BaseModel
347
- attr_reader token: String?
346
+ attr_accessor token: String
348
347
 
349
- def token=: (String) -> String
348
+ attr_accessor last_four: String
350
349
 
351
- attr_reader hostname: String?
350
+ attr_accessor memo: String
352
351
 
353
- def hostname=: (String) -> String
352
+ attr_accessor spend_limit: Integer
354
353
 
355
- attr_reader last_four: String?
354
+ attr_accessor spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration
356
355
 
357
- def last_four=: (String) -> String
356
+ attr_accessor state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state
358
357
 
359
- attr_reader memo: String?
360
-
361
- def memo=: (String) -> String
362
-
363
- attr_reader spend_limit: Integer?
364
-
365
- def spend_limit=: (Integer) -> Integer
366
-
367
- attr_reader spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration?
368
-
369
- def spend_limit_duration=: (
370
- Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration
371
- ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration
372
-
373
- attr_reader state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state?
374
-
375
- def state=: (
376
- Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state
377
- ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state
378
-
379
- attr_reader type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_?
380
-
381
- def type=: (
382
- Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
383
- ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
358
+ attr_accessor type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
384
359
 
385
360
  def initialize: (
386
- ?token: String,
387
- ?hostname: String,
388
- ?last_four: String,
389
- ?memo: String,
390
- ?spend_limit: Integer,
391
- ?spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration,
392
- ?state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state,
393
- ?type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
361
+ token: String,
362
+ last_four: String,
363
+ memo: String,
364
+ spend_limit: Integer,
365
+ spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration,
366
+ state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state,
367
+ type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
394
368
  ) -> void
395
369
 
396
370
  def to_hash: -> {
397
371
  token: String,
398
- hostname: String,
399
372
  last_four: String,
400
373
  memo: String,
401
374
  spend_limit: Integer,
@@ -51,12 +51,16 @@ module Lithic
51
51
  updated: Time
52
52
  }
53
53
 
54
- type shipping_method = :BULK_EXPEDITED
54
+ type shipping_method =
55
+ :BULK_EXPEDITED | :BULK_PRIORITY | :BULK_2_DAY | :BULK_EXPRESS
55
56
 
56
57
  module ShippingMethod
57
58
  extend Lithic::Internal::Type::Enum
58
59
 
59
60
  BULK_EXPEDITED: :BULK_EXPEDITED
61
+ BULK_PRIORITY: :BULK_PRIORITY
62
+ BULK_2_DAY: :BULK_2_DAY
63
+ BULK_EXPRESS: :BULK_EXPRESS
60
64
 
61
65
  def self?.values: -> ::Array[Lithic::Models::CardBulkOrder::shipping_method]
62
66
  end
@@ -32,12 +32,16 @@ module Lithic
32
32
  request_options: Lithic::RequestOptions
33
33
  }
34
34
 
35
- type shipping_method = :BULK_EXPEDITED
35
+ type shipping_method =
36
+ :BULK_EXPEDITED | :BULK_PRIORITY | :BULK_2_DAY | :BULK_EXPRESS
36
37
 
37
38
  module ShippingMethod
38
39
  extend Lithic::Internal::Type::Enum
39
40
 
40
41
  BULK_EXPEDITED: :BULK_EXPEDITED
42
+ BULK_PRIORITY: :BULK_PRIORITY
43
+ BULK_2_DAY: :BULK_2_DAY
44
+ BULK_EXPRESS: :BULK_EXPRESS
41
45
 
42
46
  def self?.values: -> ::Array[Lithic::Models::CardBulkOrderCreateParams::shipping_method]
43
47
  end
@@ -52,7 +52,7 @@ module Lithic
52
52
 
53
53
  type shipping_method =
54
54
  :"2_DAY"
55
- | :BULK_EXPEDITED
55
+ | :BULK
56
56
  | :EXPEDITED
57
57
  | :EXPRESS
58
58
  | :PRIORITY
@@ -63,7 +63,7 @@ module Lithic
63
63
  extend Lithic::Internal::Type::Enum
64
64
 
65
65
  SHIPPING_METHOD_2_DAY: :"2_DAY"
66
- BULK_EXPEDITED: :BULK_EXPEDITED
66
+ BULK: :BULK
67
67
  EXPEDITED: :EXPEDITED
68
68
  EXPRESS: :EXPRESS
69
69
  PRIORITY: :PRIORITY
@@ -226,7 +226,7 @@ module Lithic
226
226
 
227
227
  type shipping_method =
228
228
  :"2_DAY"
229
- | :BULK_EXPEDITED
229
+ | :BULK
230
230
  | :EXPEDITED
231
231
  | :EXPRESS
232
232
  | :PRIORITY
@@ -237,7 +237,7 @@ module Lithic
237
237
  extend Lithic::Internal::Type::Enum
238
238
 
239
239
  SHIPPING_METHOD_2_DAY: :"2_DAY"
240
- BULK_EXPEDITED: :BULK_EXPEDITED
240
+ BULK: :BULK
241
241
  EXPEDITED: :EXPEDITED
242
242
  EXPRESS: :EXPRESS
243
243
  PRIORITY: :PRIORITY
@@ -56,7 +56,7 @@ module Lithic
56
56
 
57
57
  type shipping_method =
58
58
  :"2_DAY"
59
- | :BULK_EXPEDITED
59
+ | :BULK
60
60
  | :EXPEDITED
61
61
  | :EXPRESS
62
62
  | :PRIORITY
@@ -67,7 +67,7 @@ module Lithic
67
67
  extend Lithic::Internal::Type::Enum
68
68
 
69
69
  SHIPPING_METHOD_2_DAY: :"2_DAY"
70
- BULK_EXPEDITED: :BULK_EXPEDITED
70
+ BULK: :BULK
71
71
  EXPEDITED: :EXPEDITED
72
72
  EXPRESS: :EXPRESS
73
73
  PRIORITY: :PRIORITY
@@ -66,7 +66,7 @@ module Lithic
66
66
 
67
67
  type shipping_method =
68
68
  :"2_DAY"
69
- | :BULK_EXPEDITED
69
+ | :BULK
70
70
  | :EXPEDITED
71
71
  | :EXPRESS
72
72
  | :PRIORITY
@@ -77,7 +77,7 @@ module Lithic
77
77
  extend Lithic::Internal::Type::Enum
78
78
 
79
79
  SHIPPING_METHOD_2_DAY: :"2_DAY"
80
- BULK_EXPEDITED: :BULK_EXPEDITED
80
+ BULK: :BULK
81
81
  EXPEDITED: :EXPEDITED
82
82
  EXPRESS: :EXPRESS
83
83
  PRIORITY: :PRIORITY
@@ -169,6 +169,7 @@ module Lithic
169
169
  | :COLLECTION
170
170
  | :PROGRAM_BANK_ACCOUNTS_PAYABLE
171
171
  | :EARLY_DIRECT_DEPOSIT_FLOAT
172
+ | :PROVISIONAL_CREDIT_ACCOUNT
172
173
 
173
174
  module Type
174
175
  extend Lithic::Internal::Type::Enum
@@ -184,6 +185,7 @@ module Lithic
184
185
  COLLECTION: :COLLECTION
185
186
  PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE
186
187
  EARLY_DIRECT_DEPOSIT_FLOAT: :EARLY_DIRECT_DEPOSIT_FLOAT
188
+ PROVISIONAL_CREDIT_ACCOUNT: :PROVISIONAL_CREDIT_ACCOUNT
187
189
 
188
190
  def self?.values: -> ::Array[Lithic::Models::FinancialAccount::type_]
189
191
  end
@@ -58,6 +58,7 @@ module Lithic
58
58
  | :BANK_REQUEST
59
59
  | :CHARGED_OFF_DELINQUENT
60
60
  | :INTEREST_AND_FEES_PAUSED
61
+ | :DELINQUENT
61
62
 
62
63
  module Substatus
63
64
  extend Lithic::Internal::Type::Enum
@@ -67,6 +68,7 @@ module Lithic
67
68
  BANK_REQUEST: :BANK_REQUEST
68
69
  CHARGED_OFF_DELINQUENT: :CHARGED_OFF_DELINQUENT
69
70
  INTEREST_AND_FEES_PAUSED: :INTEREST_AND_FEES_PAUSED
71
+ DELINQUENT: :DELINQUENT
70
72
 
71
73
  def self?.values: -> ::Array[Lithic::Models::FinancialAccountUpdateStatusParams::substatus]
72
74
  end
@@ -9,7 +9,7 @@ module Lithic
9
9
  available_credit: Integer,
10
10
  created: Time,
11
11
  credit_limit: Integer,
12
- credit_product_token: String,
12
+ credit_product_token: String?,
13
13
  days_in_billing_cycle: Integer,
14
14
  ending_balance: Integer,
15
15
  financial_account_token: String,
@@ -24,7 +24,8 @@ module Lithic
24
24
  interest_details: Lithic::FinancialAccounts::Statement::InterestDetails?,
25
25
  next_payment_due_date: Date,
26
26
  next_statement_end_date: Date,
27
- payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?
27
+ payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?,
28
+ statement_totals: Lithic::StatementTotals
28
29
  }
29
30
 
30
31
  class Statement < Lithic::Internal::Type::BaseModel
@@ -40,7 +41,7 @@ module Lithic
40
41
 
41
42
  attr_accessor credit_limit: Integer
42
43
 
43
- attr_accessor credit_product_token: String
44
+ attr_accessor credit_product_token: String?
44
45
 
45
46
  attr_accessor days_in_billing_cycle: Integer
46
47
 
@@ -76,6 +77,12 @@ module Lithic
76
77
 
77
78
  attr_accessor payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?
78
79
 
80
+ attr_reader statement_totals: Lithic::StatementTotals?
81
+
82
+ def statement_totals=: (
83
+ Lithic::StatementTotals
84
+ ) -> Lithic::StatementTotals
85
+
79
86
  def initialize: (
80
87
  token: String,
81
88
  account_standing: Lithic::FinancialAccounts::Statement::AccountStanding,
@@ -83,7 +90,7 @@ module Lithic
83
90
  available_credit: Integer,
84
91
  created: Time,
85
92
  credit_limit: Integer,
86
- credit_product_token: String,
93
+ credit_product_token: String?,
87
94
  days_in_billing_cycle: Integer,
88
95
  ending_balance: Integer,
89
96
  financial_account_token: String,
@@ -98,7 +105,8 @@ module Lithic
98
105
  ?interest_details: Lithic::FinancialAccounts::Statement::InterestDetails?,
99
106
  ?next_payment_due_date: Date,
100
107
  ?next_statement_end_date: Date,
101
- ?payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?
108
+ ?payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?,
109
+ ?statement_totals: Lithic::StatementTotals
102
110
  ) -> void
103
111
 
104
112
  def to_hash: -> {
@@ -108,7 +116,7 @@ module Lithic
108
116
  available_credit: Integer,
109
117
  created: Time,
110
118
  credit_limit: Integer,
111
- credit_product_token: String,
119
+ credit_product_token: String?,
112
120
  days_in_billing_cycle: Integer,
113
121
  ending_balance: Integer,
114
122
  financial_account_token: String,
@@ -123,7 +131,8 @@ module Lithic
123
131
  interest_details: Lithic::FinancialAccounts::Statement::InterestDetails?,
124
132
  next_payment_due_date: Date,
125
133
  next_statement_end_date: Date,
126
- payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?
134
+ payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?,
135
+ statement_totals: Lithic::StatementTotals
127
136
  }
128
137
 
129
138
  type account_standing =
@@ -12,6 +12,7 @@ module Lithic
12
12
  | :COLLECTION
13
13
  | :PROGRAM_BANK_ACCOUNTS_PAYABLE
14
14
  | :EARLY_DIRECT_DEPOSIT_FLOAT
15
+ | :PROVISIONAL_CREDIT_ACCOUNT
15
16
 
16
17
  module InstanceFinancialAccountType
17
18
  extend Lithic::Internal::Type::Enum
@@ -27,6 +28,7 @@ module Lithic
27
28
  COLLECTION: :COLLECTION
28
29
  PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE
29
30
  EARLY_DIRECT_DEPOSIT_FLOAT: :EARLY_DIRECT_DEPOSIT_FLOAT
31
+ PROVISIONAL_CREDIT_ACCOUNT: :PROVISIONAL_CREDIT_ACCOUNT
30
32
 
31
33
  def self?.values: -> ::Array[Lithic::Models::instance_financial_account_type]
32
34
  end
@@ -92,7 +92,8 @@ module Lithic
92
92
  {
93
93
  sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code,
94
94
  ach_hold_period: Integer,
95
- addenda: String?
95
+ addenda: String?,
96
+ override_company_name: String?
96
97
  }
97
98
 
98
99
  class MethodAttributes < Lithic::Internal::Type::BaseModel
@@ -104,16 +105,20 @@ module Lithic
104
105
 
105
106
  attr_accessor addenda: String?
106
107
 
108
+ attr_accessor override_company_name: String?
109
+
107
110
  def initialize: (
108
111
  sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code,
109
112
  ?ach_hold_period: Integer,
110
- ?addenda: String?
113
+ ?addenda: String?,
114
+ ?override_company_name: String?
111
115
  ) -> void
112
116
 
113
117
  def to_hash: -> {
114
118
  sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code,
115
119
  ach_hold_period: Integer,
116
- addenda: String?
120
+ addenda: String?,
121
+ override_company_name: String?
117
122
  }
118
123
 
119
124
  type sec_code = :CCD | :PPD | :WEB
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lithic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-23 00:00:00.000000000 Z
11
+ date: 2026-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi