Class: Io::Flow::V0::Models::StripeAuthorizationResultActionDetails
- Inherits:
-
AuthorizationResultActionDetails
- Object
- AuthorizationResultActionDetails
- Io::Flow::V0::Models::StripeAuthorizationResultActionDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Provides details for Stripe authorizations (e.g. client secret to be used for 3D Secure).
Instance Attribute Summary collapse
-
#client_secret ⇒ Object
readonly
Returns the value of attribute client_secret.
-
#payment_method_id ⇒ Object
readonly
Returns the value of attribute payment_method_id.
-
#publishable_key ⇒ Object
readonly
Returns the value of attribute publishable_key.
Attributes inherited from AuthorizationResultActionDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ StripeAuthorizationResultActionDetails
constructor
A new instance of StripeAuthorizationResultActionDetails.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultActionDetails
Constructor Details
#initialize(incoming = {}) ⇒ StripeAuthorizationResultActionDetails
Returns a new instance of StripeAuthorizationResultActionDetails.
68885 68886 68887 68888 68889 68890 68891 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68885 def initialize(incoming={}) super(:discriminator => AuthorizationResultActionDetails::Types::STRIPE_AUTHORIZATION_RESULT_ACTION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) @client_secret = (x = opts.delete(:client_secret); x.nil? ? nil : HttpClient::Preconditions.assert_class('client_secret', x, String)) @payment_method_id = (x = opts.delete(:payment_method_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('payment_method_id', x, String)) @publishable_key = (x = opts.delete(:publishable_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('publishable_key', x, String)) end |
Instance Attribute Details
#client_secret ⇒ Object (readonly)
Returns the value of attribute client_secret.
68883 68884 68885 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68883 def client_secret @client_secret end |
#payment_method_id ⇒ Object (readonly)
Returns the value of attribute payment_method_id.
68883 68884 68885 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68883 def payment_method_id @payment_method_id end |
#publishable_key ⇒ Object (readonly)
Returns the value of attribute publishable_key.
68883 68884 68885 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68883 def publishable_key @publishable_key end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
68897 68898 68899 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68897 def copy(incoming={}) StripeAuthorizationResultActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
68901 68902 68903 68904 68905 68906 68907 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68901 def subtype_to_hash { :client_secret => client_secret, :payment_method_id => payment_method_id, :publishable_key => publishable_key } end |
#to_json ⇒ Object
68893 68894 68895 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 68893 def to_json JSON.dump(to_hash) end |