Class: ChargeBee::PaymentSource
- Defined in:
- lib/chargebee/models/payment_source.rb
Defined Under Namespace
Classes: AmazonPayment, BankAccount, Card, Mandate, Paypal, Upi
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.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#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.
-
#issuing_country ⇒ Object
Returns the value of attribute issuing_country.
-
#mandates ⇒ Object
Returns the value of attribute mandates.
-
#paypal ⇒ Object
Returns the value of attribute paypal.
-
#reference_id ⇒ Object
Returns the value of attribute reference_id.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#upi ⇒ Object
Returns the value of attribute upi.
Class Method Summary collapse
- .create_bank_account(params, env = nil, headers = {}) ⇒ Object
- .create_card(params, env = nil, headers = {}) ⇒ Object
- .create_using_payment_intent(params, env = nil, headers = {}) ⇒ Object
- .create_using_permanent_token(params, env = nil, headers = {}) ⇒ Object
-
.create_using_temp_token(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .create_using_token(params, env = nil, headers = {}) ⇒ Object
- .delete(id, env = nil, headers = {}) ⇒ Object
- .delete_local(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
- .update_bank_account(id, params = {}, env = nil, headers = {}) ⇒ Object
- .update_card(id, params = {}, env = nil, headers = {}) ⇒ Object
- .verify_bank_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.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def amazon_payment @amazon_payment end |
#bank_account ⇒ Object
Returns the value of attribute bank_account.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def bank_account @bank_account end |
#card ⇒ Object
Returns the value of attribute card.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def card @card end |
#created_at ⇒ Object
Returns the value of attribute created_at.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def created_at @created_at end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def customer_id @customer_id end |
#deleted ⇒ Object
Returns the value of attribute deleted.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def deleted @deleted end |
#gateway ⇒ Object
Returns the value of attribute gateway.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def gateway @gateway end |
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def gateway_account_id @gateway_account_id end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def id @id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def ip_address @ip_address end |
#issuing_country ⇒ Object
Returns the value of attribute issuing_country.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def issuing_country @issuing_country end |
#mandates ⇒ Object
Returns the value of attribute mandates.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def mandates @mandates end |
#paypal ⇒ Object
Returns the value of attribute paypal.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def paypal @paypal end |
#reference_id ⇒ Object
Returns the value of attribute reference_id.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def reference_id @reference_id end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def updated_at @updated_at end |
#upi ⇒ Object
Returns the value of attribute upi.
28 29 30 |
# File 'lib/chargebee/models/payment_source.rb', line 28 def upi @upi end |
Class Method Details
.create_bank_account(params, env = nil, headers = {}) ⇒ Object
55 56 57 |
# File 'lib/chargebee/models/payment_source.rb', line 55 def self.create_bank_account(params, env=nil, headers={}) Request.send('post', uri_path("payment_sources","create_bank_account"), params, env, headers) end |
.create_card(params, env = nil, headers = {}) ⇒ Object
51 52 53 |
# File 'lib/chargebee/models/payment_source.rb', line 51 def self.create_card(params, env=nil, headers={}) Request.send('post', uri_path("payment_sources","create_card"), params, env, headers) end |
.create_using_payment_intent(params, env = nil, headers = {}) ⇒ Object
47 48 49 |
# File 'lib/chargebee/models/payment_source.rb', line 47 def self.create_using_payment_intent(params, env=nil, headers={}) Request.send('post', uri_path("payment_sources","create_using_payment_intent"), params, env, headers) end |
.create_using_permanent_token(params, env = nil, headers = {}) ⇒ Object
39 40 41 |
# File 'lib/chargebee/models/payment_source.rb', line 39 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
35 36 37 |
# File 'lib/chargebee/models/payment_source.rb', line 35 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 |
.create_using_token(params, env = nil, headers = {}) ⇒ Object
43 44 45 |
# File 'lib/chargebee/models/payment_source.rb', line 43 def self.create_using_token(params, env=nil, headers={}) Request.send('post', uri_path("payment_sources","create_using_token"), params, env, headers) end |
.delete(id, env = nil, headers = {}) ⇒ Object
87 88 89 |
# File 'lib/chargebee/models/payment_source.rb', line 87 def self.delete(id, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"delete"), {}, env, headers) end |
.delete_local(id, env = nil, headers = {}) ⇒ Object
91 92 93 |
# File 'lib/chargebee/models/payment_source.rb', line 91 def self.delete_local(id, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"delete_local"), {}, env, headers) end |
.export_payment_source(id, params, env = nil, headers = {}) ⇒ Object
83 84 85 |
# File 'lib/chargebee/models/payment_source.rb', line 83 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
75 76 77 |
# File 'lib/chargebee/models/payment_source.rb', line 75 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
71 72 73 |
# File 'lib/chargebee/models/payment_source.rb', line 71 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
79 80 81 |
# File 'lib/chargebee/models/payment_source.rb', line 79 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 |
.update_bank_account(id, params = {}, env = nil, headers = {}) ⇒ Object
63 64 65 |
# File 'lib/chargebee/models/payment_source.rb', line 63 def self.update_bank_account(id, params={}, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"update_bank_account"), params, env, headers) end |
.update_card(id, params = {}, env = nil, headers = {}) ⇒ Object
59 60 61 |
# File 'lib/chargebee/models/payment_source.rb', line 59 def self.update_card(id, params={}, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"update_card"), params, env, headers) end |
.verify_bank_account(id, params, env = nil, headers = {}) ⇒ Object
67 68 69 |
# File 'lib/chargebee/models/payment_source.rb', line 67 def self.verify_bank_account(id, params, env=nil, headers={}) Request.send('post', uri_path("payment_sources",id.to_s,"verify_bank_account"), params, env, headers) end |