Sha256: 9021f0a771db12b51a59e09a7a337daec2ce19bfe70f43883e6ba24d93253ab7

Contents?: true

Size: 871 Bytes

Versions: 4

Compression:

Stored size: 871 Bytes

Contents

module Charger

  class CreditCard
    include Resource

    VAULTS = %w{cancellation_message trust_commerce payment_express beanstream braintree1}

    attribute :id, Integer
    attribute :payment_profile_id, Integer
    attribute :card_type, String
    attribute :expiration_month, Integer
    attribute :expiration_year, Integer
    attribute :first_name, String
    attribute :last_name, String
    attribute :masked_card_number, String
    attribute :customer_id, Integer
    attribute :customer_vault_token, String
    attribute :vault_token, String
    attribute :current_vault, String
    attribute :billing_address, String
    attribute :billing_address_2, String
    attribute :billing_city, String
    attribute :billing_state, String
    attribute :billing_zip, String
    attribute :billing_country, String

    def persisted?
      !!id
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
charger-0.2.0 lib/charger/credit_card.rb
charger-0.1.1 lib/charger/credit_card.rb
charger-0.1.0 lib/charger/credit_card.rb
charger-0.0.3 lib/charger/credit_card.rb