Class: Io::Flow::V0::Clients::UltimateBeneficiaryOwners
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::UltimateBeneficiaryOwners
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ UltimateBeneficiaryOwners
constructor
A new instance of UltimateBeneficiaryOwners.
- #put(organization, ultimate_beneficiary_owner) ⇒ Object
Constructor Details
#initialize(client) ⇒ UltimateBeneficiaryOwners
Returns a new instance of UltimateBeneficiaryOwners.
9132 9133 9134 |
# 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 |
Instance Method Details
#put(organization, ultimate_beneficiary_owner) ⇒ Object
9136 9137 9138 9139 9140 9141 |
# 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 |