def list_payments(self, location_id, **kwargs):
all_params = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>all_params.append('<STR_LIT>')<EOL>params = locals()<EOL>for key, val in iteritems(params['<STR_LIT>']):<EOL><INDENT>if key not in all_params:<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % key<EOL>)<EOL><DEDENT>params[key] = val<EOL><DEDENT>del params['<STR_LIT>']<EOL>if ('<STR_LIT>' not in params) or (params['<STR_LIT>'] is None):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>resource_path = '<STR_LIT>'.replace('<STR_LIT>', '<STR_LIT>')<EOL>path_params = {}<EOL>if '<STR_LIT>' in params:<EOL><INDENT>path_params['<STR_LIT>'] = params['<STR_LIT>']<EOL><DEDENT>query_params = {}<EOL>if '<STR_LIT>' in params and params['<STR_LIT>'] is not None:<EOL><INDENT>query_params['<STR_LIT>'] = params['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in params and params['<STR_LIT>'] is not None:<EOL><INDENT>query_params['<STR_LIT>'] = params['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in params and params['<STR_LIT>'] is not None:<EOL><INDENT>query_params['<STR_LIT>'] = params['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in params and params['<STR_LIT>'] is not None:<EOL><INDENT>query_params['<STR_LIT>'] = params['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in params and params['<STR_LIT>'] is not None:<EOL><INDENT>query_params['<STR_LIT>'] = params['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in params and params['<STR_LIT>'] is not None:<EOL><INDENT>query_params['<STR_LIT>'] = params['<STR_LIT>']<EOL><DEDENT>header_params = {}<EOL>header_params['<STR_LIT>'] = "<STR_LIT>"<EOL>form_params = []<EOL>local_var_files = {}<EOL>body_params = None<EOL>header_params['<STR_LIT>'] = self.api_client.select_header_accept(['<STR_LIT:application/json>'])<EOL>if not header_params['<STR_LIT>']:<EOL><INDENT>del header_params['<STR_LIT>']<EOL><DEDENT>header_params['<STR_LIT:Content-Type>'] = self.api_client.select_header_content_type(['<STR_LIT:application/json>'])<EOL>auth_settings = ['<STR_LIT>']<EOL>return self.api_client.call_api(resource_path, '<STR_LIT:GET>',<EOL>path_params,<EOL>query_params,<EOL>header_params,<EOL>body=body_params,<EOL>post_params=form_params,<EOL>files=local_var_files,<EOL>response_type='<STR_LIT>',<EOL>auth_settings=auth_settings,<EOL>callback=params.get('<STR_LIT>'))<EOL>
ListPayments
Provides summary information for all payments taken for a given Square account during a date range. Date ranges cannot exceed 1 year in length. See Date ranges for details of inclusive and exclusive dates.  *Note**: Details for payments processed with Square Point of Sale while in offline mode may not be transmitted to Square for up to 72 hours. Offline payments have a `created_at` value that reflects the time the payment was originally processed, not the time it was subsequently transmitted to Square. Consequently, the ListPayments endpoint might list an offline payment chronologically between online payments that were seen in a previous request.

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>>     pprint(response)
>>>
>>> thread = api.list_payments(location_id, callback=callback_function)

:param callback function: The callback function
    for asynchronous request. (optional)
:param str location_id: The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations. (required)
:param str order: The order in which payments are listed in the response.
:param str begin_time: The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
:param str end_time: The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
:param int limit: The maximum number of payments to return in a single response. This value cannot exceed 200.
:param str batch_token: A pagination cursor to retrieve the next set of results for your original query to the endpoint.
:param bool include_partial: Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed.
:return: list[V1Payment]
         If the method is called asynchronously,
         returns the request thread.