lib/lithic/models/spend_limit_duration.rb



# frozen_string_literal: true

module Lithic
  module Models
    # Spend limit duration values:
    #
    # - `ANNUALLY` - Card will authorize transactions up to spend limit for the
    #   trailing year.
    # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
    #   of the card.
    # - `MONTHLY` - Card will authorize transactions up to spend limit for the
    #   trailing month. To support recurring monthly payments, which can occur on
    #   different day every month, the time window we consider for monthly velocity
    #   starts 6 days after the current calendar date one month prior.
    # - `TRANSACTION` - Card will authorize multiple transactions if each individual
    #   transaction is under the spend limit.
    module SpendLimitDuration
      extend Lithic::Internal::Type::Enum

      ANNUALLY = :ANNUALLY
      FOREVER = :FOREVER
      MONTHLY = :MONTHLY
      TRANSACTION = :TRANSACTION

      # @!method self.values
      #   @return [Array<Symbol>]
    end
  end
end