Sha256: 393aed0eeeead74515f51f8f0bf0e245b14eed37c01dbe8f8f66db05ae4e0dcf

Contents?: true

Size: 1.31 KB

Versions: 25

Compression:

Stored size: 1.31 KB

Contents

# == Schema Information
#
# Endpoint: 
#  - /v1/credit_cards
#  - /v1/organizations/:organization_id/credit_card
#
#  id               :integer         not null, primary key
#  title            :string(255)
#  first_name       :string(255)
#  last_name        :string(255)
#  country          :string(255)
#  masked_number    :string(255)
#  month            :integer
#  year             :integer
#  user_id          :integer
#  token            :string(255)
#  created_at       :datetime        not null
#  updated_at       :datetime        not null
#  owner_id         :integer
#  owner_type       :string(255)
#  billing_address  :text
#  billing_city     :string(255)
#  billing_postcode :string(255)
#  billing_country  :string(255)
#  duplicated       :boolean         default(FALSE)
#

module MnoEnterprise
  class CreditCard < BaseResource
    
    attributes :id, :created_at, :updated_at, :title, :first_name, :last_name, :country, :masked_number, :number,
    :month, :year, :billing_address, :billing_city, :billing_postcode, :billing_country, :verification_value, :organization_id
    
    #==============================================================
    # Associations
    #==============================================================
    belongs_to :organization, class_name: 'MnoEnterprise::Organization'
    
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mno-enterprise-core-3.2.1 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.2.0 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.1.4 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.0.7 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-2.0.9 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.1.3 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.0.6 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-2.0.8 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.1.2 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.0.5 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-2.0.7 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-2.0.6 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-2.0.5 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.1.1 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.0.4 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-2.0.4 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.1.0 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.0.3 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-2.0.3 app/models/mno_enterprise/credit_card.rb
mno-enterprise-core-3.0.2 app/models/mno_enterprise/credit_card.rb