Class: Io::Flow::V0::Models::OrderRefundSummaryPartialIncludes
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OrderRefundSummaryPartialIncludes
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#charged ⇒ Object
readonly
Returns the value of attribute charged.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ OrderRefundSummaryPartialIncludes
constructor
A new instance of OrderRefundSummaryPartialIncludes.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ OrderRefundSummaryPartialIncludes
Returns a new instance of OrderRefundSummaryPartialIncludes.
47847 47848 47849 47850 47851 47852 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47847 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:key, :charged], 'OrderRefundSummaryPartialIncludes') @key = (x = opts.delete(:key); x.is_a?(::Io::Flow::V0::Models::OrderRefundSummaryIncludes) ? x : ::Io::Flow::V0::Models::OrderRefundSummaryIncludes.apply(x)) @charged = (x = opts.delete(:charged); x.is_a?(::Io::Flow::V0::Models::OrderRefundSummaryPartialCharged) ? x : ::Io::Flow::V0::Models::OrderRefundSummaryPartialCharged.apply(x)) end |
Instance Attribute Details
#charged ⇒ Object (readonly)
Returns the value of attribute charged.
47845 47846 47847 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47845 def charged @charged end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
47845 47846 47847 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47845 def key @key end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
47858 47859 47860 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47858 def copy(incoming={}) OrderRefundSummaryPartialIncludes.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
47862 47863 47864 47865 47866 47867 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47862 def to_hash { :key => key.value, :charged => charged.value } end |
#to_json ⇒ Object
47854 47855 47856 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47854 def to_json JSON.dump(to_hash) end |