Class: Io::Flow::V0::Clients::CustomerBundles

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ CustomerBundles

Returns a new instance of CustomerBundles.



5814
5815
5816
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5814

def initialize(client)
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
end

Instance Method Details

#get_bundle_by_number(organization, number) ⇒ Object

Returns information about a specific customer.



5819
5820
5821
5822
5823
5824
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5819

def get_bundle_by_number(organization, number)
  HttpClient::Preconditions.assert_class('organization', organization, String)
  HttpClient::Preconditions.assert_class('number', number, String)
  r = @client.request("/#{CGI.escape(organization)}/customers/#{CGI.escape(number)}/bundle").get
  ::Io::Flow::V0::Models::CustomerBundle.new(r)
end