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.
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.
24078 24079 24080 24081 24082 24083 24084 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24078 def initialize(incoming={}) super(:discriminator => OnlineAuthorizationDetails::Types::INLINE_AUTHORIZATION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :client_token], 'InlineAuthorizationDetails') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @client_token = HttpClient::Preconditions.assert_class('client_token', opts.delete(:client_token), String) end |
Instance Attribute Details
#client_token ⇒ Object (readonly)
Returns the value of attribute client_token.
24076 24077 24078 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24076 def client_token @client_token end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
24076 24077 24078 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24076 def id @id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
24090 24091 24092 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24090 def copy(incoming={}) InlineAuthorizationDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
24094 24095 24096 24097 24098 24099 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24094 def subtype_to_hash { :id => id, :client_token => client_token } end |
#to_json ⇒ Object
24086 24087 24088 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24086 def to_json JSON.dump(to_hash) end |