public interface CheckoutApi
| Modifier and Type | Method and Description |
|---|---|
CreateCheckoutResponse |
createCheckout(String locationId,
CreateCheckoutRequest body)
Links a `checkoutId` to a `checkout_page_url` that customers are directed to in order to
provide their payment information using a payment processing workflow hosted on
connect.squareup.com.
|
CompletableFuture<CreateCheckoutResponse> |
createCheckoutAsync(String locationId,
CreateCheckoutRequest body)
Links a `checkoutId` to a `checkout_page_url` that customers are directed to in order to
provide their payment information using a payment processing workflow hosted on
connect.squareup.com.
|
CreatePaymentLinkResponse |
createPaymentLink(CreatePaymentLinkRequest body)
Creates a Square-hosted checkout page.
|
CompletableFuture<CreatePaymentLinkResponse> |
createPaymentLinkAsync(CreatePaymentLinkRequest body)
Creates a Square-hosted checkout page.
|
DeletePaymentLinkResponse |
deletePaymentLink(String id)
Deletes a payment link.
|
CompletableFuture<DeletePaymentLinkResponse> |
deletePaymentLinkAsync(String id)
Deletes a payment link.
|
ListPaymentLinksResponse |
listPaymentLinks(String cursor,
Integer limit)
Lists all payment links.
|
CompletableFuture<ListPaymentLinksResponse> |
listPaymentLinksAsync(String cursor,
Integer limit)
Lists all payment links.
|
RetrievePaymentLinkResponse |
retrievePaymentLink(String id)
Retrieves a payment link.
|
CompletableFuture<RetrievePaymentLinkResponse> |
retrievePaymentLinkAsync(String id)
Retrieves a payment link.
|
UpdatePaymentLinkResponse |
updatePaymentLink(String id,
UpdatePaymentLinkRequest body)
Updates a payment link.
|
CompletableFuture<UpdatePaymentLinkResponse> |
updatePaymentLinkAsync(String id,
UpdatePaymentLinkRequest body)
Updates a payment link.
|
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.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 © 2022. All rights reserved.