Sha256: d2f54caceb86b4068c00b3b66a691e8eb90d7413422c18cfc6763becd1cc64e1

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

module Unit
  class IndividualDebitCard < Util::APIResource
    path '/cards'

    attribute :shipping_address, Types::Address # Optional. Address to ship the card to. If not specified, the individual address is used.
    attribute :design, Types::String # Optional. You may omit if you only have one card design. Please contact Unit if you need multiple card designs.
    attribute :additional_embossed_text, Types::String # Optional, up to 21 characters. Use for a second cardholder name, company name, or other data to be embossed on a card.
    attribute :idempotency_key, Types::String # Optional
    attribute :tags, Types::Hash # Optional
    attribute :limits, Types::Hash # Optional

    attribute :created_at, Types::DateTime, readonly: true
    attribute :last4_digits, Types::String
    attribute :expiration_date, Types::String, readonly: true
    attribute :status, Types::String, readonly: true

    belongs_to :customer, class_name: 'Unit::IndividualCustomer'
    belongs_to :account, class_name: 'Unit::DepositAccount'

    include Util::ResourceOperations::List
    include Util::ResourceOperations::Create
    include Util::ResourceOperations::Save
    include Util::ResourceOperations::Find
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unit-ruby-0.1.0 lib/unit-ruby/individual_debit_card.rb