Class: ChargeBee::PaymentSource
- Defined in:
- lib/chargebee/models/payment_source.rb
Defined Under Namespace
Classes: AmazonPayment, BankAccount, BillingAddress, Card, CustVoucherSource, KlarnaPayNow, Mandate, Paypal, Upi, Venmo
Instance Attribute Summary collapse
-
#amazon_payment ⇒ Object
Returns the value of attribute amazon_payment.
-
#bank_account ⇒ Object
Returns the value of attribute bank_account.
-
#billing_address ⇒ Object
Returns the value of attribute billing_address.
-
#boleto ⇒ Object
Returns the value of attribute boleto.
-
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
-
#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.
-
#klarna_pay_now ⇒ Object
Returns the value of attribute klarna_pay_now.
-
#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.
-
#venmo ⇒ Object
Returns the value of attribute venmo.
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
- .create_voucher_payment_source(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, #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
#amazon_payment ⇒ Object
Returns the value of attribute amazon_payment.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def amazon_payment @amazon_payment end |
#bank_account ⇒ Object
Returns the value of attribute bank_account.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def bank_account @bank_account end |
#billing_address ⇒ Object
Returns the value of attribute billing_address.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def billing_address @billing_address end |
#boleto ⇒ Object
Returns the value of attribute boleto.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def boleto @boleto end |
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def business_entity_id @business_entity_id end |
#card ⇒ Object
Returns the value of attribute card.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def card @card end |
#created_at ⇒ Object
Returns the value of attribute created_at.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def created_at @created_at end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def customer_id @customer_id end |
#deleted ⇒ Object
Returns the value of attribute deleted.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def deleted @deleted end |
#gateway ⇒ Object
Returns the value of attribute gateway.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def gateway @gateway end |
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def gateway_account_id @gateway_account_id end |
#id ⇒ Object
Returns the value of attribute id.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def id @id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def ip_address @ip_address end |
#issuing_country ⇒ Object
Returns the value of attribute issuing_country.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def issuing_country @issuing_country end |
#klarna_pay_now ⇒ Object
Returns the value of attribute klarna_pay_now.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def klarna_pay_now @klarna_pay_now end |
#mandates ⇒ Object
Returns the value of attribute mandates.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def mandates @mandates end |
#paypal ⇒ Object
Returns the value of attribute paypal.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def paypal @paypal end |
#reference_id ⇒ Object
Returns the value of attribute reference_id.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def reference_id @reference_id end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def updated_at @updated_at end |
#upi ⇒ Object
Returns the value of attribute upi.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def upi @upi end |
#venmo ⇒ Object
Returns the value of attribute venmo.
44 45 46 |
# File 'lib/chargebee/models/payment_source.rb', line 44 def venmo @venmo end |
Class Method Details
.create_bank_account(params, env = nil, headers = {}) ⇒ Object
94 95 96 97 98 99 |
# File 'lib/chargebee/models/payment_source.rb', line 94 def self.create_bank_account(params, env=nil, headers={}) jsonKeys = { :billing_address => 1, } Request.send('post', uri_path("payment_sources","create_bank_account"), params, env, headers,nil, false, jsonKeys) end |
.create_card(params, env = nil, headers = {}) ⇒ Object
87 88 89 90 91 92 |
# File 'lib/chargebee/models/payment_source.rb', line 87 def self.create_card(params, env=nil, headers={}) jsonKeys = { :additional_information => 1, } Request.send('post', uri_path("payment_sources","create_card"), params, env, headers,nil, false, jsonKeys) end |
.create_using_payment_intent(params, env = nil, headers = {}) ⇒ Object
72 73 74 75 76 77 78 |
# File 'lib/chargebee/models/payment_source.rb', line 72 def self.create_using_payment_intent(params, env=nil, headers={}) jsonKeys = { :additional_info => 1, :additional_information => 1, } Request.send('post', uri_path("payment_sources","create_using_payment_intent"), params, env, headers,nil, false, jsonKeys) end |
.create_using_permanent_token(params, env = nil, headers = {}) ⇒ Object
59 60 61 62 63 64 |
# File 'lib/chargebee/models/payment_source.rb', line 59 def self.create_using_permanent_token(params, env=nil, headers={}) jsonKeys = { :additional_information => 0, } Request.send('post', uri_path("payment_sources","create_using_permanent_token"), params, env, headers,nil, false, jsonKeys) end |
.create_using_temp_token(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
52 53 54 55 56 57 |
# File 'lib/chargebee/models/payment_source.rb', line 52 def self.create_using_temp_token(params, env=nil, headers={}) jsonKeys = { :additional_information => 0, } Request.send('post', uri_path("payment_sources","create_using_temp_token"), params, env, headers,nil, false, jsonKeys) end |
.create_using_token(params, env = nil, headers = {}) ⇒ Object
66 67 68 69 70 |
# File 'lib/chargebee/models/payment_source.rb', line 66 def self.create_using_token(params, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("payment_sources","create_using_token"), params, env, headers,nil, false, jsonKeys) end |
.create_voucher_payment_source(params, env = nil, headers = {}) ⇒ Object
80 81 82 83 84 85 |
# File 'lib/chargebee/models/payment_source.rb', line 80 def self.create_voucher_payment_source(params, env=nil, headers={}) jsonKeys = { :billing_address => 1, } Request.send('post', uri_path("payment_sources","create_voucher_payment_source"), params, env, headers,nil, false, jsonKeys) end |
.delete(id, env = nil, headers = {}) ⇒ Object
145 146 147 148 149 |
# File 'lib/chargebee/models/payment_source.rb', line 145 def self.delete(id, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("payment_sources",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys) end |
.delete_local(id, env = nil, headers = {}) ⇒ Object
151 152 153 154 155 |
# File 'lib/chargebee/models/payment_source.rb', line 151 def self.delete_local(id, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("payment_sources",id.to_s,"delete_local"), {}, env, headers,nil, false, jsonKeys) end |
.export_payment_source(id, params, env = nil, headers = {}) ⇒ Object
139 140 141 142 143 |
# File 'lib/chargebee/models/payment_source.rb', line 139 def self.export_payment_source(id, params, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("payment_sources",id.to_s,"export_payment_source"), params, env, headers,nil, false, jsonKeys) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
127 128 129 130 131 |
# File 'lib/chargebee/models/payment_source.rb', line 127 def self.list(params={}, env=nil, headers={}) jsonKeys = { } Request.send_list_request('get', uri_path("payment_sources"), params, env, headers,nil, false, jsonKeys) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
121 122 123 124 125 |
# File 'lib/chargebee/models/payment_source.rb', line 121 def self.retrieve(id, env=nil, headers={}) jsonKeys = { } Request.send('get', uri_path("payment_sources",id.to_s), {}, env, headers,nil, false, jsonKeys) end |
.switch_gateway_account(id, params, env = nil, headers = {}) ⇒ Object
133 134 135 136 137 |
# File 'lib/chargebee/models/payment_source.rb', line 133 def self.switch_gateway_account(id, params, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("payment_sources",id.to_s,"switch_gateway_account"), params, env, headers,nil, false, jsonKeys) end |
.update_bank_account(id, params = {}, env = nil, headers = {}) ⇒ Object
109 110 111 112 113 |
# File 'lib/chargebee/models/payment_source.rb', line 109 def self.update_bank_account(id, params={}, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("payment_sources",id.to_s,"update_bank_account"), params, env, headers,nil, false, jsonKeys) end |
.update_card(id, params = {}, env = nil, headers = {}) ⇒ Object
101 102 103 104 105 106 107 |
# File 'lib/chargebee/models/payment_source.rb', line 101 def self.update_card(id, params={}, env=nil, headers={}) jsonKeys = { :gateway_meta_data => 0, :additional_information => 1, } Request.send('post', uri_path("payment_sources",id.to_s,"update_card"), params, env, headers,nil, false, jsonKeys) end |
.verify_bank_account(id, params, env = nil, headers = {}) ⇒ Object
115 116 117 118 119 |
# File 'lib/chargebee/models/payment_source.rb', line 115 def self.verify_bank_account(id, params, env=nil, headers={}) jsonKeys = { } Request.send('post', uri_path("payment_sources",id.to_s,"verify_bank_account"), params, env, headers,nil, false, jsonKeys) end |