Class: Io::Flow::V0::Models::ApplepaySdkCreateResultActionDetails
- Inherits:
-
AuthorizationResultActionDetails
- Object
- AuthorizationResultActionDetails
- Io::Flow::V0::Models::ApplepaySdkCreateResultActionDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Provides details from the Apple Pay create session initialization.
Instance Attribute Summary collapse
-
#merchant_identifier ⇒ Object
readonly
Returns the value of attribute merchant_identifier.
-
#payment_data_request ⇒ Object
readonly
Returns the value of attribute payment_data_request.
Attributes inherited from AuthorizationResultActionDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ApplepaySdkCreateResultActionDetails
constructor
A new instance of ApplepaySdkCreateResultActionDetails.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultActionDetails
Constructor Details
#initialize(incoming = {}) ⇒ ApplepaySdkCreateResultActionDetails
Returns a new instance of ApplepaySdkCreateResultActionDetails.
30584 30585 30586 30587 30588 30589 30590 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30584 def initialize(incoming={}) super(:discriminator => AuthorizationResultActionDetails::Types::APPLEPAY_SDK_CREATE_RESULT_ACTION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:merchant_identifier, :payment_data_request], 'ApplepaySdkCreateResultActionDetails') @merchant_identifier = HttpClient::Preconditions.assert_class('merchant_identifier', opts.delete(:merchant_identifier), String) @payment_data_request = HttpClient::Preconditions.assert_class('payment_data_request', HttpClient::Helper.to_object(opts.delete(:payment_data_request)), Hash) end |
Instance Attribute Details
#merchant_identifier ⇒ Object (readonly)
Returns the value of attribute merchant_identifier.
30582 30583 30584 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30582 def merchant_identifier @merchant_identifier end |
#payment_data_request ⇒ Object (readonly)
Returns the value of attribute payment_data_request.
30582 30583 30584 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30582 def payment_data_request @payment_data_request end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
30596 30597 30598 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30596 def copy(incoming={}) ApplepaySdkCreateResultActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
30600 30601 30602 30603 30604 30605 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30600 def subtype_to_hash { :merchant_identifier => merchant_identifier, :payment_data_request => payment_data_request } end |
#to_json ⇒ Object
30592 30593 30594 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30592 def to_json JSON.dump(to_hash) end |