public final class DefaultCheckoutApi extends BaseApi implements CheckoutApi
AUTHENTICATION_KEY, GLOBAL_ERROR_CASES| Constructor and Description |
|---|
DefaultCheckoutApi(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic DefaultCheckoutApi(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.@Deprecated public CreateCheckoutResponse createCheckout(String locationId, CreateCheckoutRequest body) throws ApiException, IOException
createCheckout in interface CheckoutApilocationId - 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 public CompletableFuture<CreateCheckoutResponse> createCheckoutAsync(String locationId, CreateCheckoutRequest body)
createCheckoutAsync in interface CheckoutApilocationId - 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.public RetrieveLocationSettingsResponse retrieveLocationSettings(String locationId) throws ApiException, IOException
retrieveLocationSettings in interface CheckoutApilocationId - Required parameter: The ID of the location for which to retrieve
settings.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveLocationSettingsResponse> retrieveLocationSettingsAsync(String locationId)
retrieveLocationSettingsAsync in interface CheckoutApilocationId - Required parameter: The ID of the location for which to retrieve
settings.public UpdateLocationSettingsResponse updateLocationSettings(String locationId, UpdateLocationSettingsRequest body) throws ApiException, IOException
updateLocationSettings in interface CheckoutApilocationId - Required parameter: The ID of the location for which to retrieve
settings.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.public CompletableFuture<UpdateLocationSettingsResponse> updateLocationSettingsAsync(String locationId, UpdateLocationSettingsRequest body)
updateLocationSettingsAsync in interface CheckoutApilocationId - Required parameter: The ID of the location for which to retrieve
settings.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public RetrieveMerchantSettingsResponse retrieveMerchantSettings() throws ApiException, IOException
retrieveMerchantSettings in interface CheckoutApiApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveMerchantSettingsResponse> retrieveMerchantSettingsAsync()
retrieveMerchantSettingsAsync in interface CheckoutApipublic UpdateMerchantSettingsResponse updateMerchantSettings(UpdateMerchantSettingsRequest body) throws ApiException, IOException
updateMerchantSettings in interface CheckoutApibody - 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.public CompletableFuture<UpdateMerchantSettingsResponse> updateMerchantSettingsAsync(UpdateMerchantSettingsRequest body)
updateMerchantSettingsAsync in interface CheckoutApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public ListPaymentLinksResponse listPaymentLinks(String cursor, Integer limit) throws ApiException, IOException
listPaymentLinks in interface CheckoutApicursor - 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.public CompletableFuture<ListPaymentLinksResponse> listPaymentLinksAsync(String cursor, Integer limit)
listPaymentLinksAsync in interface CheckoutApicursor - 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`public CreatePaymentLinkResponse createPaymentLink(CreatePaymentLinkRequest body) throws ApiException, IOException
createPaymentLink in interface CheckoutApibody - 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.public CompletableFuture<CreatePaymentLinkResponse> createPaymentLinkAsync(CreatePaymentLinkRequest body)
createPaymentLinkAsync in interface CheckoutApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public DeletePaymentLinkResponse deletePaymentLink(String id) throws ApiException, IOException
deletePaymentLink in interface CheckoutApiid - 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.public CompletableFuture<DeletePaymentLinkResponse> deletePaymentLinkAsync(String id)
deletePaymentLinkAsync in interface CheckoutApiid - Required parameter: The ID of the payment link to delete.public RetrievePaymentLinkResponse retrievePaymentLink(String id) throws ApiException, IOException
retrievePaymentLink in interface CheckoutApiid - 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.public CompletableFuture<RetrievePaymentLinkResponse> retrievePaymentLinkAsync(String id)
retrievePaymentLinkAsync in interface CheckoutApiid - Required parameter: The ID of link to retrieve.public UpdatePaymentLinkResponse updatePaymentLink(String id, UpdatePaymentLinkRequest body) throws ApiException, IOException
updatePaymentLink in interface CheckoutApiid - 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.public CompletableFuture<UpdatePaymentLinkResponse> updatePaymentLinkAsync(String id, UpdatePaymentLinkRequest body)
updatePaymentLinkAsync in interface CheckoutApiid - 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 © 2024. All rights reserved.