Class: Io::Flow::V0::Models::PaymentMethodDataAuthorizeKlarnaResultFailure
- Inherits:
-
PaymentMethodDataAuthorizeKlarnaResult
- Object
- PaymentMethodDataAuthorizeKlarnaResult
- Io::Flow::V0::Models::PaymentMethodDataAuthorizeKlarnaResultFailure
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Attributes inherited from PaymentMethodDataAuthorizeKlarnaResult
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodDataAuthorizeKlarnaResultFailure
constructor
A new instance of PaymentMethodDataAuthorizeKlarnaResultFailure.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodDataAuthorizeKlarnaResult
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodDataAuthorizeKlarnaResultFailure
Returns a new instance of PaymentMethodDataAuthorizeKlarnaResultFailure.
57286 57287 57288 57289 57290 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57286 def initialize(incoming={}) super(:type => PaymentMethodDataAuthorizeKlarnaResult::Types::PAYMENT_METHOD_DATA_AUTHORIZE_KLARNA_RESULT_FAILURE) opts = HttpClient::Helper.symbolize_keys(incoming) @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String)) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
57284 57285 57286 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57284 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
57296 57297 57298 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57296 def copy(incoming={}) PaymentMethodDataAuthorizeKlarnaResultFailure.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
57300 57301 57302 57303 57304 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57300 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
57292 57293 57294 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57292 def to_json JSON.dump(to_hash) end |