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.
49302 49303 49304 49305 49306 49307 49308 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49302 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.
49300 49301 49302 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49300 def client_secret @client_secret end |
#payment_method_id ⇒ Object (readonly)
Returns the value of attribute payment_method_id.
49300 49301 49302 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49300 def payment_method_id @payment_method_id end |
#publishable_key ⇒ Object (readonly)
Returns the value of attribute publishable_key.
49300 49301 49302 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49300 def publishable_key @publishable_key end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
49314 49315 49316 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49314 def copy(incoming={}) StripeAuthorizationResultActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
49318 49319 49320 49321 49322 49323 49324 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49318 def subtype_to_hash { :client_secret => client_secret, :payment_method_id => payment_method_id, :publishable_key => publishable_key } end |
#to_json ⇒ Object
49310 49311 49312 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49310 def to_json JSON.dump(to_hash) end |