Sha256: 46700f9b77f1114eea54860ada54b0650e03ce94ae9ec2a10010be83dcda74fd

Contents?: true

Size: 928 Bytes

Versions: 2

Compression:

Stored size: 928 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, :resource_version, :updated_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

2 entries across 2 versions & 1 rubygems

Version Path
chargebee-2.8.0 lib/chargebee/models/payment_intent.rb
chargebee-2.7.9 lib/chargebee/models/payment_intent.rb