public interface V1TransactionsApi
@Deprecated List<V1Order> listOrders(String locationId, String order, Integer limit, String batchToken) throws ApiException, IOException
locationId - Required parameter: The ID of the location to list online store orders
for.order - Optional parameter: The order in which payments are listed in the response.limit - Optional parameter: The maximum number of payments to return in a single
response. This value cannot exceed 200.batchToken - Optional parameter: A pagination cursor to retrieve the next set of
results for your original query to the endpoint.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<List<V1Order>> listOrdersAsync(String locationId, String order, Integer limit, String batchToken)
locationId - Required parameter: The ID of the location to list online store orders
for.order - Optional parameter: The order in which payments are listed in the response.limit - Optional parameter: The maximum number of payments to return in a single
response. This value cannot exceed 200.batchToken - Optional parameter: A pagination cursor to retrieve the next set of
results for your original query to the endpoint.@Deprecated V1Order retrieveOrder(String locationId, String orderId) throws ApiException, IOException
locationId - Required parameter: The ID of the order's associated location.orderId - Required parameter: The order's Square-issued ID. You obtain this value from
Order objects returned by the List Orders endpointApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<V1Order> retrieveOrderAsync(String locationId, String orderId)
locationId - Required parameter: The ID of the order's associated location.orderId - Required parameter: The order's Square-issued ID. You obtain this value from
Order objects returned by the List Orders endpoint@Deprecated V1Order updateOrder(String locationId, String orderId, V1UpdateOrderRequest body) throws ApiException, IOException
locationId - Required parameter: The ID of the order's associated location.orderId - Required parameter: The order's Square-issued ID. You obtain this value from
Order objects returned by the List Orders endpointbody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<V1Order> updateOrderAsync(String locationId, String orderId, V1UpdateOrderRequest body)
locationId - Required parameter: The ID of the order's associated location.orderId - Required parameter: The order's Square-issued ID. You obtain this value from
Order objects returned by the List Orders endpointbody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.@Deprecated List<V1Payment> listPayments(String locationId, String order, String beginTime, String endTime, Integer limit, String batchToken, Boolean includePartial) throws ApiException, IOException
locationId - Required parameter: 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.order - Optional parameter: The order in which payments are listed in the response.beginTime - Optional parameter: 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.endTime - Optional parameter: 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.limit - Optional parameter: The maximum number of payments to return in a single
response. This value cannot exceed 200.batchToken - Optional parameter: A pagination cursor to retrieve the next set of
results for your original query to the endpoint.includePartial - Optional parameter: 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.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<List<V1Payment>> listPaymentsAsync(String locationId, String order, String beginTime, String endTime, Integer limit, String batchToken, Boolean includePartial)
locationId - Required parameter: 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.order - Optional parameter: The order in which payments are listed in the response.beginTime - Optional parameter: 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.endTime - Optional parameter: 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.limit - Optional parameter: The maximum number of payments to return in a single
response. This value cannot exceed 200.batchToken - Optional parameter: A pagination cursor to retrieve the next set of
results for your original query to the endpoint.includePartial - Optional parameter: 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.@Deprecated V1Payment retrievePayment(String locationId, String paymentId) throws ApiException, IOException
locationId - Required parameter: The ID of the payment's associated location.paymentId - Required parameter: The Square-issued payment ID. payment_id comes from
Payment objects returned by the List Payments endpoint, Settlement objects returned
by the List Settlements endpoint, or Refund objects returned by the List Refunds
endpoint.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<V1Payment> retrievePaymentAsync(String locationId, String paymentId)
locationId - Required parameter: The ID of the payment's associated location.paymentId - Required parameter: The Square-issued payment ID. payment_id comes from
Payment objects returned by the List Payments endpoint, Settlement objects returned
by the List Settlements endpoint, or Refund objects returned by the List Refunds
endpoint.@Deprecated List<V1Refund> listRefunds(String locationId, String order, String beginTime, String endTime, Integer limit, String batchToken) throws ApiException, IOException
locationId - Required parameter: The ID of the location to list refunds for.order - Optional parameter: The order in which payments are listed in the response.beginTime - Optional parameter: 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.endTime - Optional parameter: 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.limit - Optional parameter: The approximate number of refunds to return in a single
response. Default: 100. Max: 200. Response may contain more results than the
prescribed limit when refunds are made simultaneously to multiple tenders in a
payment or when refunds are generated in an exchange to account for the value of
returned goods.batchToken - Optional parameter: A pagination cursor to retrieve the next set of
results for your original query to the endpoint.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<List<V1Refund>> listRefundsAsync(String locationId, String order, String beginTime, String endTime, Integer limit, String batchToken)
locationId - Required parameter: The ID of the location to list refunds for.order - Optional parameter: The order in which payments are listed in the response.beginTime - Optional parameter: 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.endTime - Optional parameter: 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.limit - Optional parameter: The approximate number of refunds to return in a single
response. Default: 100. Max: 200. Response may contain more results than the
prescribed limit when refunds are made simultaneously to multiple tenders in a
payment or when refunds are generated in an exchange to account for the value of
returned goods.batchToken - Optional parameter: A pagination cursor to retrieve the next set of
results for your original query to the endpoint.@Deprecated V1Refund createRefund(String locationId, V1CreateRefundRequest body) throws ApiException, IOException
locationId - Required parameter: The ID of the original payment's associated location.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<V1Refund> createRefundAsync(String locationId, V1CreateRefundRequest body)
locationId - Required parameter: The ID of the original payment's associated location.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.@Deprecated List<V1Settlement> listSettlements(String locationId, String order, String beginTime, String endTime, Integer limit, String status, String batchToken) throws ApiException, IOException
locationId - Required parameter: The ID of the location to list settlements for. If
you specify me, this endpoint returns settlements aggregated from all of the
business's locations.order - Optional parameter: The order in which settlements are listed in the response.beginTime - Optional parameter: 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.endTime - Optional parameter: 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.limit - Optional parameter: The maximum number of settlements to return in a single
response. This value cannot exceed 200.status - Optional parameter: Provide this parameter to retrieve only settlements with
a particular status (SENT or FAILED).batchToken - Optional parameter: A pagination cursor to retrieve the next set of
results for your original query to the endpoint.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<List<V1Settlement>> listSettlementsAsync(String locationId, String order, String beginTime, String endTime, Integer limit, String status, String batchToken)
locationId - Required parameter: The ID of the location to list settlements for. If
you specify me, this endpoint returns settlements aggregated from all of the
business's locations.order - Optional parameter: The order in which settlements are listed in the response.beginTime - Optional parameter: 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.endTime - Optional parameter: 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.limit - Optional parameter: The maximum number of settlements to return in a single
response. This value cannot exceed 200.status - Optional parameter: Provide this parameter to retrieve only settlements with
a particular status (SENT or FAILED).batchToken - Optional parameter: A pagination cursor to retrieve the next set of
results for your original query to the endpoint.@Deprecated V1Settlement retrieveSettlement(String locationId, String settlementId) throws ApiException, IOException
locationId - Required parameter: The ID of the settlements's associated location.settlementId - Required parameter: The settlement's Square-issued ID. You obtain this
value from Settlement objects returned by the List Settlements endpoint.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated CompletableFuture<V1Settlement> retrieveSettlementAsync(String locationId, String settlementId)
locationId - Required parameter: The ID of the settlements's associated location.settlementId - Required parameter: The settlement's Square-issued ID. You obtain this
value from Settlement objects returned by the List Settlements endpoint.Copyright © 2022. All rights reserved.