Sha256: e974e9678ef2d70e874592a1fdcb80c1fc286bf2f65b1846f20780071928e0fe
Contents?: true
Size: 823 Bytes
Versions: 14
Compression:
Stored size: 823 Bytes
Contents
module ChargeBee class Card < Model attr_accessor :customer_id, :status, :gateway, :first_name, :last_name, :iin, :last4, :card_type, :expiry_month, :expiry_year, :billing_addr1, :billing_addr2, :billing_city, :billing_state_code, :billing_state, :billing_country, :billing_zip, :ip_address, :masked_number # OPERATIONS #----------- def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("cards",id.to_s), {}, env, headers) end def self.update_card_for_customer(id, params, env=nil, headers={}) Request.send('post', uri_path("customers",id.to_s,"credit_card"), params, env, headers) end def self.delete_card_for_customer(id, env=nil, headers={}) Request.send('post', uri_path("customers",id.to_s,"delete_card"), {}, env, headers) end end # ~Card end # ~ChargeBee
Version data entries
14 entries across 14 versions & 1 rubygems