Class: ChargeBee::Card
Instance Attribute Summary collapse
-
#billing_addr1 ⇒ Object
Returns the value of attribute billing_addr1.
-
#billing_addr2 ⇒ Object
Returns the value of attribute billing_addr2.
-
#billing_city ⇒ Object
Returns the value of attribute billing_city.
-
#billing_country ⇒ Object
Returns the value of attribute billing_country.
-
#billing_state ⇒ Object
Returns the value of attribute billing_state.
-
#billing_state_code ⇒ Object
Returns the value of attribute billing_state_code.
-
#billing_zip ⇒ Object
Returns the value of attribute billing_zip.
-
#card_type ⇒ Object
Returns the value of attribute card_type.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#expiry_month ⇒ Object
Returns the value of attribute expiry_month.
-
#expiry_year ⇒ Object
Returns the value of attribute expiry_year.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#funding_type ⇒ Object
Returns the value of attribute funding_type.
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
-
#iin ⇒ Object
Returns the value of attribute iin.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#issuing_country ⇒ Object
Returns the value of attribute issuing_country.
-
#last4 ⇒ Object
Returns the value of attribute last4.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#masked_number ⇒ Object
Returns the value of attribute masked_number.
-
#payment_source_id ⇒ Object
Returns the value of attribute payment_source_id.
-
#powered_by ⇒ Object
Returns the value of attribute powered_by.
-
#ref_tx_id ⇒ Object
Returns the value of attribute ref_tx_id.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
- .copy_card_for_customer(id, params, env = nil, headers = {}) ⇒ Object
- .delete_card_for_customer(id, env = nil, headers = {}) ⇒ Object
-
.retrieve(id, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .switch_gateway_for_customer(id, params, env = nil, headers = {}) ⇒ Object
- .update_card_for_customer(id, params, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #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 |
#created_at ⇒ Object
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_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 @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 |
#issuing_country ⇒ Object
Returns the value of attribute issuing_country.
4 5 6 |
# File 'lib/chargebee/models/card.rb', line 4 def issuing_country @issuing_country 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 |
#payment_source_id ⇒ Object
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_by ⇒ Object
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_id ⇒ Object
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_version ⇒ Object
Returns the value of attribute resource_version.
4 5 6 |
# File 'lib/chargebee/models/card.rb', line 4 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/card.rb', line 4 def status @status end |
#updated_at ⇒ Object
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 |