public final class DefaultV1TransactionsApi extends BaseApi implements V1TransactionsApi
AUTHENTICATION_KEY, GLOBAL_ERROR_CASES| Constructor and Description |
|---|
DefaultV1TransactionsApi(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic DefaultV1TransactionsApi(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.@Deprecated public List<V1Order> v1ListOrders(String locationId, String order, Integer limit, String batchToken) throws ApiException, IOException
v1ListOrders in interface V1TransactionsApilocationId - 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 public CompletableFuture<List<V1Order>> v1ListOrdersAsync(String locationId, String order, Integer limit, String batchToken)
v1ListOrdersAsync in interface V1TransactionsApilocationId - 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 public V1Order v1RetrieveOrder(String locationId, String orderId) throws ApiException, IOException
v1RetrieveOrder in interface V1TransactionsApilocationId - 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 public CompletableFuture<V1Order> v1RetrieveOrderAsync(String locationId, String orderId)
v1RetrieveOrderAsync in interface V1TransactionsApilocationId - 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 public V1Order v1UpdateOrder(String locationId, String orderId, V1UpdateOrderRequest body) throws ApiException, IOException
v1UpdateOrder in interface V1TransactionsApilocationId - 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 public CompletableFuture<V1Order> v1UpdateOrderAsync(String locationId, String orderId, V1UpdateOrderRequest body)
v1UpdateOrderAsync in interface V1TransactionsApilocationId - 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 public List<V1Payment> v1ListPayments(String locationId, String order, String beginTime, String endTime, Integer limit, String batchToken, Boolean includePartial) throws ApiException, IOException
v1ListPayments in interface V1TransactionsApilocationId - 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 public CompletableFuture<List<V1Payment>> v1ListPaymentsAsync(String locationId, String order, String beginTime, String endTime, Integer limit, String batchToken, Boolean includePartial)
v1ListPaymentsAsync in interface V1TransactionsApilocationId - 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 public V1Payment v1RetrievePayment(String locationId, String paymentId) throws ApiException, IOException
v1RetrievePayment in interface V1TransactionsApilocationId - 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 public CompletableFuture<V1Payment> v1RetrievePaymentAsync(String locationId, String paymentId)
v1RetrievePaymentAsync in interface V1TransactionsApilocationId - 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 public List<V1Refund> v1ListRefunds(String locationId, String order, String beginTime, String endTime, Integer limit, String batchToken) throws ApiException, IOException
v1ListRefunds in interface V1TransactionsApilocationId - 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 public CompletableFuture<List<V1Refund>> v1ListRefundsAsync(String locationId, String order, String beginTime, String endTime, Integer limit, String batchToken)
v1ListRefundsAsync in interface V1TransactionsApilocationId - 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 public V1Refund v1CreateRefund(String locationId, V1CreateRefundRequest body) throws ApiException, IOException
v1CreateRefund in interface V1TransactionsApilocationId - 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 public CompletableFuture<V1Refund> v1CreateRefundAsync(String locationId, V1CreateRefundRequest body)
v1CreateRefundAsync in interface V1TransactionsApilocationId - 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 public List<V1Settlement> v1ListSettlements(String locationId, String order, String beginTime, String endTime, Integer limit, String status, String batchToken) throws ApiException, IOException
v1ListSettlements in interface V1TransactionsApilocationId - 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 public CompletableFuture<List<V1Settlement>> v1ListSettlementsAsync(String locationId, String order, String beginTime, String endTime, Integer limit, String status, String batchToken)
v1ListSettlementsAsync in interface V1TransactionsApilocationId - 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 public V1Settlement v1RetrieveSettlement(String locationId, String settlementId) throws ApiException, IOException
v1RetrieveSettlement in interface V1TransactionsApilocationId - 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 public CompletableFuture<V1Settlement> v1RetrieveSettlementAsync(String locationId, String settlementId)
v1RetrieveSettlementAsync in interface V1TransactionsApilocationId - 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 © 2023. All rights reserved.