Class: ChargeBee::PaymentIntent

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/payment_intent.rb

Defined Under Namespace

Classes: PaymentAttempt

Instance Attribute Summary collapse

Class Method Summary collapse

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

#active_payment_attemptObject

Returns the value of attribute active_payment_attempt.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def active_payment_attempt
  @active_payment_attempt
end

#amountObject

Returns the value of attribute amount.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def amount
  @amount
end

#created_atObject

Returns the value of attribute created_at.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def created_at
  @created_at
end

#currency_codeObject

Returns the value of attribute currency_code.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def currency_code
  @currency_code
end

#customer_idObject

Returns the value of attribute customer_id.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def customer_id
  @customer_id
end

#expires_atObject

Returns the value of attribute expires_at.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def expires_at
  @expires_at
end

#gatewayObject

Returns the value of attribute gateway.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def gateway
  @gateway
end

#gateway_account_idObject

Returns the value of attribute gateway_account_id.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def 
  @gateway_account_id
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def id
  @id
end

#modified_atObject

Returns the value of attribute modified_at.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def modified_at
  @modified_at
end

#reference_idObject

Returns the value of attribute reference_id.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def reference_id
  @reference_id
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/chargebee/models/payment_intent.rb', line 8

def status
  @status
end

Class Method Details

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

OPERATIONS




14
15
16
# File 'lib/chargebee/models/payment_intent.rb', line 14

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

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



22
23
24
# File 'lib/chargebee/models/payment_intent.rb', line 22

def self.retrieve(id, env=nil, headers={})
  Request.send('get', uri_path("payment_intents",id.to_s), {}, env, headers)
end

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



18
19
20
# File 'lib/chargebee/models/payment_intent.rb', line 18

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