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_addr1 ⇒ Object

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_addr2 ⇒ Object

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_city ⇒ Object

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_country ⇒ Object

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_state ⇒ Object

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_code ⇒ Object

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_zip ⇒ Object

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_type ⇒ Object

Returns the value of attribute card_type.



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

def card_type
  @card_type
end

#customer_id ⇒ Object

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_month ⇒ Object

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_year ⇒ Object

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_name ⇒ Object

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_type ⇒ Object

Returns the value of attribute funding_type.



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

def funding_type
  @funding_type
end

#gateway ⇒ Object

Returns the value of attribute gateway.



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

def gateway
  @gateway
end

#gateway_account_id ⇒ Object

Returns the value of attribute gateway_account_id.



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

def 
  @gateway_account_id
end

#iin ⇒ Object

Returns the value of attribute iin.



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

def iin
  @iin
end

#ip_address ⇒ Object

Returns the value of attribute ip_address.



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

def ip_address
  @ip_address
end

#last4 ⇒ Object

Returns the value of attribute last4.



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

def last4
  @last4
end

#last_name ⇒ Object

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_number ⇒ Object

Returns the value of attribute masked_number.



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

def masked_number
  @masked_number
end

#status ⇒ Object

Returns the value of attribute status.



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

def status
  @status
end

Class Method Details

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



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

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



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

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



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

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



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

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



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

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