Class: Io::Flow::V0::Models::AuthorizationResultActionDetails
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::AuthorizationResultActionDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Direct Known Subclasses
AdyenNativeActionDetails, ApplepaySdkCreateResultActionDetails, ApplepaySdkValidateResultActionDetails, AuthorizationResultActionDetailsUndefinedType, KlarnaSdkAuthorizationResultActionDetails, SelectIssuerOptionActionDetails, StripeAuthorizationResultActionDetails, ThreedsChallengeActionDetails, ThreedsIdentifyActionDetails
Defined Under Namespace
Modules: Types
Instance Attribute Summary collapse
-
#discriminator ⇒ Object
readonly
Returns the value of attribute discriminator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(incoming = {}) ⇒ AuthorizationResultActionDetails
constructor
A new instance of AuthorizationResultActionDetails.
- #subtype_to_hash ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationResultActionDetails
Returns a new instance of AuthorizationResultActionDetails.
9857 9858 9859 9860 9861 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9857 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:discriminator], 'AuthorizationResultActionDetails') @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String) end |
Instance Attribute Details
#discriminator ⇒ Object (readonly)
Returns the value of attribute discriminator.
9855 9856 9857 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9855 def discriminator @discriminator end |
Class Method Details
.from_json(hash) ⇒ Object
Instance Method Details
#subtype_to_hash ⇒ Object
9863 9864 9865 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9863 def subtype_to_hash raise 'Cannot serialize an instance of authorization_result_action_details directly - must use one of the specific types: adyen_native_action_details, stripe_authorization_result_action_details, threeds_identify_action_details, threeds_challenge_action_details, applepay_sdk_create_result_action_details, applepay_sdk_validate_result_action_details, klarna_sdk_authorization_result_action_details, select_issuer_option_action_details' end |
#to_hash ⇒ Object
9867 9868 9869 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9867 def to_hash subtype_to_hash.merge(:discriminator => @discriminator) end |