Class: ChargeBee::PaymentSource

Inherits:
Model
  • Object
show all
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

Class Method Summary collapse

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_paymentObject

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_accountObject

Returns the value of attribute bank_account.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def 
  @bank_account
end

#billing_addressObject

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

#boletoObject

Returns the value of attribute boleto.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def boleto
  @boleto
end

#business_entity_idObject

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

#cardObject

Returns the value of attribute card.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def card
  @card
end

#created_atObject

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_idObject

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

#deletedObject

Returns the value of attribute deleted.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def deleted
  @deleted
end

#gatewayObject

Returns the value of attribute gateway.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def gateway
  @gateway
end

#gateway_account_idObject

Returns the value of attribute gateway_account_id.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def 
  @gateway_account_id
end

#idObject

Returns the value of attribute id.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def id
  @id
end

#ip_addressObject

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_countryObject

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_nowObject

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

#mandatesObject

Returns the value of attribute mandates.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def mandates
  @mandates
end

#paypalObject

Returns the value of attribute paypal.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def paypal
  @paypal
end

#reference_idObject

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_versionObject

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

#statusObject

Returns the value of attribute status.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def status
  @status
end

#typeObject

Returns the value of attribute type.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def type
  @type
end

#updated_atObject

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

#upiObject

Returns the value of attribute upi.



44
45
46
# File 'lib/chargebee/models/payment_source.rb', line 44

def upi
  @upi
end

#venmoObject

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



76
77
78
# File 'lib/chargebee/models/payment_source.rb', line 76

def self.(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



72
73
74
# File 'lib/chargebee/models/payment_source.rb', line 72

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



64
65
66
# File 'lib/chargebee/models/payment_source.rb', line 64

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



56
57
58
# File 'lib/chargebee/models/payment_source.rb', line 56

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




52
53
54
# File 'lib/chargebee/models/payment_source.rb', line 52

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



60
61
62
# File 'lib/chargebee/models/payment_source.rb', line 60

def self.create_using_token(params, env=nil, headers={})
  Request.send('post', uri_path("payment_sources","create_using_token"), params, env, headers)
end

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



68
69
70
# File 'lib/chargebee/models/payment_source.rb', line 68

def self.create_voucher_payment_source(params, env=nil, headers={})
  Request.send('post', uri_path("payment_sources","create_voucher_payment_source"), params, env, headers)
end

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



108
109
110
# File 'lib/chargebee/models/payment_source.rb', line 108

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



112
113
114
# File 'lib/chargebee/models/payment_source.rb', line 112

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



104
105
106
# File 'lib/chargebee/models/payment_source.rb', line 104

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



96
97
98
# File 'lib/chargebee/models/payment_source.rb', line 96

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



92
93
94
# File 'lib/chargebee/models/payment_source.rb', line 92

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



100
101
102
# File 'lib/chargebee/models/payment_source.rb', line 100

def self.(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



84
85
86
# File 'lib/chargebee/models/payment_source.rb', line 84

def self.(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



80
81
82
# File 'lib/chargebee/models/payment_source.rb', line 80

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



88
89
90
# File 'lib/chargebee/models/payment_source.rb', line 88

def self.(id, params, env=nil, headers={})
  Request.send('post', uri_path("payment_sources",id.to_s,"verify_bank_account"), params, env, headers)
end