Class: Io::Flow::V0::Models::InlineAuthorizationDetails
- Inherits:
-
OnlineAuthorizationDetails
- Object
- OnlineAuthorizationDetails
- Io::Flow::V0::Models::InlineAuthorizationDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Represents an online payment that requires the client token from underlying payment processor before entering their payment information.
Instance Attribute Summary collapse
-
#client_token ⇒ Object
readonly
Returns the value of attribute client_token.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Attributes inherited from OnlineAuthorizationDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ InlineAuthorizationDetails
constructor
A new instance of InlineAuthorizationDetails.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from OnlineAuthorizationDetails
Constructor Details
#initialize(incoming = {}) ⇒ InlineAuthorizationDetails
Returns a new instance of InlineAuthorizationDetails.
42569 42570 42571 42572 42573 42574 42575 42576 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42569 def initialize(incoming={}) super(:discriminator => OnlineAuthorizationDetails::Types::INLINE_AUTHORIZATION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id], 'InlineAuthorizationDetails') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @client_token = (x = opts.delete(:client_token); x.nil? ? nil : HttpClient::Preconditions.assert_class('client_token', x, String)) @parameters = (x = opts.delete(:parameters); x.nil? ? nil : HttpClient::Preconditions.assert_class('parameters', HttpClient::Helper.to_object(x), Hash)) end |
Instance Attribute Details
#client_token ⇒ Object (readonly)
Returns the value of attribute client_token.
42567 42568 42569 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42567 def client_token @client_token end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
42567 42568 42569 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42567 def id @id end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
42567 42568 42569 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42567 def parameters @parameters end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
42582 42583 42584 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42582 def copy(incoming={}) InlineAuthorizationDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
42586 42587 42588 42589 42590 42591 42592 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42586 def subtype_to_hash { :id => id, :client_token => client_token, :parameters => parameters } end |
#to_json ⇒ Object
42578 42579 42580 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42578 def to_json JSON.dump(to_hash) end |