lib/mws/customer_information/client.rb in peddler-0.9.0 vs lib/mws/customer_information/client.rb in peddler-0.9.1
- old
+ new
@@ -28,11 +28,11 @@
# @option opts [String, #iso8601] :date_range_start
# @option opts [String, #iso8601] :date_range_end
# @option opts [String] :date_range_type
# @return [Peddler::XMLParser]
def list_customers(opts = {})
- operation('ListCarts')
+ operation('ListCustomers')
.add(opts)
run
end
@@ -56,10 +56,10 @@
# @param customer_id_list [Array<String>]
# @param opts [Hash]
# @option opts [String] :marketplace_id
# @return [Peddler::XMLParser]
def get_customers_for_customer_id(*customer_id_list)
- opts = extract_options(id_list)
+ opts = extract_options(customer_id_list)
operation('GetCustomersForCustomerId')
.add(opts.merge('CustomerIdList' => customer_id_list))
.structure!('CustomerIdList', 'CustomerId')
run