class Io::Flow::V0::Models::PostPaymentRedirectUrls
The URLs to which the customer will be redirected based on the authorization status.
Attributes
failure[R]
success[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 59786 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:success], 'PostPaymentRedirectUrls') @success = HttpClient::Preconditions.assert_class('success', opts.delete(:success), String) @failure = (x = opts.delete(:failure); x.nil? ? nil : HttpClient::Preconditions.assert_class('failure', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 59797 def copy(incoming={}) PostPaymentRedirectUrls.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 59801 def to_hash { :success => success, :failure => failure } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 59793 def to_json JSON.dump(to_hash) end