lithic 0.9.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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/util.rb +22 -7
  5. data/lib/lithic/models/account_holder_create_params.rb +2 -1
  6. data/lib/lithic/models/account_holder_update_params.rb +2 -1
  7. data/lib/lithic/models/account_holder_updated_webhook_event.rb +2 -1
  8. data/lib/lithic/models/auth_rules/backtest_stats.rb +9 -1
  9. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +41 -0
  10. data/lib/lithic/models/auth_rules/report_stats.rb +46 -81
  11. data/lib/lithic/models/auth_rules/rule_feature.rb +1 -1
  12. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +36 -4
  13. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +4 -531
  14. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +112 -30
  15. data/lib/lithic/models/card_bulk_order.rb +8 -3
  16. data/lib/lithic/models/card_bulk_order_create_params.rb +8 -3
  17. data/lib/lithic/models/card_convert_physical_params.rb +5 -3
  18. data/lib/lithic/models/card_create_params.rb +5 -3
  19. data/lib/lithic/models/card_reissue_params.rb +5 -3
  20. data/lib/lithic/models/card_renew_params.rb +5 -3
  21. data/lib/lithic/models/carrier.rb +7 -2
  22. data/lib/lithic/models/financial_account.rb +1 -0
  23. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  24. data/lib/lithic/models/financial_accounts/statement.rb +11 -4
  25. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  26. data/lib/lithic/models/kyb.rb +2 -1
  27. data/lib/lithic/models/parsed_webhook_event.rb +2 -1
  28. data/lib/lithic/models/payment.rb +14 -1
  29. data/lib/lithic/models/payment_create_params.rb +13 -1
  30. data/lib/lithic/models/transaction.rb +93 -4
  31. data/lib/lithic/resources/card_bulk_orders.rb +10 -11
  32. data/lib/lithic/version.rb +1 -1
  33. data/lib/lithic.rb +1 -1
  34. data/rbi/lithic/internal/util.rbi +8 -0
  35. data/rbi/lithic/models/account_holder_create_params.rbi +4 -2
  36. data/rbi/lithic/models/account_holder_update_params.rbi +4 -2
  37. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +4 -2
  38. data/rbi/lithic/models/auth_rules/backtest_stats.rbi +11 -3
  39. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +86 -0
  40. data/rbi/lithic/models/auth_rules/report_stats.rbi +73 -177
  41. data/rbi/lithic/models/auth_rules/rule_feature.rbi +1 -1
  42. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +38 -6
  43. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +3 -1721
  44. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +194 -82
  45. data/rbi/lithic/models/card_bulk_order.rbi +21 -3
  46. data/rbi/lithic/models/card_bulk_order_create_params.rbi +21 -3
  47. data/rbi/lithic/models/card_convert_physical_params.rbi +8 -5
  48. data/rbi/lithic/models/card_create_params.rbi +8 -8
  49. data/rbi/lithic/models/card_reissue_params.rbi +8 -8
  50. data/rbi/lithic/models/card_renew_params.rbi +8 -8
  51. data/rbi/lithic/models/carrier.rbi +6 -2
  52. data/rbi/lithic/models/financial_account.rbi +5 -0
  53. data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
  54. data/rbi/lithic/models/financial_accounts/statement.rbi +15 -6
  55. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  56. data/rbi/lithic/models/kyb.rbi +4 -2
  57. data/rbi/lithic/models/parsed_webhook_event.rbi +4 -2
  58. data/rbi/lithic/models/payment.rbi +10 -0
  59. data/rbi/lithic/models/payment_create_params.rbi +13 -3
  60. data/rbi/lithic/models/transaction.rbi +146 -4
  61. data/rbi/lithic/resources/card_bulk_orders.rbi +11 -11
  62. data/rbi/lithic/resources/cards.rbi +8 -4
  63. data/sig/lithic/internal/util.rbs +4 -0
  64. data/sig/lithic/models/auth_rules/backtest_stats.rbs +8 -3
  65. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +14 -0
  66. data/sig/lithic/models/auth_rules/report_stats.rbs +34 -70
  67. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +29 -9
  68. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +4 -667
  69. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +89 -45
  70. data/sig/lithic/models/card_bulk_order.rbs +5 -1
  71. data/sig/lithic/models/card_bulk_order_create_params.rbs +5 -1
  72. data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
  73. data/sig/lithic/models/card_create_params.rbs +2 -2
  74. data/sig/lithic/models/card_reissue_params.rbs +2 -2
  75. data/sig/lithic/models/card_renew_params.rbs +2 -2
  76. data/sig/lithic/models/financial_account.rbs +2 -0
  77. data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
  78. data/sig/lithic/models/financial_accounts/statement.rbs +16 -7
  79. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  80. data/sig/lithic/models/payment.rbs +5 -0
  81. data/sig/lithic/models/payment_create_params.rbs +8 -3
  82. data/sig/lithic/models/transaction.rbs +75 -4
  83. metadata +2 -2
@@ -13,9 +13,10 @@ module Lithic
13
13
  cash_amount: Integer,
14
14
  created: Time,
15
15
  event_type: :"card_authorization.approval_request",
16
- merchant: Lithic::Merchant,
16
+ merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant,
17
17
  merchant_amount: Integer,
18
18
  merchant_currency: String,
19
+ service_location: Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation?,
19
20
  settled_amount: Integer,
20
21
  status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
21
22
  transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
@@ -57,12 +58,14 @@ module Lithic
57
58
 
58
59
  attr_accessor event_type: :"card_authorization.approval_request"
59
60
 
60
- attr_accessor merchant: Lithic::Merchant
61
+ attr_accessor merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant
61
62
 
62
63
  attr_accessor merchant_amount: Integer
63
64
 
64
65
  attr_accessor merchant_currency: String
65
66
 
67
+ attr_accessor service_location: Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation?
68
+
66
69
  attr_accessor settled_amount: Integer
67
70
 
68
71
  attr_accessor status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status
@@ -134,9 +137,10 @@ module Lithic
134
137
  cardholder_currency: String,
135
138
  cash_amount: Integer,
136
139
  created: Time,
137
- merchant: Lithic::Merchant,
140
+ merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant,
138
141
  merchant_amount: Integer,
139
142
  merchant_currency: String,
143
+ service_location: Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation?,
140
144
  settled_amount: Integer,
141
145
  status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
142
146
  transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
@@ -168,9 +172,10 @@ module Lithic
168
172
  cash_amount: Integer,
169
173
  created: Time,
170
174
  event_type: :"card_authorization.approval_request",
171
- merchant: Lithic::Merchant,
175
+ merchant: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant,
172
176
  merchant_amount: Integer,
173
177
  merchant_currency: String,
178
+ service_location: Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation?,
174
179
  settled_amount: Integer,
175
180
  status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status,
176
181
  transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator,
@@ -329,7 +334,6 @@ module Lithic
329
334
  type card =
330
335
  {
331
336
  token: String,
332
- hostname: String,
333
337
  last_four: String,
334
338
  memo: String,
335
339
  spend_limit: Integer,
@@ -339,58 +343,32 @@ module Lithic
339
343
  }
340
344
 
341
345
  class Card < Lithic::Internal::Type::BaseModel
342
- attr_reader token: String?
343
-
344
- def token=: (String) -> String
345
-
346
- attr_reader hostname: String?
347
-
348
- def hostname=: (String) -> String
349
-
350
- attr_reader last_four: String?
351
-
352
- def last_four=: (String) -> String
346
+ attr_accessor token: String
353
347
 
354
- attr_reader memo: String?
348
+ attr_accessor last_four: String
355
349
 
356
- def memo=: (String) -> String
350
+ attr_accessor memo: String
357
351
 
358
- attr_reader spend_limit: Integer?
352
+ attr_accessor spend_limit: Integer
359
353
 
360
- def spend_limit=: (Integer) -> Integer
354
+ attr_accessor spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration
361
355
 
362
- attr_reader spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration?
356
+ attr_accessor state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state
363
357
 
364
- def spend_limit_duration=: (
365
- Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration
366
- ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration
367
-
368
- attr_reader state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state?
369
-
370
- def state=: (
371
- Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state
372
- ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state
373
-
374
- attr_reader type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_?
375
-
376
- def type=: (
377
- Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
378
- ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
358
+ attr_accessor type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_
379
359
 
380
360
  def initialize: (
381
- ?token: String,
382
- ?hostname: String,
383
- ?last_four: String,
384
- ?memo: String,
385
- ?spend_limit: Integer,
386
- ?spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration,
387
- ?state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state,
388
- ?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_
389
368
  ) -> void
390
369
 
391
370
  def to_hash: -> {
392
371
  token: String,
393
- hostname: String,
394
372
  last_four: String,
395
373
  memo: String,
396
374
  spend_limit: Integer,
@@ -450,6 +428,72 @@ module Lithic
450
428
  end
451
429
  end
452
430
 
431
+ type merchant =
432
+ { phone_number: String?, postal_code: String?, street_address: String? }
433
+
434
+ class Merchant < Lithic::Models::Merchant
435
+ def phone_number: -> String?
436
+
437
+ def phone_number=: (String? _) -> String?
438
+
439
+ def postal_code: -> String?
440
+
441
+ def postal_code=: (String? _) -> String?
442
+
443
+ def street_address: -> String?
444
+
445
+ def street_address=: (String? _) -> String?
446
+
447
+ def initialize: (
448
+ phone_number: String?,
449
+ postal_code: String?,
450
+ street_address: String?
451
+ ) -> void
452
+
453
+ def to_hash: -> {
454
+ phone_number: String?,
455
+ postal_code: String?,
456
+ street_address: String?
457
+ }
458
+ end
459
+
460
+ type service_location =
461
+ {
462
+ city: String?,
463
+ country: String?,
464
+ postal_code: String?,
465
+ state: String?,
466
+ street_address: String?
467
+ }
468
+
469
+ class ServiceLocation < Lithic::Internal::Type::BaseModel
470
+ attr_accessor city: String?
471
+
472
+ attr_accessor country: String?
473
+
474
+ attr_accessor postal_code: String?
475
+
476
+ attr_accessor state: String?
477
+
478
+ attr_accessor street_address: String?
479
+
480
+ def initialize: (
481
+ city: String?,
482
+ country: String?,
483
+ postal_code: String?,
484
+ state: String?,
485
+ street_address: String?
486
+ ) -> void
487
+
488
+ def to_hash: -> {
489
+ city: String?,
490
+ country: String?,
491
+ postal_code: String?,
492
+ state: String?,
493
+ street_address: String?
494
+ }
495
+ end
496
+
453
497
  type status =
454
498
  :AUTHORIZATION
455
499
  | :CREDIT_AUTHORIZATION
@@ -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
@@ -354,6 +354,7 @@ module Lithic
354
354
  ach_hold_period: Integer?,
355
355
  addenda: String?,
356
356
  company_id: String?,
357
+ override_company_name: String?,
357
358
  receipt_routing_number: String?,
358
359
  retries: Integer?,
359
360
  return_reason_code: String?,
@@ -369,6 +370,8 @@ module Lithic
369
370
 
370
371
  attr_accessor company_id: String?
371
372
 
373
+ attr_accessor override_company_name: String?
374
+
372
375
  attr_accessor receipt_routing_number: String?
373
376
 
374
377
  attr_accessor retries: Integer?
@@ -384,6 +387,7 @@ module Lithic
384
387
  ?ach_hold_period: Integer?,
385
388
  ?addenda: String?,
386
389
  ?company_id: String?,
390
+ ?override_company_name: String?,
387
391
  ?receipt_routing_number: String?,
388
392
  ?retries: Integer?,
389
393
  ?return_reason_code: String?,
@@ -395,6 +399,7 @@ module Lithic
395
399
  ach_hold_period: Integer?,
396
400
  addenda: String?,
397
401
  company_id: String?,
402
+ override_company_name: String?,
398
403
  receipt_routing_number: String?,
399
404
  retries: Integer?,
400
405
  return_reason_code: String?,
@@ -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
@@ -15,7 +15,7 @@ module Lithic
15
15
  cardholder_authentication: Lithic::CardholderAuthentication?,
16
16
  created: Time,
17
17
  financial_account_token: String?,
18
- merchant: Lithic::Merchant,
18
+ merchant: Lithic::Transaction::Merchant,
19
19
  merchant_amount: Integer?,
20
20
  merchant_authorization_amount: Integer?,
21
21
  merchant_currency: String,
@@ -23,6 +23,7 @@ module Lithic
23
23
  network_risk_score: Integer?,
24
24
  pos: Lithic::Transaction::Pos,
25
25
  result: Lithic::Models::Transaction::result,
26
+ service_location: Lithic::Transaction::ServiceLocation?,
26
27
  settled_amount: Integer,
27
28
  status: Lithic::Models::Transaction::status,
28
29
  tags: ::Hash[Symbol, String],
@@ -58,7 +59,7 @@ module Lithic
58
59
 
59
60
  attr_accessor financial_account_token: String?
60
61
 
61
- attr_accessor merchant: Lithic::Merchant
62
+ attr_accessor merchant: Lithic::Transaction::Merchant
62
63
 
63
64
  attr_accessor merchant_amount: Integer?
64
65
 
@@ -74,6 +75,8 @@ module Lithic
74
75
 
75
76
  attr_accessor result: Lithic::Models::Transaction::result
76
77
 
78
+ attr_accessor service_location: Lithic::Transaction::ServiceLocation?
79
+
77
80
  attr_accessor settled_amount: Integer
78
81
 
79
82
  attr_accessor status: Lithic::Models::Transaction::status
@@ -104,7 +107,7 @@ module Lithic
104
107
  cardholder_authentication: Lithic::CardholderAuthentication?,
105
108
  created: Time,
106
109
  financial_account_token: String?,
107
- merchant: Lithic::Merchant,
110
+ merchant: Lithic::Transaction::Merchant,
108
111
  merchant_amount: Integer?,
109
112
  merchant_authorization_amount: Integer?,
110
113
  merchant_currency: String,
@@ -112,6 +115,7 @@ module Lithic
112
115
  network_risk_score: Integer?,
113
116
  pos: Lithic::Transaction::Pos,
114
117
  result: Lithic::Models::Transaction::result,
118
+ service_location: Lithic::Transaction::ServiceLocation?,
115
119
  settled_amount: Integer,
116
120
  status: Lithic::Models::Transaction::status,
117
121
  tags: ::Hash[Symbol, String],
@@ -134,7 +138,7 @@ module Lithic
134
138
  cardholder_authentication: Lithic::CardholderAuthentication?,
135
139
  created: Time,
136
140
  financial_account_token: String?,
137
- merchant: Lithic::Merchant,
141
+ merchant: Lithic::Transaction::Merchant,
138
142
  merchant_amount: Integer?,
139
143
  merchant_authorization_amount: Integer?,
140
144
  merchant_currency: String,
@@ -142,6 +146,7 @@ module Lithic
142
146
  network_risk_score: Integer?,
143
147
  pos: Lithic::Transaction::Pos,
144
148
  result: Lithic::Models::Transaction::result,
149
+ service_location: Lithic::Transaction::ServiceLocation?,
145
150
  settled_amount: Integer,
146
151
  status: Lithic::Models::Transaction::status,
147
152
  tags: ::Hash[Symbol, String],
@@ -253,6 +258,35 @@ module Lithic
253
258
  def to_hash: -> { address: String, zipcode: String }
254
259
  end
255
260
 
261
+ type merchant =
262
+ { phone_number: String?, postal_code: String?, street_address: String? }
263
+
264
+ class Merchant < Lithic::Models::Merchant
265
+ def phone_number: -> String?
266
+
267
+ def phone_number=: (String? _) -> String?
268
+
269
+ def postal_code: -> String?
270
+
271
+ def postal_code=: (String? _) -> String?
272
+
273
+ def street_address: -> String?
274
+
275
+ def street_address=: (String? _) -> String?
276
+
277
+ def initialize: (
278
+ phone_number: String?,
279
+ postal_code: String?,
280
+ street_address: String?
281
+ ) -> void
282
+
283
+ def to_hash: -> {
284
+ phone_number: String?,
285
+ postal_code: String?,
286
+ street_address: String?
287
+ }
288
+ end
289
+
256
290
  type network =
257
291
  :AMEX | :INTERLINK | :MAESTRO | :MASTERCARD | :UNKNOWN | :VISA
258
292
 
@@ -600,6 +634,43 @@ module Lithic
600
634
  def self?.values: -> ::Array[Lithic::Models::Transaction::result]
601
635
  end
602
636
 
637
+ type service_location =
638
+ {
639
+ city: String?,
640
+ country: String?,
641
+ postal_code: String?,
642
+ state: String?,
643
+ street_address: String?
644
+ }
645
+
646
+ class ServiceLocation < Lithic::Internal::Type::BaseModel
647
+ attr_accessor city: String?
648
+
649
+ attr_accessor country: String?
650
+
651
+ attr_accessor postal_code: String?
652
+
653
+ attr_accessor state: String?
654
+
655
+ attr_accessor street_address: String?
656
+
657
+ def initialize: (
658
+ city: String?,
659
+ country: String?,
660
+ postal_code: String?,
661
+ state: String?,
662
+ street_address: String?
663
+ ) -> void
664
+
665
+ def to_hash: -> {
666
+ city: String?,
667
+ country: String?,
668
+ postal_code: String?,
669
+ state: String?,
670
+ street_address: String?
671
+ }
672
+ end
673
+
603
674
  type status = :DECLINED | :EXPIRED | :PENDING | :SETTLED | :VOIDED
604
675
 
605
676
  module Status
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.9.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-18 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