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.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#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.
51853 51854 51855 51856 51857 51858 51859 51860 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51853 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) @key = (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, String)) end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
51851 51852 51853 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51851 def account_id @account_id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
51851 51852 51853 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51851 def key @key end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
51851 51852 51853 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51851 def secret_key @secret_key end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
51866 51867 51868 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51866 def copy(incoming={}) StripeAuthenticationDataForm.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
51870 51871 51872 51873 51874 51875 51876 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51870 def subtype_to_hash { :account_id => account_id, :secret_key => secret_key, :key => key } end |
#to_json ⇒ Object
51862 51863 51864 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51862 def to_json JSON.dump(to_hash) end |