class Io::Flow::V0::Models::AuthorizationCode
Contains the result code from the psp related to this authorization.
Attributes
code[R]
result_code[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 31029 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:result_code, :code], 'AuthorizationCode') @result_code = HttpClient::Preconditions.assert_class('result_code', opts.delete(:result_code), String) @code = HttpClient::Preconditions.assert_class('code', opts.delete(:code), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 31040 def copy(incoming={}) AuthorizationCode.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 31044 def to_hash { :result_code => result_code, :code => code } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 31036 def to_json JSON.dump(to_hash) end