lithic 0.3.0 → 0.4.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 (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +21 -21
  5. data/lib/lithic/models/card_create_params.rb +12 -5
  6. data/lib/lithic/models/card_updated_webhook_event.rb +40 -0
  7. data/lib/lithic/models/card_web_provision_response.rb +5 -5
  8. data/lib/lithic/models/event.rb +3 -0
  9. data/lib/lithic/models/event_list_params.rb +2 -0
  10. data/lib/lithic/models/event_subscription.rb +2 -0
  11. data/lib/lithic/models/events/subscription_create_params.rb +2 -0
  12. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  13. data/lib/lithic/models/events/subscription_update_params.rb +2 -0
  14. data/lib/lithic/models/financial_transaction.rb +4 -2
  15. data/lib/lithic/models/non_pci_card.rb +8 -10
  16. data/lib/lithic/models/parsed_webhook_event.rb +3 -1
  17. data/lib/lithic/models/payment.rb +1 -1
  18. data/lib/lithic/models/payment_create_params.rb +1 -1
  19. data/lib/lithic/models/transaction.rb +10 -1
  20. data/lib/lithic/models/transaction_simulate_authorization_params.rb +25 -1
  21. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +25 -1
  22. data/lib/lithic/models.rb +2 -0
  23. data/lib/lithic/resources/cards.rb +32 -22
  24. data/lib/lithic/resources/financial_accounts.rb +5 -5
  25. data/lib/lithic/resources/transactions.rb +14 -2
  26. data/lib/lithic/resources/webhooks.rb +1 -1
  27. data/lib/lithic/version.rb +1 -1
  28. data/lib/lithic.rb +1 -0
  29. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +47 -45
  30. data/rbi/lithic/models/card_create_params.rbi +15 -6
  31. data/rbi/lithic/models/card_updated_webhook_event.rbi +61 -0
  32. data/rbi/lithic/models/card_web_provision_response.rbi +5 -10
  33. data/rbi/lithic/models/event.rbi +5 -0
  34. data/rbi/lithic/models/event_list_params.rbi +6 -0
  35. data/rbi/lithic/models/event_subscription.rbi +6 -0
  36. data/rbi/lithic/models/events/subscription_create_params.rbi +6 -0
  37. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  38. data/rbi/lithic/models/events/subscription_update_params.rbi +6 -0
  39. data/rbi/lithic/models/financial_transaction.rbi +8 -4
  40. data/rbi/lithic/models/non_pci_card.rbi +12 -15
  41. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  42. data/rbi/lithic/models/payment.rbi +5 -2
  43. data/rbi/lithic/models/transaction.rbi +10 -0
  44. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +33 -0
  45. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +33 -0
  46. data/rbi/lithic/models.rbi +2 -0
  47. data/rbi/lithic/resources/cards.rbi +51 -45
  48. data/rbi/lithic/resources/financial_accounts.rbi +5 -5
  49. data/rbi/lithic/resources/transactions.rbi +18 -0
  50. data/rbi/lithic/resources/webhooks.rbi +62 -1
  51. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +20 -16
  52. data/sig/lithic/models/card_create_params.rbs +8 -1
  53. data/sig/lithic/models/card_updated_webhook_event.rbs +35 -0
  54. data/sig/lithic/models/card_web_provision_response.rbs +4 -10
  55. data/sig/lithic/models/event.rbs +2 -0
  56. data/sig/lithic/models/event_list_params.rbs +2 -0
  57. data/sig/lithic/models/event_subscription.rbs +2 -0
  58. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  59. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  60. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  61. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  62. data/sig/lithic/models/payment.rbs +2 -2
  63. data/sig/lithic/models/transaction.rbs +5 -0
  64. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +21 -0
  65. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +22 -1
  66. data/sig/lithic/models.rbs +2 -0
  67. data/sig/lithic/resources/cards.rbs +1 -0
  68. data/sig/lithic/resources/transactions.rbs +6 -0
  69. data/sig/lithic/resources/webhooks.rbs +58 -1
  70. metadata +19 -2
@@ -3,40 +3,55 @@ module Lithic
3
3
  module AuthRules
4
4
  type velocity_limit_params =
5
5
  {
6
- filters: Lithic::AuthRules::VelocityLimitParams::Filters,
7
6
  period: Lithic::Models::AuthRules::velocity_limit_period,
8
7
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
8
+ filters: Lithic::AuthRules::VelocityLimitParams::Filters,
9
9
  limit_amount: Integer?,
10
10
  limit_count: Integer?
11
11
  }
12
12
 
13
13
  class VelocityLimitParams < Lithic::Internal::Type::BaseModel
14
- attr_accessor filters: Lithic::AuthRules::VelocityLimitParams::Filters
15
-
16
14
  attr_accessor period: Lithic::Models::AuthRules::velocity_limit_period
17
15
 
18
16
  attr_accessor scope: Lithic::Models::AuthRules::VelocityLimitParams::scope
19
17
 
18
+ attr_reader filters: Lithic::AuthRules::VelocityLimitParams::Filters?
19
+
20
+ def filters=: (
21
+ Lithic::AuthRules::VelocityLimitParams::Filters
22
+ ) -> Lithic::AuthRules::VelocityLimitParams::Filters
23
+
20
24
  attr_accessor limit_amount: Integer?
21
25
 
22
26
  attr_accessor limit_count: Integer?
23
27
 
24
28
  def initialize: (
25
- filters: Lithic::AuthRules::VelocityLimitParams::Filters,
26
29
  period: Lithic::Models::AuthRules::velocity_limit_period,
27
30
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
31
+ ?filters: Lithic::AuthRules::VelocityLimitParams::Filters,
28
32
  ?limit_amount: Integer?,
29
33
  ?limit_count: Integer?
30
34
  ) -> void
31
35
 
32
36
  def to_hash: -> {
33
- filters: Lithic::AuthRules::VelocityLimitParams::Filters,
34
37
  period: Lithic::Models::AuthRules::velocity_limit_period,
35
38
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
39
+ filters: Lithic::AuthRules::VelocityLimitParams::Filters,
36
40
  limit_amount: Integer?,
37
41
  limit_count: Integer?
38
42
  }
39
43
 
44
+ type scope = :CARD | :ACCOUNT
45
+
46
+ module Scope
47
+ extend Lithic::Internal::Type::Enum
48
+
49
+ CARD: :CARD
50
+ ACCOUNT: :ACCOUNT
51
+
52
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParams::scope]
53
+ end
54
+
40
55
  type filters =
41
56
  {
42
57
  exclude_countries: ::Array[String]?,
@@ -112,17 +127,6 @@ module Lithic
112
127
  def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParams::Filters::include_pan_entry_mode]
113
128
  end
114
129
  end
115
-
116
- type scope = :CARD | :ACCOUNT
117
-
118
- module Scope
119
- extend Lithic::Internal::Type::Enum
120
-
121
- CARD: :CARD
122
- ACCOUNT: :ACCOUNT
123
-
124
- def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParams::scope]
125
- end
126
130
  end
127
131
  end
128
132
  end
@@ -21,7 +21,8 @@ module Lithic
21
21
  shipping_method: Lithic::Models::CardCreateParams::shipping_method,
22
22
  spend_limit: Integer,
23
23
  spend_limit_duration: Lithic::Models::spend_limit_duration,
24
- state: Lithic::Models::CardCreateParams::state
24
+ state: Lithic::Models::CardCreateParams::state,
25
+ idempotency_key: String
25
26
  }
26
27
  & Lithic::Internal::Type::request_parameters
27
28
 
@@ -117,6 +118,10 @@ module Lithic
117
118
  Lithic::Models::CardCreateParams::state
118
119
  ) -> Lithic::Models::CardCreateParams::state
119
120
 
121
+ attr_reader idempotency_key: String?
122
+
123
+ def idempotency_key=: (String) -> String
124
+
120
125
  def initialize: (
121
126
  type: Lithic::Models::CardCreateParams::type_,
122
127
  ?account_token: String,
@@ -138,6 +143,7 @@ module Lithic
138
143
  ?spend_limit: Integer,
139
144
  ?spend_limit_duration: Lithic::Models::spend_limit_duration,
140
145
  ?state: Lithic::Models::CardCreateParams::state,
146
+ ?idempotency_key: String,
141
147
  ?request_options: Lithic::request_opts
142
148
  ) -> void
143
149
 
@@ -162,6 +168,7 @@ module Lithic
162
168
  spend_limit: Integer,
163
169
  spend_limit_duration: Lithic::Models::spend_limit_duration,
164
170
  state: Lithic::Models::CardCreateParams::state,
171
+ idempotency_key: String,
165
172
  request_options: Lithic::RequestOptions
166
173
  }
167
174
 
@@ -0,0 +1,35 @@
1
+ module Lithic
2
+ module Models
3
+ type card_updated_webhook_event =
4
+ {
5
+ card_token: String,
6
+ event_type: :"card.updated",
7
+ previous_fields: top,
8
+ state: String
9
+ }
10
+
11
+ class CardUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
12
+ attr_accessor card_token: String
13
+
14
+ attr_accessor event_type: :"card.updated"
15
+
16
+ attr_accessor previous_fields: top
17
+
18
+ attr_accessor state: String
19
+
20
+ def initialize: (
21
+ card_token: String,
22
+ previous_fields: top,
23
+ state: String,
24
+ ?event_type: :"card.updated"
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ card_token: String,
29
+ event_type: :"card.updated",
30
+ previous_fields: top,
31
+ state: String
32
+ }
33
+ end
34
+ end
35
+ end
@@ -14,19 +14,13 @@ module Lithic
14
14
  }
15
15
 
16
16
  class AppleWebPushProvisioningResponse < Lithic::Internal::Type::BaseModel
17
- attr_reader jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws?
17
+ attr_accessor jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
18
18
 
19
- def jws=: (
20
- Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
21
- ) -> Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
22
-
23
- attr_reader state: String?
24
-
25
- def state=: (String) -> String
19
+ attr_accessor state: String
26
20
 
27
21
  def initialize: (
28
- ?jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws,
29
- ?state: String
22
+ jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws,
23
+ state: String
30
24
  ) -> void
31
25
 
32
26
  def to_hash: -> {
@@ -48,6 +48,7 @@ module Lithic
48
48
  | :"card.reissued"
49
49
  | :"card.renewed"
50
50
  | :"card.shipped"
51
+ | :"card.updated"
51
52
  | :"digital_wallet.tokenization_approval_request"
52
53
  | :"digital_wallet.tokenization_result"
53
54
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -104,6 +105,7 @@ module Lithic
104
105
  CARD_REISSUED: :"card.reissued"
105
106
  CARD_RENEWED: :"card.renewed"
106
107
  CARD_SHIPPED: :"card.shipped"
108
+ CARD_UPDATED: :"card.updated"
107
109
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
108
110
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
109
111
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -85,6 +85,7 @@ module Lithic
85
85
  | :"card.reissued"
86
86
  | :"card.renewed"
87
87
  | :"card.shipped"
88
+ | :"card.updated"
88
89
  | :"digital_wallet.tokenization_approval_request"
89
90
  | :"digital_wallet.tokenization_result"
90
91
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -141,6 +142,7 @@ module Lithic
141
142
  CARD_REISSUED: :"card.reissued"
142
143
  CARD_RENEWED: :"card.renewed"
143
144
  CARD_SHIPPED: :"card.shipped"
145
+ CARD_UPDATED: :"card.updated"
144
146
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
145
147
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
146
148
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -53,6 +53,7 @@ module Lithic
53
53
  | :"card.reissued"
54
54
  | :"card.renewed"
55
55
  | :"card.shipped"
56
+ | :"card.updated"
56
57
  | :"digital_wallet.tokenization_approval_request"
57
58
  | :"digital_wallet.tokenization_result"
58
59
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -109,6 +110,7 @@ module Lithic
109
110
  CARD_REISSUED: :"card.reissued"
110
111
  CARD_RENEWED: :"card.renewed"
111
112
  CARD_SHIPPED: :"card.shipped"
113
+ CARD_UPDATED: :"card.updated"
112
114
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
113
115
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
114
116
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -63,6 +63,7 @@ module Lithic
63
63
  | :"card.reissued"
64
64
  | :"card.renewed"
65
65
  | :"card.shipped"
66
+ | :"card.updated"
66
67
  | :"digital_wallet.tokenization_approval_request"
67
68
  | :"digital_wallet.tokenization_result"
68
69
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -119,6 +120,7 @@ module Lithic
119
120
  CARD_REISSUED: :"card.reissued"
120
121
  CARD_RENEWED: :"card.renewed"
121
122
  CARD_SHIPPED: :"card.shipped"
123
+ CARD_UPDATED: :"card.updated"
122
124
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
123
125
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
124
126
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -44,6 +44,7 @@ module Lithic
44
44
  | :"card.reissued"
45
45
  | :"card.renewed"
46
46
  | :"card.shipped"
47
+ | :"card.updated"
47
48
  | :"digital_wallet.tokenization_approval_request"
48
49
  | :"digital_wallet.tokenization_result"
49
50
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -100,6 +101,7 @@ module Lithic
100
101
  CARD_REISSUED: :"card.reissued"
101
102
  CARD_RENEWED: :"card.renewed"
102
103
  CARD_SHIPPED: :"card.shipped"
104
+ CARD_UPDATED: :"card.updated"
103
105
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
104
106
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
105
107
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -63,6 +63,7 @@ module Lithic
63
63
  | :"card.reissued"
64
64
  | :"card.renewed"
65
65
  | :"card.shipped"
66
+ | :"card.updated"
66
67
  | :"digital_wallet.tokenization_approval_request"
67
68
  | :"digital_wallet.tokenization_result"
68
69
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -119,6 +120,7 @@ module Lithic
119
120
  CARD_REISSUED: :"card.reissued"
120
121
  CARD_RENEWED: :"card.renewed"
121
122
  CARD_SHIPPED: :"card.shipped"
123
+ CARD_UPDATED: :"card.updated"
122
124
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
123
125
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
124
126
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -18,6 +18,7 @@ module Lithic
18
18
  | Lithic::CardRenewedWebhookEvent
19
19
  | Lithic::CardReissuedWebhookEvent
20
20
  | Lithic::CardShippedWebhookEvent
21
+ | Lithic::CardUpdatedWebhookEvent
21
22
  | Lithic::CardTransactionUpdatedWebhookEvent
22
23
  | Lithic::CardTransactionEnhancedDataCreatedWebhookEvent
23
24
  | Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent
@@ -524,7 +524,7 @@ module Lithic
524
524
  | :WIRE_INBOUND_ADMIN
525
525
  | :WIRE_OUTBOUND_PAYMENT
526
526
  | :WIRE_OUTBOUND_ADMIN
527
- | :WIRE_DRAWDOWN_REQUEST
527
+ | :WIRE_INBOUND_DRAWDOWN_REQUEST
528
528
 
529
529
  module Type
530
530
  extend Lithic::Internal::Type::Enum
@@ -537,7 +537,7 @@ module Lithic
537
537
  WIRE_INBOUND_ADMIN: :WIRE_INBOUND_ADMIN
538
538
  WIRE_OUTBOUND_PAYMENT: :WIRE_OUTBOUND_PAYMENT
539
539
  WIRE_OUTBOUND_ADMIN: :WIRE_OUTBOUND_ADMIN
540
- WIRE_DRAWDOWN_REQUEST: :WIRE_DRAWDOWN_REQUEST
540
+ WIRE_INBOUND_DRAWDOWN_REQUEST: :WIRE_INBOUND_DRAWDOWN_REQUEST
541
541
 
542
542
  def self?.values: -> ::Array[Lithic::Models::Payment::type_]
543
543
  end
@@ -25,6 +25,7 @@ module Lithic
25
25
  result: Lithic::Models::Transaction::result,
26
26
  settled_amount: Integer,
27
27
  status: Lithic::Models::Transaction::status,
28
+ tags: ::Hash[Symbol, String],
28
29
  token_info: Lithic::TokenInfo?,
29
30
  updated: Time,
30
31
  events: ::Array[Lithic::Transaction::Event]
@@ -77,6 +78,8 @@ module Lithic
77
78
 
78
79
  attr_accessor status: Lithic::Models::Transaction::status
79
80
 
81
+ attr_accessor tags: ::Hash[Symbol, String]
82
+
80
83
  attr_accessor token_info: Lithic::TokenInfo?
81
84
 
82
85
  attr_accessor updated: Time
@@ -111,6 +114,7 @@ module Lithic
111
114
  result: Lithic::Models::Transaction::result,
112
115
  settled_amount: Integer,
113
116
  status: Lithic::Models::Transaction::status,
117
+ tags: ::Hash[Symbol, String],
114
118
  token_info: Lithic::TokenInfo?,
115
119
  updated: Time,
116
120
  ?events: ::Array[Lithic::Transaction::Event]
@@ -140,6 +144,7 @@ module Lithic
140
144
  result: Lithic::Models::Transaction::result,
141
145
  settled_amount: Integer,
142
146
  status: Lithic::Models::Transaction::status,
147
+ tags: ::Hash[Symbol, String],
143
148
  token_info: Lithic::TokenInfo?,
144
149
  updated: Time,
145
150
  events: ::Array[Lithic::Transaction::Event]
@@ -6,7 +6,10 @@ module Lithic
6
6
  descriptor: String,
7
7
  pan: String,
8
8
  mcc: String,
9
+ merchant_acceptor_city: String,
10
+ merchant_acceptor_country: String,
9
11
  merchant_acceptor_id: String,
12
+ merchant_acceptor_state: String,
10
13
  merchant_amount: Integer,
11
14
  merchant_currency: String,
12
15
  partial_approval_capable: bool,
@@ -29,10 +32,22 @@ module Lithic
29
32
 
30
33
  def mcc=: (String) -> String
31
34
 
35
+ attr_reader merchant_acceptor_city: String?
36
+
37
+ def merchant_acceptor_city=: (String) -> String
38
+
39
+ attr_reader merchant_acceptor_country: String?
40
+
41
+ def merchant_acceptor_country=: (String) -> String
42
+
32
43
  attr_reader merchant_acceptor_id: String?
33
44
 
34
45
  def merchant_acceptor_id=: (String) -> String
35
46
 
47
+ attr_reader merchant_acceptor_state: String?
48
+
49
+ def merchant_acceptor_state=: (String) -> String
50
+
36
51
  attr_reader merchant_amount: Integer?
37
52
 
38
53
  def merchant_amount=: (Integer) -> Integer
@@ -60,7 +75,10 @@ module Lithic
60
75
  descriptor: String,
61
76
  pan: String,
62
77
  ?mcc: String,
78
+ ?merchant_acceptor_city: String,
79
+ ?merchant_acceptor_country: String,
63
80
  ?merchant_acceptor_id: String,
81
+ ?merchant_acceptor_state: String,
64
82
  ?merchant_amount: Integer,
65
83
  ?merchant_currency: String,
66
84
  ?partial_approval_capable: bool,
@@ -74,7 +92,10 @@ module Lithic
74
92
  descriptor: String,
75
93
  pan: String,
76
94
  mcc: String,
95
+ merchant_acceptor_city: String,
96
+ merchant_acceptor_country: String,
77
97
  merchant_acceptor_id: String,
98
+ merchant_acceptor_state: String,
78
99
  merchant_amount: Integer,
79
100
  merchant_currency: String,
80
101
  partial_approval_capable: bool,
@@ -6,7 +6,10 @@ module Lithic
6
6
  descriptor: String,
7
7
  pan: String,
8
8
  mcc: String,
9
- merchant_acceptor_id: String
9
+ merchant_acceptor_city: String,
10
+ merchant_acceptor_country: String,
11
+ merchant_acceptor_id: String,
12
+ merchant_acceptor_state: String
10
13
  }
11
14
  & Lithic::Internal::Type::request_parameters
12
15
 
@@ -24,16 +27,31 @@ module Lithic
24
27
 
25
28
  def mcc=: (String) -> String
26
29
 
30
+ attr_reader merchant_acceptor_city: String?
31
+
32
+ def merchant_acceptor_city=: (String) -> String
33
+
34
+ attr_reader merchant_acceptor_country: String?
35
+
36
+ def merchant_acceptor_country=: (String) -> String
37
+
27
38
  attr_reader merchant_acceptor_id: String?
28
39
 
29
40
  def merchant_acceptor_id=: (String) -> String
30
41
 
42
+ attr_reader merchant_acceptor_state: String?
43
+
44
+ def merchant_acceptor_state=: (String) -> String
45
+
31
46
  def initialize: (
32
47
  amount: Integer,
33
48
  descriptor: String,
34
49
  pan: String,
35
50
  ?mcc: String,
51
+ ?merchant_acceptor_city: String,
52
+ ?merchant_acceptor_country: String,
36
53
  ?merchant_acceptor_id: String,
54
+ ?merchant_acceptor_state: String,
37
55
  ?request_options: Lithic::request_opts
38
56
  ) -> void
39
57
 
@@ -42,7 +60,10 @@ module Lithic
42
60
  descriptor: String,
43
61
  pan: String,
44
62
  mcc: String,
63
+ merchant_acceptor_city: String,
64
+ merchant_acceptor_country: String,
45
65
  merchant_acceptor_id: String,
66
+ merchant_acceptor_state: String,
46
67
  request_options: Lithic::RequestOptions
47
68
  }
48
69
  end
@@ -145,6 +145,8 @@ module Lithic
145
145
 
146
146
  class CardTransactionUpdatedWebhookEvent = Lithic::Models::CardTransactionUpdatedWebhookEvent
147
147
 
148
+ class CardUpdatedWebhookEvent = Lithic::Models::CardUpdatedWebhookEvent
149
+
148
150
  class CardUpdateParams = Lithic::Models::CardUpdateParams
149
151
 
150
152
  class CardWebProvisionParams = Lithic::Models::CardWebProvisionParams
@@ -26,6 +26,7 @@ module Lithic
26
26
  ?spend_limit: Integer,
27
27
  ?spend_limit_duration: Lithic::Models::spend_limit_duration,
28
28
  ?state: Lithic::Models::CardCreateParams::state,
29
+ ?idempotency_key: String,
29
30
  ?request_options: Lithic::request_opts
30
31
  ) -> Lithic::Card
31
32
 
@@ -33,7 +33,10 @@ module Lithic
33
33
  descriptor: String,
34
34
  pan: String,
35
35
  ?mcc: String,
36
+ ?merchant_acceptor_city: String,
37
+ ?merchant_acceptor_country: String,
36
38
  ?merchant_acceptor_id: String,
39
+ ?merchant_acceptor_state: String,
37
40
  ?merchant_amount: Integer,
38
41
  ?merchant_currency: String,
39
42
  ?partial_approval_capable: bool,
@@ -59,7 +62,10 @@ module Lithic
59
62
  descriptor: String,
60
63
  pan: String,
61
64
  ?mcc: String,
65
+ ?merchant_acceptor_city: String,
66
+ ?merchant_acceptor_country: String,
62
67
  ?merchant_acceptor_id: String,
68
+ ?merchant_acceptor_state: String,
63
69
  ?request_options: Lithic::request_opts
64
70
  ) -> Lithic::Models::TransactionSimulateCreditAuthorizationAdviceResponse
65
71
 
@@ -5,7 +5,64 @@ module Lithic
5
5
  String payload,
6
6
  headers: Hash[String, String],
7
7
  ?secret: String?
8
- ) -> Lithic::Models::parsed_webhook_event
8
+ ) -> (Lithic::AccountHolderCreatedWebhookEvent
9
+ | Lithic::ParsedWebhookEvent::KYBPayload
10
+ | Lithic::ParsedWebhookEvent::KYCPayload
11
+ | Lithic::ParsedWebhookEvent::LegacyPayload
12
+ | Lithic::AccountHolderVerificationWebhookEvent
13
+ | Lithic::AccountHolderDocumentUpdatedWebhookEvent
14
+ | Lithic::CardAuthorizationApprovalRequestWebhookEvent
15
+ | Lithic::TokenizationDecisioningRequestWebhookEvent
16
+ | Lithic::AuthRulesBacktestReportCreatedWebhookEvent
17
+ | Lithic::BalanceUpdatedWebhookEvent
18
+ | Lithic::BookTransferTransactionCreatedWebhookEvent
19
+ | Lithic::BookTransferTransactionUpdatedWebhookEvent
20
+ | Lithic::CardCreatedWebhookEvent
21
+ | Lithic::CardConvertedWebhookEvent
22
+ | Lithic::CardRenewedWebhookEvent
23
+ | Lithic::CardReissuedWebhookEvent
24
+ | Lithic::CardShippedWebhookEvent
25
+ | Lithic::CardUpdatedWebhookEvent
26
+ | Lithic::CardTransactionUpdatedWebhookEvent
27
+ | Lithic::CardTransactionEnhancedDataCreatedWebhookEvent
28
+ | Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent
29
+ | Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent
30
+ | Lithic::DigitalWalletTokenizationResultWebhookEvent
31
+ | Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent
32
+ | Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent
33
+ | Lithic::DigitalWalletTokenizationUpdatedWebhookEvent
34
+ | Lithic::DisputeUpdatedWebhookEvent
35
+ | Lithic::DisputeEvidenceUploadFailedWebhookEvent
36
+ | Lithic::ExternalBankAccountCreatedWebhookEvent
37
+ | Lithic::ExternalBankAccountUpdatedWebhookEvent
38
+ | Lithic::ExternalPaymentCreatedWebhookEvent
39
+ | Lithic::ExternalPaymentUpdatedWebhookEvent
40
+ | Lithic::FinancialAccountCreatedWebhookEvent
41
+ | Lithic::FinancialAccountUpdatedWebhookEvent
42
+ | Lithic::FundingEventCreatedWebhookEvent
43
+ | Lithic::LoanTapeCreatedWebhookEvent
44
+ | Lithic::LoanTapeUpdatedWebhookEvent
45
+ | Lithic::ManagementOperationCreatedWebhookEvent
46
+ | Lithic::ManagementOperationUpdatedWebhookEvent
47
+ | Lithic::InternalTransactionCreatedWebhookEvent
48
+ | Lithic::InternalTransactionUpdatedWebhookEvent
49
+ | Lithic::NetworkTotalCreatedWebhookEvent
50
+ | Lithic::NetworkTotalUpdatedWebhookEvent
51
+ | Lithic::PaymentTransactionCreatedWebhookEvent
52
+ | Lithic::PaymentTransactionUpdatedWebhookEvent
53
+ | Lithic::SettlementReportUpdatedWebhookEvent
54
+ | Lithic::StatementsCreatedWebhookEvent
55
+ | Lithic::ThreeDSAuthenticationCreatedWebhookEvent
56
+ | Lithic::ThreeDSAuthenticationUpdatedWebhookEvent
57
+ | Lithic::ThreeDSAuthenticationChallengeWebhookEvent
58
+ | Lithic::TokenizationApprovalRequestWebhookEvent
59
+ | Lithic::TokenizationResultWebhookEvent
60
+ | Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent
61
+ | Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent
62
+ | Lithic::TokenizationUpdatedWebhookEvent
63
+ | Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent
64
+ | Lithic::DisputeTransactionCreatedWebhookEvent
65
+ | Lithic::DisputeTransactionUpdatedWebhookEvent)
9
66
 
10
67
  def parse_unsafe: (String payload) -> Lithic::Models::parsed_webhook_event
11
68
 
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lithic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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-01-08 00:00:00.000000000 Z
11
+ date: 2026-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cgi
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: connection_pool
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -166,6 +180,7 @@ files:
166
180
  - lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb
167
181
  - lib/lithic/models/card_transaction_updated_webhook_event.rb
168
182
  - lib/lithic/models/card_update_params.rb
183
+ - lib/lithic/models/card_updated_webhook_event.rb
169
184
  - lib/lithic/models/card_web_provision_params.rb
170
185
  - lib/lithic/models/card_web_provision_response.rb
171
186
  - lib/lithic/models/cardholder_authentication.rb
@@ -619,6 +634,7 @@ files:
619
634
  - rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi
620
635
  - rbi/lithic/models/card_transaction_updated_webhook_event.rbi
621
636
  - rbi/lithic/models/card_update_params.rbi
637
+ - rbi/lithic/models/card_updated_webhook_event.rbi
622
638
  - rbi/lithic/models/card_web_provision_params.rbi
623
639
  - rbi/lithic/models/card_web_provision_response.rbi
624
640
  - rbi/lithic/models/cardholder_authentication.rbi
@@ -1071,6 +1087,7 @@ files:
1071
1087
  - sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs
1072
1088
  - sig/lithic/models/card_transaction_updated_webhook_event.rbs
1073
1089
  - sig/lithic/models/card_update_params.rbs
1090
+ - sig/lithic/models/card_updated_webhook_event.rbs
1074
1091
  - sig/lithic/models/card_web_provision_params.rbs
1075
1092
  - sig/lithic/models/card_web_provision_response.rbs
1076
1093
  - sig/lithic/models/cardholder_authentication.rbs