class Io::Flow::V0::Models::MerchantRejected
The merchant is rejected for onboarding by the compliance team
Attributes
description[R]
reason[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::OnboardingState::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 50402 def initialize(incoming={}) super(:discriminator => OnboardingState::Types::MERCHANT_REJECTED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:reason], 'MerchantRejected') @reason = (x = opts.delete(:reason); x.is_a?(::Io::Flow::V0::Models::MerchantRejectedReason) ? x : ::Io::Flow::V0::Models::MerchantRejectedReason.apply(x)) @description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50414 def copy(incoming={}) MerchantRejected.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
subtype_to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50418 def subtype_to_hash { :reason => reason.value, :description => description } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50410 def to_json JSON.dump(to_hash) end