Class: Io::Flow::V0::Models::OrderRefundSummaryItem
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OrderRefundSummaryItem
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#quantity_to_refund ⇒ Object
readonly
Returns the value of attribute quantity_to_refund.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ OrderRefundSummaryItem
constructor
A new instance of OrderRefundSummaryItem.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ OrderRefundSummaryItem
Returns a new instance of OrderRefundSummaryItem.
53763 53764 53765 53766 53767 53768 |
# 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 |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
53761 53762 53763 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53761 def number @number end |
#quantity_to_refund ⇒ Object (readonly)
Returns the value of attribute quantity_to_refund.
53761 53762 53763 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53761 def quantity_to_refund @quantity_to_refund end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
53774 53775 53776 |
# 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 ⇒ Object
53778 53779 53780 53781 53782 53783 |
# 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 ⇒ Object
53770 53771 53772 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53770 def to_json JSON.dump(to_hash) end |