Class: Io::Flow::V0::Models::PaymentMethodDataAuthorizeKlarnaResultSuccess
- Inherits:
-
PaymentMethodDataAuthorizeKlarnaResult
- Object
- PaymentMethodDataAuthorizeKlarnaResult
- Io::Flow::V0::Models::PaymentMethodDataAuthorizeKlarnaResultSuccess
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#authorization_token ⇒ Object
readonly
Returns the value of attribute authorization_token.
Attributes inherited from PaymentMethodDataAuthorizeKlarnaResult
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodDataAuthorizeKlarnaResultSuccess
constructor
A new instance of PaymentMethodDataAuthorizeKlarnaResultSuccess.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodDataAuthorizeKlarnaResult
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodDataAuthorizeKlarnaResultSuccess
Returns a new instance of PaymentMethodDataAuthorizeKlarnaResultSuccess.
57312 57313 57314 57315 57316 57317 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57312 def initialize(incoming={}) super(:type => PaymentMethodDataAuthorizeKlarnaResult::Types::PAYMENT_METHOD_DATA_AUTHORIZE_KLARNA_RESULT_SUCCESS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:authorization_token], 'PaymentMethodDataAuthorizeKlarnaResultSuccess') @authorization_token = HttpClient::Preconditions.assert_class('authorization_token', opts.delete(:authorization_token), String) end |
Instance Attribute Details
#authorization_token ⇒ Object (readonly)
Returns the value of attribute authorization_token.
57310 57311 57312 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57310 def @authorization_token end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
57323 57324 57325 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57323 def copy(incoming={}) PaymentMethodDataAuthorizeKlarnaResultSuccess.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
57327 57328 57329 57330 57331 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57327 def subtype_to_hash { :authorization_token => } end |
#to_json ⇒ Object
57319 57320 57321 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57319 def to_json JSON.dump(to_hash) end |