class DuffelAPI::Resources::OrderChangeOffer

Attributes

change_total_amount[R]
change_total_currency[R]
created_at[R]
expires_at[R]
id[R]
live_mode[R]
new_total_amount[R]
new_total_currency[R]
order_change_id[R]
penalty_total_amount[R]
penalty_total_currency[R]
refund_to[R]
slices[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/order_change_offer.rb, line 22
def initialize(object, response = nil)
  @object = object

  @change_total_amount = object["change_total_amount"]
  @change_total_currency = object["change_total_currency"]
  @created_at = object["created_at"]
  @expires_at = object["expires_at"]
  @id = object["id"]
  @live_mode = object["live_mode"]
  @new_total_amount = object["new_total_amount"]
  @new_total_currency = object["new_total_currency"]
  @order_change_id = object["order_change_id"]
  @penalty_total_amount = object["penalty_total_amount"]
  @penalty_total_currency = object["penalty_total_currency"]
  @refund_to = object["refund_to"]
  @slices = object["slices"]
  @updated_at = object["updated_at"]

  super(object, response)
end