Class: Io::Flow::V0::Models::ApplepaySdkValidateResultActionDetails
- Inherits:
-
AuthorizationResultActionDetails
- Object
- AuthorizationResultActionDetails
- Io::Flow::V0::Models::ApplepaySdkValidateResultActionDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Provides details from the Apple Pay validation completion.
Instance Attribute Summary collapse
-
#payment_session ⇒ Object
readonly
Returns the value of attribute payment_session.
Attributes inherited from AuthorizationResultActionDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ApplepaySdkValidateResultActionDetails
constructor
A new instance of ApplepaySdkValidateResultActionDetails.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultActionDetails
Constructor Details
#initialize(incoming = {}) ⇒ ApplepaySdkValidateResultActionDetails
Returns a new instance of ApplepaySdkValidateResultActionDetails.
30614 30615 30616 30617 30618 30619 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30614 def initialize(incoming={}) super(:discriminator => AuthorizationResultActionDetails::Types::APPLEPAY_SDK_VALIDATE_RESULT_ACTION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:payment_session], 'ApplepaySdkValidateResultActionDetails') @payment_session = HttpClient::Preconditions.assert_class('payment_session', HttpClient::Helper.to_object(opts.delete(:payment_session)), Hash) end |
Instance Attribute Details
#payment_session ⇒ Object (readonly)
Returns the value of attribute payment_session.
30612 30613 30614 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30612 def payment_session @payment_session end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
30625 30626 30627 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30625 def copy(incoming={}) ApplepaySdkValidateResultActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
30629 30630 30631 30632 30633 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30629 def subtype_to_hash { :payment_session => payment_session } end |
#to_json ⇒ Object
30621 30622 30623 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30621 def to_json JSON.dump(to_hash) end |