Class: Io::Flow::V0::Models::PaymentMethodDataAuthorizeApplepayResultFailure

Inherits:
PaymentMethodDataAuthorizeApplepayResult show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentMethodDataAuthorizeApplepayResult

#type

Instance Method Summary collapse

Methods inherited from PaymentMethodDataAuthorizeApplepayResult

from_json, #to_hash

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

#messageObject (readonly)

Returns the value of attribute message.



57143
57144
57145
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57143

def message
  @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_hashObject



57160
57161
57162
57163
57164
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57160

def subtype_to_hash
  {
    :message => message
  }
end

#to_jsonObject



57152
57153
57154
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57152

def to_json
  JSON.dump(to_hash)
end