public interface CheckoutApi
@Deprecated CreateCheckoutResponse createCheckout(String locationId, CreateCheckoutRequest body) throws ApiException, IOException
locationId - Required parameter: The ID of the business location to associate the
checkout with.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<CreateCheckoutResponse> createCheckoutAsync(String locationId, CreateCheckoutRequest body)
locationId - Required parameter: The ID of the business location to associate the
checkout with.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ListPaymentLinksResponse listPaymentLinks(String cursor, Integer limit) throws ApiException, IOException
cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. If a cursor is not provided, the endpoint returns the first page of the
results. For more information, see
[Pagination](https://developer.squareup.com/docs/basics/api101/pagination).limit - Optional parameter: A limit on the number of results to return per page. The
limit is advisory and the implementation might return more or less results. If the
supplied limit is negative, zero, or greater than the maximum limit of 1000, it is
ignored. Default value: `100`ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListPaymentLinksResponse> listPaymentLinksAsync(String cursor, Integer limit)
cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. If a cursor is not provided, the endpoint returns the first page of the
results. For more information, see
[Pagination](https://developer.squareup.com/docs/basics/api101/pagination).limit - Optional parameter: A limit on the number of results to return per page. The
limit is advisory and the implementation might return more or less results. If the
supplied limit is negative, zero, or greater than the maximum limit of 1000, it is
ignored. Default value: `100`CreatePaymentLinkResponse createPaymentLink(CreatePaymentLinkRequest body) throws ApiException, IOException
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.CompletableFuture<CreatePaymentLinkResponse> createPaymentLinkAsync(CreatePaymentLinkRequest body)
body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.DeletePaymentLinkResponse deletePaymentLink(String id) throws ApiException, IOException
id - Required parameter: The ID of the payment link to delete.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<DeletePaymentLinkResponse> deletePaymentLinkAsync(String id)
id - Required parameter: The ID of the payment link to delete.RetrievePaymentLinkResponse retrievePaymentLink(String id) throws ApiException, IOException
id - Required parameter: The ID of link to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrievePaymentLinkResponse> retrievePaymentLinkAsync(String id)
id - Required parameter: The ID of link to retrieve.UpdatePaymentLinkResponse updatePaymentLink(String id, UpdatePaymentLinkRequest body) throws ApiException, IOException
id - Required parameter: The ID of the payment link to update.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.CompletableFuture<UpdatePaymentLinkResponse> updatePaymentLinkAsync(String id, UpdatePaymentLinkRequest body)
id - Required parameter: The ID of the payment link to update.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.Copyright © 2023. All rights reserved.