Class: Io::Flow::V0::Models::StripeAuthenticationData
- Inherits:
-
GatewayAuthenticationData
- Object
- GatewayAuthenticationData
- Io::Flow::V0::Models::StripeAuthenticationData
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Stripe authentication data.
Instance Attribute Summary collapse
-
#secret_key_reference ⇒ Object
readonly
Returns the value of attribute secret_key_reference.
Attributes inherited from GatewayAuthenticationData
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ StripeAuthenticationData
constructor
A new instance of StripeAuthenticationData.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from GatewayAuthenticationData
Constructor Details
#initialize(incoming = {}) ⇒ StripeAuthenticationData
Returns a new instance of StripeAuthenticationData.
52554 52555 52556 52557 52558 52559 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52554 def initialize(incoming={}) super(:discriminator => GatewayAuthenticationData::Types::STRIPE_AUTHENTICATION_DATA) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:secret_key_reference], 'StripeAuthenticationData') @secret_key_reference = HttpClient::Preconditions.assert_class('secret_key_reference', opts.delete(:secret_key_reference), String) end |
Instance Attribute Details
#secret_key_reference ⇒ Object (readonly)
Returns the value of attribute secret_key_reference.
52552 52553 52554 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52552 def secret_key_reference @secret_key_reference end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
52565 52566 52567 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52565 def copy(incoming={}) StripeAuthenticationData.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
52569 52570 52571 52572 52573 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52569 def subtype_to_hash { :secret_key_reference => secret_key_reference } end |
#to_json ⇒ Object
52561 52562 52563 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52561 def to_json JSON.dump(to_hash) end |