public final class SquareClient extends Object implements SquareClientInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
SquareClient.Builder
Class to build instances of
SquareClient. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
OAuth 2.0 Access Token.
|
Headers |
getAdditionalHeaders()
Additional headers to add to each API request.
|
ApplePayApi |
getApplePayApi()
Get the instance of ApplePayApi.
|
BankAccountsApi |
getBankAccountsApi()
Get the instance of BankAccountsApi.
|
String |
getBaseUri()
Get base URI by current environment.
|
String |
getBaseUri(Server server)
Get base URI by current environment.
|
BookingsApi |
getBookingsApi()
Get the instance of BookingsApi.
|
CardsApi |
getCardsApi()
Get the instance of CardsApi.
|
CashDrawersApi |
getCashDrawersApi()
Get the instance of CashDrawersApi.
|
CatalogApi |
getCatalogApi()
Get the instance of CatalogApi.
|
CheckoutApi |
getCheckoutApi()
Get the instance of CheckoutApi.
|
CustomerCustomAttributesApi |
getCustomerCustomAttributesApi()
Get the instance of CustomerCustomAttributesApi.
|
CustomerGroupsApi |
getCustomerGroupsApi()
Get the instance of CustomerGroupsApi.
|
CustomersApi |
getCustomersApi()
Get the instance of CustomersApi.
|
CustomerSegmentsApi |
getCustomerSegmentsApi()
Get the instance of CustomerSegmentsApi.
|
String |
getCustomUrl()
Sets the base URL requests are made to.
|
DevicesApi |
getDevicesApi()
Get the instance of DevicesApi.
|
DisputesApi |
getDisputesApi()
Get the instance of DisputesApi.
|
EmployeesApi |
getEmployeesApi()
Get the instance of EmployeesApi.
|
Environment |
getEnvironment()
Current API environment.
|
GiftCardActivitiesApi |
getGiftCardActivitiesApi()
Get the instance of GiftCardActivitiesApi.
|
GiftCardsApi |
getGiftCardsApi()
Get the instance of GiftCardsApi.
|
ReadonlyHttpClientConfiguration |
getHttpClientConfig()
Http Client Configuration instance.
|
InventoryApi |
getInventoryApi()
Get the instance of InventoryApi.
|
InvoicesApi |
getInvoicesApi()
Get the instance of InvoicesApi.
|
LaborApi |
getLaborApi()
Get the instance of LaborApi.
|
LocationsApi |
getLocationsApi()
Get the instance of LocationsApi.
|
LoyaltyApi |
getLoyaltyApi()
Get the instance of LoyaltyApi.
|
MerchantsApi |
getMerchantsApi()
Get the instance of MerchantsApi.
|
MobileAuthorizationApi |
getMobileAuthorizationApi()
Get the instance of MobileAuthorizationApi.
|
OAuthApi |
getOAuthApi()
Get the instance of OAuthApi.
|
OrdersApi |
getOrdersApi()
Get the instance of OrdersApi.
|
PaymentsApi |
getPaymentsApi()
Get the instance of PaymentsApi.
|
PayoutsApi |
getPayoutsApi()
Get the instance of PayoutsApi.
|
RefundsApi |
getRefundsApi()
Get the instance of RefundsApi.
|
String |
getSdkVersion()
Current SDK Version.
|
SitesApi |
getSitesApi()
Get the instance of SitesApi.
|
SnippetsApi |
getSnippetsApi()
Get the instance of SnippetsApi.
|
String |
getSquareVersion()
Square Connect API versions.
|
SubscriptionsApi |
getSubscriptionsApi()
Get the instance of SubscriptionsApi.
|
TeamApi |
getTeamApi()
Get the instance of TeamApi.
|
TerminalApi |
getTerminalApi()
Get the instance of TerminalApi.
|
TransactionsApi |
getTransactionsApi()
Get the instance of TransactionsApi.
|
String |
getUserAgentDetail()
Additional detail which can be appended with User-Agent header.
|
V1TransactionsApi |
getV1TransactionsApi()
Get the instance of V1TransactionsApi.
|
VendorsApi |
getVendorsApi()
Get the instance of VendorsApi.
|
SquareClient.Builder |
newBuilder()
Builds a new
SquareClient.Builder object. |
static void |
shutdown()
Shutdown the underlying HttpClient instance.
|
long |
timeout()
Deprecated.
This method will be removed in a future version. Use
getHttpClientConfig() instead. |
String |
toString()
Converts this SquareClient into string format.
|
public static void shutdown()
public MobileAuthorizationApi getMobileAuthorizationApi()
getMobileAuthorizationApi in interface SquareClientInterfacepublic OAuthApi getOAuthApi()
getOAuthApi in interface SquareClientInterfacepublic V1TransactionsApi getV1TransactionsApi()
getV1TransactionsApi in interface SquareClientInterfacepublic ApplePayApi getApplePayApi()
getApplePayApi in interface SquareClientInterfacepublic BankAccountsApi getBankAccountsApi()
getBankAccountsApi in interface SquareClientInterfacepublic BookingsApi getBookingsApi()
getBookingsApi in interface SquareClientInterfacepublic CardsApi getCardsApi()
getCardsApi in interface SquareClientInterfacepublic CashDrawersApi getCashDrawersApi()
getCashDrawersApi in interface SquareClientInterfacepublic CatalogApi getCatalogApi()
getCatalogApi in interface SquareClientInterfacepublic CustomersApi getCustomersApi()
getCustomersApi in interface SquareClientInterfacepublic CustomerCustomAttributesApi getCustomerCustomAttributesApi()
getCustomerCustomAttributesApi in interface SquareClientInterfacepublic CustomerGroupsApi getCustomerGroupsApi()
getCustomerGroupsApi in interface SquareClientInterfacepublic CustomerSegmentsApi getCustomerSegmentsApi()
getCustomerSegmentsApi in interface SquareClientInterfacepublic DevicesApi getDevicesApi()
getDevicesApi in interface SquareClientInterfacepublic DisputesApi getDisputesApi()
getDisputesApi in interface SquareClientInterfacepublic EmployeesApi getEmployeesApi()
getEmployeesApi in interface SquareClientInterfacepublic GiftCardsApi getGiftCardsApi()
getGiftCardsApi in interface SquareClientInterfacepublic GiftCardActivitiesApi getGiftCardActivitiesApi()
getGiftCardActivitiesApi in interface SquareClientInterfacepublic InventoryApi getInventoryApi()
getInventoryApi in interface SquareClientInterfacepublic InvoicesApi getInvoicesApi()
getInvoicesApi in interface SquareClientInterfacepublic LaborApi getLaborApi()
getLaborApi in interface SquareClientInterfacepublic LocationsApi getLocationsApi()
getLocationsApi in interface SquareClientInterfacepublic CheckoutApi getCheckoutApi()
getCheckoutApi in interface SquareClientInterfacepublic TransactionsApi getTransactionsApi()
getTransactionsApi in interface SquareClientInterfacepublic LoyaltyApi getLoyaltyApi()
getLoyaltyApi in interface SquareClientInterfacepublic MerchantsApi getMerchantsApi()
getMerchantsApi in interface SquareClientInterfacepublic OrdersApi getOrdersApi()
getOrdersApi in interface SquareClientInterfacepublic PaymentsApi getPaymentsApi()
getPaymentsApi in interface SquareClientInterfacepublic PayoutsApi getPayoutsApi()
getPayoutsApi in interface SquareClientInterfacepublic RefundsApi getRefundsApi()
getRefundsApi in interface SquareClientInterfacepublic SitesApi getSitesApi()
getSitesApi in interface SquareClientInterfacepublic SnippetsApi getSnippetsApi()
getSnippetsApi in interface SquareClientInterfacepublic SubscriptionsApi getSubscriptionsApi()
getSubscriptionsApi in interface SquareClientInterfacepublic TeamApi getTeamApi()
getTeamApi in interface SquareClientInterfacepublic TerminalApi getTerminalApi()
getTerminalApi in interface SquareClientInterfacepublic VendorsApi getVendorsApi()
getVendorsApi in interface SquareClientInterfacepublic Environment getEnvironment()
getEnvironment in interface Configurationpublic String getCustomUrl()
getCustomUrl in interface Configurationpublic String getSquareVersion()
getSquareVersion in interface Configurationpublic ReadonlyHttpClientConfiguration getHttpClientConfig()
getHttpClientConfig in interface Configurationpublic Headers getAdditionalHeaders()
getAdditionalHeaders in interface Configurationpublic String getUserAgentDetail()
getUserAgentDetail in interface Configurationpublic String getAccessToken()
getAccessToken in interface Configurationpublic String getSdkVersion()
getSdkVersion in interface SquareClientInterface@Deprecated public long timeout()
getHttpClientConfig() instead.timeout in interface Configurationpublic String getBaseUri(Server server)
getBaseUri in interface Configurationserver - Server for which to get the base URIpublic String getBaseUri()
getBaseUri in interface Configurationpublic String toString()
public SquareClient.Builder newBuilder()
SquareClient.Builder object.
Creates the instance with the state of the current client.SquareClient.Builder objectCopyright © 2022. All rights reserved.