class DuffelAPI::Resources::PaymentIntent

Attributes

amount[R]
card_country_code[R]
card_last_four_digits[R]
card_network[R]
client_token[R]
confirmed_at[R]
created_at[R]
currency[R]
fees_amount[R]
fees_currency[R]
id[R]
live_mode[R]
net_amount[R]
net_currency[R]
refunds[R]
status[R]
updated_at[R]

Public Class Methods

new(object, response = nil) click to toggle source
Calls superclass method DuffelAPI::Resources::BaseResource::new
# File lib/duffel_api/resources/payment_intent.rb, line 25
def initialize(object, response = nil)
  @object = object

  @amount = object["amount"]
  @card_country_code = object["card_country_code"]
  @card_last_four_digits = object["card_last_four_digits"]
  @card_network = object["card_network"]
  @client_token = object["client_token"]
  @confirmed_at = object["confirmed_at"]
  @created_at = object["created_at"]
  @currency = object["currency"]
  @fees_amount = object["fees_amount"]
  @fees_currency = object["fees_currency"]
  @id = object["id"]
  @live_mode = object["live_mode"]
  @net_amount = object["net_amount"]
  @net_currency = object["net_currency"]
  @refunds = object["refunds"]
  @status = object["status"]
  @updated_at = object["updated_at"]

  super(object, response)
end