class Io::Flow::V0::Models::OrderRefundSummaryItem

Attributes

number[R]
quantity_to_refund[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53763
def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:number, :quantity_to_refund], 'OrderRefundSummaryItem')
  @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
  @quantity_to_refund = HttpClient::Preconditions.assert_class('quantity_to_refund', opts.delete(:quantity_to_refund), Integer)
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53774
def copy(incoming={})
  OrderRefundSummaryItem.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end
to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53778
def to_hash
  {
    :number => number,
    :quantity_to_refund => quantity_to_refund
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53770
def to_json
  JSON.dump(to_hash)
end