class Io::Flow::V0::Clients::UltimateBeneficiaryOwners
Public Class Methods
new(client)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 9132 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end
Public Instance Methods
put(organization, ultimate_beneficiary_owner)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 9136 def put(organization, ultimate_beneficiary_owner) HttpClient::Preconditions.assert_class('organization', organization, String) (x = ultimate_beneficiary_owner; x.is_a?(::Io::Flow::V0::Models::UltimateBeneficiaryOwner) ? x : ::Io::Flow::V0::Models::UltimateBeneficiaryOwner.new(x)) r = @client.request("/#{CGI.escape(organization)}/shopify/merchant/config/ultimate/beneficiary/owner").with_json(ultimate_beneficiary_owner.to_json).put ::Io::Flow::V0::Models::UltimateBeneficiaryOwner.new(r) end