class Io::Flow::V0::Clients::CustomerBundles

Public Class Methods

new(client) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 6510
def initialize(client)
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
end

Public Instance Methods

get_bundle_by_number(organization, number) click to toggle source

Returns information about a specific customer.

# File lib/flow_commerce/flow_api_v0_client.rb, line 6515
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