lithic 0.3.0 → 0.5.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 (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +73 -0
  3. data/README.md +10 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
  5. data/lib/lithic/internal/util.rb +1 -1
  6. data/lib/lithic/models/account_holder.rb +14 -5
  7. data/lib/lithic/models/account_holder_create_params.rb +10 -1
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
  10. data/lib/lithic/models/account_holder_update_params.rb +10 -1
  11. data/lib/lithic/models/account_holder_update_response.rb +14 -5
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
  13. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
  15. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
  16. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
  17. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +21 -21
  18. data/lib/lithic/models/book_transfer_create_params.rb +9 -1
  19. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
  20. data/lib/lithic/models/card_create_params.rb +12 -5
  21. data/lib/lithic/models/card_updated_webhook_event.rb +40 -0
  22. data/lib/lithic/models/card_web_provision_response.rb +5 -5
  23. data/lib/lithic/models/event.rb +3 -0
  24. data/lib/lithic/models/event_list_params.rb +2 -0
  25. data/lib/lithic/models/event_subscription.rb +2 -0
  26. data/lib/lithic/models/events/subscription_create_params.rb +2 -0
  27. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  28. data/lib/lithic/models/events/subscription_update_params.rb +2 -0
  29. data/lib/lithic/models/financial_transaction.rb +4 -2
  30. data/lib/lithic/models/kyb.rb +10 -1
  31. data/lib/lithic/models/non_pci_card.rb +8 -10
  32. data/lib/lithic/models/parsed_webhook_event.rb +13 -2
  33. data/lib/lithic/models/payment.rb +1 -1
  34. data/lib/lithic/models/payment_create_params.rb +1 -1
  35. data/lib/lithic/models/transaction.rb +10 -1
  36. data/lib/lithic/models/transaction_simulate_authorization_params.rb +25 -1
  37. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +25 -1
  38. data/lib/lithic/models.rb +2 -0
  39. data/lib/lithic/resources/account_holders.rb +6 -2
  40. data/lib/lithic/resources/auth_rules/v2.rb +42 -0
  41. data/lib/lithic/resources/book_transfers.rb +3 -1
  42. data/lib/lithic/resources/cards.rb +32 -22
  43. data/lib/lithic/resources/financial_accounts.rb +5 -5
  44. data/lib/lithic/resources/transactions.rb +14 -2
  45. data/lib/lithic/resources/webhooks.rb +1 -1
  46. data/lib/lithic/version.rb +1 -1
  47. data/lib/lithic.rb +3 -0
  48. data/rbi/lithic/internal/util.rbi +1 -1
  49. data/rbi/lithic/models/account_holder.rbi +19 -6
  50. data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
  51. data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
  52. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
  53. data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
  54. data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
  55. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
  56. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  57. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
  58. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
  59. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
  60. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +47 -45
  61. data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
  62. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
  63. data/rbi/lithic/models/card_create_params.rbi +15 -6
  64. data/rbi/lithic/models/card_updated_webhook_event.rbi +61 -0
  65. data/rbi/lithic/models/card_web_provision_response.rbi +5 -10
  66. data/rbi/lithic/models/event.rbi +5 -0
  67. data/rbi/lithic/models/event_list_params.rbi +6 -0
  68. data/rbi/lithic/models/event_subscription.rbi +6 -0
  69. data/rbi/lithic/models/events/subscription_create_params.rbi +6 -0
  70. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  71. data/rbi/lithic/models/events/subscription_update_params.rbi +6 -0
  72. data/rbi/lithic/models/financial_transaction.rbi +8 -4
  73. data/rbi/lithic/models/kyb.rbi +13 -0
  74. data/rbi/lithic/models/non_pci_card.rbi +12 -15
  75. data/rbi/lithic/models/parsed_webhook_event.rbi +14 -0
  76. data/rbi/lithic/models/payment.rbi +5 -2
  77. data/rbi/lithic/models/transaction.rbi +10 -0
  78. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +33 -0
  79. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +33 -0
  80. data/rbi/lithic/models.rbi +2 -0
  81. data/rbi/lithic/resources/account_holders.rbi +8 -0
  82. data/rbi/lithic/resources/auth_rules/v2.rbi +42 -0
  83. data/rbi/lithic/resources/book_transfers.rbi +3 -0
  84. data/rbi/lithic/resources/cards.rbi +51 -45
  85. data/rbi/lithic/resources/financial_accounts.rbi +5 -5
  86. data/rbi/lithic/resources/transactions.rbi +18 -0
  87. data/rbi/lithic/resources/webhooks.rbi +62 -1
  88. data/sig/lithic/models/account_holder.rbs +7 -0
  89. data/sig/lithic/models/account_holder_create_params.rbs +7 -0
  90. data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
  91. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
  92. data/sig/lithic/models/account_holder_update_params.rbs +7 -0
  93. data/sig/lithic/models/account_holder_update_response.rbs +7 -0
  94. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
  95. data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
  96. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
  97. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +20 -16
  98. data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
  99. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
  100. data/sig/lithic/models/card_create_params.rbs +8 -1
  101. data/sig/lithic/models/card_updated_webhook_event.rbs +35 -0
  102. data/sig/lithic/models/card_web_provision_response.rbs +4 -10
  103. data/sig/lithic/models/event.rbs +2 -0
  104. data/sig/lithic/models/event_list_params.rbs +2 -0
  105. data/sig/lithic/models/event_subscription.rbs +2 -0
  106. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  107. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  108. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  109. data/sig/lithic/models/kyb.rbs +7 -0
  110. data/sig/lithic/models/parsed_webhook_event.rbs +8 -0
  111. data/sig/lithic/models/payment.rbs +2 -2
  112. data/sig/lithic/models/transaction.rbs +5 -0
  113. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +21 -0
  114. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +22 -1
  115. data/sig/lithic/models.rbs +2 -0
  116. data/sig/lithic/resources/account_holders.rbs +2 -0
  117. data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
  118. data/sig/lithic/resources/book_transfers.rbs +1 -0
  119. data/sig/lithic/resources/cards.rbs +1 -0
  120. data/sig/lithic/resources/transactions.rbs +6 -0
  121. data/sig/lithic/resources/webhooks.rbs +58 -1
  122. metadata +25 -2
@@ -21,8 +21,8 @@ module Lithic
21
21
  # Reach out at [lithic.com/contact](https://lithic.com/contact) for more
22
22
  # information.
23
23
  # - `SINGLE_USE` - Card is closed upon first successful authorization.
24
- # - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
25
- # successfully authorizes the card.
24
+ # - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
25
+ # authorizes the card.
26
26
  # - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
27
27
  # VIRTUAL instead.
28
28
  # - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
@@ -264,6 +264,12 @@ module Lithic
264
264
  sig { params(state: Lithic::CardCreateParams::State::OrSymbol).void }
265
265
  attr_writer :state
266
266
 
267
+ sig { returns(T.nilable(String)) }
268
+ attr_reader :idempotency_key
269
+
270
+ sig { params(idempotency_key: String).void }
271
+ attr_writer :idempotency_key
272
+
267
273
  sig do
268
274
  params(
269
275
  type: Lithic::CardCreateParams::Type::OrSymbol,
@@ -287,6 +293,7 @@ module Lithic
287
293
  spend_limit: Integer,
288
294
  spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
289
295
  state: Lithic::CardCreateParams::State::OrSymbol,
296
+ idempotency_key: String,
290
297
  request_options: Lithic::RequestOptions::OrHash
291
298
  ).returns(T.attached_class)
292
299
  end
@@ -301,8 +308,8 @@ module Lithic
301
308
  # Reach out at [lithic.com/contact](https://lithic.com/contact) for more
302
309
  # information.
303
310
  # - `SINGLE_USE` - Card is closed upon first successful authorization.
304
- # - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
305
- # successfully authorizes the card.
311
+ # - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
312
+ # authorizes the card.
306
313
  # - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
307
314
  # VIRTUAL instead.
308
315
  # - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
@@ -430,6 +437,7 @@ module Lithic
430
437
  # - `PAUSED` - Card will decline authorizations, but can be resumed at a later
431
438
  # time.
432
439
  state: nil,
440
+ idempotency_key: nil,
433
441
  request_options: {}
434
442
  )
435
443
  end
@@ -458,6 +466,7 @@ module Lithic
458
466
  spend_limit: Integer,
459
467
  spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
460
468
  state: Lithic::CardCreateParams::State::OrSymbol,
469
+ idempotency_key: String,
461
470
  request_options: Lithic::RequestOptions
462
471
  }
463
472
  )
@@ -475,8 +484,8 @@ module Lithic
475
484
  # Reach out at [lithic.com/contact](https://lithic.com/contact) for more
476
485
  # information.
477
486
  # - `SINGLE_USE` - Card is closed upon first successful authorization.
478
- # - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
479
- # successfully authorizes the card.
487
+ # - `MERCHANT_LOCKED` - Card is locked to the first merchant that successfully
488
+ # authorizes the card.
480
489
  # - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
481
490
  # VIRTUAL instead.
482
491
  # - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
@@ -0,0 +1,61 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Lithic::CardUpdatedWebhookEvent, Lithic::Internal::AnyHash)
9
+ end
10
+
11
+ # The token of the card that was updated.
12
+ sig { returns(String) }
13
+ attr_accessor :card_token
14
+
15
+ # The type of event that occurred.
16
+ sig { returns(Symbol) }
17
+ attr_accessor :event_type
18
+
19
+ # The previous values of the fields that were updated.
20
+ sig { returns(T.anything) }
21
+ attr_accessor :previous_fields
22
+
23
+ # The current state of the card.
24
+ sig { returns(String) }
25
+ attr_accessor :state
26
+
27
+ sig do
28
+ params(
29
+ card_token: String,
30
+ previous_fields: T.anything,
31
+ state: String,
32
+ event_type: Symbol
33
+ ).returns(T.attached_class)
34
+ end
35
+ def self.new(
36
+ # The token of the card that was updated.
37
+ card_token:,
38
+ # The previous values of the fields that were updated.
39
+ previous_fields:,
40
+ # The current state of the card.
41
+ state:,
42
+ # The type of event that occurred.
43
+ event_type: :"card.updated"
44
+ )
45
+ end
46
+
47
+ sig do
48
+ override.returns(
49
+ {
50
+ card_token: String,
51
+ event_type: Symbol,
52
+ previous_fields: T.anything,
53
+ state: String
54
+ }
55
+ )
56
+ end
57
+ def to_hash
58
+ end
59
+ end
60
+ end
61
+ end
@@ -25,9 +25,7 @@ module Lithic
25
25
  # JWS object required for handoff to Apple's script.
26
26
  sig do
27
27
  returns(
28
- T.nilable(
29
- Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
30
- )
28
+ Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
31
29
  )
32
30
  end
33
31
  attr_reader :jws
@@ -41,11 +39,8 @@ module Lithic
41
39
  attr_writer :jws
42
40
 
43
41
  # A unique identifier for the JWS object.
44
- sig { returns(T.nilable(String)) }
45
- attr_reader :state
46
-
47
- sig { params(state: String).void }
48
- attr_writer :state
42
+ sig { returns(String) }
43
+ attr_accessor :state
49
44
 
50
45
  sig do
51
46
  params(
@@ -56,9 +51,9 @@ module Lithic
56
51
  end
57
52
  def self.new(
58
53
  # JWS object required for handoff to Apple's script.
59
- jws: nil,
54
+ jws:,
60
55
  # A unique identifier for the JWS object.
61
- state: nil
56
+ state:
62
57
  )
63
58
  end
64
59
 
@@ -40,6 +40,7 @@ module Lithic
40
40
  # - card.reissued: Occurs when a card is reissued.
41
41
  # - card.renewed: Occurs when a card is renewed.
42
42
  # - card.shipped: Occurs when a card is shipped.
43
+ # - card.updated: Occurs when a card is updated.
43
44
  # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
44
45
  # approval request is made. This event will be deprecated in the future. We
45
46
  # recommend using `tokenization.approval_request` instead.
@@ -162,6 +163,7 @@ module Lithic
162
163
  # - card.reissued: Occurs when a card is reissued.
163
164
  # - card.renewed: Occurs when a card is renewed.
164
165
  # - card.shipped: Occurs when a card is shipped.
166
+ # - card.updated: Occurs when a card is updated.
165
167
  # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
166
168
  # approval request is made. This event will be deprecated in the future. We
167
169
  # recommend using `tokenization.approval_request` instead.
@@ -280,6 +282,7 @@ module Lithic
280
282
  # - card.reissued: Occurs when a card is reissued.
281
283
  # - card.renewed: Occurs when a card is renewed.
282
284
  # - card.shipped: Occurs when a card is shipped.
285
+ # - card.updated: Occurs when a card is updated.
283
286
  # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
284
287
  # approval request is made. This event will be deprecated in the future. We
285
288
  # recommend using `tokenization.approval_request` instead.
@@ -423,6 +426,8 @@ module Lithic
423
426
  T.let(:"card.renewed", Lithic::Event::EventType::TaggedSymbol)
424
427
  CARD_SHIPPED =
425
428
  T.let(:"card.shipped", Lithic::Event::EventType::TaggedSymbol)
429
+ CARD_UPDATED =
430
+ T.let(:"card.updated", Lithic::Event::EventType::TaggedSymbol)
426
431
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
427
432
  T.let(
428
433
  :"digital_wallet.tokenization_approval_request",
@@ -149,6 +149,7 @@ module Lithic
149
149
  # - card.reissued: Occurs when a card is reissued.
150
150
  # - card.renewed: Occurs when a card is renewed.
151
151
  # - card.shipped: Occurs when a card is shipped.
152
+ # - card.updated: Occurs when a card is updated.
152
153
  # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
153
154
  # approval request is made. This event will be deprecated in the future. We
154
155
  # recommend using `tokenization.approval_request` instead.
@@ -311,6 +312,11 @@ module Lithic
311
312
  :"card.shipped",
312
313
  Lithic::EventListParams::EventType::TaggedSymbol
313
314
  )
315
+ CARD_UPDATED =
316
+ T.let(
317
+ :"card.updated",
318
+ Lithic::EventListParams::EventType::TaggedSymbol
319
+ )
314
320
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
315
321
  T.let(
316
322
  :"digital_wallet.tokenization_approval_request",
@@ -97,6 +97,7 @@ module Lithic
97
97
  # - card.reissued: Occurs when a card is reissued.
98
98
  # - card.renewed: Occurs when a card is renewed.
99
99
  # - card.shipped: Occurs when a card is shipped.
100
+ # - card.updated: Occurs when a card is updated.
100
101
  # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
101
102
  # approval request is made. This event will be deprecated in the future. We
102
103
  # recommend using `tokenization.approval_request` instead.
@@ -259,6 +260,11 @@ module Lithic
259
260
  :"card.shipped",
260
261
  Lithic::EventSubscription::EventType::TaggedSymbol
261
262
  )
263
+ CARD_UPDATED =
264
+ T.let(
265
+ :"card.updated",
266
+ Lithic::EventSubscription::EventType::TaggedSymbol
267
+ )
262
268
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
263
269
  T.let(
264
270
  :"digital_wallet.tokenization_approval_request",
@@ -124,6 +124,7 @@ module Lithic
124
124
  # - card.reissued: Occurs when a card is reissued.
125
125
  # - card.renewed: Occurs when a card is renewed.
126
126
  # - card.shipped: Occurs when a card is shipped.
127
+ # - card.updated: Occurs when a card is updated.
127
128
  # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
128
129
  # approval request is made. This event will be deprecated in the future. We
129
130
  # recommend using `tokenization.approval_request` instead.
@@ -288,6 +289,11 @@ module Lithic
288
289
  :"card.shipped",
289
290
  Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
290
291
  )
292
+ CARD_UPDATED =
293
+ T.let(
294
+ :"card.updated",
295
+ Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
296
+ )
291
297
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
292
298
  T.let(
293
299
  :"digital_wallet.tokenization_approval_request",
@@ -152,6 +152,11 @@ module Lithic
152
152
  :"card.shipped",
153
153
  Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
154
154
  )
155
+ CARD_UPDATED =
156
+ T.let(
157
+ :"card.updated",
158
+ Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
159
+ )
155
160
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
156
161
  T.let(
157
162
  :"digital_wallet.tokenization_approval_request",
@@ -124,6 +124,7 @@ module Lithic
124
124
  # - card.reissued: Occurs when a card is reissued.
125
125
  # - card.renewed: Occurs when a card is renewed.
126
126
  # - card.shipped: Occurs when a card is shipped.
127
+ # - card.updated: Occurs when a card is updated.
127
128
  # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
128
129
  # approval request is made. This event will be deprecated in the future. We
129
130
  # recommend using `tokenization.approval_request` instead.
@@ -288,6 +289,11 @@ module Lithic
288
289
  :"card.shipped",
289
290
  Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
290
291
  )
292
+ CARD_UPDATED =
293
+ T.let(
294
+ :"card.updated",
295
+ Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
296
+ )
291
297
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
292
298
  T.let(
293
299
  :"digital_wallet.tokenization_approval_request",
@@ -41,8 +41,10 @@ module Lithic
41
41
  attr_accessor :events
42
42
 
43
43
  # Pending amount of the transaction in the currency's smallest unit (e.g., cents),
44
- # including any acquirer fees. The value of this field will go to zero over time
45
- # once the financial transaction is settled.
44
+ # including any acquirer fees.
45
+ #
46
+ # The value of this field will go to zero over time once the financial transaction
47
+ # is settled.
46
48
  sig { returns(Integer) }
47
49
  attr_accessor :pending_amount
48
50
 
@@ -109,8 +111,10 @@ module Lithic
109
111
  # A list of all financial events that have modified this financial transaction.
110
112
  events:,
111
113
  # Pending amount of the transaction in the currency's smallest unit (e.g., cents),
112
- # including any acquirer fees. The value of this field will go to zero over time
113
- # once the financial transaction is settled.
114
+ # including any acquirer fees.
115
+ #
116
+ # The value of this field will go to zero over time once the financial transaction
117
+ # is settled.
114
118
  pending_amount:,
115
119
  # APPROVED transactions were successful while DECLINED transactions were declined
116
120
  # by user, Lithic, or the network.
@@ -81,6 +81,14 @@ module Lithic
81
81
  sig { params(kyb_passed_timestamp: String).void }
82
82
  attr_writer :kyb_passed_timestamp
83
83
 
84
+ # 6-digit North American Industry Classification System (NAICS) code for the
85
+ # business.
86
+ sig { returns(T.nilable(String)) }
87
+ attr_reader :naics_code
88
+
89
+ sig { params(naics_code: String).void }
90
+ attr_writer :naics_code
91
+
84
92
  # Company website URL.
85
93
  sig { returns(T.nilable(String)) }
86
94
  attr_reader :website_url
@@ -101,6 +109,7 @@ module Lithic
101
109
  T::Array[Lithic::KYB::BeneficialOwnerEntity::OrHash],
102
110
  external_id: String,
103
111
  kyb_passed_timestamp: String,
112
+ naics_code: String,
104
113
  website_url: String
105
114
  ).returns(T.attached_class)
106
115
  end
@@ -143,6 +152,9 @@ module Lithic
143
152
  #
144
153
  # This field is required only if workflow type is `KYB_BYO`.
145
154
  kyb_passed_timestamp: nil,
155
+ # 6-digit North American Industry Classification System (NAICS) code for the
156
+ # business.
157
+ naics_code: nil,
146
158
  # Company website URL.
147
159
  website_url: nil
148
160
  )
@@ -162,6 +174,7 @@ module Lithic
162
174
  T::Array[Lithic::KYB::BeneficialOwnerEntity],
163
175
  external_id: String,
164
176
  kyb_passed_timestamp: String,
177
+ naics_code: String,
165
178
  website_url: String
166
179
  }
167
180
  )
@@ -81,11 +81,10 @@ module Lithic
81
81
  # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
82
82
  # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
83
83
  # functionality. _ `SINGLE_USE` - Card is closed upon first successful
84
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
85
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
86
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
87
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
88
- # VIRTUAL instead.
84
+ # authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
85
+ # successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
86
+ # to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
87
+ # _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
89
88
  sig { returns(Lithic::NonPCICard::Type::TaggedSymbol) }
90
89
  attr_accessor :type
91
90
 
@@ -293,11 +292,10 @@ module Lithic
293
292
  # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
294
293
  # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
295
294
  # functionality. _ `SINGLE_USE` - Card is closed upon first successful
296
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
297
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
298
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
299
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
300
- # VIRTUAL instead.
295
+ # authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
296
+ # successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
297
+ # to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
298
+ # _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
301
299
  type:,
302
300
  # List of identifiers for the Auth Rule(s) that are applied on the card. This
303
301
  # field is deprecated and will no longer be populated in the `Card` object. The
@@ -614,11 +612,10 @@ module Lithic
614
612
  # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
615
613
  # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
616
614
  # functionality. _ `SINGLE_USE` - Card is closed upon first successful
617
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
618
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
619
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
620
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
621
- # VIRTUAL instead.
615
+ # authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
616
+ # successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
617
+ # to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
618
+ # _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
622
619
  module Type
623
620
  extend Lithic::Internal::Type::Enum
624
621
 
@@ -26,6 +26,7 @@ module Lithic
26
26
  Lithic::CardRenewedWebhookEvent,
27
27
  Lithic::CardReissuedWebhookEvent,
28
28
  Lithic::CardShippedWebhookEvent,
29
+ Lithic::CardUpdatedWebhookEvent,
29
30
  Lithic::CardTransactionUpdatedWebhookEvent,
30
31
  Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
31
32
  Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
@@ -120,6 +121,14 @@ module Lithic
120
121
  sig { params(external_id: String).void }
121
122
  attr_writer :external_id
122
123
 
124
+ # 6-digit North American Industry Classification System (NAICS) code for the
125
+ # business. Only present if naics_code was included in the update request.
126
+ sig { returns(T.nilable(String)) }
127
+ attr_reader :naics_code
128
+
129
+ sig { params(naics_code: String).void }
130
+ attr_writer :naics_code
131
+
123
132
  # Short description of the company's line of business (i.e., what does the company
124
133
  # do?).
125
134
  sig { returns(T.nilable(String)) }
@@ -144,6 +153,7 @@ module Lithic
144
153
  event_type:
145
154
  Lithic::ParsedWebhookEvent::KYBPayload::EventType::OrSymbol,
146
155
  external_id: String,
156
+ naics_code: String,
147
157
  nature_of_business: String,
148
158
  website_url: String
149
159
  ).returns(T.attached_class)
@@ -158,6 +168,9 @@ module Lithic
158
168
  # A user provided id that can be used to link an account holder with an external
159
169
  # system
160
170
  external_id: nil,
171
+ # 6-digit North American Industry Classification System (NAICS) code for the
172
+ # business. Only present if naics_code was included in the update request.
173
+ naics_code: nil,
161
174
  # Short description of the company's line of business (i.e., what does the company
162
175
  # do?).
163
176
  nature_of_business: nil,
@@ -175,6 +188,7 @@ module Lithic
175
188
  event_type:
176
189
  Lithic::ParsedWebhookEvent::KYBPayload::EventType::TaggedSymbol,
177
190
  external_id: String,
191
+ naics_code: String,
178
192
  nature_of_business: String,
179
193
  website_url: String
180
194
  }
@@ -1061,8 +1061,11 @@ module Lithic
1061
1061
  T.let(:WIRE_OUTBOUND_PAYMENT, Lithic::Payment::Type::TaggedSymbol)
1062
1062
  WIRE_OUTBOUND_ADMIN =
1063
1063
  T.let(:WIRE_OUTBOUND_ADMIN, Lithic::Payment::Type::TaggedSymbol)
1064
- WIRE_DRAWDOWN_REQUEST =
1065
- T.let(:WIRE_DRAWDOWN_REQUEST, Lithic::Payment::Type::TaggedSymbol)
1064
+ WIRE_INBOUND_DRAWDOWN_REQUEST =
1065
+ T.let(
1066
+ :WIRE_INBOUND_DRAWDOWN_REQUEST,
1067
+ Lithic::Payment::Type::TaggedSymbol
1068
+ )
1066
1069
 
1067
1070
  sig { override.returns(T::Array[Lithic::Payment::Type::TaggedSymbol]) }
1068
1071
  def self.values
@@ -124,6 +124,11 @@ module Lithic
124
124
  sig { returns(Lithic::Transaction::Status::TaggedSymbol) }
125
125
  attr_accessor :status
126
126
 
127
+ # Key-value pairs for tagging resources. Tags allow you to associate arbitrary
128
+ # metadata with a resource for your own purposes.
129
+ sig { returns(T::Hash[Symbol, String]) }
130
+ attr_accessor :tags
131
+
127
132
  sig { returns(T.nilable(Lithic::TokenInfo)) }
128
133
  attr_reader :token_info
129
134
 
@@ -166,6 +171,7 @@ module Lithic
166
171
  result: Lithic::Transaction::Result::OrSymbol,
167
172
  settled_amount: Integer,
168
173
  status: Lithic::Transaction::Status::OrSymbol,
174
+ tags: T::Hash[Symbol, String],
169
175
  token_info: T.nilable(Lithic::TokenInfo::OrHash),
170
176
  updated: Time,
171
177
  events: T::Array[Lithic::Transaction::Event::OrHash]
@@ -224,6 +230,9 @@ module Lithic
224
230
  settled_amount:,
225
231
  # Status of the transaction.
226
232
  status:,
233
+ # Key-value pairs for tagging resources. Tags allow you to associate arbitrary
234
+ # metadata with a resource for your own purposes.
235
+ tags:,
227
236
  token_info:,
228
237
  # Date and time when the transaction last updated. UTC time zone.
229
238
  updated:,
@@ -258,6 +267,7 @@ module Lithic
258
267
  result: Lithic::Transaction::Result::TaggedSymbol,
259
268
  settled_amount: Integer,
260
269
  status: Lithic::Transaction::Status::TaggedSymbol,
270
+ tags: T::Hash[Symbol, String],
261
271
  token_info: T.nilable(Lithic::TokenInfo),
262
272
  updated: Time,
263
273
  events: T::Array[Lithic::Transaction::Event]
@@ -39,6 +39,20 @@ module Lithic
39
39
  sig { params(mcc: String).void }
40
40
  attr_writer :mcc
41
41
 
42
+ # Merchant acceptor city
43
+ sig { returns(T.nilable(String)) }
44
+ attr_reader :merchant_acceptor_city
45
+
46
+ sig { params(merchant_acceptor_city: String).void }
47
+ attr_writer :merchant_acceptor_city
48
+
49
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
50
+ sig { returns(T.nilable(String)) }
51
+ attr_reader :merchant_acceptor_country
52
+
53
+ sig { params(merchant_acceptor_country: String).void }
54
+ attr_writer :merchant_acceptor_country
55
+
42
56
  # Unique identifier to identify the payment card acceptor.
43
57
  sig { returns(T.nilable(String)) }
44
58
  attr_reader :merchant_acceptor_id
@@ -46,6 +60,13 @@ module Lithic
46
60
  sig { params(merchant_acceptor_id: String).void }
47
61
  attr_writer :merchant_acceptor_id
48
62
 
63
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
64
+ sig { returns(T.nilable(String)) }
65
+ attr_reader :merchant_acceptor_state
66
+
67
+ sig { params(merchant_acceptor_state: String).void }
68
+ attr_writer :merchant_acceptor_state
69
+
49
70
  # Amount of the transaction to be simulated in currency specified in
50
71
  # merchant_currency, including any acquirer fees.
51
72
  sig { returns(T.nilable(Integer)) }
@@ -117,7 +138,10 @@ module Lithic
117
138
  descriptor: String,
118
139
  pan: String,
119
140
  mcc: String,
141
+ merchant_acceptor_city: String,
142
+ merchant_acceptor_country: String,
120
143
  merchant_acceptor_id: String,
144
+ merchant_acceptor_state: String,
121
145
  merchant_amount: Integer,
122
146
  merchant_currency: String,
123
147
  partial_approval_capable: T::Boolean,
@@ -142,8 +166,14 @@ module Lithic
142
166
  # listed in ISO 18245. Supported merchant category codes can be found
143
167
  # [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
144
168
  mcc: nil,
169
+ # Merchant acceptor city
170
+ merchant_acceptor_city: nil,
171
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
172
+ merchant_acceptor_country: nil,
145
173
  # Unique identifier to identify the payment card acceptor.
146
174
  merchant_acceptor_id: nil,
175
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
176
+ merchant_acceptor_state: nil,
147
177
  # Amount of the transaction to be simulated in currency specified in
148
178
  # merchant_currency, including any acquirer fees.
149
179
  merchant_amount: nil,
@@ -184,7 +214,10 @@ module Lithic
184
214
  descriptor: String,
185
215
  pan: String,
186
216
  mcc: String,
217
+ merchant_acceptor_city: String,
218
+ merchant_acceptor_country: String,
187
219
  merchant_acceptor_id: String,
220
+ merchant_acceptor_state: String,
188
221
  merchant_amount: Integer,
189
222
  merchant_currency: String,
190
223
  partial_approval_capable: T::Boolean,
@@ -37,6 +37,20 @@ module Lithic
37
37
  sig { params(mcc: String).void }
38
38
  attr_writer :mcc
39
39
 
40
+ # Merchant acceptor city
41
+ sig { returns(T.nilable(String)) }
42
+ attr_reader :merchant_acceptor_city
43
+
44
+ sig { params(merchant_acceptor_city: String).void }
45
+ attr_writer :merchant_acceptor_city
46
+
47
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
48
+ sig { returns(T.nilable(String)) }
49
+ attr_reader :merchant_acceptor_country
50
+
51
+ sig { params(merchant_acceptor_country: String).void }
52
+ attr_writer :merchant_acceptor_country
53
+
40
54
  # Unique identifier to identify the payment card acceptor.
41
55
  sig { returns(T.nilable(String)) }
42
56
  attr_reader :merchant_acceptor_id
@@ -44,13 +58,23 @@ module Lithic
44
58
  sig { params(merchant_acceptor_id: String).void }
45
59
  attr_writer :merchant_acceptor_id
46
60
 
61
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
62
+ sig { returns(T.nilable(String)) }
63
+ attr_reader :merchant_acceptor_state
64
+
65
+ sig { params(merchant_acceptor_state: String).void }
66
+ attr_writer :merchant_acceptor_state
67
+
47
68
  sig do
48
69
  params(
49
70
  amount: Integer,
50
71
  descriptor: String,
51
72
  pan: String,
52
73
  mcc: String,
74
+ merchant_acceptor_city: String,
75
+ merchant_acceptor_country: String,
53
76
  merchant_acceptor_id: String,
77
+ merchant_acceptor_state: String,
54
78
  request_options: Lithic::RequestOptions::OrHash
55
79
  ).returns(T.attached_class)
56
80
  end
@@ -67,8 +91,14 @@ module Lithic
67
91
  # listed in ISO 18245. Supported merchant category codes can be found
68
92
  # [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
69
93
  mcc: nil,
94
+ # Merchant acceptor city
95
+ merchant_acceptor_city: nil,
96
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
97
+ merchant_acceptor_country: nil,
70
98
  # Unique identifier to identify the payment card acceptor.
71
99
  merchant_acceptor_id: nil,
100
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
101
+ merchant_acceptor_state: nil,
72
102
  request_options: {}
73
103
  )
74
104
  end
@@ -80,7 +110,10 @@ module Lithic
80
110
  descriptor: String,
81
111
  pan: String,
82
112
  mcc: String,
113
+ merchant_acceptor_city: String,
114
+ merchant_acceptor_country: String,
83
115
  merchant_acceptor_id: String,
116
+ merchant_acceptor_state: String,
84
117
  request_options: Lithic::RequestOptions
85
118
  }
86
119
  )
@@ -167,6 +167,8 @@ module Lithic
167
167
  CardTransactionUpdatedWebhookEvent =
168
168
  Lithic::Models::CardTransactionUpdatedWebhookEvent
169
169
 
170
+ CardUpdatedWebhookEvent = Lithic::Models::CardUpdatedWebhookEvent
171
+
170
172
  CardUpdateParams = Lithic::Models::CardUpdateParams
171
173
 
172
174
  CardWebProvisionParams = Lithic::Models::CardWebProvisionParams