Class: Io::Flow::V0::Models::PaymentMethodDataAuthorizeApplepayResultFailure
- Inherits:
-
PaymentMethodDataAuthorizeApplepayResult
- Object
- PaymentMethodDataAuthorizeApplepayResult
- Io::Flow::V0::Models::PaymentMethodDataAuthorizeApplepayResultFailure
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from PaymentMethodDataAuthorizeApplepayResult
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodDataAuthorizeApplepayResultFailure
constructor
A new instance of PaymentMethodDataAuthorizeApplepayResultFailure.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodDataAuthorizeApplepayResult
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodDataAuthorizeApplepayResultFailure
Returns a new instance of PaymentMethodDataAuthorizeApplepayResultFailure.
57145 57146 57147 57148 57149 57150 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57145 def initialize(incoming={}) super(:type => PaymentMethodDataAuthorizeApplepayResult::Types::PAYMENT_METHOD_DATA_AUTHORIZE_APPLEPAY_RESULT_FAILURE) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:message], 'PaymentMethodDataAuthorizeApplepayResultFailure') @message = HttpClient::Preconditions.assert_class('message', opts.delete(:message), String) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
57143 57144 57145 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57143 def @message end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
57156 57157 57158 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57156 def copy(incoming={}) PaymentMethodDataAuthorizeApplepayResultFailure.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
57160 57161 57162 57163 57164 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57160 def subtype_to_hash { :message => } end |
#to_json ⇒ Object
57152 57153 57154 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57152 def to_json JSON.dump(to_hash) end |