PATH:
home
/
thebhoeo
/
.trash
/
wpforms-lite-pro
/
vendor_prefixed
/
square
/
square
/
src
/
Apis
<?php declare (strict_types=1); namespace WPForms\Vendor\Square\Apis; use WPForms\Vendor\Core\ApiCall; use WPForms\Vendor\Core\Client; use WPForms\Vendor\Core\Request\RequestBuilder; use WPForms\Vendor\Core\Response\ResponseHandler; /** * Base controller */ class BaseApi { /** * Client instance * * @var Client */ private $client; public function __construct(Client $client) { $this->client = $client; } protected function execute(RequestBuilder $requestBuilder, ?ResponseHandler $responseHandler = null) { return (new ApiCall($this->client))->requestBuilder($requestBuilder)->responseHandler($responseHandler ?? $this->responseHandler())->execute(); } protected function requestBuilder(string $requestMethod, string $path) : RequestBuilder { return new RequestBuilder($requestMethod, $path); } protected function responseHandler() : ResponseHandler { return $this->client->getGlobalResponseHandler(); } }
[-] SnippetsApi.php
[edit]
[-] BookingCustomAttributesApi.php
[edit]
[-] V1TransactionsApi.php
[edit]
[-] TerminalApi.php
[edit]
[-] OAuthApi.php
[edit]
[-] InvoicesApi.php
[edit]
[-] LaborApi.php
[edit]
[-] WebhookSubscriptionsApi.php
[edit]
[-] MerchantCustomAttributesApi.php
[edit]
[-] CashDrawersApi.php
[edit]
[-] OrdersApi.php
[edit]
[-] GiftCardActivitiesApi.php
[edit]
[-] MobileAuthorizationApi.php
[edit]
[-] InventoryApi.php
[edit]
[-] CustomerGroupsApi.php
[edit]
[-] VendorsApi.php
[edit]
[-] CustomersApi.php
[edit]
[-] CustomerCustomAttributesApi.php
[edit]
[-] BaseApi.php
[edit]
[-] RefundsApi.php
[edit]
[-] DevicesApi.php
[edit]
[-] CatalogApi.php
[edit]
[-] CardsApi.php
[edit]
[-] EmployeesApi.php
[edit]
[+]
..
[-] MerchantsApi.php
[edit]
[-] SitesApi.php
[edit]
[-] LocationsApi.php
[edit]
[-] PayoutsApi.php
[edit]
[-] ApplePayApi.php
[edit]
[-] BankAccountsApi.php
[edit]
[-] CustomerSegmentsApi.php
[edit]
[-] BookingsApi.php
[edit]
[-] TeamApi.php
[edit]
[-] LocationCustomAttributesApi.php
[edit]
[-] DisputesApi.php
[edit]
[-] GiftCardsApi.php
[edit]
[-] EventsApi.php
[edit]
[-] SubscriptionsApi.php
[edit]
[-] LoyaltyApi.php
[edit]
[-] CheckoutApi.php
[edit]
[-] OrderCustomAttributesApi.php
[edit]
[-] PaymentsApi.php
[edit]
[-] TransactionsApi.php
[edit]