Class: Io::Flow::V0::Models::StripeAuthenticationDataForm
- Inherits:
-
GatewayAuthenticationDataForm
- Object
- GatewayAuthenticationDataForm
- Io::Flow::V0::Models::StripeAuthenticationDataForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Used to specify Stripe API secret key.
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#secret_key ⇒ Object
readonly
Returns the value of attribute secret_key.
Attributes inherited from GatewayAuthenticationDataForm
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ StripeAuthenticationDataForm
constructor
A new instance of StripeAuthenticationDataForm.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from GatewayAuthenticationDataForm
Constructor Details
#initialize(incoming = {}) ⇒ StripeAuthenticationDataForm
Returns a new instance of StripeAuthenticationDataForm.
40659 40660 40661 40662 40663 40664 40665 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40659 def initialize(incoming={}) super(:discriminator => GatewayAuthenticationDataForm::Types::STRIPE_AUTHENTICATION_DATA_FORM) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:account_id, :secret_key], 'StripeAuthenticationDataForm') @account_id = HttpClient::Preconditions.assert_class('account_id', opts.delete(:account_id), String) @secret_key = HttpClient::Preconditions.assert_class('secret_key', opts.delete(:secret_key), String) end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
40657 40658 40659 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40657 def account_id @account_id end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
40657 40658 40659 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40657 def secret_key @secret_key end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
40671 40672 40673 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40671 def copy(incoming={}) StripeAuthenticationDataForm.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
40675 40676 40677 40678 40679 40680 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40675 def subtype_to_hash { :account_id => account_id, :secret_key => secret_key } end |
#to_json ⇒ Object
40667 40668 40669 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40667 def to_json JSON.dump(to_hash) end |