Class: ChargeBee::PaymentSource
- Defined in:
- lib/chargebee/models/payment_source.rb
Defined Under Namespace
Classes: AmazonPayment, BankAccount, Card, Paypal
Instance Attribute Summary collapse
-
#amazon_payment ⇒ Object
Returns the value of attribute amazon_payment.
-
#bank_account ⇒ Object
Returns the value of attribute bank_account.
-
#card ⇒ Object
Returns the value of attribute card.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#paypal ⇒ Object
Returns the value of attribute paypal.
-
#reference_id ⇒ Object
Returns the value of attribute reference_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
- .create_card(params, env = nil, headers = {}) ⇒ Object
- .create_using_permanent_token(params, env = nil, headers = {}) ⇒ Object
-
.create_using_temp_token(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .export_payment_source(id, params, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .switch_gateway_account(id, params, env = nil, headers = {}) ⇒ Object
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
#amazon_payment ⇒ Object
Returns the value of attribute amazon_payment.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def amazon_payment @amazon_payment end |
#bank_account ⇒ Object
Returns the value of attribute bank_account.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def bank_account @bank_account end |
#card ⇒ Object
Returns the value of attribute card.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def card @card end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def customer_id @customer_id end |
#gateway ⇒ Object
Returns the value of attribute gateway.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def gateway @gateway end |
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def gateway_account_id @gateway_account_id end |
#id ⇒ Object
Returns the value of attribute id.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def id @id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def ip_address @ip_address end |
#paypal ⇒ Object
Returns the value of attribute paypal.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def paypal @paypal end |
#reference_id ⇒ Object
Returns the value of attribute reference_id.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def reference_id @reference_id end |
#status ⇒ Object
Returns the value of attribute status.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/chargebee/models/payment_source.rb', line 20 def type @type end |
Class Method Details
.create_card(params, env = nil, headers = {}) ⇒ Object
34 35 36 |
# File 'lib/chargebee/models/payment_source.rb', line 34 def self.create_card(params, env=nil, headers={}) Request.send('post', uri_path("payment_sources","create_card"), params, env, headers) end |
.create_using_permanent_token(params, env = nil, headers = {}) ⇒ Object
30 31 32 |
# File 'lib/chargebee/models/payment_source.rb', line 30 def self.create_using_permanent_token(params, env=nil, headers={}) Request.send('post', uri_path("payment_sources","create_using_permanent_token"), params, env, headers) end |
.create_using_temp_token(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
26 27 28 |
# File 'lib/chargebee/models/payment_source.rb', line 26 def self.create_using_temp_token(params, env=nil, headers={}) Request.send('post', uri_path("payment_sources","create_using_temp_token"), params, env, headers) end |
.delete(id, env = nil, headers = {}) ⇒ Object
54 55 56 |
# File 'lib/chargebee/models/payment_source.rb', line 54 def self.delete(id, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"delete"), {}, env, headers) end |
.export_payment_source(id, params, env = nil, headers = {}) ⇒ Object
50 51 52 |
# File 'lib/chargebee/models/payment_source.rb', line 50 def self.export_payment_source(id, params, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"export_payment_source"), params, env, headers) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
42 43 44 |
# File 'lib/chargebee/models/payment_source.rb', line 42 def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("payment_sources"), params, env, headers) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
38 39 40 |
# File 'lib/chargebee/models/payment_source.rb', line 38 def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("payment_sources",id.to_s), {}, env, headers) end |
.switch_gateway_account(id, params, env = nil, headers = {}) ⇒ Object
46 47 48 |
# File 'lib/chargebee/models/payment_source.rb', line 46 def self.switch_gateway_account(id, params, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"switch_gateway_account"), params, env, headers) end |