Sha256: 68f20cca8805817f3af90183af8e0e30244813f55f256f2313a32228b4365d04

Contents?: true

Size: 894 Bytes

Versions: 3

Compression:

Stored size: 894 Bytes

Contents

module ChargeBee
  class PaymentIntent < Model

    class PaymentAttempt < Model
      attr_accessor :id, :status, :payment_method_type, :id_at_gateway, :error_code, :error_text, :created_at, :modified_at
    end

  attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id,
  :payment_method_type, :created_at, :modified_at, :customer_id, :gateway, :active_payment_attempt

  # OPERATIONS
  #-----------

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

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

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

  end # ~PaymentIntent
end # ~ChargeBee

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chargebee-2.7.8 lib/chargebee/models/payment_intent.rb
chargebee-2.7.7 lib/chargebee/models/payment_intent.rb
chargebee-2.7.6 lib/chargebee/models/payment_intent.rb