lithic 0.1.0.pre.alpha.20 → 0.1.0.pre.alpha.21

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47b184f8f7f65dbe0046db9543b2dbb92b2bf6d01e4210310ee34c2e456eb6df
4
- data.tar.gz: 81b77116f2873efc353eb653fb1c4ad28b7fe42b28ab090c7ab20afe6cecf977
3
+ metadata.gz: f2aa745c3f2eb6afb8fc87a6c560646fcb282043d7a452a492f81f69a3946634
4
+ data.tar.gz: ee633329d392f1826a5c00ffd1e671e641c353c3b113781f36225f2927a9451d
5
5
  SHA512:
6
- metadata.gz: 62c65279956cab3ec2f64cd8ab66a29c756e676bfbb48afb1d15bfe8f01e02198eca40a468910263138638295300fc385d8f8ce7d8ef4369f981193e09b8d4e3
7
- data.tar.gz: 8f06ef17fd985d574940f9fc87a5ea74b192eaa4de81310a585d064aa857013a41c7ef50fb31926c7c5b91b45d3b82f9a0bfa39ef8a4fa4dd0045d6fffb1eee0
6
+ metadata.gz: c3145af00de2f1cf54900af721d29a0c18738eb716175118784bdd706b3cad2054fd68da9b4bdf836c92534404ac23ed2e059f36cde9a23fda34fc6f483251a0
7
+ data.tar.gz: 3c4916856d1e359057b74e9641a148a67a00380befc418f4ee3fbec6891eda28aa59654c5a4786aa02299dd60ebc69be6497ac87adb2efa9c6a10ad509f253d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.21 (2025-05-05)
4
+
5
+ Full Changelog: [v0.1.0-alpha.20...v0.1.0-alpha.21](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.20...v0.1.0-alpha.21)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **internals:** fix servers entry for /v2/auth_rules.get ([f044300](https://github.com/lithic-com/lithic-ruby/commit/f044300b2b4d74992dc130d3efaca6b008f68b91))
10
+
11
+
12
+ ### Chores
13
+
14
+ * always check if current page is empty in `next_page?` ([2639138](https://github.com/lithic-com/lithic-ruby/commit/2639138c749229d1c0ac04d9fd1ca53975ae21ea))
15
+ * **internal:** codegen related update ([b17b5ff](https://github.com/lithic-com/lithic-ruby/commit/b17b5fff97f1c0cfe663b9d0f6e6bc4b7a3a42dc))
16
+ * **internal:** codegen related update ([2f1295d](https://github.com/lithic-com/lithic-ruby/commit/2f1295d95293693980db100f3ac3e1f8ebcdbcef))
17
+ * **internal:** codegen related update ([71e2903](https://github.com/lithic-com/lithic-ruby/commit/71e290348c375df646b5652f7272a754c4be946a))
18
+ * migrate away from deprecated `JSON#fast_generate` ([0467fc5](https://github.com/lithic-com/lithic-ruby/commit/0467fc56e3d96a22dc858d1d3e3319aee8d1b1d8))
19
+ * re-export top level models under library namespace ([95e1342](https://github.com/lithic-com/lithic-ruby/commit/95e1342a272493fcc1e1dc4b9c068e8cc892ba5a))
20
+ * remove Gemfile.lock during bootstrap ([f1aa36a](https://github.com/lithic-com/lithic-ruby/commit/f1aa36af83da55390a24ef01fa6a8e5bc3cb03f2))
21
+ * reorganize type aliases ([8c03b06](https://github.com/lithic-com/lithic-ruby/commit/8c03b06bf9568b3ae492043f304e0e6e01a53254))
22
+
23
+
24
+ ### Documentation
25
+
26
+ * illustrate environmental defaults for auth variables ([a4de1a0](https://github.com/lithic-com/lithic-ruby/commit/a4de1a066712902df5e5ea62be42058315ded22d))
27
+ * **readme:** fix typo ([6fa42f9](https://github.com/lithic-com/lithic-ruby/commit/6fa42f9fdc086440416f2a4dc7eae9fcd9f0014f))
28
+
3
29
  ## 0.1.0-alpha.20 (2025-04-29)
4
30
 
5
31
  Full Changelog: [v0.1.0-alpha.19...v0.1.0-alpha.20](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.19...v0.1.0-alpha.20)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Lithic Ruby API library
2
2
 
3
- The Lithic Ruby library provides convenient access to the Lithic REST API from any Ruby 3.1.0+ application.
3
+ The Lithic Ruby library provides convenient access to the Lithic REST API from any Ruby 3.2.0+ application.
4
4
 
5
5
  ## Documentation
6
6
 
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "lithic", "~> 0.1.0.pre.alpha.20"
18
+ gem "lithic", "~> 0.1.0.pre.alpha.21"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -27,7 +27,7 @@ require "bundler/setup"
27
27
  require "lithic"
28
28
 
29
29
  lithic = Lithic::Client.new(
30
- api_key: "My Lithic API Key", # defaults to ENV["LITHIC_API_KEY"]
30
+ api_key: ENV["LITHIC_API_KEY"], # This is the default and can be omitted
31
31
  environment: "sandbox" # defaults to "production"
32
32
  )
33
33
 
@@ -77,7 +77,7 @@ rescue Lithic::Errors::APIError => e
77
77
  end
78
78
  ```
79
79
 
80
- Error codes are as followed:
80
+ Error codes are as follows:
81
81
 
82
82
  | Cause | Error Type |
83
83
  | ---------------- | -------------------------- |
@@ -215,7 +215,7 @@ This package considers improvements to the (non-runtime) `*.rbi` and `*.rbs` typ
215
215
 
216
216
  ## Requirements
217
217
 
218
- Ruby 3.1.0 or higher.
218
+ Ruby 3.2.0 or higher.
219
219
 
220
220
  ## Contributing
221
221
 
@@ -66,8 +66,8 @@ module Lithic
66
66
  super
67
67
 
68
68
  case page_data
69
- in {data: Array | nil => data}
70
- @data = data&.map { Lithic::Internal::Type::Converter.coerce(@model, _1) }
69
+ in {data: Array => data}
70
+ @data = data.map { Lithic::Internal::Type::Converter.coerce(@model, _1) }
71
71
  else
72
72
  end
73
73
  @has_more = page_data[:has_more]
@@ -60,8 +60,8 @@ module Lithic
60
60
  super
61
61
 
62
62
  case page_data
63
- in {data: Array | nil => data}
64
- @data = data&.map { Lithic::Internal::Type::Converter.coerce(@model, _1) }
63
+ in {data: Array => data}
64
+ @data = data.map { Lithic::Internal::Type::Converter.coerce(@model, _1) }
65
65
  else
66
66
  end
67
67
  @has_more = page_data[:has_more]
@@ -261,7 +261,7 @@ module Lithic
261
261
  headers["x-stainless-retry-count"] = "0"
262
262
  end
263
263
 
264
- timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..))
264
+ timeout = opts.fetch(:timeout, @timeout).to_f.clamp(0..)
265
265
  unless headers.key?("x-stainless-timeout") || timeout.zero?
266
266
  headers["x-stainless-timeout"] = timeout.to_s
267
267
  end
@@ -458,9 +458,9 @@ module Lithic
458
458
 
459
459
  decoded = Lithic::Internal::Util.decode_content(response, stream: stream)
460
460
  case req
461
- in { stream: Class => st }
461
+ in {stream: Class => st}
462
462
  st.new(model: model, url: url, status: status, response: response, stream: decoded)
463
- in { page: Class => page }
463
+ in {page: Class => page}
464
464
  page.new(client: self, req: req, headers: response, page_data: decoded)
465
465
  else
466
466
  unwrapped = Lithic::Internal::Util.dig(decoded, req[:unwrap])
@@ -390,15 +390,7 @@ module Lithic
390
390
  # Create a new instance of a model.
391
391
  #
392
392
  # @param data [Hash{Symbol=>Object}, self]
393
- def initialize(data = {})
394
- case Lithic::Internal::Util.coerce_hash(data)
395
- in Hash => coerced
396
- @data = coerced
397
- else
398
- message = "Expected a #{Hash} or #{Lithic::Internal::Type::BaseModel}, got #{data.inspect}"
399
- raise ArgumentError.new(message)
400
- end
401
- end
393
+ def initialize(data = {}) = (@data = Lithic::Internal::Util.coerce_hash!(data).to_h)
402
394
 
403
395
  class << self
404
396
  # @api private
@@ -28,14 +28,8 @@ module Lithic
28
28
  state = {can_retry: true}
29
29
  case (dumped = dump(params, state: state))
30
30
  in Hash
31
- options = Lithic::Internal::Util.coerce_hash(dumped[:request_options])
32
- request_options =
33
- case [options, state.fetch(:can_retry)]
34
- in [Hash | nil, false]
35
- {**options.to_h, max_retries: 0}
36
- else
37
- options
38
- end
31
+ options = Lithic::Internal::Util.coerce_hash!(dumped[:request_options]).to_h
32
+ request_options = state.fetch(:can_retry) ? options : {**options, max_retries: 0}
39
33
  [dumped.except(:request_options), request_options]
40
34
  else
41
35
  [dumped, nil]
@@ -128,6 +128,22 @@ module Lithic
128
128
  input.respond_to?(:to_h) ? input.to_h : input
129
129
  end
130
130
  end
131
+
132
+ # @api private
133
+ #
134
+ # @param input [Object]
135
+ #
136
+ # @raise [ArgumentError]
137
+ # @return [Hash{Object=>Object}, nil]
138
+ def coerce_hash!(input)
139
+ case coerce_hash(input)
140
+ in Hash | nil => coerced
141
+ coerced
142
+ else
143
+ message = "Expected a #{Hash} or #{Lithic::Internal::Type::BaseModel}, got #{data.inspect}"
144
+ raise ArgumentError.new(message)
145
+ end
146
+ end
131
147
  end
132
148
 
133
149
  class << self
@@ -493,7 +509,7 @@ module Lithic
493
509
  y << val.to_s
494
510
  else
495
511
  y << "Content-Type: application/json\r\n\r\n"
496
- y << JSON.fast_generate(val)
512
+ y << JSON.generate(val)
497
513
  end
498
514
  y << "\r\n"
499
515
  end
@@ -570,9 +586,9 @@ module Lithic
570
586
  content_type = headers["content-type"]
571
587
  case [content_type, body]
572
588
  in [Lithic::Internal::Util::JSON_CONTENT, Hash | Array | -> { primitive?(_1) }]
573
- [headers, JSON.fast_generate(body)]
589
+ [headers, JSON.generate(body)]
574
590
  in [Lithic::Internal::Util::JSONL_CONTENT, Enumerable] unless body.is_a?(Lithic::Internal::Type::FileInput)
575
- [headers, body.lazy.map { JSON.fast_generate(_1) }]
591
+ [headers, body.lazy.map { JSON.generate(_1) }]
576
592
  in [%r{^multipart/form-data}, Hash | Lithic::Internal::Type::FileInput]
577
593
  boundary, strio = encode_multipart_streaming(body)
578
594
  headers = {**headers, "content-type" => "#{content_type}; boundary=#{boundary}"}
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ CardEmbedResponse = String
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ Currency = String
6
+ end
7
+ end
@@ -0,0 +1,328 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ Account = Lithic::Models::Account
5
+
6
+ AccountFinancialAccountType = Lithic::Models::AccountFinancialAccountType
7
+
8
+ AccountHolder = Lithic::Models::AccountHolder
9
+
10
+ AccountHolderCreateParams = Lithic::Models::AccountHolderCreateParams
11
+
12
+ AccountHolderListDocumentsParams = Lithic::Models::AccountHolderListDocumentsParams
13
+
14
+ AccountHolderListParams = Lithic::Models::AccountHolderListParams
15
+
16
+ AccountHolderRetrieveDocumentParams = Lithic::Models::AccountHolderRetrieveDocumentParams
17
+
18
+ AccountHolderRetrieveParams = Lithic::Models::AccountHolderRetrieveParams
19
+
20
+ AccountHolderSimulateEnrollmentDocumentReviewParams =
21
+ Lithic::Models::AccountHolderSimulateEnrollmentDocumentReviewParams
22
+
23
+ AccountHolderSimulateEnrollmentReviewParams = Lithic::Models::AccountHolderSimulateEnrollmentReviewParams
24
+
25
+ AccountHolderUpdateParams = Lithic::Models::AccountHolderUpdateParams
26
+
27
+ AccountHolderUploadDocumentParams = Lithic::Models::AccountHolderUploadDocumentParams
28
+
29
+ AccountListParams = Lithic::Models::AccountListParams
30
+
31
+ AccountRetrieveParams = Lithic::Models::AccountRetrieveParams
32
+
33
+ AccountRetrieveSpendLimitsParams = Lithic::Models::AccountRetrieveSpendLimitsParams
34
+
35
+ AccountSpendLimits = Lithic::Models::AccountSpendLimits
36
+
37
+ AccountUpdateParams = Lithic::Models::AccountUpdateParams
38
+
39
+ Address = Lithic::Models::Address
40
+
41
+ AddressUpdate = Lithic::Models::AddressUpdate
42
+
43
+ AggregateBalance = Lithic::Models::AggregateBalance
44
+
45
+ AggregateBalanceListParams = Lithic::Models::AggregateBalanceListParams
46
+
47
+ APIStatus = Lithic::Models::APIStatus
48
+
49
+ AuthRules = Lithic::Models::AuthRules
50
+
51
+ AuthStreamEnrollmentRetrieveSecretParams = Lithic::Models::AuthStreamEnrollmentRetrieveSecretParams
52
+
53
+ AuthStreamEnrollmentRotateSecretParams = Lithic::Models::AuthStreamEnrollmentRotateSecretParams
54
+
55
+ AuthStreamSecret = Lithic::Models::AuthStreamSecret
56
+
57
+ Balance = Lithic::Models::Balance
58
+
59
+ BalanceListParams = Lithic::Models::BalanceListParams
60
+
61
+ BookTransferCreateParams = Lithic::Models::BookTransferCreateParams
62
+
63
+ BookTransferListParams = Lithic::Models::BookTransferListParams
64
+
65
+ BookTransferResponse = Lithic::Models::BookTransferResponse
66
+
67
+ BookTransferRetrieveParams = Lithic::Models::BookTransferRetrieveParams
68
+
69
+ BookTransferReverseParams = Lithic::Models::BookTransferReverseParams
70
+
71
+ Card = Lithic::Models::Card
72
+
73
+ CardConvertPhysicalParams = Lithic::Models::CardConvertPhysicalParams
74
+
75
+ CardCreateParams = Lithic::Models::CardCreateParams
76
+
77
+ CardEmbedParams = Lithic::Models::CardEmbedParams
78
+
79
+ CardListParams = Lithic::Models::CardListParams
80
+
81
+ CardProgram = Lithic::Models::CardProgram
82
+
83
+ CardProgramListParams = Lithic::Models::CardProgramListParams
84
+
85
+ CardProgramRetrieveParams = Lithic::Models::CardProgramRetrieveParams
86
+
87
+ CardProvisionParams = Lithic::Models::CardProvisionParams
88
+
89
+ CardReissueParams = Lithic::Models::CardReissueParams
90
+
91
+ CardRenewParams = Lithic::Models::CardRenewParams
92
+
93
+ CardRetrieveParams = Lithic::Models::CardRetrieveParams
94
+
95
+ CardRetrieveSpendLimitsParams = Lithic::Models::CardRetrieveSpendLimitsParams
96
+
97
+ Cards = Lithic::Models::Cards
98
+
99
+ CardSearchByPanParams = Lithic::Models::CardSearchByPanParams
100
+
101
+ CardSpendLimits = Lithic::Models::CardSpendLimits
102
+
103
+ CardUpdateParams = Lithic::Models::CardUpdateParams
104
+
105
+ Carrier = Lithic::Models::Carrier
106
+
107
+ ClientAPIStatusParams = Lithic::Models::ClientAPIStatusParams
108
+
109
+ CreditProducts = Lithic::Models::CreditProducts
110
+
111
+ Currency = Lithic::Models::Currency
112
+
113
+ DigitalCardArtAPI = Lithic::Models::DigitalCardArtAPI
114
+
115
+ DigitalCardArtListParams = Lithic::Models::DigitalCardArtListParams
116
+
117
+ DigitalCardArtRetrieveParams = Lithic::Models::DigitalCardArtRetrieveParams
118
+
119
+ Dispute = Lithic::Models::Dispute
120
+
121
+ DisputeCreateParams = Lithic::Models::DisputeCreateParams
122
+
123
+ DisputeDeleteEvidenceParams = Lithic::Models::DisputeDeleteEvidenceParams
124
+
125
+ DisputeDeleteParams = Lithic::Models::DisputeDeleteParams
126
+
127
+ DisputeEvidence = Lithic::Models::DisputeEvidence
128
+
129
+ DisputeInitiateEvidenceUploadParams = Lithic::Models::DisputeInitiateEvidenceUploadParams
130
+
131
+ DisputeListEvidencesParams = Lithic::Models::DisputeListEvidencesParams
132
+
133
+ DisputeListParams = Lithic::Models::DisputeListParams
134
+
135
+ DisputeRetrieveEvidenceParams = Lithic::Models::DisputeRetrieveEvidenceParams
136
+
137
+ DisputeRetrieveParams = Lithic::Models::DisputeRetrieveParams
138
+
139
+ DisputeUpdateParams = Lithic::Models::DisputeUpdateParams
140
+
141
+ Document = Lithic::Models::Document
142
+
143
+ Event = Lithic::Models::Event
144
+
145
+ EventListAttemptsParams = Lithic::Models::EventListAttemptsParams
146
+
147
+ EventListParams = Lithic::Models::EventListParams
148
+
149
+ EventRetrieveParams = Lithic::Models::EventRetrieveParams
150
+
151
+ Events = Lithic::Models::Events
152
+
153
+ EventSubscription = Lithic::Models::EventSubscription
154
+
155
+ ExternalBankAccountAddress = Lithic::Models::ExternalBankAccountAddress
156
+
157
+ ExternalBankAccountCreateParams = Lithic::Models::ExternalBankAccountCreateParams
158
+
159
+ ExternalBankAccountListParams = Lithic::Models::ExternalBankAccountListParams
160
+
161
+ ExternalBankAccountRetrieveParams = Lithic::Models::ExternalBankAccountRetrieveParams
162
+
163
+ ExternalBankAccountRetryMicroDepositsParams = Lithic::Models::ExternalBankAccountRetryMicroDepositsParams
164
+
165
+ ExternalBankAccountRetryPrenoteParams = Lithic::Models::ExternalBankAccountRetryPrenoteParams
166
+
167
+ ExternalBankAccounts = Lithic::Models::ExternalBankAccounts
168
+
169
+ ExternalBankAccountUpdateParams = Lithic::Models::ExternalBankAccountUpdateParams
170
+
171
+ ExternalPayment = Lithic::Models::ExternalPayment
172
+
173
+ ExternalPaymentCancelParams = Lithic::Models::ExternalPaymentCancelParams
174
+
175
+ ExternalPaymentCreateParams = Lithic::Models::ExternalPaymentCreateParams
176
+
177
+ ExternalPaymentListParams = Lithic::Models::ExternalPaymentListParams
178
+
179
+ ExternalPaymentReleaseParams = Lithic::Models::ExternalPaymentReleaseParams
180
+
181
+ ExternalPaymentRetrieveParams = Lithic::Models::ExternalPaymentRetrieveParams
182
+
183
+ ExternalPaymentReverseParams = Lithic::Models::ExternalPaymentReverseParams
184
+
185
+ ExternalPaymentSettleParams = Lithic::Models::ExternalPaymentSettleParams
186
+
187
+ FinancialAccount = Lithic::Models::FinancialAccount
188
+
189
+ FinancialAccountCreateParams = Lithic::Models::FinancialAccountCreateParams
190
+
191
+ FinancialAccountListParams = Lithic::Models::FinancialAccountListParams
192
+
193
+ FinancialAccountRetrieveParams = Lithic::Models::FinancialAccountRetrieveParams
194
+
195
+ FinancialAccounts = Lithic::Models::FinancialAccounts
196
+
197
+ FinancialAccountUpdateParams = Lithic::Models::FinancialAccountUpdateParams
198
+
199
+ FinancialAccountUpdateStatusParams = Lithic::Models::FinancialAccountUpdateStatusParams
200
+
201
+ FinancialTransaction = Lithic::Models::FinancialTransaction
202
+
203
+ InstanceFinancialAccountType = Lithic::Models::InstanceFinancialAccountType
204
+
205
+ KYB = Lithic::Models::KYB
206
+
207
+ KYBBusinessEntity = Lithic::Models::KYBBusinessEntity
208
+
209
+ KYC = Lithic::Models::KYC
210
+
211
+ KYCExempt = Lithic::Models::KYCExempt
212
+
213
+ ManagementOperationCreateParams = Lithic::Models::ManagementOperationCreateParams
214
+
215
+ ManagementOperationListParams = Lithic::Models::ManagementOperationListParams
216
+
217
+ ManagementOperationRetrieveParams = Lithic::Models::ManagementOperationRetrieveParams
218
+
219
+ ManagementOperationReverseParams = Lithic::Models::ManagementOperationReverseParams
220
+
221
+ ManagementOperationTransaction = Lithic::Models::ManagementOperationTransaction
222
+
223
+ MessageAttempt = Lithic::Models::MessageAttempt
224
+
225
+ NonPCICard = Lithic::Models::NonPCICard
226
+
227
+ OwnerType = Lithic::Models::OwnerType
228
+
229
+ Payment = Lithic::Models::Payment
230
+
231
+ PaymentCreateParams = Lithic::Models::PaymentCreateParams
232
+
233
+ PaymentListParams = Lithic::Models::PaymentListParams
234
+
235
+ PaymentRetrieveParams = Lithic::Models::PaymentRetrieveParams
236
+
237
+ PaymentRetryParams = Lithic::Models::PaymentRetryParams
238
+
239
+ PaymentSimulateActionParams = Lithic::Models::PaymentSimulateActionParams
240
+
241
+ PaymentSimulateReceiptParams = Lithic::Models::PaymentSimulateReceiptParams
242
+
243
+ PaymentSimulateReleaseParams = Lithic::Models::PaymentSimulateReleaseParams
244
+
245
+ PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams
246
+
247
+ Reports = Lithic::Models::Reports
248
+
249
+ RequiredDocument = Lithic::Models::RequiredDocument
250
+
251
+ ResponderEndpointCheckStatusParams = Lithic::Models::ResponderEndpointCheckStatusParams
252
+
253
+ ResponderEndpointCreateParams = Lithic::Models::ResponderEndpointCreateParams
254
+
255
+ ResponderEndpointDeleteParams = Lithic::Models::ResponderEndpointDeleteParams
256
+
257
+ ResponderEndpointStatus = Lithic::Models::ResponderEndpointStatus
258
+
259
+ SettlementDetail = Lithic::Models::SettlementDetail
260
+
261
+ SettlementReport = Lithic::Models::SettlementReport
262
+
263
+ SettlementSummaryDetails = Lithic::Models::SettlementSummaryDetails
264
+
265
+ ShippingAddress = Lithic::Models::ShippingAddress
266
+
267
+ SpendLimitDuration = Lithic::Models::SpendLimitDuration
268
+
269
+ ThreeDS = Lithic::Models::ThreeDS
270
+
271
+ Tokenization = Lithic::Models::Tokenization
272
+
273
+ TokenizationActivateParams = Lithic::Models::TokenizationActivateParams
274
+
275
+ TokenizationDeactivateParams = Lithic::Models::TokenizationDeactivateParams
276
+
277
+ TokenizationDecisioningRetrieveSecretParams = Lithic::Models::TokenizationDecisioningRetrieveSecretParams
278
+
279
+ TokenizationDecisioningRotateSecretParams = Lithic::Models::TokenizationDecisioningRotateSecretParams
280
+
281
+ TokenizationListParams = Lithic::Models::TokenizationListParams
282
+
283
+ TokenizationPauseParams = Lithic::Models::TokenizationPauseParams
284
+
285
+ TokenizationResendActivationCodeParams = Lithic::Models::TokenizationResendActivationCodeParams
286
+
287
+ TokenizationRetrieveParams = Lithic::Models::TokenizationRetrieveParams
288
+
289
+ TokenizationSecret = Lithic::Models::TokenizationSecret
290
+
291
+ TokenizationSimulateParams = Lithic::Models::TokenizationSimulateParams
292
+
293
+ TokenizationUnpauseParams = Lithic::Models::TokenizationUnpauseParams
294
+
295
+ TokenizationUpdateDigitalCardArtParams = Lithic::Models::TokenizationUpdateDigitalCardArtParams
296
+
297
+ Transaction = Lithic::Models::Transaction
298
+
299
+ TransactionExpireAuthorizationParams = Lithic::Models::TransactionExpireAuthorizationParams
300
+
301
+ TransactionListParams = Lithic::Models::TransactionListParams
302
+
303
+ TransactionRetrieveParams = Lithic::Models::TransactionRetrieveParams
304
+
305
+ Transactions = Lithic::Models::Transactions
306
+
307
+ TransactionSimulateAuthorizationAdviceParams =
308
+ Lithic::Models::TransactionSimulateAuthorizationAdviceParams
309
+
310
+ TransactionSimulateAuthorizationParams = Lithic::Models::TransactionSimulateAuthorizationParams
311
+
312
+ TransactionSimulateClearingParams = Lithic::Models::TransactionSimulateClearingParams
313
+
314
+ TransactionSimulateCreditAuthorizationParams =
315
+ Lithic::Models::TransactionSimulateCreditAuthorizationParams
316
+
317
+ TransactionSimulateReturnParams = Lithic::Models::TransactionSimulateReturnParams
318
+
319
+ TransactionSimulateReturnReversalParams = Lithic::Models::TransactionSimulateReturnReversalParams
320
+
321
+ TransactionSimulateVoidParams = Lithic::Models::TransactionSimulateVoidParams
322
+
323
+ Transfer = Lithic::Models::Transfer
324
+
325
+ TransferCreateParams = Lithic::Models::TransferCreateParams
326
+
327
+ VerificationMethod = Lithic::Models::VerificationMethod
328
+ end
@@ -78,7 +78,7 @@ module Lithic
78
78
  path: "v1/account_holders",
79
79
  body: parsed,
80
80
  model: Lithic::Models::AccountHolderCreateResponse,
81
- options: options
81
+ options: {timeout: 300, **options}
82
82
  )
83
83
  end
84
84
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.1.0.pre.alpha.20"
4
+ VERSION = "0.1.0.pre.alpha.21"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -118,6 +118,7 @@ require_relative "lithic/models/card"
118
118
  require_relative "lithic/models/card_convert_physical_params"
119
119
  require_relative "lithic/models/card_create_params"
120
120
  require_relative "lithic/models/card_embed_params"
121
+ require_relative "lithic/models/card_embed_response"
121
122
  require_relative "lithic/models/card_list_params"
122
123
  require_relative "lithic/models/card_program"
123
124
  require_relative "lithic/models/card_program_list_params"
@@ -144,6 +145,7 @@ require_relative "lithic/models/credit_products/extended_credit_retrieve_params"
144
145
  require_relative "lithic/models/credit_products/prime_rate_create_params"
145
146
  require_relative "lithic/models/credit_products/prime_rate_retrieve_params"
146
147
  require_relative "lithic/models/credit_products/prime_rate_retrieve_response"
148
+ require_relative "lithic/models/currency"
147
149
  require_relative "lithic/models/digital_card_art"
148
150
  require_relative "lithic/models/digital_card_art_list_params"
149
151
  require_relative "lithic/models/digital_card_art_retrieve_params"
@@ -137,7 +137,7 @@ module Lithic
137
137
  end
138
138
 
139
139
  class InternalServerError < Lithic::Errors::APIStatusError
140
- HTTP_STATUS = T.let((500..), T::Range[Integer])
140
+ HTTP_STATUS = T.let(500.., T::Range[Integer])
141
141
  end
142
142
  end
143
143
  end
@@ -42,6 +42,10 @@ module Lithic
42
42
  # @api private
43
43
  sig { params(input: T.anything).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) }
44
44
  def coerce_hash(input); end
45
+
46
+ # @api private
47
+ sig { params(input: T.anything).returns(T.nilable(T::Hash[T.anything, T.anything])) }
48
+ def coerce_hash!(input); end
45
49
  end
46
50
 
47
51
  class << self
@@ -2,6 +2,8 @@
2
2
 
3
3
  module Lithic
4
4
  module Models
5
+ AuthRule = AuthRules::AuthRule
6
+
5
7
  module AuthRules
6
8
  class AuthRule < Lithic::Internal::Type::BaseModel
7
9
  # Globally unique identifier.
@@ -140,7 +142,5 @@ module Lithic
140
142
  end
141
143
  end
142
144
  end
143
-
144
- AuthRule = AuthRules::AuthRule
145
145
  end
146
146
  end
@@ -2,6 +2,8 @@
2
2
 
3
3
  module Lithic
4
4
  module Models
5
+ AuthRuleCondition = AuthRules::AuthRuleCondition
6
+
5
7
  module AuthRules
6
8
  class AuthRuleCondition < Lithic::Internal::Type::BaseModel
7
9
  # The attribute to target.
@@ -178,7 +180,5 @@ module Lithic
178
180
  end
179
181
  end
180
182
  end
181
-
182
- AuthRuleCondition = AuthRules::AuthRuleCondition
183
183
  end
184
184
  end
@@ -0,0 +1,7 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ CardEmbedResponse = String
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ Currency = String
6
+ end
7
+ end