Class: Io::Flow::V0::Models::AuthorizationOrderReference
- Inherits:
-
PaymentOrderReference
- Object
- PaymentOrderReference
- Io::Flow::V0::Models::AuthorizationOrderReference
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Attributes inherited from PaymentOrderReference
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AuthorizationOrderReference
constructor
A new instance of AuthorizationOrderReference.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentOrderReference
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationOrderReference
Returns a new instance of AuthorizationOrderReference.
27263 27264 27265 27266 27267 27268 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27263 def initialize(incoming={}) super(:discriminator => PaymentOrderReference::Types::AUTHORIZATION_ORDER_REFERENCE) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:number], 'AuthorizationOrderReference') @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String) end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
27261 27262 27263 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27261 def number @number end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
27274 27275 27276 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27274 def copy(incoming={}) AuthorizationOrderReference.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
27278 27279 27280 27281 27282 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27278 def subtype_to_hash { :number => number } end |
#to_json ⇒ Object
27270 27271 27272 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27270 def to_json JSON.dump(to_hash) end |