class Io::Flow::V0::Clients::Allocations
Public Class Methods
new(client)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 812 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end
Public Instance Methods
get(organization, number)
click to toggle source
Order-level price details allocated using a strategy among individual order item units.
# File lib/flow_commerce/flow_api_v0_client.rb, line 818 def get(organization, number) HttpClient::Preconditions.assert_class('organization', organization, String) HttpClient::Preconditions.assert_class('number', number, String) r = @client.request("/#{CGI.escape(organization)}/orders/allocations/#{CGI.escape(number)}").get ::Io::Flow::V0::Models::AllocationV2.new(r) end