lithic 0.1.0.pre.alpha.34 → 0.1.0.pre.alpha.35

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: fc2b97724913cf259b2ddeaea843b6f8d6e13750145554108b6d1d695ef18543
4
- data.tar.gz: f9160e474aa8fb0aceaf9a5fdb3b2478caed27cda5c96489bef2c2b9c449f1e4
3
+ metadata.gz: a1c0a988c6f8d21fe6ebaa3f71a6fcb8c9a3fc3daef5fed9748e13bc3ff55979
4
+ data.tar.gz: 063fc167381abefcf39d7773bb66951f1b4527e6e110aed5a5fd0d8cfd1d1401
5
5
  SHA512:
6
- metadata.gz: 9b873bd933dbddcbce2206ea4d35604ce9714fb120675c4296bc6f2a0bc992951d54ed59f08e478a459553f92aced06a85aca339d4ff5295d404a0965ff7b048
7
- data.tar.gz: 7428fb3a12056ee6ed8cad57d00f7a1abf00285ee07f9c8f0d7e94ddab003eaf3ac9fd8ce831868b69afb0594bdcbcecd6f91983a35b328eddf9ae6cfbde83f3
6
+ metadata.gz: bf7f69694992d132bf50a8e7b756b63a9ef2d75d03ec58595928923b99cf43103c6b0278092344b56fae24a544bb79a803a3f6ded833cdf7aa9a9dd705cf930e
7
+ data.tar.gz: 83b31a2211095144b31c6dede94bd25994c9033f3d3710ee275909b7402c1265a3f60bb1b584eba4a79ed2097350daacf83b9068a6e50a828b5769079ad47fd3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.35 (2025-06-27)
4
+
5
+ Full Changelog: [v0.1.0-alpha.34...v0.1.0-alpha.35](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.34...v0.1.0-alpha.35)
6
+
7
+ ### Features
8
+
9
+ * **api:** introduce dedicated model for SpendLimitDuration ([47e4f42](https://github.com/lithic-com/lithic-ruby/commit/47e4f42231c996fe56ff2f681baaae2ac1c6c588))
10
+
3
11
  ## 0.1.0-alpha.34 (2025-06-26)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.33...v0.1.0-alpha.34](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.33...v0.1.0-alpha.34)
data/README.md CHANGED
@@ -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.34"
18
+ gem "lithic", "~> 0.1.0.pre.alpha.35"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -55,10 +55,21 @@ module Lithic
55
55
  required :spend_limit, Integer
56
56
 
57
57
  # @!attribute spend_limit_duration
58
- # Spend limit duration
59
- #
60
- # @return [Symbol, Lithic::Models::NonPCICard::SpendLimitDuration]
61
- required :spend_limit_duration, enum: -> { Lithic::NonPCICard::SpendLimitDuration }
58
+ # Spend limit duration values:
59
+ #
60
+ # - `ANNUALLY` - Card will authorize transactions up to spend limit for the
61
+ # trailing year.
62
+ # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
63
+ # of the card.
64
+ # - `MONTHLY` - Card will authorize transactions up to spend limit for the
65
+ # trailing month. To support recurring monthly payments, which can occur on
66
+ # different day every month, the time window we consider for monthly velocity
67
+ # starts 6 days after the current calendar date one month prior.
68
+ # - `TRANSACTION` - Card will authorize multiple transactions if each individual
69
+ # transaction is under the spend limit.
70
+ #
71
+ # @return [Symbol, Lithic::Models::SpendLimitDuration]
72
+ required :spend_limit_duration, enum: -> { Lithic::SpendLimitDuration }
62
73
 
63
74
  # @!attribute state
64
75
  # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
@@ -189,7 +200,7 @@ module Lithic
189
200
  #
190
201
  # @param spend_limit [Integer] Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,00
191
202
  #
192
- # @param spend_limit_duration [Symbol, Lithic::Models::NonPCICard::SpendLimitDuration] Spend limit duration
203
+ # @param spend_limit_duration [Symbol, Lithic::Models::SpendLimitDuration] Spend limit duration values:
193
204
  #
194
205
  # @param state [Symbol, Lithic::Models::NonPCICard::State] Card state values: \* `CLOSED` - Card will no longer approve authorizations.
195
206
  # Clos
@@ -335,22 +346,6 @@ module Lithic
335
346
  # @return [Array<Symbol>]
336
347
  end
337
348
 
338
- # Spend limit duration
339
- #
340
- # @see Lithic::Models::NonPCICard#spend_limit_duration
341
- module SpendLimitDuration
342
- extend Lithic::Internal::Type::Enum
343
-
344
- ANNUALLY = :ANNUALLY
345
- FOREVER = :FOREVER
346
- MONTHLY = :MONTHLY
347
- TRANSACTION = :TRANSACTION
348
- DAILY = :DAILY
349
-
350
- # @!method self.values
351
- # @return [Array<Symbol>]
352
- end
353
-
354
349
  # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
355
350
  # Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
356
351
  # they match card and account parameters). _ `PAUSED` - Card will decline
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.1.0.pre.alpha.34"
4
+ VERSION = "0.1.0.pre.alpha.35"
5
5
  end
@@ -43,8 +43,19 @@ module Lithic
43
43
  sig { returns(Integer) }
44
44
  attr_accessor :spend_limit
45
45
 
46
- # Spend limit duration
47
- sig { returns(Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol) }
46
+ # Spend limit duration values:
47
+ #
48
+ # - `ANNUALLY` - Card will authorize transactions up to spend limit for the
49
+ # trailing year.
50
+ # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
51
+ # of the card.
52
+ # - `MONTHLY` - Card will authorize transactions up to spend limit for the
53
+ # trailing month. To support recurring monthly payments, which can occur on
54
+ # different day every month, the time window we consider for monthly velocity
55
+ # starts 6 days after the current calendar date one month prior.
56
+ # - `TRANSACTION` - Card will authorize multiple transactions if each individual
57
+ # transaction is under the spend limit.
58
+ sig { returns(Lithic::SpendLimitDuration::TaggedSymbol) }
48
59
  attr_accessor :spend_limit_duration
49
60
 
50
61
  # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
@@ -166,8 +177,7 @@ module Lithic
166
177
  last_four: String,
167
178
  pin_status: Lithic::NonPCICard::PinStatus::OrSymbol,
168
179
  spend_limit: Integer,
169
- spend_limit_duration:
170
- Lithic::NonPCICard::SpendLimitDuration::OrSymbol,
180
+ spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
171
181
  state: Lithic::NonPCICard::State::OrSymbol,
172
182
  type: Lithic::NonPCICard::Type::OrSymbol,
173
183
  auth_rule_tokens: T::Array[String],
@@ -201,7 +211,18 @@ module Lithic
201
211
  # Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
202
212
  # $1,000 limit). Transaction requests above the spend limit will be declined.
203
213
  spend_limit:,
204
- # Spend limit duration
214
+ # Spend limit duration values:
215
+ #
216
+ # - `ANNUALLY` - Card will authorize transactions up to spend limit for the
217
+ # trailing year.
218
+ # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
219
+ # of the card.
220
+ # - `MONTHLY` - Card will authorize transactions up to spend limit for the
221
+ # trailing month. To support recurring monthly payments, which can occur on
222
+ # different day every month, the time window we consider for monthly velocity
223
+ # starts 6 days after the current calendar date one month prior.
224
+ # - `TRANSACTION` - Card will authorize multiple transactions if each individual
225
+ # transaction is under the spend limit.
205
226
  spend_limit_duration:,
206
227
  # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
207
228
  # Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
@@ -274,8 +295,7 @@ module Lithic
274
295
  last_four: String,
275
296
  pin_status: Lithic::NonPCICard::PinStatus::TaggedSymbol,
276
297
  spend_limit: Integer,
277
- spend_limit_duration:
278
- Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol,
298
+ spend_limit_duration: Lithic::SpendLimitDuration::TaggedSymbol,
279
299
  state: Lithic::NonPCICard::State::TaggedSymbol,
280
300
  type: Lithic::NonPCICard::Type::TaggedSymbol,
281
301
  auth_rule_tokens: T::Array[String],
@@ -471,37 +491,6 @@ module Lithic
471
491
  end
472
492
  end
473
493
 
474
- # Spend limit duration
475
- module SpendLimitDuration
476
- extend Lithic::Internal::Type::Enum
477
-
478
- TaggedSymbol =
479
- T.type_alias { T.all(Symbol, Lithic::NonPCICard::SpendLimitDuration) }
480
- OrSymbol = T.type_alias { T.any(Symbol, String) }
481
-
482
- ANNUALLY =
483
- T.let(:ANNUALLY, Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol)
484
- FOREVER =
485
- T.let(:FOREVER, Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol)
486
- MONTHLY =
487
- T.let(:MONTHLY, Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol)
488
- TRANSACTION =
489
- T.let(
490
- :TRANSACTION,
491
- Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol
492
- )
493
- DAILY =
494
- T.let(:DAILY, Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol)
495
-
496
- sig do
497
- override.returns(
498
- T::Array[Lithic::NonPCICard::SpendLimitDuration::TaggedSymbol]
499
- )
500
- end
501
- def self.values
502
- end
503
- end
504
-
505
494
  # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
506
495
  # Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
507
496
  # they match card and account parameters). _ `PAUSED` - Card will decline
@@ -10,7 +10,7 @@ module Lithic
10
10
  last_four: String,
11
11
  pin_status: Lithic::Models::NonPCICard::pin_status,
12
12
  spend_limit: Integer,
13
- spend_limit_duration: Lithic::Models::NonPCICard::spend_limit_duration,
13
+ spend_limit_duration: Lithic::Models::spend_limit_duration,
14
14
  state: Lithic::Models::NonPCICard::state,
15
15
  type: Lithic::Models::NonPCICard::type_,
16
16
  auth_rule_tokens: ::Array[String],
@@ -42,7 +42,7 @@ module Lithic
42
42
 
43
43
  attr_accessor spend_limit: Integer
44
44
 
45
- attr_accessor spend_limit_duration: Lithic::Models::NonPCICard::spend_limit_duration
45
+ attr_accessor spend_limit_duration: Lithic::Models::spend_limit_duration
46
46
 
47
47
  attr_accessor state: Lithic::Models::NonPCICard::state
48
48
 
@@ -95,7 +95,7 @@ module Lithic
95
95
  last_four: String,
96
96
  pin_status: Lithic::Models::NonPCICard::pin_status,
97
97
  spend_limit: Integer,
98
- spend_limit_duration: Lithic::Models::NonPCICard::spend_limit_duration,
98
+ spend_limit_duration: Lithic::Models::spend_limit_duration,
99
99
  state: Lithic::Models::NonPCICard::state,
100
100
  type: Lithic::Models::NonPCICard::type_,
101
101
  ?auth_rule_tokens: ::Array[String],
@@ -119,7 +119,7 @@ module Lithic
119
119
  last_four: String,
120
120
  pin_status: Lithic::Models::NonPCICard::pin_status,
121
121
  spend_limit: Integer,
122
- spend_limit_duration: Lithic::Models::NonPCICard::spend_limit_duration,
122
+ spend_limit_duration: Lithic::Models::spend_limit_duration,
123
123
  state: Lithic::Models::NonPCICard::state,
124
124
  type: Lithic::Models::NonPCICard::type_,
125
125
  auth_rule_tokens: ::Array[String],
@@ -220,21 +220,6 @@ module Lithic
220
220
  def self?.values: -> ::Array[Lithic::Models::NonPCICard::pin_status]
221
221
  end
222
222
 
223
- type spend_limit_duration =
224
- :ANNUALLY | :FOREVER | :MONTHLY | :TRANSACTION | :DAILY
225
-
226
- module SpendLimitDuration
227
- extend Lithic::Internal::Type::Enum
228
-
229
- ANNUALLY: :ANNUALLY
230
- FOREVER: :FOREVER
231
- MONTHLY: :MONTHLY
232
- TRANSACTION: :TRANSACTION
233
- DAILY: :DAILY
234
-
235
- def self?.values: -> ::Array[Lithic::Models::NonPCICard::spend_limit_duration]
236
- end
237
-
238
223
  type state =
239
224
  :CLOSED | :OPEN | :PAUSED | :PENDING_ACTIVATION | :PENDING_FULFILLMENT
240
225
 
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.1.0.pre.alpha.34
4
+ version: 0.1.0.pre.alpha.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-26 00:00:00.000000000 Z
11
+ date: 2025-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool