Class: ChargeBee::Card

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/card.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#billing_addr1Object

Returns the value of attribute billing_addr1.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def billing_addr1
  @billing_addr1
end

#billing_addr2Object

Returns the value of attribute billing_addr2.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def billing_addr2
  @billing_addr2
end

#billing_cityObject

Returns the value of attribute billing_city.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def billing_city
  @billing_city
end

#billing_countryObject

Returns the value of attribute billing_country.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def billing_country
  @billing_country
end

#billing_stateObject

Returns the value of attribute billing_state.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def billing_state
  @billing_state
end

#billing_state_codeObject

Returns the value of attribute billing_state_code.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def billing_state_code
  @billing_state_code
end

#billing_zipObject

Returns the value of attribute billing_zip.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def billing_zip
  @billing_zip
end

#card_typeObject

Returns the value of attribute card_type.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def card_type
  @card_type
end

#created_atObject

Returns the value of attribute created_at.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def created_at
  @created_at
end

#customer_idObject

Returns the value of attribute customer_id.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def customer_id
  @customer_id
end

#expiry_monthObject

Returns the value of attribute expiry_month.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def expiry_month
  @expiry_month
end

#expiry_yearObject

Returns the value of attribute expiry_year.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def expiry_year
  @expiry_year
end

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def first_name
  @first_name
end

#funding_typeObject

Returns the value of attribute funding_type.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def funding_type
  @funding_type
end

#gatewayObject

Returns the value of attribute gateway.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def gateway
  @gateway
end

#gateway_account_idObject

Returns the value of attribute gateway_account_id.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def 
  @gateway_account_id
end

#iinObject

Returns the value of attribute iin.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def iin
  @iin
end

#ip_addressObject

Returns the value of attribute ip_address.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def ip_address
  @ip_address
end

#issuing_countryObject

Returns the value of attribute issuing_country.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def issuing_country
  @issuing_country
end

#last4Object

Returns the value of attribute last4.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def last4
  @last4
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def last_name
  @last_name
end

#masked_numberObject

Returns the value of attribute masked_number.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def masked_number
  @masked_number
end

#payment_source_idObject

Returns the value of attribute payment_source_id.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def payment_source_id
  @payment_source_id
end

#powered_byObject

Returns the value of attribute powered_by.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def powered_by
  @powered_by
end

#ref_tx_idObject

Returns the value of attribute ref_tx_id.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def ref_tx_id
  @ref_tx_id
end

#resource_versionObject

Returns the value of attribute resource_version.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def resource_version
  @resource_version
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def status
  @status
end

#updated_atObject

Returns the value of attribute updated_at.



4
5
6
# File 'lib/chargebee/models/card.rb', line 4

def updated_at
  @updated_at
end

Class Method Details

.copy_card_for_customer(id, params, env = nil, headers = {}) ⇒ Object



25
26
27
# File 'lib/chargebee/models/card.rb', line 25

def self.copy_card_for_customer(id, params, env=nil, headers={})
  Request.send('post', uri_path("customers",id.to_s,"copy_card"), params, env, headers)
end

.delete_card_for_customer(id, env = nil, headers = {}) ⇒ Object



29
30
31
# File 'lib/chargebee/models/card.rb', line 29

def self.delete_card_for_customer(id, env=nil, headers={})
  Request.send('post', uri_path("customers",id.to_s,"delete_card"), {}, env, headers)
end

.retrieve(id, env = nil, headers = {}) ⇒ Object

OPERATIONS




13
14
15
# File 'lib/chargebee/models/card.rb', line 13

def self.retrieve(id, env=nil, headers={})
  Request.send('get', uri_path("cards",id.to_s), {}, env, headers)
end

.switch_gateway_for_customer(id, params, env = nil, headers = {}) ⇒ Object



21
22
23
# File 'lib/chargebee/models/card.rb', line 21

def self.switch_gateway_for_customer(id, params, env=nil, headers={})
  Request.send('post', uri_path("customers",id.to_s,"switch_gateway"), params, env, headers)
end

.update_card_for_customer(id, params, env = nil, headers = {}) ⇒ Object



17
18
19
# File 'lib/chargebee/models/card.rb', line 17

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