Sha256: f2c1057366f59259790363d7b56a0a9f43692b7bf4adf05bbebf4035bc303744

Contents?: true

Size: 956 Bytes

Versions: 21

Compression:

Stored size: 956 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, :success_url, :failure_url, :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

21 entries across 21 versions & 1 rubygems

Version Path
chargebee-2.16.0 lib/chargebee/models/payment_intent.rb
chargebee-2.15.0 lib/chargebee/models/payment_intent.rb
chargebee-2.14.1 lib/chargebee/models/payment_intent.rb
chargebee-2.14.0 lib/chargebee/models/payment_intent.rb
chargebee-2.13.1 lib/chargebee/models/payment_intent.rb
chargebee-2.13.0 lib/chargebee/models/payment_intent.rb
chargebee-2.12.0 lib/chargebee/models/payment_intent.rb
chargebee-2.11.2 lib/chargebee/models/payment_intent.rb
chargebee-2.11.1 lib/chargebee/models/payment_intent.rb
chargebee-2.11.0 lib/chargebee/models/payment_intent.rb
chargebee-2.10.1 lib/chargebee/models/payment_intent.rb
chargebee-2.10.0 lib/chargebee/models/payment_intent.rb
chargebee-2.9.0 lib/chargebee/models/payment_intent.rb
chargebee-2.8.8 lib/chargebee/models/payment_intent.rb
chargebee-2.8.7 lib/chargebee/models/payment_intent.rb
chargebee-2.8.6 lib/chargebee/models/payment_intent.rb
chargebee-2.8.5 lib/chargebee/models/payment_intent.rb
chargebee-2.8.4 lib/chargebee/models/payment_intent.rb
chargebee-2.8.3 lib/chargebee/models/payment_intent.rb
chargebee-2.8.2 lib/chargebee/models/payment_intent.rb