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, NetworkTransactionReference, 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, #respond_to_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.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def amazon_payment
  @amazon_payment
end

#bank_account ⇒ Object

Returns the value of attribute bank_account.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def 
  @bank_account
end

#billing_address ⇒ Object

Returns the value of attribute billing_address.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def billing_address
  @billing_address
end

#boleto ⇒ Object

Returns the value of attribute boleto.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def boleto
  @boleto
end

#brand_id ⇒ Object

Returns the value of attribute brand_id.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def brand_id
  @brand_id
end

#business_entity_id ⇒ Object

Returns the value of attribute business_entity_id.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def business_entity_id
  @business_entity_id
end

#card ⇒ Object

Returns the value of attribute card.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def card
  @card
end

#created_at ⇒ Object

Returns the value of attribute created_at.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def created_at
  @created_at
end

#customer_id ⇒ Object

Returns the value of attribute customer_id.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def customer_id
  @customer_id
end

#deleted ⇒ Object

Returns the value of attribute deleted.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def deleted
  @deleted
end

#gateway ⇒ Object

Returns the value of attribute gateway.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def gateway
  @gateway
end

#gateway_account_id ⇒ Object

Returns the value of attribute gateway_account_id.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def 
  @gateway_account_id
end

#id ⇒ Object

Returns the value of attribute id.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def id
  @id
end

#ip_address ⇒ Object

Returns the value of attribute ip_address.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def ip_address
  @ip_address
end

#issuing_country ⇒ Object

Returns the value of attribute issuing_country.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def issuing_country
  @issuing_country
end

#klarna_pay_now ⇒ Object

Returns the value of attribute klarna_pay_now.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def klarna_pay_now
  @klarna_pay_now
end

#mandates ⇒ Object

Returns the value of attribute mandates.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def mandates
  @mandates
end

#network_transaction_reference ⇒ Object

Returns the value of attribute network_transaction_reference.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def network_transaction_reference
  @network_transaction_reference
end

#paypal ⇒ Object

Returns the value of attribute paypal.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def paypal
  @paypal
end

#reference_id ⇒ Object

Returns the value of attribute reference_id.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def reference_id
  @reference_id
end

#resource_version ⇒ Object

Returns the value of attribute resource_version.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def resource_version
  @resource_version
end

#status ⇒ Object

Returns the value of attribute status.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def status
  @status
end

#type ⇒ Object

Returns the value of attribute type.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def type
  @type
end

#updated_at ⇒ Object

Returns the value of attribute updated_at.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def updated_at
  @updated_at
end

#upi ⇒ Object

Returns the value of attribute upi.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def upi
  @upi
end

#vault_token ⇒ Object

Returns the value of attribute vault_token.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def vault_token
  @vault_token
end

#venmo ⇒ Object

Returns the value of attribute venmo.



48
49
50
# File 'lib/chargebee/models/payment_source.rb', line 48

def venmo
  @venmo
end

Class Method Details

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



116
117
118
119
120
121
122
123
124
# File 'lib/chargebee/models/payment_source.rb', line 116

def self.(params, env=nil, headers={})
  jsonKeys = { 
      :billing_address => 1,
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources","create_bank_account"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "createBankAccount")
end

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



106
107
108
109
110
111
112
113
114
# File 'lib/chargebee/models/payment_source.rb', line 106

def self.create_card(params, env=nil, headers={})
  jsonKeys = { 
      :additional_information => 1,
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources","create_card"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "createCard")
end

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



85
86
87
88
89
90
91
92
93
94
# File 'lib/chargebee/models/payment_source.rb', line 85

def self.create_using_payment_intent(params, env=nil, headers={})
  jsonKeys = { 
      :additional_info => 1,
      :additional_information => 1,
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources","create_using_payment_intent"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "createUsingPaymentIntent")
end

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



66
67
68
69
70
71
72
73
74
# File 'lib/chargebee/models/payment_source.rb', line 66

def self.create_using_permanent_token(params, env=nil, headers={})
  jsonKeys = { 
      :additional_information => 0,
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources","create_using_permanent_token"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "createUsingPermanentToken")
end

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

OPERATIONS



56
57
58
59
60
61
62
63
64
# File 'lib/chargebee/models/payment_source.rb', line 56

def self.create_using_temp_token(params, env=nil, headers={})
  jsonKeys = { 
      :additional_information => 0,
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources","create_using_temp_token"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "createUsingTempToken")
end

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



76
77
78
79
80
81
82
83
# File 'lib/chargebee/models/payment_source.rb', line 76

def self.create_using_token(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources","create_using_token"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "createUsingToken")
end

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



96
97
98
99
100
101
102
103
104
# File 'lib/chargebee/models/payment_source.rb', line 96

def self.create_voucher_payment_source(params, env=nil, headers={})
  jsonKeys = { 
      :billing_address => 1,
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources","create_voucher_payment_source"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "createVoucherPaymentSource")
end

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



194
195
196
197
198
199
200
201
# File 'lib/chargebee/models/payment_source.rb', line 194

def self.delete(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "paymentSource", "delete")
end

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



203
204
205
206
207
208
209
210
# File 'lib/chargebee/models/payment_source.rb', line 203

def self.delete_local(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources",id.to_s,"delete_local"), {}, env, headers,nil, false, jsonKeys, options, "paymentSource", "deleteLocal")
end

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



185
186
187
188
189
190
191
192
# File 'lib/chargebee/models/payment_source.rb', line 185

def self.export_payment_source(id, params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources",id.to_s,"export_payment_source"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "exportPaymentSource")
end

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



169
170
171
172
173
174
# File 'lib/chargebee/models/payment_source.rb', line 169

def self.list(params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send_list_request('get', uri_path("payment_sources"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "list")
end

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



155
156
157
158
159
160
# File 'lib/chargebee/models/payment_source.rb', line 155

def self.list_gateway_tokens_for_payment_source(id, params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("payment_sources",id.to_s,"gateway_payment_method_tokens"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "listGatewayTokensForPaymentSource")
end

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



162
163
164
165
166
167
# File 'lib/chargebee/models/payment_source.rb', line 162

def self.retrieve(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("payment_sources",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "paymentSource", "retrieve")
end

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



176
177
178
179
180
181
182
183
# File 'lib/chargebee/models/payment_source.rb', line 176

def self.(id, params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources",id.to_s,"switch_gateway_account"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "switchGatewayAccount")
end

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



137
138
139
140
141
142
143
144
# File 'lib/chargebee/models/payment_source.rb', line 137

def self.(id, params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources",id.to_s,"update_bank_account"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "updateBankAccount")
end

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



126
127
128
129
130
131
132
133
134
135
# File 'lib/chargebee/models/payment_source.rb', line 126

def self.update_card(id, params={}, env=nil, headers={})
  jsonKeys = { 
      :gateway_meta_data => 0,
      :additional_information => 1,
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources",id.to_s,"update_card"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "updateCard")
end

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



146
147
148
149
150
151
152
153
# File 'lib/chargebee/models/payment_source.rb', line 146

def self.(id, params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_sources",id.to_s,"verify_bank_account"), params, env, headers,nil, false, jsonKeys, options, "paymentSource", "verifyBankAccount")
end