@@ -43,8 +43,19 @@ module Lithic
4343 sig { returns ( Integer ) }
4444 attr_accessor :spend_limit
4545
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 ) }
4859 attr_accessor :spend_limit_duration
4960
5061 # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
@@ -166,8 +177,7 @@ module Lithic
166177 last_four : String ,
167178 pin_status : Lithic ::NonPCICard ::PinStatus ::OrSymbol ,
168179 spend_limit : Integer ,
169- spend_limit_duration :
170- Lithic ::NonPCICard ::SpendLimitDuration ::OrSymbol ,
180+ spend_limit_duration : Lithic ::SpendLimitDuration ::OrSymbol ,
171181 state : Lithic ::NonPCICard ::State ::OrSymbol ,
172182 type : Lithic ::NonPCICard ::Type ::OrSymbol ,
173183 auth_rule_tokens : T ::Array [ String ] ,
@@ -201,7 +211,18 @@ module Lithic
201211 # Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
202212 # $1,000 limit). Transaction requests above the spend limit will be declined.
203213 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.
205226 spend_limit_duration :,
206227 # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
207228 # Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
@@ -274,8 +295,7 @@ module Lithic
274295 last_four : String ,
275296 pin_status : Lithic ::NonPCICard ::PinStatus ::TaggedSymbol ,
276297 spend_limit : Integer ,
277- spend_limit_duration :
278- Lithic ::NonPCICard ::SpendLimitDuration ::TaggedSymbol ,
298+ spend_limit_duration : Lithic ::SpendLimitDuration ::TaggedSymbol ,
279299 state : Lithic ::NonPCICard ::State ::TaggedSymbol ,
280300 type : Lithic ::NonPCICard ::Type ::TaggedSymbol ,
281301 auth_rule_tokens : T ::Array [ String ] ,
@@ -471,37 +491,6 @@ module Lithic
471491 end
472492 end
473493
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-
505494 # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
506495 # Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
507496 # they match card and account parameters). _ `PAUSED` - Card will decline
0 commit comments