diff --git a/includes/classes/vendors/square/connect/.gitignore b/includes/classes/vendors/square/connect/.gitignore deleted file mode 100644 index c74952daa5..0000000000 --- a/includes/classes/vendors/square/connect/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -vendor -composer.lock -composer.phar -travis-ci/accounts.json diff --git a/includes/classes/vendors/square/connect/.release b/includes/classes/vendors/square/connect/.release deleted file mode 100644 index cb52eb32bf..0000000000 --- a/includes/classes/vendors/square/connect/.release +++ /dev/null @@ -1 +0,0 @@ -Release 3.20200528.1 diff --git a/includes/classes/vendors/square/connect/.version b/includes/classes/vendors/square/connect/.version deleted file mode 100644 index b012b54f7c..0000000000 --- a/includes/classes/vendors/square/connect/.version +++ /dev/null @@ -1 +0,0 @@ -3.20200528.1 diff --git a/includes/classes/vendors/square/connect/CHANGES.md b/includes/classes/vendors/square/connect/CHANGES.md deleted file mode 100644 index a95cc74d41..0000000000 --- a/includes/classes/vendors/square/connect/CHANGES.md +++ /dev/null @@ -1,656 +0,0 @@ -# Change Log - -## Version 3.20200528.1 (2020-05-28) -## Square SDK - PHP -Square is excited to announce the public release of customized SDK for PHP - -To align with other Square SDKs generated for SQUARE API version 2020-05-28, the initial version of this PHP SDK is 5.0.0.20200528 - -## Version 3.20200528.0 (2020-05-28) -## API releases - -* Loyalty API (beta): - * For an overview, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview). - * For technical reference, see [Loyalty API](https://developer.squareup.com/reference/square/loyalty-api). - -## Existing API updates - -* Orders API - * [CalculateOrder (beta)](https://developer.squareup.com/reference/square/orders-api/calculate-order) endpoint. Use the endpoint to calculate adjustments (for example, taxes and discounts) to an order for preview purposes. In response, the endpoint returns the order showing the calculated totals. You can use this endpoint with an existing order or an order that has not been created. - The endpoint does not update an existing order. It only returns a calculated view of the order that you provided in the request. To create or update an order, use the [CreateOrder](https://developer.squareup.com/reference/square/orders-api/create-order) and [UpdateOrder](https://developer.squareup.com/reference/square/orders-api/update-order) endpoints, respectively. - * [Order](https://developer.squareup.com/reference/square_2020-05-28/objects/Order) type. Two fields are added in support of the Loyalty API integration. For more information, see [Deferred reward creation](https://developer.squareup.com/docs/loyalty-api/overview#deferred-reward-creation). For an example, see [Redeem Points](https://developer.squareup.com/docs/loyalty-api/walkthrough1/redeem-points). - * `Order.rewards` represents rewards added to an order by calling the [CreateLoyaltyReward](https://developer.squareup.com/reference/square/loyalty-api/create-loyalty-reward) endpoint. - * `Order.discount.reward_ids` indicates that a discount is the result of the specified rewards that were added to an order using the `CreateLoyaltyReward` endpoint. - -* Customers API - * The [Search Customers](https://developer.squareup.com/reference/square/customers-api/search-customers) endpoint supports search by email address, phone number, and reference ID with the following additional query filters: - * The [`email_address` query filter](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#search-by-email-address) (beta) supports an [exact](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#exact-search-by-email-address) or [fuzzy](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#fuzzy-search-by-email-address) search for customer profiles by their email addresses. - * The [`phone_number` query filter](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#search-by-phone-number) (beta) supports an [exact](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#exact-search-by-phone-number) or [fuzzy](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#fuzzy-search-by-phone-number) search for customer profiles by their phone numbers. - * The [`reference_id` query filter](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#search-by-reference-id) (beta) supports an [exact](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#exact-search-by-reference-id) or [fuzzy](https://developer.squareup.com/docs/customers-api/cookbook/search-customers#fuzzy-search-by-reference-id) search for customer profiles by their reference IDs. - * The [`created_at`](https://developer.squareup.com/reference/square/objects/Customer#definition__property-created_at), [`updated_at`](https://developer.squareup.com/reference/square/objects/Customer#definition__property-updated_at), and [`id`](https://developer.squareup.com/reference/square/objects/Customer#definition__property-id) attributes on the [Customer](https://developer.squareup.com/docs/S%7BSQUARE_TECH_REF%7D/objects/customers) resource are updated to be optional. As a result, they no longer are required input parameters when you call the Square SDKs to create a `Customer` object. You might need to update the dependent SDKs to the latest version to mediate breaking your existing code. - - -## Square Webhooks - -* [Square Webhooks](https://developer.squareup.com/reference/square_2020-05-28/webhooks) (formerly v2 Webhooks). The status is changed from beta to general availability (GA). -* [v1 Webhooks](webhooks-api/v1-tech-ref). The v1 Inventory and Timecards webooks are now deprecated and replaced by [inventory.count.updated](https://developer.squareup.com/reference/square_2020-05-28/webhooks/inventory.count.updated) and [labor.shift.updated](https://developer.squareup.com/reference/square_2020-05-28/webhooks/labor.shift.updated). - - - -## Version 3.20200422.2 (2020-04-25) -## Existing API updates - -* **OAuth API** - * [Obtain Token](https://developer.squareup.com/reference/square/oauth-api/revoke-token) endpoint: Removed the `scopes` property from the request body. - - -## Version 3.20200422.1 (2020-04-22) -## API releases -* **Customer Segments API (beta).** `limit` field removed from **ListCustomerSegments** endpoint. - - -**Note:** This release fixes a bug introduced on the [April 22, 2020](changelog/connect-logs/2020-04-22) release of the Square API. - - -## Version 3.20200422.0 (2020-04-22) -## API releases -* **Terminal API.** The new Terminal API lets a custom third-party POS app integrate with the Square Terminal to send terminal checkout requests to collect payments. - * For an overview, see [Overview](/terminal-api/overview). - * For technical reference, see [Terminal API](https://developer.squareup.com/reference/square/terminal-api). - -* **Devices API.** The new Devices API lets a custom third-party POS app generate a code used to sign in to a Square Terminal to create a pairing that lets the POS app send terminal checkout requests. For technical reference, see [Devices API](https://developer.squareup.com/reference/square/devices-api). - -* **Customer Groups API (beta).** The new Customer Groups API (Beta) enables full CRUD management of customer groups, including the ability to list, retrieve, create, update, and delete customer groups. Previously, this functionality was only available through the Square dashboard and point-of-sale product interfaces. - * For an overview, see [Overview](/customer-groups-api/what-it-does) - * For technical reference, see [Customer Groups](https://developer.squareup.com/reference/square/customer-groups-api). - -* **Customer Segments API (beta).** The new Customer Segments API (Beta) lets you list and retrieve customer segment (also called smart groups) information. Coupled with the new `segment_ids` field on the customer resource, this API lets you better understand and track the customer segments to which a customer belongs. - * For an overview, see [Overview](/customer-segmentss-api/what-it-does) - * For technical reference, see [Customer Segments]( https://developer.squareup.com/reference/square/customer-segments-api). - - -* **New webhooks.** v2 Webhooks (beta) now supports webhooks for the following APIs: - * Orders API. `order.created`, `order.updated`, and `order.fulfillment.updated` - * Terminal API. `terminal.checkout.created` and `terminal.checkout.updated` - * Devices API. `device.code.paired` - - For more information, see [Subscribe to Events](webhooks-api/subscribe-to-events). - -## Existing API updates -* **Customers API** - * [AddGroupToCustomer](https://developer.squareup.com/reference/square/customers-api/add-group-to-customer) endpoint. Added to add customer memberships to a customer group. - * [RemoveGroupFromCustomer](https://developer.squareup.com/reference/square/customers-api/remove-group-from-customer) endpoint. Added to remove customer memberships from a customer group. - * [Customer](https://developer.squareup.com/reference/square/obects/Customer) object. Updated as follows: - * [`group_ids`](https://developer.squareup.com/reference/square/obects/Customer#definition__property-group_ids) field. Added to designate groups the customer is in. - * [`segment_ids`](https://developer.squareup.com/reference/square/obects/Customer#definition__property-segment_ids) field. Added to designate segments the customer is in. - * [`groups`](https://developer.squareup.com/reference/square/obects/Customer#definition__property-groups) field. Deprecated to be replaced by `group_ids` and `segment_ids`. It remains supported for one year from this release. - * [CustomerQuery](https://developer.squareup.com/reference/square/objects/CustomerQuery) object's `filter` parameter. Updated as follows: - * `group_ids` filter. Added to search for customers based on whether they belong to any, all, or none of the specified groups. - - -* **Orders API** - * [OrderFulfillmentPickupDetails](https://developer.squareup.com/reference/square/objects/OrderFulfillmentPickupDetails) type updated to support curbside pickup: - * `is_curbside_pickup`. This Boolean field indicates curbside pickup. - * `CurbsidePickupDetails`. This type provides supporting information for curbside pickup, including a buyer description (for example, "buyer is in a red car") and a timestamp when the buyer arrived for the pickup. - - -* **OAuth API** - * [RevokeToken](https://developer.squareup.com/reference/square/oauth-api/revoke-token) endpoint. Added a new field called [revoke_only_access_token](https://developer.squareup.com/reference/square/oauth-api/revoke-token#request__property-revoke_only_access_token). This field allows a client to revoke an access token but leave the parent authorization active. - * [ObtainToken](https://developer.squareup.com/reference/square/oauth-api/obtain-token) endpoint. Added a new field called [scopes](https://developer.squareup.com/reference/square/oauth-api/obtain-token#request__property-scopes). This field lets a client change the set of permissions for an access token when making a request to refresh the token. - - -* **Catalog API** - * [CatalogQuickAmountsSettings](https://developer.squareup.com/reference/square/objects/CatalogQuickAmountsSettings) type. Added to support predefined custom payment amounts in the Square Register checkout dialog box. - * ENUM`CatalogItemProductType`. The ENUM value `GIFT_CARD` is now deprecated. - -* **Payments API.** See [Take Payments and Collect Fees](/payments-api/take-payments-and-collect-fees) for updated information about permission requirements, Square reporting of the application fee collected by an app, and how to collect fees internationally. - - - - - -## Version 3.20200325.0 (2020-03-25) -## Existing API updates -* **[Payments API](https://developer.squareup.com/reference/square/payments-api).** In support of the existing [Delayed capture](payments-api/take-payments) for payments, the following fields are added to the [Payment](https://developer.squareup.com/reference/square/objects/Payment) type: - * `delay_duration`. In a [CreatePayment](https://developer.squareup.com/reference/square/payments-api/create-payment) request, you can set `autocomplete` to false to get payment approval but not charge the payment source. You can now add this field to specify a time period to complete (or cancel) the payment. For more information, see [Delay capture](payments-api/take-payments). - * `delay_action`. Defines the action that Square takes on the payment when the `delay_duration` elapses. In this release, the API supports only the cancel payment action. - * `delayed_until`. Provides the date and time on Square servers when Square applies `delay_action` on the payment. - - -## Version 3.20200226.0 (2020-02-26) -## API releases -* **GA release**: All SDKs have been updated to support the new Bank Accounts and CashDrawerShifts APIs. - -* **Beta release**: All SDKs have been updated to support the new Disputes API. - - -## Existing API updates - -All SDKs have been updated to support the following changes: - -* **Catalog API** - * Batch upsert catalog objects endpoint — The `batches` field is now required and the array must have at least one element. - * CatalogModifier — Two fields added: - * `ordinal` to support custom ordering in a modifier list - * `modifier_list_id` to reference the parent modifier list - * CatalogModifierList — New field added: `ordinal` to support custom ordering in a list of **CatalogModifierList** objects. - -* **Customers API changes** - * SearchCustomers endpoint — `limit` size reduced from 1000 to 100 to improve the endpoint performance. - -* **Orders API changes** - * CreateOrderRequest — Previously these request fields were deprecated: `line_items`, `taxes`, `discounts`. These fields are no longer available. Instead you now use the `Order` object in the request. For example, `Order.line_items`, `Order.taxes`, and `Order.discounts`. - * OrderLineItem type — There are two changes: - * The `taxes` field that was previously deprecated is no longer available. Instead, you now use the `OrderLineItem.applied_taxes` field. This also now requires that you set the `OrderLineItemTax.scope` field. - * The `discounts` field that was previously deprecated is no longer available. Instead, you now use the `OrderLineItem.applied_discounts` field. This also now requires that you set the `OrderLineItemDiscount.scope` field. - -* **Shared object updates** - * **Card object** — New fields added: `card_type`, `prepaid_type`. Currently, only the Payments API responses populate these fields. - -## Version 2.20200122.1 (2020-02-12) -**Documentation Changes** - -* Minor updates for Payments API descriptions -* Deprecation & retirement dates added for Transactions API endpoints - - -## Version 2.20200122.1 (2020-02-04) -* Addresses bug that doesn't allow `getV1BatchTokenFromHeaders` to retrieve batch_token - -## Version 2.20200122.0 (2020-01-22) -* New field: The **Employee** object now has an `is_owner` field. -* New field: The **Card** enumeration has a new `SQUARE_CAPITAL_CARD` enum value to support a Square one-time Installments payment. - -* New request body field constraint: The **Refund Payment** request now required a non-empty string when the `payment_id` is supplied. - - -## Version 2.3.0.20191217 (2019-12-17) -!!!important -Square is excited to announce the public release of customized SDKs for [Java](https://github.com/square/square-java-sdk) and [.NET](https://github.com/square/square-dotnet-sdk). For more information, see [Square SDKs](/sdks). -!!! - -* __GA release:__ SDKs updated to support new `receipt_url` and `receipt_number` fields added to the [Payment](https://developer.squareup.com/reference/square/objects/Payment) type. - -* __Beta release:__ SDKs updated to support the new [CashDrawerShifts](cashdrawershift-api/reporting) API. - -* Square now follows the semantic versioning scheme that uses three numbers to delineate MAJOR, MINOR, and PATCH versions of our SDK. In addition, the SDK version also includes the API version so you know what Square API version the SDK is related to. For more information, see [Versioning and SDKs](build-basics/versioning-overview#versioning-and-sdks). - - -## Version 2.20191120.0 (2019-11-20) -!!!important -Square has begun the retirement process for Connect v1 APIs. See the [Connect v1 Retirement](/migrate-from-v1) information page for details. -!!! - -* __GA releases:__ SDKs now support the new `modify_tax_basis` field to Discounts and v2 Sandbox -* __BETA releases:__ SDKs now support the Shifts API webhooks for Labor shift created, updated, deleted, CreateLocation endpoint, and the ability to customize statement description in Payments API. -* **Deprecated**: Support for v1Items API and v1Locations API is fully deprecated. - - - - -## Version 2.20191023.0 (2019-10-23) -* **GA release**: Merchants.ListMerchant is GA for all SDKs. -* **Beta release**: All SDKs support new Locations API endpoint, CreateLocation. -* **Beta release**: All SDKs support exclusion strategies for pricing rules. - - -## Version 2.20190925.0 (2019-09-25) - -* **GA release**: All SDKs have been updated to support the new Merchants API. - -* **Beta release**: All SDKs have been updated to support the new endpoints (RetrieveLocation, UpdateLocation) added to the Locations API. - -* **Beta release**: All SDKs have been updated to support the new field (`mcc`) added to the `Location` type. - -* **GA release**: All SDKs have been updated to support the new field (`bin`) added to the `Card` type. - -* **GA release**: All SDKs have been updated to support the new `CardPaymentDetails` fields (`verification_results`, `statement_description`, and `verification_method`). - -* **GA release**: All SDKs have been updated to support the new `Payment` field, (`employee_id`). - - -## Version 2.20190814.2 (2019-08-23) - -* **Bug fix**: Fixed path parameters for `UpdateOrder` - -## Version 2.20190814.1 (2018-08-16) - -* **Bug fix**: Removed a currentlyunsupported API object type -## Version 2.20190814.0 (2019-08-15) - -* **New functionality**: All SDKs have been updated to support the Sandbox v2 BETA release -* **Deprecated functionality**: All Transactions API functionality is deprecated in favor of Payments API and Refunds API functionality. -* **New functionality**: All SDKs have been updated to support the Payments API GA. -* **New functionality**: All SDKs have been updated to support the Refunds API GA. -* **New functionality**: All SDKs have been updated to support Orders API updates: - * Pickup Fulfillments, SearchOrders, and ServiceCharges move from BETA to GA. - * New BETA endpoint: Orders.UpdateOrder — use the UpdateOrder endpoint to update existing orders. - * New BETA functionality: Create shipment-type fulfillments. -* **New functionality**: Locations.RetrieveLocation — use the RetrieveLocation endpoint to load details for a specific Location. - -## Version 2.20190724.0 (2019-07-24) - -* **BETA releases**: - * Catalog API: supports item options with datatypes and enums for item options and item option values. - -## Version 2.20190710.0 (2019-07-10) - -* **Retired functionality** — The `CatalogItem.image_url` field (deprecated under `Square-Version` YYYYMMDD) is retired and no longer included in Connect SDKs. - -## Version 2.20190612.1 (2019-06-26) - -* **Bug fix**: `Transaction.Charge` and `Customers.CreateCustomerCard` request objects — now include the `verification_token` required for [Strong Customer Authentication](https://developer.squareup.com/docs/sca-overview). - -## Version 2.20190612.0 (2019-06-12) - -* **BETA releases**: - * Orders API: supports service charges with a new field and datatype. - * Catalog API: supports measurement unites for item variation quantities with a new field and datatype. -* **New functionality**: `Order` entities — now include a `source` field that contains details on where the order originated. -* **Improved functionality**: ListLocations — Expanded business information available through the Locations API, including business hours, contact email, social media handles, and longitude/latitude for physical locations. - -## Version 2.20190508.0 (2019-05-08) - -## Details - -* **Beta functionality**: Orders API — support for fractional quantities, - expanded metadata, and embedded information on payments, refunds, and returns. -* **Beta functionality**: Inventory API — support for fractional quantities. -* **New functionality**: `Locations.business_hours` — read-only field with - information about the business hours at a particular location. - -## Version 2.20190410.1 (2019-04-24) - -## Details - -* **New functionality**: Employees API (Connect v2) — New fields to - capture contact information for employee profiles. -* **New functionality**: `V1Tender.CardBrand` — New V1 enum to represent - brand information for credit cars. - -## Version 2.20190410.0 (2019-04-10) - -## New features: Orders API beta - -* The Connect v2 Orders object now includes an OrderSource field (`source`) - that encapsulates the origination details of an order. - -## Improvement: Connect v2 Catalog IDs in Connect v1 objects - -* The following Connect v1 data types now include a `v2_id` field that makes it - easier to link information from Connect v1 endpoints to related Connect v2 - Catalog objects: - * V1Discount - * V1Fee - * V1Item - * V1ModifierList - * V1ModifierOption - * V1Variation - -## Version 2.20190327.1 (2019-03-29) - -## Bug Fix: Catalog API -* Add `image_id` to `CatalogObject` - -## Version 2.20190327.0 (2019-03-27) - -## New features: Catalog API -* Deprecated `image_url` field in `CatalogItem` in favor of a richer - `CatalogImage` data type. -* Image information is now set, and returned, at the `CatalogObject` level. - -## Version 2.20190313.1 (2019-03-21) - -### Bug Fix: Connect v1 - -* Change `timecard_id` as path parameter for `ListTimecardEvents` endpoint -* Change `ended_at` to string type for `V1CashDrawerShift` type - -## Version 2.20190313.0 (2019-03-13) - -## New API: Labor API - -The Labor API now includes functionality -that gives a Square account the ability to track and retrieve employee labor hours -including multiple hourly wage rates per employee, work shift break tracking, and -standardized break templates. - -See the Connect v2 Technical Reference. - -## New API: Employees API - -The Employees API includes the ability to list employees for a Square -account and retrieve a single employee by ID. - -See the Connect v2 Technical Reference. - -## Improvement: Simplified OAuth access token renewal - -The RenewToken endpoint is now deprecated and replaced with new functionality in ObtainToken. -ObtainToken now returns a refresh token along with an access token. Refresh -tokens are used to renew expired OAuth access tokens. - -## Version 2.20190213.0 (2019-02-13) - -## New feature: Order fulfillment BETA - -The Orders API now includes beta -functionality that supports in-person fulfillment through Square Point of Sale -for orders placed online. - -## Improvement: New CreateOrder request structure - -The `CreateOrderRequest` datatype now groups order details under a single -object. - - -## Improvement: CreateOrder requests preserve order-level price adjustment objects - -The `CreateOrderResponse` datatype now retains structure of order-level -price adjustments in addition to converting them to scoped, line-item price -adjustments. Previously, `CreateOrderResponse` did not preserve the original -order-level price-adjustment objects. - -## Version 2.20181212.0 (2018-12-12) - -## Improvement: ListCustomers return set expanded - -Requests to the ListCustomers endpoint now returns all available customer profiles. Previously, ListCustomers only returned customer profiles explicitly created through the Customers API or Square Point of Sale. - -## Version 2.20181205.0 (2018-12-05) - -## New feature: Idempotent customer profile creation in Connect v2 - -Requests to the CreateCustomer endpoint now include a `idempotency_key` field to -ensure idempotent creation of new profiles. - -## New feature: Refund Adjustment fields for Refunds in Connect v1 - -The Connect SDK now supports refund adjustments for the Connect v1 -Refunds API with the addition of multiple new fields in the `Refund` data type - -## Version 2.20180918.1 (2018-10-24) - -### New feature: Support for Partial Payments in Connect v1 - -The Connect SDK now supports partial payment functionality for the Connect v1 Transactions API with the addition of a new `Payment` field: -* `Payment.is_partial` — Indicates whether or not the payment is only partially paid for. If `true`, the payment will have the tenders collected so far, but the itemizations will be empty until the payment is completed. - -`Tender` also includes 2 new fields to help resolve timing around payments with multiple tenders. Invoices that involve partial payment (e.g., requiring a deposit) may include tenders settled well before the entire payment is completed: -* `Tender.tendered_at` — The time when the tender was accepted by the merchant. -* `Tender.settled_at` — The time when the tender was captured, in ISO 8601 format. Typically the same as (or within moments of) `tendered_at` unless the tender was part of a delay capture transaction. - -The change also makes some behavioral changes to the Connect v1 Payment endpoints: -* **Create Refunds** rejects requests for invoices that have partial payments pending. -* **List Payments** takes a new request field, `include_partial` to indicate whether partial payments should be included in the response. - -## Version 2.20180918.0 (2018-09-18) - -We have added Connect v2 Inventory API and birthdays in `Customer` entities. - -### New API: Inventory API (Connect V2) - -The Connect v2 Inventory API replaces the Connect v1 Inventory API -and introduces new functionality: - -* Moving item variations quantities through predefined states - (e.g., from `IN_STOCK` to `WASTE`). -* Viewing the inventory adjustment history for an item variation. -* Batch inventory adjustments and information retrieval. - -### New feature: Customer Birthdays (Connect V2) - -* Customer profiles now include a `birthday` field. - Dates are recorded in RFC-3339 format and can be - set through the `CreateCustomer` and `UpdateCustomer` endpoints. -## Version 2.20180712.2 (2018-08-21) - -The Connect SDK now includes functionality for the OAuth API. The Square OAuth API lets applications request and obtain permission from a Square account to make API calls on behalf of that account. Applications can request individual permissions so that users do not need to grant full access to their Square accounts. - -### OAuth API - -* `ObtainToken` endpoint — Exchanges the authorization code for an access token. After a merchant authorizes your application with the permissions form, an authorization code is sent to the application's redirect URL (See [Implementing OAuth](https://docs.connect.squareup.com/api/oauth#implementingoauth) for information about how to set up the redirect URL). - -* `RenewToken` endpoint — Renews an OAuth access token before it expires. OAuth access tokens besides your application's personal access token expire after __30 days__. You can also renew expired tokens within __15 days__ of their expiration. You cannot renew an access token that has been expired for more than 15 days. Instead, the associated merchant must complete the [OAuth flow](https://docs.connect.squareup.com/api/oauth#implementingoauth) from the beginning. __Important:__ The `Authorization` header you provide to this endpoint must have the following format: ``` Authorization: Client APPLICATION_SECRET ``` Replace `APPLICATION_SECRET` with your application's secret, available from the [application dashboard](https://connect.squareup.com/apps). -* `RevokeToken` endpoint — Revokes an access token generated with the OAuth flow. If a merchant has more than one access token for your application, this endpoint revokes all of them, regardless of which token you specify. If you revoke a merchant's access token, all of the merchant's active subscriptions associated with your application are canceled immediately. __Important:__ The `Authorization` header you provide to this endpoint must have the following format: ``` Authorization: Client APPLICATION_SECRET ``` Replace `APPLICATION_SECRET` with your application's secret, available from the [application dashboard](https://connect.squareup.com/apps). - -## Version 2.20180712.1 (2018-08-02) - -We have added MobileAuthorization API. - -### New endpoint: MobileAuthorization API - -* `CreateMobileAuthorizationCode` endpoint — Generate a mobile authorization code for an instance of your application. Mobile authorization credentials permit an instance of your application to accept payments for a given location using the Square Reader SDK. Mobile authorization codes are one-time-use and expire shortly after being issued. - -## Version 2.20180712.0 (2018-07-12) - -We introduce Square API versions. `Square-Version` is 2018-07-12 for this SDK. - -### How versioning works - -Square API versions (`Square-Version`) track changes in the evolution of Connect -v2 APIs. The `Square-Version` naming scheme is `YYYY-MM-DD`, which indicates -the date the version was released. Connect v1 APIs are not versioned. Square -continues to support Connect v1, but future releases will focus on improving -Connect v2 functionality. - -By default, new Square applications are pinned to the version current at the -time the application was created in the Square Application Dashboard. Pinning an -application sets the default `Square-Version` for the application. The default -`Square-Version` of an application can be reviewed and updated at any time on -the settings pages for the application. - - -### Versioning and SDKs - -When a new `Square-Version` is released, new Connect SDKs are publish on GitHub -and various package management systems. SDK updates follow the version -convention of the associated language and manager but include the related -`Square-Version` in the SDK version. For example, Connect SDKs tied to version -`2018-01-04` might look like `{SDK_VERSION}.20180104.{VERSION_INCREMENT}`. - -While SDK versions can be mapped to a related Square-version, SDK versions -follow an independent, incremental versioning scheme to allow updates and -improvements to the SDKs outside of `Square-Version` updates. - - -### Migrating to new versions - -In most cases, Square-version migration should be straightforward, with known -differences listed in the related Change Log. - -To test migrations, developers can override the default `Square-Version` of an -application by explicitly setting the preferred `Square-Version` in the HTTP -header of the Connect v2 API request for REST calls. Requesting an API version -that does not exist returns an error. Successful API responses include the -`Square-Version` header to indicate the API version used to process request. - -Connect SDK versions are locked to specific API versions and cannot be -overwritten. Instead, the SDK must be upgraded to work with new API versions. - -## Version 2.9.0 (2018-06-28) - -We have added search functionality to the Connect v2 Customer API. - -### New features and Improvements: Customer API (Connect v2) - -* `SearchCustomers` endpoint — retrieves groups of customer profiles - based on a related characteristic. For example, retrieving all customers - created in the past 24 hours. -* `creation_source` field is now available on `Customer` entities. The creation - source exposes the process that created a customer profile. For example, if - a customer is created using the API, the creation source will be - `THIRD_PARTY`. -* **Instant Profiles** are now exposed in the following endpoints: - `RetrieveCustomer`, `SearchCustomers`, `UpdateCustomer`, `DeleteCustomer`. - -### Fixes: Inventory SDK (Connect v1) - -* Fix SDK request property `adjustment_type` in V1 Adjust Inventory. - -## Version 2.8.0 (2018-05-24) - -We have added sorting functionality to the Connect v2 Customer API, updated -the Connect v1 Payments API to include information about surcharges and -improvements to the Item data type. - -### New feature: Customer API (Connect v2) - -* **ListCustomers** endpoint — now provides the ability to sort - customers by their creation date using the `sort_field` and - `sort_order` parameters. - -### New features: Payments API (Connect v1) - -The Payments API now returns information about surcharges applied to payments. -The new functionality introduces the following new data types: - -* **SurchargeMoney** datatype — The total of all surcharges applied - to the payment. -* **Surcharges** datatype — A list of all surcharges associated with - the payment. -* **Surcharge** datatype — A surcharge that is applied to the payment. - One example of a surcharge is auto-gratuity, which is a fixed-rate surcharge - applied to every payment, often based on party size. - -We are constantly evaluating new languages to add. In the meantime, if the -language you need is not supported, you can use our -[Swagger pipeline](<%= articles__client_libraries_path%>#generatingwithswagger) -to generate a custom SDK or continue sending JSON to the endpoint URLs directly. - -### Improvement: Item (Connect v1) - -**Item** will now provide two new properties: - -* `category_id` — indicates if an item can be added to pickup orders - from the merchant's online store -* `available_for_pickup` — indicates the item's category (if any). - -## Version 2.7.0 (2018-04-26) - -### New features: Transactions API and Payments API - -The Transactions API in Connect v2 now includes payment and refund information from exchanges. - -* `ListTransactions` now includes payment information from sales and exchanges and refund -information from returns and exchanges. -* `ListRefunds` now includes refunds that result from exchanges in addition to partial refunds and -itemized returns through Square's Point of Sale applications. - -The Payments API in Connect v1 now includes payment and refund information from exchanges. - -* `ListPayments` now includes refunds that are generated from exchanges to account for the -value of returned goods. -* `ListRefunds` now returns an approximate number of refunds (default: 100, max: 200). -The response may contain more results than the prescribed limit when refunds are made -simultaneously to multiple tenders in a payment or when refunds are generated from exchanges -to account for the value of returned goods. -* `is_exchange` is added to `V1Refund` and `V1Tender`. Refunds and tenders marked in this way -represent the value of returned goods in an exchange, rather than actual money movement. - -## Version 2.6.1 (2018-03-28) - -* Updates user-agent header - -## Version 2.6.0 (2018-03-27) - -### Improvements: Orders API - -* `BatchRetrieveOrders` will now return uncharged orders. - -### New features: Orders API - -* For Catalog-backed line items, setting `CreateOrderRequestLineItem.base_price_money` will now override - the catalog item variation's price. -* `CreateOrderRequestModifier`s may now be created ad hoc using the new `name` and `base_price_money` fields. - -## Version 2.5.1 (2017-11-10) - -* `ordinal` is added to `CatalogItemVariation` -* `website_url` is added to `Location` -* `tip_money` is added to `Tender` -* Changed `object_type` and `placeholder_type` from lists to single values in `V1PageCell` to mirror data model - -## Version 2.5 (2017-11-02) - -### New features: Transaction API and Reporting API - -The Transaction API now supports the following request objects: - -* `additional_recipients` — data type representing an additional recipient - (in other words, a recipient other than the merchant or Square) receiving a - portion of a tender. - -The new Reporting API includes two endpoints that let you pull information about distributions you have received as an additional recipient: - -* `AdditionalRecipientReceivables` — returns a list of receivables (across - all source locations) representing monies credited to the given location ID by - another Square account using the `additional_recipients` field in a transaction. - -* `AdditionalRecipientReceivablesRefunds` — returns a list of refunded - transactions (across all source locations) related to monies credited to the - given location ID by another Square account using the `additional_recipients` - field in a transaction. - -## Version 2.4 (2017-09-27) - -### New features: Register Domain for Apple Pay - -* `RegisterDomain` endpoint activates a domain for use with Web Apple Pay. - -### Other Changes - -* `Location.type` used to indicate whether or not the location object represents a physical space. - -## Version 2.3.1 (2017-09-15) - -### New features: Charge Orders - -* `Charge` endpoint can charge a specific Order. - -## Version 2.3.0 (2017-09-13) - -### New features: Orders API - -* `CreateOrder` endpoint creates an itemized order which can be referenced in messages to the `Charge` endpoint. -* `BatchRetrieveOrders` retrieves order objects referenced in one or more transactions based on the provided `order_id`. - -**Note:** at this point, `BatchRetrieveOrders only` returns information on paid orders made through Square's eCommerce APIs (Transactions, Checkout). - -### Other Changes - -* `order` is removed from Transaction -* `order_id` is added to Transaction -* `OrderLineItemDiscountType.UNKOWN` renamed to `OrderLineItemDiscountType.UNKOWN_DISCOUNT` -* `OrderLineItemTaxType.UNKOWN` renamed to `OrderLineItemDiscountType.UNKOWN_TAX` -* `ChargeRequest.idempotency_key` is restricted to max length 192 -* `ChargeRequest.card_nonce` is restricted to max length 192 -* `ChargeRequest.customer_card_id` is restricted to max length 192 -* `ChargeRequest.reference_id` is restricted to max length 40 -* `ChargeRequest.note` is restricted to max length 60 -* `ChargeRequest.customer_id` is restricted to max length 50 -* `CreateCheckoutRequest.redirect_url` is restricted to max length 800 -* Added `phone_number` and `business_name` to Location - -## Version 2.2.1 (2017-08-11) - -* Documentation style and links fixes -* Document Getters and Setters for protected properties -* Support for pagination on V1 endpoints -* Include refund detail fields on V1 Refund model - -### Version 2.0.2 (2017-01-20) - -* Bug Fixes for List Locations endpiont. - -### Version 2.0.1 (2017-01-19) - -* Add functionality for Square Checkout. - -### Version 2.0.0.1 (2016-05-19) - -* Improve error messaging for API connection failures. - -## Version 2.0.0 (2016-03-30) - -* Initial release of the SDK diff --git a/includes/classes/vendors/square/connect/CONTRIBUTING.md b/includes/classes/vendors/square/connect/CONTRIBUTING.md deleted file mode 100644 index ac9c96a284..0000000000 --- a/includes/classes/vendors/square/connect/CONTRIBUTING.md +++ /dev/null @@ -1,5 +0,0 @@ -Contributing -============ - -We are not be accepting bug reports, feature requests, or code contributions to -this repository. diff --git a/includes/classes/vendors/square/connect/LICENSE.txt b/includes/classes/vendors/square/connect/LICENSE.txt deleted file mode 100644 index 7a4a3ea242..0000000000 --- a/includes/classes/vendors/square/connect/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/includes/classes/vendors/square/connect/README.md b/includes/classes/vendors/square/connect/README.md deleted file mode 100644 index 3dca359f16..0000000000 --- a/includes/classes/vendors/square/connect/README.md +++ /dev/null @@ -1,207 +0,0 @@ -![Square logo] - -# Square Connect PHP SDK - RETIRED - ---- - -[![Build Status](https://travis-ci.org/square/connect-php-sdk.svg?branch=master)](https://travis-ci.org/square/connect-php-sdk) -[![PHP version](https://badge.fury.io/ph/square%2Fconnect.svg)](https://badge.fury.io/ph/square%2Fconnect) -[![Apache-2 license](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0) -================== - -## NOTICE: Square Connect PHP SDK retired - -The Square Connect PHP SDK is retired (EOL) as of 2020-06-10 and will no longer -receive bug fixes or product updates. To continue receiving API and SDK -improvements, please follow the instructions below to migrate to the new -[Square PHP SDK]. - -NOTE THAT THE NEW PHP SDK REQUIRES PHP 7.1+, and will NOT work on PHP 5 - - -The old Connect SDK documentation is available under the -[`/docs` folder](./docs/README.md). - -
- ---- - -* [Migrate to the Square PHP SDK](#migrate-to-the-square-php-sdk) - * [Update your code](#update-your-code) -* [Example code migration](#example-code-migration) -* [Ask the Community](#ask-the-community) - ---- - -
- -## Migrate to the Square PHP SDK - -Follow the instructions below to migrate your apps from the deprecated -`square/connect` sdk to the new library. - -### Option 1: With composer.json -You need to update your app to use the Square PHP SDK instead of the Connect PHP SDK -The Square PHP SDK uses the `square/square` identifier. - -1. On the command line, run: -``` -$ php composer.phar require square/square -``` -*-or-* - -2. Update your composer.json: -``` -"require": { - ... - "square/square": "*", - ... -} -``` - -### Option 2: From GitHub -Clone the Square PHP SDK repository or download the zip into your project folder and -then update the following line in your code from - -```php -require('connect-php-sdk/autoload.php'); -``` -to: - -```php -require('square-php-sdk/autoload.php'); -``` - -### Update your code - -1. Change all instances of `use SquareConnect\...` to `use Square\...`. -1. Replace `SquareConnect` models with the new `Square` equivalents -1. Update client instantiation to follow the method outlined below. -1. Update code for accessing response data to follow the method outlined below. -1. Check `$apiResponse->isSuccess()` or `$apiResponse->isError()` to determine if the call was a success. - -To simplify your code, we also recommend that you use method chaining to access -APIs instead of explicitly instantiating multiple clients. - -#### Client instantiation - -Connect SDK -```php -require 'vendor/autoload.php'; - -use SquareConnect\Configuration; -use SquareConnect\ApiClient; - -$access_token = 'YOUR_ACCESS_TOKEN'; -# setup authorization -$api_config = new Configuration(); -$api_config->setHost("https://connect.squareup.com"); -$api_config->setAccessToken($access_token); -$api_client = new ApiClient($api_config); - -``` -Square SDK - -```php -require 'vendor/autoload.php'; - -use Square\Client; - -$access_token = 'YOUR_ACCESS_TOKEN'; - -// Initialize the Square client. -$api_client = new SquareClient([ - 'accessToken' => $access_token, - 'environment' => 'sandbox' -]); // In production, the environment arg is 'production' -``` - -## Example code migration - -As a specific example, consider the following code for creating a new payment -from the following nonce: - -```php -# Fail if the card form didn't send a value for `nonce` to the server -$nonce = $_POST['nonce']; -if (is_null($nonce)) { - echo "Invalid card data"; - http_response_code(422); - return; -} -``` - -With the deprecated `square/connect` library, this is how you instantiate a client -for the Payments API, format the request, and call the endpoint: - -```php -use SquareConnect\Api\PaymentsApi; -use SquareConnect\ApiException; - -$payments_api = new PaymentsApi($api_client); -$request_body = array ( - "source_id" => $nonce, - "amount_money" => array ( - "amount" => 100, - "currency" => "USD" - ), - "idempotency_key" => uniqid() -); -try { - $result = $payments_api->createPayment($request_body); - echo "
";
-  print_r($result);
-  echo "
"; -} catch (ApiException $e) { - echo "Caught exception!
"; - print_r("Response body:
"); - echo "
"; var_dump($e->getResponseBody()); echo "
"; - echo "
Response headers:
"; - echo "
"; var_dump($e->getResponseHeaders()); echo "
"; -} -``` - -Now consider equivalent code using the new `square/square` library: - -```php -$payments_api = $api_client->getPaymentsApi(); - -$money = new Money(); -$money->setAmount(100); -$money->setCurrency('USD'); -$create_payment_request = new CreatePaymentRequest($nonce, uniqid(), $money); -try { - $response = $payments_api->createPayment($create_payment_request); - if ($response->isError()) { - echo 'Api response has Errors'; - $errors = $response->getErrors(); - exit(); - } - echo '
';
-  print_r($response);
-  echo '
'; -} catch (ApiException $e) { - echo 'Caught exception!
'; - exit(); -} -``` - -That's it! - - - -
- ---- - -
- -## Ask the community - -Please join us in our [Square developer community] if you have any questions! - - -[//]: # "Link anchor definitions" -[Square Logo]: https://docs.connect.squareup.com/images/github/github-square-logo.svg -[Square PHP SDK]: https://github.com/square/square-php-sdk -[Square developer community]: https://squ.re/slack \ No newline at end of file diff --git a/includes/classes/vendors/square/connect/autoload.php b/includes/classes/vendors/square/connect/autoload.php deleted file mode 100644 index 88ad633fb1..0000000000 --- a/includes/classes/vendors/square/connect/autoload.php +++ /dev/null @@ -1,41 +0,0 @@ -=5.3.3", - "ext-curl": "*", - "ext-json": "*", - "ext-mbstring": "*" - }, - "require-dev": { - "phpunit/phpunit": "~4.0", - "satooshi/php-coveralls": "~0.6.1", - "squizlabs/php_codesniffer": "~2.0" - }, - "autoload": { - "psr-4": { "SquareConnect\\" : "lib/" } - }, - "autoload-dev": { - "psr-4": { "SquareConnect\\" : "test/" } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/ApplePayApi.php b/includes/classes/vendors/square/connect/lib/Api/ApplePayApi.php deleted file mode 100644 index 7bb3983e32..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/ApplePayApi.php +++ /dev/null @@ -1,160 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return ApplePayApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * registerDomain - * - * RegisterDomain - * - * @param \SquareConnect\Model\RegisterDomainRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\RegisterDomainResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function registerDomain($body) - { - list($response, $statusCode, $httpHeader) = $this->registerDomainWithHttpInfo ($body); - return $response; - } - - - /** - * registerDomainWithHttpInfo - * - * RegisterDomain - * - * @param \SquareConnect\Model\RegisterDomainRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\RegisterDomainResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function registerDomainWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling registerDomain'); - } - - // parse inputs - $resourcePath = "/v2/apple-pay/domains"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RegisterDomainResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RegisterDomainResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RegisterDomainResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/BankAccountsApi.php b/includes/classes/vendors/square/connect/lib/Api/BankAccountsApi.php deleted file mode 100644 index 47a78a1d85..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/BankAccountsApi.php +++ /dev/null @@ -1,357 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return BankAccountsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * getBankAccount - * - * GetBankAccount - * - * @param string $bank_account_id Square-issued ID of the desired `BankAccount`. (required) - * @return \SquareConnect\Model\GetBankAccountResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getBankAccount($bank_account_id) - { - list($response, $statusCode, $httpHeader) = $this->getBankAccountWithHttpInfo ($bank_account_id); - return $response; - } - - - /** - * getBankAccountWithHttpInfo - * - * GetBankAccount - * - * @param string $bank_account_id Square-issued ID of the desired `BankAccount`. (required) - * @return Array of \SquareConnect\Model\GetBankAccountResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getBankAccountWithHttpInfo($bank_account_id) - { - - // verify the required parameter 'bank_account_id' is set - if ($bank_account_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $bank_account_id when calling getBankAccount'); - } - - // parse inputs - $resourcePath = "/v2/bank-accounts/{bank_account_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($bank_account_id !== null) { - $resourcePath = str_replace( - "{" . "bank_account_id" . "}", - $this->apiClient->getSerializer()->toPathValue($bank_account_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetBankAccountResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetBankAccountResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetBankAccountResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * getBankAccountByV1Id - * - * GetBankAccountByV1Id - * - * @param string $v1_bank_account_id Connect V1 ID of the desired `BankAccount`. For more information, see [Retrieve a bank account by using an ID issued by V1 Bank Accounts API](https://developer.squareup.com/docs/docs/bank-accounts-api#retrieve-a-bank-account-by-using-an-id-issued-by-v1-bank-accounts-api). (required) - * @return \SquareConnect\Model\GetBankAccountByV1IdResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getBankAccountByV1Id($v1_bank_account_id) - { - list($response, $statusCode, $httpHeader) = $this->getBankAccountByV1IdWithHttpInfo ($v1_bank_account_id); - return $response; - } - - - /** - * getBankAccountByV1IdWithHttpInfo - * - * GetBankAccountByV1Id - * - * @param string $v1_bank_account_id Connect V1 ID of the desired `BankAccount`. For more information, see [Retrieve a bank account by using an ID issued by V1 Bank Accounts API](https://developer.squareup.com/docs/docs/bank-accounts-api#retrieve-a-bank-account-by-using-an-id-issued-by-v1-bank-accounts-api). (required) - * @return Array of \SquareConnect\Model\GetBankAccountByV1IdResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getBankAccountByV1IdWithHttpInfo($v1_bank_account_id) - { - - // verify the required parameter 'v1_bank_account_id' is set - if ($v1_bank_account_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $v1_bank_account_id when calling getBankAccountByV1Id'); - } - - // parse inputs - $resourcePath = "/v2/bank-accounts/by-v1-id/{v1_bank_account_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($v1_bank_account_id !== null) { - $resourcePath = str_replace( - "{" . "v1_bank_account_id" . "}", - $this->apiClient->getSerializer()->toPathValue($v1_bank_account_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetBankAccountByV1IdResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetBankAccountByV1IdResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetBankAccountByV1IdResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listBankAccounts - * - * ListBankAccounts - * - * @param string $cursor The pagination cursor returned by a previous call to this endpoint. Use it in the next `ListBankAccounts` request to retrieve the next set of results. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. (optional) - * @param int $limit Upper limit on the number of bank accounts to return in the response. Currently, 1000 is the largest supported limit. You can specify a limit of up to 1000 bank accounts. This is also the default limit. (optional) - * @param string $location_id Location ID. You can specify this optional filter to retrieve only the linked bank accounts belonging to a specific location. (optional) - * @return \SquareConnect\Model\ListBankAccountsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listBankAccounts($cursor = null, $limit = null, $location_id = null) - { - list($response, $statusCode, $httpHeader) = $this->listBankAccountsWithHttpInfo ($cursor, $limit, $location_id); - return $response; - } - - - /** - * listBankAccountsWithHttpInfo - * - * ListBankAccounts - * - * @param string $cursor The pagination cursor returned by a previous call to this endpoint. Use it in the next `ListBankAccounts` request to retrieve the next set of results. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. (optional) - * @param int $limit Upper limit on the number of bank accounts to return in the response. Currently, 1000 is the largest supported limit. You can specify a limit of up to 1000 bank accounts. This is also the default limit. (optional) - * @param string $location_id Location ID. You can specify this optional filter to retrieve only the linked bank accounts belonging to a specific location. (optional) - * @return Array of \SquareConnect\Model\ListBankAccountsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listBankAccountsWithHttpInfo($cursor = null, $limit = null, $location_id = null) - { - - - // parse inputs - $resourcePath = "/v2/bank-accounts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListBankAccountsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListBankAccountsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListBankAccountsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/CashDrawersApi.php b/includes/classes/vendors/square/connect/lib/Api/CashDrawersApi.php deleted file mode 100644 index e5d5821592..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/CashDrawersApi.php +++ /dev/null @@ -1,404 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return CashDrawersApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * listCashDrawerShiftEvents - * - * ListCashDrawerShiftEvents - * - * @param string $location_id The ID of the location to list cash drawer shifts for. (required) - * @param string $shift_id The shift ID. (required) - * @param int $limit Number of resources to be returned in a page of results (200 by default, 1000 max). (optional) - * @param string $cursor Opaque cursor for fetching the next page of results. (optional) - * @return \SquareConnect\Model\ListCashDrawerShiftEventsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCashDrawerShiftEvents($location_id, $shift_id, $limit = null, $cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listCashDrawerShiftEventsWithHttpInfo ($location_id, $shift_id, $limit, $cursor); - return $response; - } - - - /** - * listCashDrawerShiftEventsWithHttpInfo - * - * ListCashDrawerShiftEvents - * - * @param string $location_id The ID of the location to list cash drawer shifts for. (required) - * @param string $shift_id The shift ID. (required) - * @param int $limit Number of resources to be returned in a page of results (200 by default, 1000 max). (optional) - * @param string $cursor Opaque cursor for fetching the next page of results. (optional) - * @return Array of \SquareConnect\Model\ListCashDrawerShiftEventsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCashDrawerShiftEventsWithHttpInfo($location_id, $shift_id, $limit = null, $cursor = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listCashDrawerShiftEvents'); - } - // verify the required parameter 'shift_id' is set - if ($shift_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $shift_id when calling listCashDrawerShiftEvents'); - } - - // parse inputs - $resourcePath = "/v2/cash-drawers/shifts/{shift_id}/events"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - // path params - if ($shift_id !== null) { - $resourcePath = str_replace( - "{" . "shift_id" . "}", - $this->apiClient->getSerializer()->toPathValue($shift_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListCashDrawerShiftEventsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListCashDrawerShiftEventsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListCashDrawerShiftEventsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listCashDrawerShifts - * - * ListCashDrawerShifts - * - * @param string $location_id The ID of the location to query for a list of cash drawer shifts. (required) - * @param string $sort_order The order in which cash drawer shifts are listed in the response, based on their opened_at field. Default value: ASC (optional) - * @param string $begin_time The inclusive start time of the query on opened_at, in ISO 8601 format. (optional) - * @param string $end_time The exclusive end date of the query on opened_at, in ISO 8601 format. (optional) - * @param int $limit Number of cash drawer shift events in a page of results (200 by default, 1000 max). (optional) - * @param string $cursor Opaque cursor for fetching the next page of results. (optional) - * @return \SquareConnect\Model\ListCashDrawerShiftsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCashDrawerShifts($location_id, $sort_order = null, $begin_time = null, $end_time = null, $limit = null, $cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listCashDrawerShiftsWithHttpInfo ($location_id, $sort_order, $begin_time, $end_time, $limit, $cursor); - return $response; - } - - - /** - * listCashDrawerShiftsWithHttpInfo - * - * ListCashDrawerShifts - * - * @param string $location_id The ID of the location to query for a list of cash drawer shifts. (required) - * @param string $sort_order The order in which cash drawer shifts are listed in the response, based on their opened_at field. Default value: ASC (optional) - * @param string $begin_time The inclusive start time of the query on opened_at, in ISO 8601 format. (optional) - * @param string $end_time The exclusive end date of the query on opened_at, in ISO 8601 format. (optional) - * @param int $limit Number of cash drawer shift events in a page of results (200 by default, 1000 max). (optional) - * @param string $cursor Opaque cursor for fetching the next page of results. (optional) - * @return Array of \SquareConnect\Model\ListCashDrawerShiftsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCashDrawerShiftsWithHttpInfo($location_id, $sort_order = null, $begin_time = null, $end_time = null, $limit = null, $cursor = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listCashDrawerShifts'); - } - - // parse inputs - $resourcePath = "/v2/cash-drawers/shifts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - }// query params - if ($sort_order !== null) { - $queryParams['sort_order'] = $this->apiClient->getSerializer()->toQueryValue($sort_order); - }// query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListCashDrawerShiftsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListCashDrawerShiftsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListCashDrawerShiftsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveCashDrawerShift - * - * RetrieveCashDrawerShift - * - * @param string $location_id The ID of the location to retrieve cash drawer shifts from. (required) - * @param string $shift_id The shift ID. (required) - * @return \SquareConnect\Model\RetrieveCashDrawerShiftResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCashDrawerShift($location_id, $shift_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveCashDrawerShiftWithHttpInfo ($location_id, $shift_id); - return $response; - } - - - /** - * retrieveCashDrawerShiftWithHttpInfo - * - * RetrieveCashDrawerShift - * - * @param string $location_id The ID of the location to retrieve cash drawer shifts from. (required) - * @param string $shift_id The shift ID. (required) - * @return Array of \SquareConnect\Model\RetrieveCashDrawerShiftResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCashDrawerShiftWithHttpInfo($location_id, $shift_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveCashDrawerShift'); - } - // verify the required parameter 'shift_id' is set - if ($shift_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $shift_id when calling retrieveCashDrawerShift'); - } - - // parse inputs - $resourcePath = "/v2/cash-drawers/shifts/{shift_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - } - - // path params - if ($shift_id !== null) { - $resourcePath = str_replace( - "{" . "shift_id" . "}", - $this->apiClient->getSerializer()->toPathValue($shift_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveCashDrawerShiftResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveCashDrawerShiftResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveCashDrawerShiftResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/CatalogApi.php b/includes/classes/vendors/square/connect/lib/Api/CatalogApi.php deleted file mode 100644 index 0c5c9f4271..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/CatalogApi.php +++ /dev/null @@ -1,1091 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return CatalogApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * batchDeleteCatalogObjects - * - * BatchDeleteCatalogObjects - * - * @param \SquareConnect\Model\BatchDeleteCatalogObjectsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\BatchDeleteCatalogObjectsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchDeleteCatalogObjects($body) - { - list($response, $statusCode, $httpHeader) = $this->batchDeleteCatalogObjectsWithHttpInfo ($body); - return $response; - } - - - /** - * batchDeleteCatalogObjectsWithHttpInfo - * - * BatchDeleteCatalogObjects - * - * @param \SquareConnect\Model\BatchDeleteCatalogObjectsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\BatchDeleteCatalogObjectsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchDeleteCatalogObjectsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling batchDeleteCatalogObjects'); - } - - // parse inputs - $resourcePath = "/v2/catalog/batch-delete"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\BatchDeleteCatalogObjectsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\BatchDeleteCatalogObjectsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\BatchDeleteCatalogObjectsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * batchRetrieveCatalogObjects - * - * BatchRetrieveCatalogObjects - * - * @param \SquareConnect\Model\BatchRetrieveCatalogObjectsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\BatchRetrieveCatalogObjectsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchRetrieveCatalogObjects($body) - { - list($response, $statusCode, $httpHeader) = $this->batchRetrieveCatalogObjectsWithHttpInfo ($body); - return $response; - } - - - /** - * batchRetrieveCatalogObjectsWithHttpInfo - * - * BatchRetrieveCatalogObjects - * - * @param \SquareConnect\Model\BatchRetrieveCatalogObjectsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\BatchRetrieveCatalogObjectsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchRetrieveCatalogObjectsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling batchRetrieveCatalogObjects'); - } - - // parse inputs - $resourcePath = "/v2/catalog/batch-retrieve"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\BatchRetrieveCatalogObjectsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\BatchRetrieveCatalogObjectsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\BatchRetrieveCatalogObjectsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * batchUpsertCatalogObjects - * - * BatchUpsertCatalogObjects - * - * @param \SquareConnect\Model\BatchUpsertCatalogObjectsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\BatchUpsertCatalogObjectsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchUpsertCatalogObjects($body) - { - list($response, $statusCode, $httpHeader) = $this->batchUpsertCatalogObjectsWithHttpInfo ($body); - return $response; - } - - - /** - * batchUpsertCatalogObjectsWithHttpInfo - * - * BatchUpsertCatalogObjects - * - * @param \SquareConnect\Model\BatchUpsertCatalogObjectsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\BatchUpsertCatalogObjectsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchUpsertCatalogObjectsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling batchUpsertCatalogObjects'); - } - - // parse inputs - $resourcePath = "/v2/catalog/batch-upsert"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\BatchUpsertCatalogObjectsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\BatchUpsertCatalogObjectsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\BatchUpsertCatalogObjectsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * catalogInfo - * - * CatalogInfo - * - * @return \SquareConnect\Model\CatalogInfoResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function catalogInfo() - { - list($response, $statusCode, $httpHeader) = $this->catalogInfoWithHttpInfo (); - return $response; - } - - - /** - * catalogInfoWithHttpInfo - * - * CatalogInfo - * - * @return Array of \SquareConnect\Model\CatalogInfoResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function catalogInfoWithHttpInfo() - { - - - // parse inputs - $resourcePath = "/v2/catalog/info"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CatalogInfoResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CatalogInfoResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CatalogInfoResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * deleteCatalogObject - * - * DeleteCatalogObject - * - * @param string $object_id The ID of the catalog object to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a catalog item will delete its catalog item variations). (required) - * @return \SquareConnect\Model\DeleteCatalogObjectResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCatalogObject($object_id) - { - list($response, $statusCode, $httpHeader) = $this->deleteCatalogObjectWithHttpInfo ($object_id); - return $response; - } - - - /** - * deleteCatalogObjectWithHttpInfo - * - * DeleteCatalogObject - * - * @param string $object_id The ID of the catalog object to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a catalog item will delete its catalog item variations). (required) - * @return Array of \SquareConnect\Model\DeleteCatalogObjectResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCatalogObjectWithHttpInfo($object_id) - { - - // verify the required parameter 'object_id' is set - if ($object_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $object_id when calling deleteCatalogObject'); - } - - // parse inputs - $resourcePath = "/v2/catalog/object/{object_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($object_id !== null) { - $resourcePath = str_replace( - "{" . "object_id" . "}", - $this->apiClient->getSerializer()->toPathValue($object_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\DeleteCatalogObjectResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\DeleteCatalogObjectResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\DeleteCatalogObjectResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listCatalog - * - * ListCatalog - * - * @param string $cursor The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. (optional) - * @param string $types An optional case-insensitive, comma-separated list of object types to retrieve, for example `ITEM,ITEM_VARIATION,CATEGORY,IMAGE`. The legal values are taken from the CatalogObjectType enum: `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`, `MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. (optional) - * @return \SquareConnect\Model\ListCatalogResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCatalog($cursor = null, $types = null) - { - list($response, $statusCode, $httpHeader) = $this->listCatalogWithHttpInfo ($cursor, $types); - return $response; - } - - - /** - * listCatalogWithHttpInfo - * - * ListCatalog - * - * @param string $cursor The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. (optional) - * @param string $types An optional case-insensitive, comma-separated list of object types to retrieve, for example `ITEM,ITEM_VARIATION,CATEGORY,IMAGE`. The legal values are taken from the CatalogObjectType enum: `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`, `MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. (optional) - * @return Array of \SquareConnect\Model\ListCatalogResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCatalogWithHttpInfo($cursor = null, $types = null) - { - - - // parse inputs - $resourcePath = "/v2/catalog/list"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - }// query params - if ($types !== null) { - $queryParams['types'] = $this->apiClient->getSerializer()->toQueryValue($types); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListCatalogResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListCatalogResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListCatalogResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveCatalogObject - * - * RetrieveCatalogObject - * - * @param string $object_id The object ID of any type of catalog objects to be retrieved. (required) - * @param bool $include_related_objects If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a CatalogItem, its associated CatalogCategory, CatalogTax objects, CatalogImages and CatalogModifierLists will be returned in the `related_objects` field of the response. If the `object` field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the `related_objects` field of the response. Default value: `false` (optional) - * @return \SquareConnect\Model\RetrieveCatalogObjectResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCatalogObject($object_id, $include_related_objects = null) - { - list($response, $statusCode, $httpHeader) = $this->retrieveCatalogObjectWithHttpInfo ($object_id, $include_related_objects); - return $response; - } - - - /** - * retrieveCatalogObjectWithHttpInfo - * - * RetrieveCatalogObject - * - * @param string $object_id The object ID of any type of catalog objects to be retrieved. (required) - * @param bool $include_related_objects If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a CatalogItem, its associated CatalogCategory, CatalogTax objects, CatalogImages and CatalogModifierLists will be returned in the `related_objects` field of the response. If the `object` field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the `related_objects` field of the response. Default value: `false` (optional) - * @return Array of \SquareConnect\Model\RetrieveCatalogObjectResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCatalogObjectWithHttpInfo($object_id, $include_related_objects = null) - { - - // verify the required parameter 'object_id' is set - if ($object_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $object_id when calling retrieveCatalogObject'); - } - - // parse inputs - $resourcePath = "/v2/catalog/object/{object_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($include_related_objects !== null) { - $queryParams['include_related_objects'] = $this->apiClient->getSerializer()->toQueryValue($include_related_objects); - } - - // path params - if ($object_id !== null) { - $resourcePath = str_replace( - "{" . "object_id" . "}", - $this->apiClient->getSerializer()->toPathValue($object_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveCatalogObjectResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveCatalogObjectResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveCatalogObjectResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * searchCatalogObjects - * - * SearchCatalogObjects - * - * @param \SquareConnect\Model\SearchCatalogObjectsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\SearchCatalogObjectsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchCatalogObjects($body) - { - list($response, $statusCode, $httpHeader) = $this->searchCatalogObjectsWithHttpInfo ($body); - return $response; - } - - - /** - * searchCatalogObjectsWithHttpInfo - * - * SearchCatalogObjects - * - * @param \SquareConnect\Model\SearchCatalogObjectsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\SearchCatalogObjectsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchCatalogObjectsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling searchCatalogObjects'); - } - - // parse inputs - $resourcePath = "/v2/catalog/search"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SearchCatalogObjectsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SearchCatalogObjectsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SearchCatalogObjectsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateItemModifierLists - * - * UpdateItemModifierLists - * - * @param \SquareConnect\Model\UpdateItemModifierListsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateItemModifierListsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateItemModifierLists($body) - { - list($response, $statusCode, $httpHeader) = $this->updateItemModifierListsWithHttpInfo ($body); - return $response; - } - - - /** - * updateItemModifierListsWithHttpInfo - * - * UpdateItemModifierLists - * - * @param \SquareConnect\Model\UpdateItemModifierListsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateItemModifierListsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateItemModifierListsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateItemModifierLists'); - } - - // parse inputs - $resourcePath = "/v2/catalog/update-item-modifier-lists"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateItemModifierListsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateItemModifierListsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateItemModifierListsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateItemTaxes - * - * UpdateItemTaxes - * - * @param \SquareConnect\Model\UpdateItemTaxesRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateItemTaxesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateItemTaxes($body) - { - list($response, $statusCode, $httpHeader) = $this->updateItemTaxesWithHttpInfo ($body); - return $response; - } - - - /** - * updateItemTaxesWithHttpInfo - * - * UpdateItemTaxes - * - * @param \SquareConnect\Model\UpdateItemTaxesRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateItemTaxesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateItemTaxesWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateItemTaxes'); - } - - // parse inputs - $resourcePath = "/v2/catalog/update-item-taxes"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateItemTaxesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateItemTaxesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateItemTaxesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * upsertCatalogObject - * - * UpsertCatalogObject - * - * @param \SquareConnect\Model\UpsertCatalogObjectRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpsertCatalogObjectResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function upsertCatalogObject($body) - { - list($response, $statusCode, $httpHeader) = $this->upsertCatalogObjectWithHttpInfo ($body); - return $response; - } - - - /** - * upsertCatalogObjectWithHttpInfo - * - * UpsertCatalogObject - * - * @param \SquareConnect\Model\UpsertCatalogObjectRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpsertCatalogObjectResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function upsertCatalogObjectWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling upsertCatalogObject'); - } - - // parse inputs - $resourcePath = "/v2/catalog/object"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpsertCatalogObjectResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpsertCatalogObjectResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpsertCatalogObjectResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/CheckoutApi.php b/includes/classes/vendors/square/connect/lib/Api/CheckoutApi.php deleted file mode 100644 index 2edf00c2f8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/CheckoutApi.php +++ /dev/null @@ -1,173 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return CheckoutApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * createCheckout - * - * CreateCheckout - * - * @param string $location_id The ID of the business location to associate the checkout with. (required) - * @param \SquareConnect\Model\CreateCheckoutRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateCheckoutResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCheckout($location_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->createCheckoutWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createCheckoutWithHttpInfo - * - * CreateCheckout - * - * @param string $location_id The ID of the business location to associate the checkout with. (required) - * @param \SquareConnect\Model\CreateCheckoutRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateCheckoutResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCheckoutWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createCheckout'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createCheckout'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/checkouts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateCheckoutResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateCheckoutResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateCheckoutResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/CustomerGroupsApi.php b/includes/classes/vendors/square/connect/lib/Api/CustomerGroupsApi.php deleted file mode 100644 index 76dc710a27..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/CustomerGroupsApi.php +++ /dev/null @@ -1,551 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return CustomerGroupsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * createCustomerGroup - * - * CreateCustomerGroup - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\CreateCustomerGroupRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateCustomerGroupResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCustomerGroup($body) - { - list($response, $statusCode, $httpHeader) = $this->createCustomerGroupWithHttpInfo ($body); - return $response; - } - - - /** - * createCustomerGroupWithHttpInfo - * - * CreateCustomerGroup - * - * @param \SquareConnect\Model\CreateCustomerGroupRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateCustomerGroupResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCustomerGroupWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createCustomerGroup'); - } - - // parse inputs - $resourcePath = "/v2/customers/groups"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateCustomerGroupResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateCustomerGroupResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateCustomerGroupResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * deleteCustomerGroup - * - * DeleteCustomerGroup - * Note: This endpoint is in beta. - * - * @param string $group_id The ID of the customer group to delete. (required) - * @return \SquareConnect\Model\DeleteCustomerGroupResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCustomerGroup($group_id) - { - list($response, $statusCode, $httpHeader) = $this->deleteCustomerGroupWithHttpInfo ($group_id); - return $response; - } - - - /** - * deleteCustomerGroupWithHttpInfo - * - * DeleteCustomerGroup - * - * @param string $group_id The ID of the customer group to delete. (required) - * @return Array of \SquareConnect\Model\DeleteCustomerGroupResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCustomerGroupWithHttpInfo($group_id) - { - - // verify the required parameter 'group_id' is set - if ($group_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $group_id when calling deleteCustomerGroup'); - } - - // parse inputs - $resourcePath = "/v2/customers/groups/{group_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($group_id !== null) { - $resourcePath = str_replace( - "{" . "group_id" . "}", - $this->apiClient->getSerializer()->toPathValue($group_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\DeleteCustomerGroupResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\DeleteCustomerGroupResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\DeleteCustomerGroupResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listCustomerGroups - * - * ListCustomerGroups - * Note: This endpoint is in beta. - * - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. (optional) - * @return \SquareConnect\Model\ListCustomerGroupsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCustomerGroups($cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listCustomerGroupsWithHttpInfo ($cursor); - return $response; - } - - - /** - * listCustomerGroupsWithHttpInfo - * - * ListCustomerGroups - * - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. (optional) - * @return Array of \SquareConnect\Model\ListCustomerGroupsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCustomerGroupsWithHttpInfo($cursor = null) - { - - - // parse inputs - $resourcePath = "/v2/customers/groups"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListCustomerGroupsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListCustomerGroupsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListCustomerGroupsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveCustomerGroup - * - * RetrieveCustomerGroup - * Note: This endpoint is in beta. - * - * @param string $group_id The ID of the customer group to retrieve. (required) - * @return \SquareConnect\Model\RetrieveCustomerGroupResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCustomerGroup($group_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveCustomerGroupWithHttpInfo ($group_id); - return $response; - } - - - /** - * retrieveCustomerGroupWithHttpInfo - * - * RetrieveCustomerGroup - * - * @param string $group_id The ID of the customer group to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveCustomerGroupResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCustomerGroupWithHttpInfo($group_id) - { - - // verify the required parameter 'group_id' is set - if ($group_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $group_id when calling retrieveCustomerGroup'); - } - - // parse inputs - $resourcePath = "/v2/customers/groups/{group_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($group_id !== null) { - $resourcePath = str_replace( - "{" . "group_id" . "}", - $this->apiClient->getSerializer()->toPathValue($group_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveCustomerGroupResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveCustomerGroupResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveCustomerGroupResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateCustomerGroup - * - * UpdateCustomerGroup - * Note: This endpoint is in beta. - * - * @param string $group_id The ID of the customer group to update. (required) - * @param \SquareConnect\Model\UpdateCustomerGroupRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateCustomerGroupResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateCustomerGroup($group_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateCustomerGroupWithHttpInfo ($group_id, $body); - return $response; - } - - - /** - * updateCustomerGroupWithHttpInfo - * - * UpdateCustomerGroup - * - * @param string $group_id The ID of the customer group to update. (required) - * @param \SquareConnect\Model\UpdateCustomerGroupRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateCustomerGroupResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateCustomerGroupWithHttpInfo($group_id, $body) - { - - // verify the required parameter 'group_id' is set - if ($group_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $group_id when calling updateCustomerGroup'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateCustomerGroup'); - } - - // parse inputs - $resourcePath = "/v2/customers/groups/{group_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($group_id !== null) { - $resourcePath = str_replace( - "{" . "group_id" . "}", - $this->apiClient->getSerializer()->toPathValue($group_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateCustomerGroupResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateCustomerGroupResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateCustomerGroupResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/CustomerSegmentsApi.php b/includes/classes/vendors/square/connect/lib/Api/CustomerSegmentsApi.php deleted file mode 100644 index 0ffe133024..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/CustomerSegmentsApi.php +++ /dev/null @@ -1,253 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return CustomerSegmentsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * listCustomerSegments - * - * ListCustomerSegments - * Note: This endpoint is in beta. - * - * @param string $cursor A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. (optional) - * @return \SquareConnect\Model\ListCustomerSegmentsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCustomerSegments($cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listCustomerSegmentsWithHttpInfo ($cursor); - return $response; - } - - - /** - * listCustomerSegmentsWithHttpInfo - * - * ListCustomerSegments - * - * @param string $cursor A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. (optional) - * @return Array of \SquareConnect\Model\ListCustomerSegmentsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCustomerSegmentsWithHttpInfo($cursor = null) - { - - - // parse inputs - $resourcePath = "/v2/customers/segments"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListCustomerSegmentsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListCustomerSegmentsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListCustomerSegmentsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveCustomerSegment - * - * RetrieveCustomerSegment - * Note: This endpoint is in beta. - * - * @param string $segment_id The Square-issued ID of the customer segment. (required) - * @return \SquareConnect\Model\RetrieveCustomerSegmentResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCustomerSegment($segment_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveCustomerSegmentWithHttpInfo ($segment_id); - return $response; - } - - - /** - * retrieveCustomerSegmentWithHttpInfo - * - * RetrieveCustomerSegment - * - * @param string $segment_id The Square-issued ID of the customer segment. (required) - * @return Array of \SquareConnect\Model\RetrieveCustomerSegmentResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCustomerSegmentWithHttpInfo($segment_id) - { - - // verify the required parameter 'segment_id' is set - if ($segment_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $segment_id when calling retrieveCustomerSegment'); - } - - // parse inputs - $resourcePath = "/v2/customers/segments/{segment_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($segment_id !== null) { - $resourcePath = str_replace( - "{" . "segment_id" . "}", - $this->apiClient->getSerializer()->toPathValue($segment_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveCustomerSegmentResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveCustomerSegmentResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveCustomerSegmentResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/CustomersApi.php b/includes/classes/vendors/square/connect/lib/Api/CustomersApi.php deleted file mode 100644 index bc343b7002..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/CustomersApi.php +++ /dev/null @@ -1,1084 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return CustomersApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * addGroupToCustomer - * - * AddGroupToCustomer - * Note: This endpoint is in beta. - * - * @param string $customer_id The ID of the customer to add to a group. (required) - * @param string $group_id The ID of the customer group to add the customer to. (required) - * @return \SquareConnect\Model\AddGroupToCustomerResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function addGroupToCustomer($customer_id, $group_id) - { - list($response, $statusCode, $httpHeader) = $this->addGroupToCustomerWithHttpInfo ($customer_id, $group_id); - return $response; - } - - - /** - * addGroupToCustomerWithHttpInfo - * - * AddGroupToCustomer - * - * @param string $customer_id The ID of the customer to add to a group. (required) - * @param string $group_id The ID of the customer group to add the customer to. (required) - * @return Array of \SquareConnect\Model\AddGroupToCustomerResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function addGroupToCustomerWithHttpInfo($customer_id, $group_id) - { - - // verify the required parameter 'customer_id' is set - if ($customer_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $customer_id when calling addGroupToCustomer'); - } - // verify the required parameter 'group_id' is set - if ($group_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $group_id when calling addGroupToCustomer'); - } - - // parse inputs - $resourcePath = "/v2/customers/{customer_id}/groups/{group_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($customer_id !== null) { - $resourcePath = str_replace( - "{" . "customer_id" . "}", - $this->apiClient->getSerializer()->toPathValue($customer_id), - $resourcePath - ); - }// path params - if ($group_id !== null) { - $resourcePath = str_replace( - "{" . "group_id" . "}", - $this->apiClient->getSerializer()->toPathValue($group_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\AddGroupToCustomerResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\AddGroupToCustomerResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\AddGroupToCustomerResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createCustomer - * - * CreateCustomer - * - * @param \SquareConnect\Model\CreateCustomerRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateCustomerResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCustomer($body) - { - list($response, $statusCode, $httpHeader) = $this->createCustomerWithHttpInfo ($body); - return $response; - } - - - /** - * createCustomerWithHttpInfo - * - * CreateCustomer - * - * @param \SquareConnect\Model\CreateCustomerRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateCustomerResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCustomerWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createCustomer'); - } - - // parse inputs - $resourcePath = "/v2/customers"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateCustomerResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateCustomerResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateCustomerResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createCustomerCard - * - * CreateCustomerCard - * - * @param string $customer_id The Square ID of the customer profile the card is linked to. (required) - * @param \SquareConnect\Model\CreateCustomerCardRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateCustomerCardResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCustomerCard($customer_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->createCustomerCardWithHttpInfo ($customer_id, $body); - return $response; - } - - - /** - * createCustomerCardWithHttpInfo - * - * CreateCustomerCard - * - * @param string $customer_id The Square ID of the customer profile the card is linked to. (required) - * @param \SquareConnect\Model\CreateCustomerCardRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateCustomerCardResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCustomerCardWithHttpInfo($customer_id, $body) - { - - // verify the required parameter 'customer_id' is set - if ($customer_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $customer_id when calling createCustomerCard'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createCustomerCard'); - } - - // parse inputs - $resourcePath = "/v2/customers/{customer_id}/cards"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($customer_id !== null) { - $resourcePath = str_replace( - "{" . "customer_id" . "}", - $this->apiClient->getSerializer()->toPathValue($customer_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateCustomerCardResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateCustomerCardResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateCustomerCardResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * deleteCustomer - * - * DeleteCustomer - * - * @param string $customer_id The ID of the customer to delete. (required) - * @return \SquareConnect\Model\DeleteCustomerResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCustomer($customer_id) - { - list($response, $statusCode, $httpHeader) = $this->deleteCustomerWithHttpInfo ($customer_id); - return $response; - } - - - /** - * deleteCustomerWithHttpInfo - * - * DeleteCustomer - * - * @param string $customer_id The ID of the customer to delete. (required) - * @return Array of \SquareConnect\Model\DeleteCustomerResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCustomerWithHttpInfo($customer_id) - { - - // verify the required parameter 'customer_id' is set - if ($customer_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $customer_id when calling deleteCustomer'); - } - - // parse inputs - $resourcePath = "/v2/customers/{customer_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($customer_id !== null) { - $resourcePath = str_replace( - "{" . "customer_id" . "}", - $this->apiClient->getSerializer()->toPathValue($customer_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\DeleteCustomerResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\DeleteCustomerResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\DeleteCustomerResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * deleteCustomerCard - * - * DeleteCustomerCard - * - * @param string $customer_id The ID of the customer that the card on file belongs to. (required) - * @param string $card_id The ID of the card on file to delete. (required) - * @return \SquareConnect\Model\DeleteCustomerCardResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCustomerCard($customer_id, $card_id) - { - list($response, $statusCode, $httpHeader) = $this->deleteCustomerCardWithHttpInfo ($customer_id, $card_id); - return $response; - } - - - /** - * deleteCustomerCardWithHttpInfo - * - * DeleteCustomerCard - * - * @param string $customer_id The ID of the customer that the card on file belongs to. (required) - * @param string $card_id The ID of the card on file to delete. (required) - * @return Array of \SquareConnect\Model\DeleteCustomerCardResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCustomerCardWithHttpInfo($customer_id, $card_id) - { - - // verify the required parameter 'customer_id' is set - if ($customer_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $customer_id when calling deleteCustomerCard'); - } - // verify the required parameter 'card_id' is set - if ($card_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $card_id when calling deleteCustomerCard'); - } - - // parse inputs - $resourcePath = "/v2/customers/{customer_id}/cards/{card_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($customer_id !== null) { - $resourcePath = str_replace( - "{" . "customer_id" . "}", - $this->apiClient->getSerializer()->toPathValue($customer_id), - $resourcePath - ); - }// path params - if ($card_id !== null) { - $resourcePath = str_replace( - "{" . "card_id" . "}", - $this->apiClient->getSerializer()->toPathValue($card_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\DeleteCustomerCardResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\DeleteCustomerCardResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\DeleteCustomerCardResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listCustomers - * - * ListCustomers - * - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. (optional) - * @param string $sort_field Indicates how Customers should be sorted. Default: `DEFAULT`. (optional) - * @param string $sort_order Indicates whether Customers should be sorted in ascending (`ASC`) or descending (`DESC`) order. Default: `ASC`. (optional) - * @return \SquareConnect\Model\ListCustomersResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCustomers($cursor = null, $sort_field = null, $sort_order = null) - { - list($response, $statusCode, $httpHeader) = $this->listCustomersWithHttpInfo ($cursor, $sort_field, $sort_order); - return $response; - } - - - /** - * listCustomersWithHttpInfo - * - * ListCustomers - * - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. (optional) - * @param string $sort_field Indicates how Customers should be sorted. Default: `DEFAULT`. (optional) - * @param string $sort_order Indicates whether Customers should be sorted in ascending (`ASC`) or descending (`DESC`) order. Default: `ASC`. (optional) - * @return Array of \SquareConnect\Model\ListCustomersResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCustomersWithHttpInfo($cursor = null, $sort_field = null, $sort_order = null) - { - - - // parse inputs - $resourcePath = "/v2/customers"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - }// query params - if ($sort_field !== null) { - $queryParams['sort_field'] = $this->apiClient->getSerializer()->toQueryValue($sort_field); - }// query params - if ($sort_order !== null) { - $queryParams['sort_order'] = $this->apiClient->getSerializer()->toQueryValue($sort_order); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListCustomersResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListCustomersResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListCustomersResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * removeGroupFromCustomer - * - * RemoveGroupFromCustomer - * Note: This endpoint is in beta. - * - * @param string $customer_id The ID of the customer to remove from the group. (required) - * @param string $group_id The ID of the customer group to remove the customer from. (required) - * @return \SquareConnect\Model\RemoveGroupFromCustomerResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function removeGroupFromCustomer($customer_id, $group_id) - { - list($response, $statusCode, $httpHeader) = $this->removeGroupFromCustomerWithHttpInfo ($customer_id, $group_id); - return $response; - } - - - /** - * removeGroupFromCustomerWithHttpInfo - * - * RemoveGroupFromCustomer - * - * @param string $customer_id The ID of the customer to remove from the group. (required) - * @param string $group_id The ID of the customer group to remove the customer from. (required) - * @return Array of \SquareConnect\Model\RemoveGroupFromCustomerResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function removeGroupFromCustomerWithHttpInfo($customer_id, $group_id) - { - - // verify the required parameter 'customer_id' is set - if ($customer_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $customer_id when calling removeGroupFromCustomer'); - } - // verify the required parameter 'group_id' is set - if ($group_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $group_id when calling removeGroupFromCustomer'); - } - - // parse inputs - $resourcePath = "/v2/customers/{customer_id}/groups/{group_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($customer_id !== null) { - $resourcePath = str_replace( - "{" . "customer_id" . "}", - $this->apiClient->getSerializer()->toPathValue($customer_id), - $resourcePath - ); - }// path params - if ($group_id !== null) { - $resourcePath = str_replace( - "{" . "group_id" . "}", - $this->apiClient->getSerializer()->toPathValue($group_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RemoveGroupFromCustomerResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RemoveGroupFromCustomerResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RemoveGroupFromCustomerResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveCustomer - * - * RetrieveCustomer - * - * @param string $customer_id The ID of the customer to retrieve. (required) - * @return \SquareConnect\Model\RetrieveCustomerResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCustomer($customer_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveCustomerWithHttpInfo ($customer_id); - return $response; - } - - - /** - * retrieveCustomerWithHttpInfo - * - * RetrieveCustomer - * - * @param string $customer_id The ID of the customer to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveCustomerResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCustomerWithHttpInfo($customer_id) - { - - // verify the required parameter 'customer_id' is set - if ($customer_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $customer_id when calling retrieveCustomer'); - } - - // parse inputs - $resourcePath = "/v2/customers/{customer_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($customer_id !== null) { - $resourcePath = str_replace( - "{" . "customer_id" . "}", - $this->apiClient->getSerializer()->toPathValue($customer_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveCustomerResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveCustomerResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveCustomerResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * searchCustomers - * - * SearchCustomers - * - * @param \SquareConnect\Model\SearchCustomersRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\SearchCustomersResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchCustomers($body) - { - list($response, $statusCode, $httpHeader) = $this->searchCustomersWithHttpInfo ($body); - return $response; - } - - - /** - * searchCustomersWithHttpInfo - * - * SearchCustomers - * - * @param \SquareConnect\Model\SearchCustomersRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\SearchCustomersResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchCustomersWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling searchCustomers'); - } - - // parse inputs - $resourcePath = "/v2/customers/search"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SearchCustomersResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SearchCustomersResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SearchCustomersResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateCustomer - * - * UpdateCustomer - * - * @param string $customer_id The ID of the customer to update. (required) - * @param \SquareConnect\Model\UpdateCustomerRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateCustomerResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateCustomer($customer_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateCustomerWithHttpInfo ($customer_id, $body); - return $response; - } - - - /** - * updateCustomerWithHttpInfo - * - * UpdateCustomer - * - * @param string $customer_id The ID of the customer to update. (required) - * @param \SquareConnect\Model\UpdateCustomerRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateCustomerResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateCustomerWithHttpInfo($customer_id, $body) - { - - // verify the required parameter 'customer_id' is set - if ($customer_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $customer_id when calling updateCustomer'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateCustomer'); - } - - // parse inputs - $resourcePath = "/v2/customers/{customer_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($customer_id !== null) { - $resourcePath = str_replace( - "{" . "customer_id" . "}", - $this->apiClient->getSerializer()->toPathValue($customer_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateCustomerResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateCustomerResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateCustomerResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/DevicesApi.php b/includes/classes/vendors/square/connect/lib/Api/DevicesApi.php deleted file mode 100644 index db79595d11..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/DevicesApi.php +++ /dev/null @@ -1,357 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return DevicesApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * createDeviceCode - * - * CreateDeviceCode - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\CreateDeviceCodeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateDeviceCodeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createDeviceCode($body) - { - list($response, $statusCode, $httpHeader) = $this->createDeviceCodeWithHttpInfo ($body); - return $response; - } - - - /** - * createDeviceCodeWithHttpInfo - * - * CreateDeviceCode - * - * @param \SquareConnect\Model\CreateDeviceCodeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateDeviceCodeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createDeviceCodeWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createDeviceCode'); - } - - // parse inputs - $resourcePath = "/v2/devices/codes"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateDeviceCodeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateDeviceCodeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateDeviceCodeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * getDeviceCode - * - * GetDeviceCode - * Note: This endpoint is in beta. - * - * @param string $id The unique identifier for the device code. (required) - * @return \SquareConnect\Model\GetDeviceCodeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getDeviceCode($id) - { - list($response, $statusCode, $httpHeader) = $this->getDeviceCodeWithHttpInfo ($id); - return $response; - } - - - /** - * getDeviceCodeWithHttpInfo - * - * GetDeviceCode - * - * @param string $id The unique identifier for the device code. (required) - * @return Array of \SquareConnect\Model\GetDeviceCodeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getDeviceCodeWithHttpInfo($id) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling getDeviceCode'); - } - - // parse inputs - $resourcePath = "/v2/devices/codes/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetDeviceCodeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetDeviceCodeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetDeviceCodeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listDeviceCodes - * - * ListDeviceCodes - * Note: This endpoint is in beta. - * - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @param string $location_id If specified, only returns DeviceCodes of the specified location. Returns DeviceCodes of all locations if empty. (optional) - * @param string $product_type If specified, only returns DeviceCodes targeting the specified product type. Returns DeviceCodes of all product types if empty. (optional) - * @return \SquareConnect\Model\ListDeviceCodesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listDeviceCodes($cursor = null, $location_id = null, $product_type = null) - { - list($response, $statusCode, $httpHeader) = $this->listDeviceCodesWithHttpInfo ($cursor, $location_id, $product_type); - return $response; - } - - - /** - * listDeviceCodesWithHttpInfo - * - * ListDeviceCodes - * - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @param string $location_id If specified, only returns DeviceCodes of the specified location. Returns DeviceCodes of all locations if empty. (optional) - * @param string $product_type If specified, only returns DeviceCodes targeting the specified product type. Returns DeviceCodes of all product types if empty. (optional) - * @return Array of \SquareConnect\Model\ListDeviceCodesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listDeviceCodesWithHttpInfo($cursor = null, $location_id = null, $product_type = null) - { - - - // parse inputs - $resourcePath = "/v2/devices/codes"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - }// query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - }// query params - if ($product_type !== null) { - $queryParams['product_type'] = $this->apiClient->getSerializer()->toQueryValue($product_type); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListDeviceCodesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListDeviceCodesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListDeviceCodesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/DisputesApi.php b/includes/classes/vendors/square/connect/lib/Api/DisputesApi.php deleted file mode 100644 index 1ac7b9ecb4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/DisputesApi.php +++ /dev/null @@ -1,881 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return DisputesApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * acceptDispute - * - * AcceptDispute - * Note: This endpoint is in beta. - * - * @param string $dispute_id ID of the dispute you want to accept. (required) - * @return \SquareConnect\Model\AcceptDisputeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function acceptDispute($dispute_id) - { - list($response, $statusCode, $httpHeader) = $this->acceptDisputeWithHttpInfo ($dispute_id); - return $response; - } - - - /** - * acceptDisputeWithHttpInfo - * - * AcceptDispute - * - * @param string $dispute_id ID of the dispute you want to accept. (required) - * @return Array of \SquareConnect\Model\AcceptDisputeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function acceptDisputeWithHttpInfo($dispute_id) - { - - // verify the required parameter 'dispute_id' is set - if ($dispute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $dispute_id when calling acceptDispute'); - } - - // parse inputs - $resourcePath = "/v2/disputes/{dispute_id}/accept"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($dispute_id !== null) { - $resourcePath = str_replace( - "{" . "dispute_id" . "}", - $this->apiClient->getSerializer()->toPathValue($dispute_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\AcceptDisputeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\AcceptDisputeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\AcceptDisputeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createDisputeEvidenceText - * - * CreateDisputeEvidenceText - * Note: This endpoint is in beta. - * - * @param string $dispute_id The ID of the dispute you want to upload evidence for. (required) - * @param \SquareConnect\Model\CreateDisputeEvidenceTextRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateDisputeEvidenceTextResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createDisputeEvidenceText($dispute_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->createDisputeEvidenceTextWithHttpInfo ($dispute_id, $body); - return $response; - } - - - /** - * createDisputeEvidenceTextWithHttpInfo - * - * CreateDisputeEvidenceText - * - * @param string $dispute_id The ID of the dispute you want to upload evidence for. (required) - * @param \SquareConnect\Model\CreateDisputeEvidenceTextRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateDisputeEvidenceTextResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createDisputeEvidenceTextWithHttpInfo($dispute_id, $body) - { - - // verify the required parameter 'dispute_id' is set - if ($dispute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $dispute_id when calling createDisputeEvidenceText'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createDisputeEvidenceText'); - } - - // parse inputs - $resourcePath = "/v2/disputes/{dispute_id}/evidence_text"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($dispute_id !== null) { - $resourcePath = str_replace( - "{" . "dispute_id" . "}", - $this->apiClient->getSerializer()->toPathValue($dispute_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateDisputeEvidenceTextResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateDisputeEvidenceTextResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateDisputeEvidenceTextResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listDisputeEvidence - * - * ListDisputeEvidence - * Note: This endpoint is in beta. - * - * @param string $dispute_id The ID of the dispute. (required) - * @return \SquareConnect\Model\ListDisputeEvidenceResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listDisputeEvidence($dispute_id) - { - list($response, $statusCode, $httpHeader) = $this->listDisputeEvidenceWithHttpInfo ($dispute_id); - return $response; - } - - - /** - * listDisputeEvidenceWithHttpInfo - * - * ListDisputeEvidence - * - * @param string $dispute_id The ID of the dispute. (required) - * @return Array of \SquareConnect\Model\ListDisputeEvidenceResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listDisputeEvidenceWithHttpInfo($dispute_id) - { - - // verify the required parameter 'dispute_id' is set - if ($dispute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $dispute_id when calling listDisputeEvidence'); - } - - // parse inputs - $resourcePath = "/v2/disputes/{dispute_id}/evidence"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($dispute_id !== null) { - $resourcePath = str_replace( - "{" . "dispute_id" . "}", - $this->apiClient->getSerializer()->toPathValue($dispute_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListDisputeEvidenceResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListDisputeEvidenceResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListDisputeEvidenceResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listDisputes - * - * ListDisputes - * Note: This endpoint is in beta. - * - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. For more information, see [Paginating](https://developer.squareup.com/docs/basics/api101/pagination). (optional) - * @param string $states The dispute states to filter the result. If not specified, the endpoint returns all open disputes (dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`). (optional) - * @param string $location_id The ID of the location for which to return a list of disputes. If not specified, the endpoint returns all open disputes (dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`) associated with all locations. (optional) - * @return \SquareConnect\Model\ListDisputesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listDisputes($cursor = null, $states = null, $location_id = null) - { - list($response, $statusCode, $httpHeader) = $this->listDisputesWithHttpInfo ($cursor, $states, $location_id); - return $response; - } - - - /** - * listDisputesWithHttpInfo - * - * ListDisputes - * - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. For more information, see [Paginating](https://developer.squareup.com/docs/basics/api101/pagination). (optional) - * @param string $states The dispute states to filter the result. If not specified, the endpoint returns all open disputes (dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`). (optional) - * @param string $location_id The ID of the location for which to return a list of disputes. If not specified, the endpoint returns all open disputes (dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`) associated with all locations. (optional) - * @return Array of \SquareConnect\Model\ListDisputesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listDisputesWithHttpInfo($cursor = null, $states = null, $location_id = null) - { - - - // parse inputs - $resourcePath = "/v2/disputes"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - }// query params - if ($states !== null) { - $queryParams['states'] = $this->apiClient->getSerializer()->toQueryValue($states); - }// query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListDisputesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListDisputesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListDisputesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * removeDisputeEvidence - * - * RemoveDisputeEvidence - * Note: This endpoint is in beta. - * - * @param string $dispute_id The ID of the dispute you want to remove evidence from. (required) - * @param string $evidence_id The ID of the evidence you want to remove. (required) - * @return \SquareConnect\Model\RemoveDisputeEvidenceResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function removeDisputeEvidence($dispute_id, $evidence_id) - { - list($response, $statusCode, $httpHeader) = $this->removeDisputeEvidenceWithHttpInfo ($dispute_id, $evidence_id); - return $response; - } - - - /** - * removeDisputeEvidenceWithHttpInfo - * - * RemoveDisputeEvidence - * - * @param string $dispute_id The ID of the dispute you want to remove evidence from. (required) - * @param string $evidence_id The ID of the evidence you want to remove. (required) - * @return Array of \SquareConnect\Model\RemoveDisputeEvidenceResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function removeDisputeEvidenceWithHttpInfo($dispute_id, $evidence_id) - { - - // verify the required parameter 'dispute_id' is set - if ($dispute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $dispute_id when calling removeDisputeEvidence'); - } - // verify the required parameter 'evidence_id' is set - if ($evidence_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $evidence_id when calling removeDisputeEvidence'); - } - - // parse inputs - $resourcePath = "/v2/disputes/{dispute_id}/evidence/{evidence_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($dispute_id !== null) { - $resourcePath = str_replace( - "{" . "dispute_id" . "}", - $this->apiClient->getSerializer()->toPathValue($dispute_id), - $resourcePath - ); - }// path params - if ($evidence_id !== null) { - $resourcePath = str_replace( - "{" . "evidence_id" . "}", - $this->apiClient->getSerializer()->toPathValue($evidence_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RemoveDisputeEvidenceResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RemoveDisputeEvidenceResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RemoveDisputeEvidenceResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveDispute - * - * RetrieveDispute - * Note: This endpoint is in beta. - * - * @param string $dispute_id The ID of the dispute you want more details about. (required) - * @return \SquareConnect\Model\RetrieveDisputeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveDispute($dispute_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveDisputeWithHttpInfo ($dispute_id); - return $response; - } - - - /** - * retrieveDisputeWithHttpInfo - * - * RetrieveDispute - * - * @param string $dispute_id The ID of the dispute you want more details about. (required) - * @return Array of \SquareConnect\Model\RetrieveDisputeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveDisputeWithHttpInfo($dispute_id) - { - - // verify the required parameter 'dispute_id' is set - if ($dispute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $dispute_id when calling retrieveDispute'); - } - - // parse inputs - $resourcePath = "/v2/disputes/{dispute_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($dispute_id !== null) { - $resourcePath = str_replace( - "{" . "dispute_id" . "}", - $this->apiClient->getSerializer()->toPathValue($dispute_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveDisputeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveDisputeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveDisputeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveDisputeEvidence - * - * RetrieveDisputeEvidence - * Note: This endpoint is in beta. - * - * @param string $dispute_id The ID of the dispute that you want to retrieve evidence from. (required) - * @param string $evidence_id The ID of the evidence to retrieve. (required) - * @return \SquareConnect\Model\RetrieveDisputeEvidenceResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveDisputeEvidence($dispute_id, $evidence_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveDisputeEvidenceWithHttpInfo ($dispute_id, $evidence_id); - return $response; - } - - - /** - * retrieveDisputeEvidenceWithHttpInfo - * - * RetrieveDisputeEvidence - * - * @param string $dispute_id The ID of the dispute that you want to retrieve evidence from. (required) - * @param string $evidence_id The ID of the evidence to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveDisputeEvidenceResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveDisputeEvidenceWithHttpInfo($dispute_id, $evidence_id) - { - - // verify the required parameter 'dispute_id' is set - if ($dispute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $dispute_id when calling retrieveDisputeEvidence'); - } - // verify the required parameter 'evidence_id' is set - if ($evidence_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $evidence_id when calling retrieveDisputeEvidence'); - } - - // parse inputs - $resourcePath = "/v2/disputes/{dispute_id}/evidence/{evidence_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($dispute_id !== null) { - $resourcePath = str_replace( - "{" . "dispute_id" . "}", - $this->apiClient->getSerializer()->toPathValue($dispute_id), - $resourcePath - ); - }// path params - if ($evidence_id !== null) { - $resourcePath = str_replace( - "{" . "evidence_id" . "}", - $this->apiClient->getSerializer()->toPathValue($evidence_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveDisputeEvidenceResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveDisputeEvidenceResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveDisputeEvidenceResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * submitEvidence - * - * SubmitEvidence - * Note: This endpoint is in beta. - * - * @param string $dispute_id The ID of the dispute you want to submit evidence for. (required) - * @return \SquareConnect\Model\SubmitEvidenceResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function submitEvidence($dispute_id) - { - list($response, $statusCode, $httpHeader) = $this->submitEvidenceWithHttpInfo ($dispute_id); - return $response; - } - - - /** - * submitEvidenceWithHttpInfo - * - * SubmitEvidence - * - * @param string $dispute_id The ID of the dispute you want to submit evidence for. (required) - * @return Array of \SquareConnect\Model\SubmitEvidenceResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function submitEvidenceWithHttpInfo($dispute_id) - { - - // verify the required parameter 'dispute_id' is set - if ($dispute_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $dispute_id when calling submitEvidence'); - } - - // parse inputs - $resourcePath = "/v2/disputes/{dispute_id}/submit-evidence"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($dispute_id !== null) { - $resourcePath = str_replace( - "{" . "dispute_id" . "}", - $this->apiClient->getSerializer()->toPathValue($dispute_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SubmitEvidenceResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SubmitEvidenceResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SubmitEvidenceResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/EmployeesApi.php b/includes/classes/vendors/square/connect/lib/Api/EmployeesApi.php deleted file mode 100644 index ca8bc6701a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/EmployeesApi.php +++ /dev/null @@ -1,266 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return EmployeesApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * listEmployees - * - * ListEmployees - * - * @param string $location_id Filter employees returned to only those that are associated with the specified location. (optional) - * @param string $status Specifies the EmployeeStatus to filter the employee by. (optional) - * @param int $limit The number of employees to be returned on each page. (optional) - * @param string $cursor The token required to retrieve the specified page of results. (optional) - * @return \SquareConnect\Model\ListEmployeesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listEmployees($location_id = null, $status = null, $limit = null, $cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listEmployeesWithHttpInfo ($location_id, $status, $limit, $cursor); - return $response; - } - - - /** - * listEmployeesWithHttpInfo - * - * ListEmployees - * - * @param string $location_id Filter employees returned to only those that are associated with the specified location. (optional) - * @param string $status Specifies the EmployeeStatus to filter the employee by. (optional) - * @param int $limit The number of employees to be returned on each page. (optional) - * @param string $cursor The token required to retrieve the specified page of results. (optional) - * @return Array of \SquareConnect\Model\ListEmployeesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listEmployeesWithHttpInfo($location_id = null, $status = null, $limit = null, $cursor = null) - { - - - // parse inputs - $resourcePath = "/v2/employees"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - }// query params - if ($status !== null) { - $queryParams['status'] = $this->apiClient->getSerializer()->toQueryValue($status); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListEmployeesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListEmployeesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListEmployeesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveEmployee - * - * RetrieveEmployee - * - * @param string $id UUID for the employee that was requested. (required) - * @return \SquareConnect\Model\RetrieveEmployeeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveEmployee($id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveEmployeeWithHttpInfo ($id); - return $response; - } - - - /** - * retrieveEmployeeWithHttpInfo - * - * RetrieveEmployee - * - * @param string $id UUID for the employee that was requested. (required) - * @return Array of \SquareConnect\Model\RetrieveEmployeeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveEmployeeWithHttpInfo($id) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling retrieveEmployee'); - } - - // parse inputs - $resourcePath = "/v2/employees/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveEmployeeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveEmployeeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveEmployeeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/InventoryApi.php b/includes/classes/vendors/square/connect/lib/Api/InventoryApi.php deleted file mode 100644 index a86868bfe8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/InventoryApi.php +++ /dev/null @@ -1,750 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return InventoryApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * batchChangeInventory - * - * BatchChangeInventory - * - * @param \SquareConnect\Model\BatchChangeInventoryRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\BatchChangeInventoryResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchChangeInventory($body) - { - list($response, $statusCode, $httpHeader) = $this->batchChangeInventoryWithHttpInfo ($body); - return $response; - } - - - /** - * batchChangeInventoryWithHttpInfo - * - * BatchChangeInventory - * - * @param \SquareConnect\Model\BatchChangeInventoryRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\BatchChangeInventoryResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchChangeInventoryWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling batchChangeInventory'); - } - - // parse inputs - $resourcePath = "/v2/inventory/batch-change"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\BatchChangeInventoryResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\BatchChangeInventoryResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\BatchChangeInventoryResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * batchRetrieveInventoryChanges - * - * BatchRetrieveInventoryChanges - * - * @param \SquareConnect\Model\BatchRetrieveInventoryChangesRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\BatchRetrieveInventoryChangesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchRetrieveInventoryChanges($body) - { - list($response, $statusCode, $httpHeader) = $this->batchRetrieveInventoryChangesWithHttpInfo ($body); - return $response; - } - - - /** - * batchRetrieveInventoryChangesWithHttpInfo - * - * BatchRetrieveInventoryChanges - * - * @param \SquareConnect\Model\BatchRetrieveInventoryChangesRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\BatchRetrieveInventoryChangesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchRetrieveInventoryChangesWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling batchRetrieveInventoryChanges'); - } - - // parse inputs - $resourcePath = "/v2/inventory/batch-retrieve-changes"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\BatchRetrieveInventoryChangesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\BatchRetrieveInventoryChangesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\BatchRetrieveInventoryChangesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * batchRetrieveInventoryCounts - * - * BatchRetrieveInventoryCounts - * - * @param \SquareConnect\Model\BatchRetrieveInventoryCountsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\BatchRetrieveInventoryCountsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchRetrieveInventoryCounts($body) - { - list($response, $statusCode, $httpHeader) = $this->batchRetrieveInventoryCountsWithHttpInfo ($body); - return $response; - } - - - /** - * batchRetrieveInventoryCountsWithHttpInfo - * - * BatchRetrieveInventoryCounts - * - * @param \SquareConnect\Model\BatchRetrieveInventoryCountsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\BatchRetrieveInventoryCountsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchRetrieveInventoryCountsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling batchRetrieveInventoryCounts'); - } - - // parse inputs - $resourcePath = "/v2/inventory/batch-retrieve-counts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\BatchRetrieveInventoryCountsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\BatchRetrieveInventoryCountsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\BatchRetrieveInventoryCountsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveInventoryAdjustment - * - * RetrieveInventoryAdjustment - * - * @param string $adjustment_id ID of the `InventoryAdjustment` to retrieve. (required) - * @return \SquareConnect\Model\RetrieveInventoryAdjustmentResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveInventoryAdjustment($adjustment_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveInventoryAdjustmentWithHttpInfo ($adjustment_id); - return $response; - } - - - /** - * retrieveInventoryAdjustmentWithHttpInfo - * - * RetrieveInventoryAdjustment - * - * @param string $adjustment_id ID of the `InventoryAdjustment` to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveInventoryAdjustmentResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveInventoryAdjustmentWithHttpInfo($adjustment_id) - { - - // verify the required parameter 'adjustment_id' is set - if ($adjustment_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $adjustment_id when calling retrieveInventoryAdjustment'); - } - - // parse inputs - $resourcePath = "/v2/inventory/adjustment/{adjustment_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($adjustment_id !== null) { - $resourcePath = str_replace( - "{" . "adjustment_id" . "}", - $this->apiClient->getSerializer()->toPathValue($adjustment_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveInventoryAdjustmentResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveInventoryAdjustmentResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveInventoryAdjustmentResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveInventoryChanges - * - * RetrieveInventoryChanges - * - * @param string $catalog_object_id ID of the `CatalogObject` to retrieve. (required) - * @param string $location_ids The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. (optional) - * @return \SquareConnect\Model\RetrieveInventoryChangesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveInventoryChanges($catalog_object_id, $location_ids = null, $cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->retrieveInventoryChangesWithHttpInfo ($catalog_object_id, $location_ids, $cursor); - return $response; - } - - - /** - * retrieveInventoryChangesWithHttpInfo - * - * RetrieveInventoryChanges - * - * @param string $catalog_object_id ID of the `CatalogObject` to retrieve. (required) - * @param string $location_ids The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. (optional) - * @return Array of \SquareConnect\Model\RetrieveInventoryChangesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveInventoryChangesWithHttpInfo($catalog_object_id, $location_ids = null, $cursor = null) - { - - // verify the required parameter 'catalog_object_id' is set - if ($catalog_object_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $catalog_object_id when calling retrieveInventoryChanges'); - } - - // parse inputs - $resourcePath = "/v2/inventory/{catalog_object_id}/changes"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($location_ids !== null) { - $queryParams['location_ids'] = $this->apiClient->getSerializer()->toQueryValue($location_ids); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - // path params - if ($catalog_object_id !== null) { - $resourcePath = str_replace( - "{" . "catalog_object_id" . "}", - $this->apiClient->getSerializer()->toPathValue($catalog_object_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveInventoryChangesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveInventoryChangesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveInventoryChangesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveInventoryCount - * - * RetrieveInventoryCount - * - * @param string $catalog_object_id ID of the `CatalogObject` to retrieve. (required) - * @param string $location_ids The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. (optional) - * @return \SquareConnect\Model\RetrieveInventoryCountResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveInventoryCount($catalog_object_id, $location_ids = null, $cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->retrieveInventoryCountWithHttpInfo ($catalog_object_id, $location_ids, $cursor); - return $response; - } - - - /** - * retrieveInventoryCountWithHttpInfo - * - * RetrieveInventoryCount - * - * @param string $catalog_object_id ID of the `CatalogObject` to retrieve. (required) - * @param string $location_ids The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. (optional) - * @return Array of \SquareConnect\Model\RetrieveInventoryCountResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveInventoryCountWithHttpInfo($catalog_object_id, $location_ids = null, $cursor = null) - { - - // verify the required parameter 'catalog_object_id' is set - if ($catalog_object_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $catalog_object_id when calling retrieveInventoryCount'); - } - - // parse inputs - $resourcePath = "/v2/inventory/{catalog_object_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($location_ids !== null) { - $queryParams['location_ids'] = $this->apiClient->getSerializer()->toQueryValue($location_ids); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - // path params - if ($catalog_object_id !== null) { - $resourcePath = str_replace( - "{" . "catalog_object_id" . "}", - $this->apiClient->getSerializer()->toPathValue($catalog_object_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveInventoryCountResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveInventoryCountResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveInventoryCountResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveInventoryPhysicalCount - * - * RetrieveInventoryPhysicalCount - * - * @param string $physical_count_id ID of the `InventoryPhysicalCount` to retrieve. (required) - * @return \SquareConnect\Model\RetrieveInventoryPhysicalCountResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveInventoryPhysicalCount($physical_count_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveInventoryPhysicalCountWithHttpInfo ($physical_count_id); - return $response; - } - - - /** - * retrieveInventoryPhysicalCountWithHttpInfo - * - * RetrieveInventoryPhysicalCount - * - * @param string $physical_count_id ID of the `InventoryPhysicalCount` to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveInventoryPhysicalCountResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveInventoryPhysicalCountWithHttpInfo($physical_count_id) - { - - // verify the required parameter 'physical_count_id' is set - if ($physical_count_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $physical_count_id when calling retrieveInventoryPhysicalCount'); - } - - // parse inputs - $resourcePath = "/v2/inventory/physical-count/{physical_count_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($physical_count_id !== null) { - $resourcePath = str_replace( - "{" . "physical_count_id" . "}", - $this->apiClient->getSerializer()->toPathValue($physical_count_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveInventoryPhysicalCountResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveInventoryPhysicalCountResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveInventoryPhysicalCountResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/LaborApi.php b/includes/classes/vendors/square/connect/lib/Api/LaborApi.php deleted file mode 100644 index ae279762a8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/LaborApi.php +++ /dev/null @@ -1,1433 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return LaborApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * createBreakType - * - * CreateBreakType - * - * @param \SquareConnect\Model\CreateBreakTypeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateBreakTypeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createBreakType($body) - { - list($response, $statusCode, $httpHeader) = $this->createBreakTypeWithHttpInfo ($body); - return $response; - } - - - /** - * createBreakTypeWithHttpInfo - * - * CreateBreakType - * - * @param \SquareConnect\Model\CreateBreakTypeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateBreakTypeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createBreakTypeWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createBreakType'); - } - - // parse inputs - $resourcePath = "/v2/labor/break-types"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateBreakTypeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateBreakTypeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateBreakTypeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createShift - * - * CreateShift - * - * @param \SquareConnect\Model\CreateShiftRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateShiftResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createShift($body) - { - list($response, $statusCode, $httpHeader) = $this->createShiftWithHttpInfo ($body); - return $response; - } - - - /** - * createShiftWithHttpInfo - * - * CreateShift - * - * @param \SquareConnect\Model\CreateShiftRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateShiftResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createShiftWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createShift'); - } - - // parse inputs - $resourcePath = "/v2/labor/shifts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateShiftResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateShiftResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateShiftResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * deleteBreakType - * - * DeleteBreakType - * - * @param string $id UUID for the `BreakType` being deleted. (required) - * @return \SquareConnect\Model\DeleteBreakTypeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteBreakType($id) - { - list($response, $statusCode, $httpHeader) = $this->deleteBreakTypeWithHttpInfo ($id); - return $response; - } - - - /** - * deleteBreakTypeWithHttpInfo - * - * DeleteBreakType - * - * @param string $id UUID for the `BreakType` being deleted. (required) - * @return Array of \SquareConnect\Model\DeleteBreakTypeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteBreakTypeWithHttpInfo($id) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling deleteBreakType'); - } - - // parse inputs - $resourcePath = "/v2/labor/break-types/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\DeleteBreakTypeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\DeleteBreakTypeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\DeleteBreakTypeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * deleteShift - * - * DeleteShift - * - * @param string $id UUID for the `Shift` being deleted. (required) - * @return \SquareConnect\Model\DeleteShiftResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteShift($id) - { - list($response, $statusCode, $httpHeader) = $this->deleteShiftWithHttpInfo ($id); - return $response; - } - - - /** - * deleteShiftWithHttpInfo - * - * DeleteShift - * - * @param string $id UUID for the `Shift` being deleted. (required) - * @return Array of \SquareConnect\Model\DeleteShiftResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteShiftWithHttpInfo($id) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling deleteShift'); - } - - // parse inputs - $resourcePath = "/v2/labor/shifts/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\DeleteShiftResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\DeleteShiftResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\DeleteShiftResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * getBreakType - * - * GetBreakType - * - * @param string $id UUID for the `BreakType` being retrieved. (required) - * @return \SquareConnect\Model\GetBreakTypeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getBreakType($id) - { - list($response, $statusCode, $httpHeader) = $this->getBreakTypeWithHttpInfo ($id); - return $response; - } - - - /** - * getBreakTypeWithHttpInfo - * - * GetBreakType - * - * @param string $id UUID for the `BreakType` being retrieved. (required) - * @return Array of \SquareConnect\Model\GetBreakTypeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getBreakTypeWithHttpInfo($id) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling getBreakType'); - } - - // parse inputs - $resourcePath = "/v2/labor/break-types/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetBreakTypeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetBreakTypeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetBreakTypeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * getEmployeeWage - * - * GetEmployeeWage - * - * @param string $id UUID for the `EmployeeWage` being retrieved. (required) - * @return \SquareConnect\Model\GetEmployeeWageResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getEmployeeWage($id) - { - list($response, $statusCode, $httpHeader) = $this->getEmployeeWageWithHttpInfo ($id); - return $response; - } - - - /** - * getEmployeeWageWithHttpInfo - * - * GetEmployeeWage - * - * @param string $id UUID for the `EmployeeWage` being retrieved. (required) - * @return Array of \SquareConnect\Model\GetEmployeeWageResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getEmployeeWageWithHttpInfo($id) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling getEmployeeWage'); - } - - // parse inputs - $resourcePath = "/v2/labor/employee-wages/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetEmployeeWageResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetEmployeeWageResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetEmployeeWageResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * getShift - * - * GetShift - * - * @param string $id UUID for the `Shift` being retrieved. (required) - * @return \SquareConnect\Model\GetShiftResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getShift($id) - { - list($response, $statusCode, $httpHeader) = $this->getShiftWithHttpInfo ($id); - return $response; - } - - - /** - * getShiftWithHttpInfo - * - * GetShift - * - * @param string $id UUID for the `Shift` being retrieved. (required) - * @return Array of \SquareConnect\Model\GetShiftResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getShiftWithHttpInfo($id) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling getShift'); - } - - // parse inputs - $resourcePath = "/v2/labor/shifts/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetShiftResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetShiftResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetShiftResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listBreakTypes - * - * ListBreakTypes - * - * @param string $location_id Filter Break Types returned to only those that are associated with the specified location. (optional) - * @param int $limit Maximum number of Break Types to return per page. Can range between 1 and 200. The default is the maximum at 200. (optional) - * @param string $cursor Pointer to the next page of Break Type results to fetch. (optional) - * @return \SquareConnect\Model\ListBreakTypesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listBreakTypes($location_id = null, $limit = null, $cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listBreakTypesWithHttpInfo ($location_id, $limit, $cursor); - return $response; - } - - - /** - * listBreakTypesWithHttpInfo - * - * ListBreakTypes - * - * @param string $location_id Filter Break Types returned to only those that are associated with the specified location. (optional) - * @param int $limit Maximum number of Break Types to return per page. Can range between 1 and 200. The default is the maximum at 200. (optional) - * @param string $cursor Pointer to the next page of Break Type results to fetch. (optional) - * @return Array of \SquareConnect\Model\ListBreakTypesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listBreakTypesWithHttpInfo($location_id = null, $limit = null, $cursor = null) - { - - - // parse inputs - $resourcePath = "/v2/labor/break-types"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListBreakTypesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListBreakTypesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListBreakTypesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listEmployeeWages - * - * ListEmployeeWages - * - * @param string $employee_id Filter wages returned to only those that are associated with the specified employee. (optional) - * @param int $limit Maximum number of Employee Wages to return per page. Can range between 1 and 200. The default is the maximum at 200. (optional) - * @param string $cursor Pointer to the next page of Employee Wage results to fetch. (optional) - * @return \SquareConnect\Model\ListEmployeeWagesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listEmployeeWages($employee_id = null, $limit = null, $cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listEmployeeWagesWithHttpInfo ($employee_id, $limit, $cursor); - return $response; - } - - - /** - * listEmployeeWagesWithHttpInfo - * - * ListEmployeeWages - * - * @param string $employee_id Filter wages returned to only those that are associated with the specified employee. (optional) - * @param int $limit Maximum number of Employee Wages to return per page. Can range between 1 and 200. The default is the maximum at 200. (optional) - * @param string $cursor Pointer to the next page of Employee Wage results to fetch. (optional) - * @return Array of \SquareConnect\Model\ListEmployeeWagesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listEmployeeWagesWithHttpInfo($employee_id = null, $limit = null, $cursor = null) - { - - - // parse inputs - $resourcePath = "/v2/labor/employee-wages"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($employee_id !== null) { - $queryParams['employee_id'] = $this->apiClient->getSerializer()->toQueryValue($employee_id); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListEmployeeWagesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListEmployeeWagesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListEmployeeWagesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listWorkweekConfigs - * - * ListWorkweekConfigs - * - * @param int $limit Maximum number of Workweek Configs to return per page. (optional) - * @param string $cursor Pointer to the next page of Workweek Config results to fetch. (optional) - * @return \SquareConnect\Model\ListWorkweekConfigsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listWorkweekConfigs($limit = null, $cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listWorkweekConfigsWithHttpInfo ($limit, $cursor); - return $response; - } - - - /** - * listWorkweekConfigsWithHttpInfo - * - * ListWorkweekConfigs - * - * @param int $limit Maximum number of Workweek Configs to return per page. (optional) - * @param string $cursor Pointer to the next page of Workweek Config results to fetch. (optional) - * @return Array of \SquareConnect\Model\ListWorkweekConfigsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listWorkweekConfigsWithHttpInfo($limit = null, $cursor = null) - { - - - // parse inputs - $resourcePath = "/v2/labor/workweek-configs"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListWorkweekConfigsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListWorkweekConfigsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListWorkweekConfigsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * searchShifts - * - * SearchShifts - * - * @param \SquareConnect\Model\SearchShiftsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\SearchShiftsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchShifts($body) - { - list($response, $statusCode, $httpHeader) = $this->searchShiftsWithHttpInfo ($body); - return $response; - } - - - /** - * searchShiftsWithHttpInfo - * - * SearchShifts - * - * @param \SquareConnect\Model\SearchShiftsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\SearchShiftsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchShiftsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling searchShifts'); - } - - // parse inputs - $resourcePath = "/v2/labor/shifts/search"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SearchShiftsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SearchShiftsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SearchShiftsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateBreakType - * - * UpdateBreakType - * - * @param string $id UUID for the `BreakType` being updated. (required) - * @param \SquareConnect\Model\UpdateBreakTypeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateBreakTypeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateBreakType($id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateBreakTypeWithHttpInfo ($id, $body); - return $response; - } - - - /** - * updateBreakTypeWithHttpInfo - * - * UpdateBreakType - * - * @param string $id UUID for the `BreakType` being updated. (required) - * @param \SquareConnect\Model\UpdateBreakTypeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateBreakTypeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateBreakTypeWithHttpInfo($id, $body) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling updateBreakType'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateBreakType'); - } - - // parse inputs - $resourcePath = "/v2/labor/break-types/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateBreakTypeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateBreakTypeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateBreakTypeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateShift - * - * UpdateShift - * - * @param string $id ID of the object being updated. (required) - * @param \SquareConnect\Model\UpdateShiftRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateShiftResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateShift($id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateShiftWithHttpInfo ($id, $body); - return $response; - } - - - /** - * updateShiftWithHttpInfo - * - * UpdateShift - * - * @param string $id ID of the object being updated. (required) - * @param \SquareConnect\Model\UpdateShiftRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateShiftResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateShiftWithHttpInfo($id, $body) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling updateShift'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateShift'); - } - - // parse inputs - $resourcePath = "/v2/labor/shifts/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateShiftResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateShiftResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateShiftResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateWorkweekConfig - * - * UpdateWorkweekConfig - * - * @param string $id UUID for the `WorkweekConfig` object being updated. (required) - * @param \SquareConnect\Model\UpdateWorkweekConfigRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateWorkweekConfigResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateWorkweekConfig($id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateWorkweekConfigWithHttpInfo ($id, $body); - return $response; - } - - - /** - * updateWorkweekConfigWithHttpInfo - * - * UpdateWorkweekConfig - * - * @param string $id UUID for the `WorkweekConfig` object being updated. (required) - * @param \SquareConnect\Model\UpdateWorkweekConfigRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateWorkweekConfigResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateWorkweekConfigWithHttpInfo($id, $body) - { - - // verify the required parameter 'id' is set - if ($id === null) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling updateWorkweekConfig'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateWorkweekConfig'); - } - - // parse inputs - $resourcePath = "/v2/labor/workweek-configs/{id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($id !== null) { - $resourcePath = str_replace( - "{" . "id" . "}", - $this->apiClient->getSerializer()->toPathValue($id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateWorkweekConfigResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateWorkweekConfigResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateWorkweekConfigResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/LocationsApi.php b/includes/classes/vendors/square/connect/lib/Api/LocationsApi.php deleted file mode 100644 index 1aacd1f9cd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/LocationsApi.php +++ /dev/null @@ -1,447 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return LocationsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * createLocation - * - * CreateLocation - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\CreateLocationRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateLocationResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createLocation($body) - { - list($response, $statusCode, $httpHeader) = $this->createLocationWithHttpInfo ($body); - return $response; - } - - - /** - * createLocationWithHttpInfo - * - * CreateLocation - * - * @param \SquareConnect\Model\CreateLocationRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateLocationResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createLocationWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createLocation'); - } - - // parse inputs - $resourcePath = "/v2/locations"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateLocationResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateLocationResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateLocationResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listLocations - * - * ListLocations - * - * @return \SquareConnect\Model\ListLocationsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listLocations() - { - list($response, $statusCode, $httpHeader) = $this->listLocationsWithHttpInfo (); - return $response; - } - - - /** - * listLocationsWithHttpInfo - * - * ListLocations - * - * @return Array of \SquareConnect\Model\ListLocationsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listLocationsWithHttpInfo() - { - - - // parse inputs - $resourcePath = "/v2/locations"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListLocationsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListLocationsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListLocationsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveLocation - * - * RetrieveLocation - * - * @param string $location_id The ID of the location to retrieve. (required) - * @return \SquareConnect\Model\RetrieveLocationResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveLocation($location_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveLocationWithHttpInfo ($location_id); - return $response; - } - - - /** - * retrieveLocationWithHttpInfo - * - * RetrieveLocation - * - * @param string $location_id The ID of the location to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveLocationResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveLocationWithHttpInfo($location_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveLocation'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveLocationResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveLocationResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveLocationResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateLocation - * - * UpdateLocation - * Note: This endpoint is in beta. - * - * @param string $location_id The ID of the location to update. (required) - * @param \SquareConnect\Model\UpdateLocationRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateLocationResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateLocation($location_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateLocationWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * updateLocationWithHttpInfo - * - * UpdateLocation - * - * @param string $location_id The ID of the location to update. (required) - * @param \SquareConnect\Model\UpdateLocationRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateLocationResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateLocationWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateLocation'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateLocation'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateLocationResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateLocationResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateLocationResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/LoyaltyApi.php b/includes/classes/vendors/square/connect/lib/Api/LoyaltyApi.php deleted file mode 100644 index ddae6c54ab..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/LoyaltyApi.php +++ /dev/null @@ -1,1340 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return LoyaltyApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * accumulateLoyaltyPoints - * - * AccumulateLoyaltyPoints - * Note: This endpoint is in beta. - * - * @param string $account_id The `loyalty account` ID to which to add the points. (required) - * @param \SquareConnect\Model\AccumulateLoyaltyPointsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\AccumulateLoyaltyPointsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function accumulateLoyaltyPoints($account_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->accumulateLoyaltyPointsWithHttpInfo ($account_id, $body); - return $response; - } - - - /** - * accumulateLoyaltyPointsWithHttpInfo - * - * AccumulateLoyaltyPoints - * - * @param string $account_id The `loyalty account` ID to which to add the points. (required) - * @param \SquareConnect\Model\AccumulateLoyaltyPointsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\AccumulateLoyaltyPointsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function accumulateLoyaltyPointsWithHttpInfo($account_id, $body) - { - - // verify the required parameter 'account_id' is set - if ($account_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $account_id when calling accumulateLoyaltyPoints'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling accumulateLoyaltyPoints'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/accounts/{account_id}/accumulate"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($account_id !== null) { - $resourcePath = str_replace( - "{" . "account_id" . "}", - $this->apiClient->getSerializer()->toPathValue($account_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\AccumulateLoyaltyPointsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\AccumulateLoyaltyPointsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\AccumulateLoyaltyPointsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * adjustLoyaltyPoints - * - * AdjustLoyaltyPoints - * Note: This endpoint is in beta. - * - * @param string $account_id The ID of the `loyalty account` in which to adjust the points. (required) - * @param \SquareConnect\Model\AdjustLoyaltyPointsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\AdjustLoyaltyPointsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function adjustLoyaltyPoints($account_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->adjustLoyaltyPointsWithHttpInfo ($account_id, $body); - return $response; - } - - - /** - * adjustLoyaltyPointsWithHttpInfo - * - * AdjustLoyaltyPoints - * - * @param string $account_id The ID of the `loyalty account` in which to adjust the points. (required) - * @param \SquareConnect\Model\AdjustLoyaltyPointsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\AdjustLoyaltyPointsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function adjustLoyaltyPointsWithHttpInfo($account_id, $body) - { - - // verify the required parameter 'account_id' is set - if ($account_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $account_id when calling adjustLoyaltyPoints'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling adjustLoyaltyPoints'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/accounts/{account_id}/adjust"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($account_id !== null) { - $resourcePath = str_replace( - "{" . "account_id" . "}", - $this->apiClient->getSerializer()->toPathValue($account_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\AdjustLoyaltyPointsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\AdjustLoyaltyPointsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\AdjustLoyaltyPointsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * calculateLoyaltyPoints - * - * CalculateLoyaltyPoints - * Note: This endpoint is in beta. - * - * @param string $program_id The `loyalty program` ID, which defines the rules for accruing points. (required) - * @param \SquareConnect\Model\CalculateLoyaltyPointsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CalculateLoyaltyPointsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function calculateLoyaltyPoints($program_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->calculateLoyaltyPointsWithHttpInfo ($program_id, $body); - return $response; - } - - - /** - * calculateLoyaltyPointsWithHttpInfo - * - * CalculateLoyaltyPoints - * - * @param string $program_id The `loyalty program` ID, which defines the rules for accruing points. (required) - * @param \SquareConnect\Model\CalculateLoyaltyPointsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CalculateLoyaltyPointsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function calculateLoyaltyPointsWithHttpInfo($program_id, $body) - { - - // verify the required parameter 'program_id' is set - if ($program_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $program_id when calling calculateLoyaltyPoints'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling calculateLoyaltyPoints'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/programs/{program_id}/calculate"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($program_id !== null) { - $resourcePath = str_replace( - "{" . "program_id" . "}", - $this->apiClient->getSerializer()->toPathValue($program_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CalculateLoyaltyPointsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CalculateLoyaltyPointsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CalculateLoyaltyPointsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createLoyaltyAccount - * - * CreateLoyaltyAccount - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\CreateLoyaltyAccountRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateLoyaltyAccountResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createLoyaltyAccount($body) - { - list($response, $statusCode, $httpHeader) = $this->createLoyaltyAccountWithHttpInfo ($body); - return $response; - } - - - /** - * createLoyaltyAccountWithHttpInfo - * - * CreateLoyaltyAccount - * - * @param \SquareConnect\Model\CreateLoyaltyAccountRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateLoyaltyAccountResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createLoyaltyAccountWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createLoyaltyAccount'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/accounts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateLoyaltyAccountResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateLoyaltyAccountResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateLoyaltyAccountResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createLoyaltyReward - * - * CreateLoyaltyReward - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\CreateLoyaltyRewardRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateLoyaltyRewardResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createLoyaltyReward($body) - { - list($response, $statusCode, $httpHeader) = $this->createLoyaltyRewardWithHttpInfo ($body); - return $response; - } - - - /** - * createLoyaltyRewardWithHttpInfo - * - * CreateLoyaltyReward - * - * @param \SquareConnect\Model\CreateLoyaltyRewardRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateLoyaltyRewardResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createLoyaltyRewardWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createLoyaltyReward'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/rewards"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateLoyaltyRewardResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateLoyaltyRewardResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateLoyaltyRewardResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * deleteLoyaltyReward - * - * DeleteLoyaltyReward - * Note: This endpoint is in beta. - * - * @param string $reward_id The ID of the `loyalty reward` to delete. (required) - * @return \SquareConnect\Model\DeleteLoyaltyRewardResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteLoyaltyReward($reward_id) - { - list($response, $statusCode, $httpHeader) = $this->deleteLoyaltyRewardWithHttpInfo ($reward_id); - return $response; - } - - - /** - * deleteLoyaltyRewardWithHttpInfo - * - * DeleteLoyaltyReward - * - * @param string $reward_id The ID of the `loyalty reward` to delete. (required) - * @return Array of \SquareConnect\Model\DeleteLoyaltyRewardResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteLoyaltyRewardWithHttpInfo($reward_id) - { - - // verify the required parameter 'reward_id' is set - if ($reward_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $reward_id when calling deleteLoyaltyReward'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/rewards/{reward_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($reward_id !== null) { - $resourcePath = str_replace( - "{" . "reward_id" . "}", - $this->apiClient->getSerializer()->toPathValue($reward_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\DeleteLoyaltyRewardResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\DeleteLoyaltyRewardResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\DeleteLoyaltyRewardResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listLoyaltyPrograms - * - * ListLoyaltyPrograms - * Note: This endpoint is in beta. - * - * @return \SquareConnect\Model\ListLoyaltyProgramsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listLoyaltyPrograms() - { - list($response, $statusCode, $httpHeader) = $this->listLoyaltyProgramsWithHttpInfo (); - return $response; - } - - - /** - * listLoyaltyProgramsWithHttpInfo - * - * ListLoyaltyPrograms - * - * @return Array of \SquareConnect\Model\ListLoyaltyProgramsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listLoyaltyProgramsWithHttpInfo() - { - - - // parse inputs - $resourcePath = "/v2/loyalty/programs"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListLoyaltyProgramsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListLoyaltyProgramsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListLoyaltyProgramsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * redeemLoyaltyReward - * - * RedeemLoyaltyReward - * Note: This endpoint is in beta. - * - * @param string $reward_id The ID of the `loyalty reward` to redeem. (required) - * @param \SquareConnect\Model\RedeemLoyaltyRewardRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\RedeemLoyaltyRewardResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function redeemLoyaltyReward($reward_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->redeemLoyaltyRewardWithHttpInfo ($reward_id, $body); - return $response; - } - - - /** - * redeemLoyaltyRewardWithHttpInfo - * - * RedeemLoyaltyReward - * - * @param string $reward_id The ID of the `loyalty reward` to redeem. (required) - * @param \SquareConnect\Model\RedeemLoyaltyRewardRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\RedeemLoyaltyRewardResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function redeemLoyaltyRewardWithHttpInfo($reward_id, $body) - { - - // verify the required parameter 'reward_id' is set - if ($reward_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $reward_id when calling redeemLoyaltyReward'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling redeemLoyaltyReward'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/rewards/{reward_id}/redeem"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($reward_id !== null) { - $resourcePath = str_replace( - "{" . "reward_id" . "}", - $this->apiClient->getSerializer()->toPathValue($reward_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RedeemLoyaltyRewardResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RedeemLoyaltyRewardResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RedeemLoyaltyRewardResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveLoyaltyAccount - * - * RetrieveLoyaltyAccount - * Note: This endpoint is in beta. - * - * @param string $account_id The ID of the `loyalty account` to retrieve. (required) - * @return \SquareConnect\Model\RetrieveLoyaltyAccountResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveLoyaltyAccount($account_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveLoyaltyAccountWithHttpInfo ($account_id); - return $response; - } - - - /** - * retrieveLoyaltyAccountWithHttpInfo - * - * RetrieveLoyaltyAccount - * - * @param string $account_id The ID of the `loyalty account` to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveLoyaltyAccountResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveLoyaltyAccountWithHttpInfo($account_id) - { - - // verify the required parameter 'account_id' is set - if ($account_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $account_id when calling retrieveLoyaltyAccount'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/accounts/{account_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($account_id !== null) { - $resourcePath = str_replace( - "{" . "account_id" . "}", - $this->apiClient->getSerializer()->toPathValue($account_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveLoyaltyAccountResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveLoyaltyAccountResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveLoyaltyAccountResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveLoyaltyReward - * - * RetrieveLoyaltyReward - * Note: This endpoint is in beta. - * - * @param string $reward_id The ID of the `loyalty reward` to retrieve. (required) - * @return \SquareConnect\Model\RetrieveLoyaltyRewardResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveLoyaltyReward($reward_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveLoyaltyRewardWithHttpInfo ($reward_id); - return $response; - } - - - /** - * retrieveLoyaltyRewardWithHttpInfo - * - * RetrieveLoyaltyReward - * - * @param string $reward_id The ID of the `loyalty reward` to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveLoyaltyRewardResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveLoyaltyRewardWithHttpInfo($reward_id) - { - - // verify the required parameter 'reward_id' is set - if ($reward_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $reward_id when calling retrieveLoyaltyReward'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/rewards/{reward_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($reward_id !== null) { - $resourcePath = str_replace( - "{" . "reward_id" . "}", - $this->apiClient->getSerializer()->toPathValue($reward_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveLoyaltyRewardResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveLoyaltyRewardResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveLoyaltyRewardResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * searchLoyaltyAccounts - * - * SearchLoyaltyAccounts - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\SearchLoyaltyAccountsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\SearchLoyaltyAccountsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchLoyaltyAccounts($body) - { - list($response, $statusCode, $httpHeader) = $this->searchLoyaltyAccountsWithHttpInfo ($body); - return $response; - } - - - /** - * searchLoyaltyAccountsWithHttpInfo - * - * SearchLoyaltyAccounts - * - * @param \SquareConnect\Model\SearchLoyaltyAccountsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\SearchLoyaltyAccountsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchLoyaltyAccountsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling searchLoyaltyAccounts'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/accounts/search"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SearchLoyaltyAccountsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SearchLoyaltyAccountsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SearchLoyaltyAccountsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * searchLoyaltyEvents - * - * SearchLoyaltyEvents - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\SearchLoyaltyEventsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\SearchLoyaltyEventsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchLoyaltyEvents($body) - { - list($response, $statusCode, $httpHeader) = $this->searchLoyaltyEventsWithHttpInfo ($body); - return $response; - } - - - /** - * searchLoyaltyEventsWithHttpInfo - * - * SearchLoyaltyEvents - * - * @param \SquareConnect\Model\SearchLoyaltyEventsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\SearchLoyaltyEventsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchLoyaltyEventsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling searchLoyaltyEvents'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/events/search"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SearchLoyaltyEventsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SearchLoyaltyEventsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SearchLoyaltyEventsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * searchLoyaltyRewards - * - * SearchLoyaltyRewards - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\SearchLoyaltyRewardsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\SearchLoyaltyRewardsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchLoyaltyRewards($body) - { - list($response, $statusCode, $httpHeader) = $this->searchLoyaltyRewardsWithHttpInfo ($body); - return $response; - } - - - /** - * searchLoyaltyRewardsWithHttpInfo - * - * SearchLoyaltyRewards - * - * @param \SquareConnect\Model\SearchLoyaltyRewardsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\SearchLoyaltyRewardsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchLoyaltyRewardsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling searchLoyaltyRewards'); - } - - // parse inputs - $resourcePath = "/v2/loyalty/rewards/search"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SearchLoyaltyRewardsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SearchLoyaltyRewardsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SearchLoyaltyRewardsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/MerchantsApi.php b/includes/classes/vendors/square/connect/lib/Api/MerchantsApi.php deleted file mode 100644 index a4df2b0d95..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/MerchantsApi.php +++ /dev/null @@ -1,251 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return MerchantsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * listMerchants - * - * ListMerchants - * - * @param int $cursor The cursor generated by the previous response. (optional) - * @return \SquareConnect\Model\ListMerchantsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listMerchants($cursor = null) - { - list($response, $statusCode, $httpHeader) = $this->listMerchantsWithHttpInfo ($cursor); - return $response; - } - - - /** - * listMerchantsWithHttpInfo - * - * ListMerchants - * - * @param int $cursor The cursor generated by the previous response. (optional) - * @return Array of \SquareConnect\Model\ListMerchantsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listMerchantsWithHttpInfo($cursor = null) - { - - - // parse inputs - $resourcePath = "/v2/merchants"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListMerchantsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListMerchantsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListMerchantsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveMerchant - * - * RetrieveMerchant - * - * @param string $merchant_id The ID of the merchant to retrieve. (required) - * @return \SquareConnect\Model\RetrieveMerchantResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveMerchant($merchant_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveMerchantWithHttpInfo ($merchant_id); - return $response; - } - - - /** - * retrieveMerchantWithHttpInfo - * - * RetrieveMerchant - * - * @param string $merchant_id The ID of the merchant to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveMerchantResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveMerchantWithHttpInfo($merchant_id) - { - - // verify the required parameter 'merchant_id' is set - if ($merchant_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $merchant_id when calling retrieveMerchant'); - } - - // parse inputs - $resourcePath = "/v2/merchants/{merchant_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($merchant_id !== null) { - $resourcePath = str_replace( - "{" . "merchant_id" . "}", - $this->apiClient->getSerializer()->toPathValue($merchant_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveMerchantResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveMerchantResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveMerchantResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/MobileAuthorizationApi.php b/includes/classes/vendors/square/connect/lib/Api/MobileAuthorizationApi.php deleted file mode 100644 index ba6b056274..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/MobileAuthorizationApi.php +++ /dev/null @@ -1,160 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return MobileAuthorizationApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * createMobileAuthorizationCode - * - * CreateMobileAuthorizationCode - * - * @param \SquareConnect\Model\CreateMobileAuthorizationCodeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateMobileAuthorizationCodeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createMobileAuthorizationCode($body) - { - list($response, $statusCode, $httpHeader) = $this->createMobileAuthorizationCodeWithHttpInfo ($body); - return $response; - } - - - /** - * createMobileAuthorizationCodeWithHttpInfo - * - * CreateMobileAuthorizationCode - * - * @param \SquareConnect\Model\CreateMobileAuthorizationCodeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateMobileAuthorizationCodeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createMobileAuthorizationCodeWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createMobileAuthorizationCode'); - } - - // parse inputs - $resourcePath = "/mobile/authorization-code"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateMobileAuthorizationCodeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateMobileAuthorizationCodeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateMobileAuthorizationCodeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/OAuthApi.php b/includes/classes/vendors/square/connect/lib/Api/OAuthApi.php deleted file mode 100644 index a4bd258b43..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/OAuthApi.php +++ /dev/null @@ -1,360 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return OAuthApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * obtainToken - * - * ObtainToken - * - * @param \SquareConnect\Model\ObtainTokenRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\ObtainTokenResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function obtainToken($body) - { - list($response, $statusCode, $httpHeader) = $this->obtainTokenWithHttpInfo ($body); - return $response; - } - - - /** - * obtainTokenWithHttpInfo - * - * ObtainToken - * - * @param \SquareConnect\Model\ObtainTokenRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\ObtainTokenResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function obtainTokenWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling obtainToken'); - } - - // parse inputs - $resourcePath = "/oauth2/token"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ObtainTokenResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ObtainTokenResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ObtainTokenResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * renewToken - * - * RenewToken - * - * @param string $client_id Your application ID, available from the [application dashboard](https://connect.squareup.com/apps). (required) - * @param \SquareConnect\Model\RenewTokenRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\RenewTokenResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function renewToken($client_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: OAuthApi.renewToken\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->renewTokenWithHttpInfo ($client_id, $body); - return $response; - } - - - /** - * renewTokenWithHttpInfo - * - * RenewToken - * - * @param string $client_id Your application ID, available from the [application dashboard](https://connect.squareup.com/apps). (required) - * @param \SquareConnect\Model\RenewTokenRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\RenewTokenResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function renewTokenWithHttpInfo($client_id, $body) - { - - // verify the required parameter 'client_id' is set - if ($client_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $client_id when calling renewToken'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling renewToken'); - } - - // parse inputs - $resourcePath = "/oauth2/clients/{client_id}/access-token/renew"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($client_id !== null) { - $resourcePath = str_replace( - "{" . "client_id" . "}", - $this->apiClient->getSerializer()->toPathValue($client_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires API key authentication - $apiKey = $this->apiClient->getApiKeyWithPrefix('Authorization'); - if (strlen($apiKey) !== 0) { - $headerParams['Authorization'] = $apiKey; - } - - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RenewTokenResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RenewTokenResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RenewTokenResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * revokeToken - * - * RevokeToken - * - * @param \SquareConnect\Model\RevokeTokenRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\RevokeTokenResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function revokeToken($body) - { - list($response, $statusCode, $httpHeader) = $this->revokeTokenWithHttpInfo ($body); - return $response; - } - - - /** - * revokeTokenWithHttpInfo - * - * RevokeToken - * - * @param \SquareConnect\Model\RevokeTokenRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\RevokeTokenResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function revokeTokenWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling revokeToken'); - } - - // parse inputs - $resourcePath = "/oauth2/revoke"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires API key authentication - $apiKey = $this->apiClient->getApiKeyWithPrefix('Authorization'); - if (strlen($apiKey) !== 0) { - $headerParams['Authorization'] = $apiKey; - } - - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RevokeTokenResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RevokeTokenResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RevokeTokenResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/OrdersApi.php b/includes/classes/vendors/square/connect/lib/Api/OrdersApi.php deleted file mode 100644 index 323f2c1132..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/OrdersApi.php +++ /dev/null @@ -1,693 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return OrdersApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * batchRetrieveOrders - * - * BatchRetrieveOrders - * - * @param string $location_id The ID of the orders' associated location. (required) - * @param \SquareConnect\Model\BatchRetrieveOrdersRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\BatchRetrieveOrdersResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchRetrieveOrders($location_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->batchRetrieveOrdersWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * batchRetrieveOrdersWithHttpInfo - * - * BatchRetrieveOrders - * - * @param string $location_id The ID of the orders' associated location. (required) - * @param \SquareConnect\Model\BatchRetrieveOrdersRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\BatchRetrieveOrdersResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function batchRetrieveOrdersWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling batchRetrieveOrders'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling batchRetrieveOrders'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/orders/batch-retrieve"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\BatchRetrieveOrdersResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\BatchRetrieveOrdersResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\BatchRetrieveOrdersResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * calculateOrder - * - * CalculateOrder - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\CalculateOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CalculateOrderResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function calculateOrder($body) - { - list($response, $statusCode, $httpHeader) = $this->calculateOrderWithHttpInfo ($body); - return $response; - } - - - /** - * calculateOrderWithHttpInfo - * - * CalculateOrder - * - * @param \SquareConnect\Model\CalculateOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CalculateOrderResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function calculateOrderWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling calculateOrder'); - } - - // parse inputs - $resourcePath = "/v2/orders/calculate"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CalculateOrderResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CalculateOrderResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CalculateOrderResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createOrder - * - * CreateOrder - * - * @param string $location_id The ID of the business location to associate the order with. (required) - * @param \SquareConnect\Model\CreateOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateOrderResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createOrder($location_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->createOrderWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createOrderWithHttpInfo - * - * CreateOrder - * - * @param string $location_id The ID of the business location to associate the order with. (required) - * @param \SquareConnect\Model\CreateOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateOrderResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createOrderWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createOrder'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createOrder'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/orders"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateOrderResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateOrderResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateOrderResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * payOrder - * - * PayOrder - * Note: This endpoint is in beta. - * - * @param string $order_id The ID of the order being paid. (required) - * @param \SquareConnect\Model\PayOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\PayOrderResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function payOrder($order_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->payOrderWithHttpInfo ($order_id, $body); - return $response; - } - - - /** - * payOrderWithHttpInfo - * - * PayOrder - * - * @param string $order_id The ID of the order being paid. (required) - * @param \SquareConnect\Model\PayOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\PayOrderResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function payOrderWithHttpInfo($order_id, $body) - { - - // verify the required parameter 'order_id' is set - if ($order_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $order_id when calling payOrder'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling payOrder'); - } - - // parse inputs - $resourcePath = "/v2/orders/{order_id}/pay"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($order_id !== null) { - $resourcePath = str_replace( - "{" . "order_id" . "}", - $this->apiClient->getSerializer()->toPathValue($order_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\PayOrderResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\PayOrderResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\PayOrderResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * searchOrders - * - * SearchOrders - * - * @param \SquareConnect\Model\SearchOrdersRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\SearchOrdersResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchOrders($body) - { - list($response, $statusCode, $httpHeader) = $this->searchOrdersWithHttpInfo ($body); - return $response; - } - - - /** - * searchOrdersWithHttpInfo - * - * SearchOrders - * - * @param \SquareConnect\Model\SearchOrdersRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\SearchOrdersResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchOrdersWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling searchOrders'); - } - - // parse inputs - $resourcePath = "/v2/orders/search"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SearchOrdersResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SearchOrdersResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SearchOrdersResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateOrder - * - * UpdateOrder - * Note: This endpoint is in beta. - * - * @param string $location_id The ID of the order's associated location. (required) - * @param string $order_id The ID of the order to update. (required) - * @param \SquareConnect\Model\UpdateOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\UpdateOrderResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateOrder($location_id, $order_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateOrderWithHttpInfo ($location_id, $order_id, $body); - return $response; - } - - - /** - * updateOrderWithHttpInfo - * - * UpdateOrder - * - * @param string $location_id The ID of the order's associated location. (required) - * @param string $order_id The ID of the order to update. (required) - * @param \SquareConnect\Model\UpdateOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\UpdateOrderResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateOrderWithHttpInfo($location_id, $order_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateOrder'); - } - // verify the required parameter 'order_id' is set - if ($order_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $order_id when calling updateOrder'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateOrder'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/orders/{order_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($order_id !== null) { - $resourcePath = str_replace( - "{" . "order_id" . "}", - $this->apiClient->getSerializer()->toPathValue($order_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\UpdateOrderResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\UpdateOrderResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\UpdateOrderResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php b/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php deleted file mode 100644 index 66dfe7275a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php +++ /dev/null @@ -1,674 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return PaymentsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * cancelPayment - * - * CancelPayment - * - * @param string $payment_id `payment_id` identifying the payment to be canceled. (required) - * @return \SquareConnect\Model\CancelPaymentResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function cancelPayment($payment_id) - { - list($response, $statusCode, $httpHeader) = $this->cancelPaymentWithHttpInfo ($payment_id); - return $response; - } - - - /** - * cancelPaymentWithHttpInfo - * - * CancelPayment - * - * @param string $payment_id `payment_id` identifying the payment to be canceled. (required) - * @return Array of \SquareConnect\Model\CancelPaymentResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function cancelPaymentWithHttpInfo($payment_id) - { - - // verify the required parameter 'payment_id' is set - if ($payment_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $payment_id when calling cancelPayment'); - } - - // parse inputs - $resourcePath = "/v2/payments/{payment_id}/cancel"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($payment_id !== null) { - $resourcePath = str_replace( - "{" . "payment_id" . "}", - $this->apiClient->getSerializer()->toPathValue($payment_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CancelPaymentResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CancelPaymentResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CancelPaymentResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * cancelPaymentByIdempotencyKey - * - * CancelPaymentByIdempotencyKey - * - * @param \SquareConnect\Model\CancelPaymentByIdempotencyKeyRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CancelPaymentByIdempotencyKeyResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function cancelPaymentByIdempotencyKey($body) - { - list($response, $statusCode, $httpHeader) = $this->cancelPaymentByIdempotencyKeyWithHttpInfo ($body); - return $response; - } - - - /** - * cancelPaymentByIdempotencyKeyWithHttpInfo - * - * CancelPaymentByIdempotencyKey - * - * @param \SquareConnect\Model\CancelPaymentByIdempotencyKeyRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CancelPaymentByIdempotencyKeyResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function cancelPaymentByIdempotencyKeyWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling cancelPaymentByIdempotencyKey'); - } - - // parse inputs - $resourcePath = "/v2/payments/cancel"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CancelPaymentByIdempotencyKeyResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CancelPaymentByIdempotencyKeyResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CancelPaymentByIdempotencyKeyResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * completePayment - * - * CompletePayment - * - * @param string $payment_id Unique ID identifying the payment to be completed. (required) - * @param \SquareConnect\Model\CompletePaymentRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CompletePaymentResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function completePayment($payment_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->completePaymentWithHttpInfo ($payment_id, $body); - return $response; - } - - - /** - * completePaymentWithHttpInfo - * - * CompletePayment - * - * @param string $payment_id Unique ID identifying the payment to be completed. (required) - * @param \SquareConnect\Model\CompletePaymentRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CompletePaymentResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function completePaymentWithHttpInfo($payment_id, $body) - { - - // verify the required parameter 'payment_id' is set - if ($payment_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $payment_id when calling completePayment'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling completePayment'); - } - - // parse inputs - $resourcePath = "/v2/payments/{payment_id}/complete"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($payment_id !== null) { - $resourcePath = str_replace( - "{" . "payment_id" . "}", - $this->apiClient->getSerializer()->toPathValue($payment_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CompletePaymentResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CompletePaymentResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CompletePaymentResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createPayment - * - * CreatePayment - * - * @param \SquareConnect\Model\CreatePaymentRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreatePaymentResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createPayment($body) - { - list($response, $statusCode, $httpHeader) = $this->createPaymentWithHttpInfo ($body); - return $response; - } - - - /** - * createPaymentWithHttpInfo - * - * CreatePayment - * - * @param \SquareConnect\Model\CreatePaymentRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreatePaymentResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createPaymentWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createPayment'); - } - - // parse inputs - $resourcePath = "/v2/payments"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreatePaymentResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreatePaymentResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreatePaymentResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * getPayment - * - * GetPayment - * - * @param string $payment_id Unique ID for the desired `Payment`. (required) - * @return \SquareConnect\Model\GetPaymentResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getPayment($payment_id) - { - list($response, $statusCode, $httpHeader) = $this->getPaymentWithHttpInfo ($payment_id); - return $response; - } - - - /** - * getPaymentWithHttpInfo - * - * GetPayment - * - * @param string $payment_id Unique ID for the desired `Payment`. (required) - * @return Array of \SquareConnect\Model\GetPaymentResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getPaymentWithHttpInfo($payment_id) - { - - // verify the required parameter 'payment_id' is set - if ($payment_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $payment_id when calling getPayment'); - } - - // parse inputs - $resourcePath = "/v2/payments/{payment_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($payment_id !== null) { - $resourcePath = str_replace( - "{" . "payment_id" . "}", - $this->apiClient->getSerializer()->toPathValue($payment_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetPaymentResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetPaymentResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetPaymentResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listPayments - * - * ListPayments - * - * @param string $begin_time Timestamp for the beginning of the reporting period, in RFC 3339 format. Inclusive. Default: The current time minus one year. (optional) - * @param string $end_time Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. (optional) - * @param string $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. (optional) - * @param string $location_id Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. (optional) - * @param int $total The exact amount in the total_money for a `Payment`. (optional) - * @param string $last_4 The last 4 digits of `Payment` card. (optional) - * @param string $card_brand The brand of `Payment` card. For example, `VISA` (optional) - * @return \SquareConnect\Model\ListPaymentsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listPayments($begin_time = null, $end_time = null, $sort_order = null, $cursor = null, $location_id = null, $total = null, $last_4 = null, $card_brand = null) - { - list($response, $statusCode, $httpHeader) = $this->listPaymentsWithHttpInfo ($begin_time, $end_time, $sort_order, $cursor, $location_id, $total, $last_4, $card_brand); - return $response; - } - - - /** - * listPaymentsWithHttpInfo - * - * ListPayments - * - * @param string $begin_time Timestamp for the beginning of the reporting period, in RFC 3339 format. Inclusive. Default: The current time minus one year. (optional) - * @param string $end_time Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. (optional) - * @param string $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. (optional) - * @param string $location_id Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. (optional) - * @param int $total The exact amount in the total_money for a `Payment`. (optional) - * @param string $last_4 The last 4 digits of `Payment` card. (optional) - * @param string $card_brand The brand of `Payment` card. For example, `VISA` (optional) - * @return Array of \SquareConnect\Model\ListPaymentsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listPaymentsWithHttpInfo($begin_time = null, $end_time = null, $sort_order = null, $cursor = null, $location_id = null, $total = null, $last_4 = null, $card_brand = null) - { - - - // parse inputs - $resourcePath = "/v2/payments"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($sort_order !== null) { - $queryParams['sort_order'] = $this->apiClient->getSerializer()->toQueryValue($sort_order); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - }// query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - }// query params - if ($total !== null) { - $queryParams['total'] = $this->apiClient->getSerializer()->toQueryValue($total); - }// query params - if ($last_4 !== null) { - $queryParams['last_4'] = $this->apiClient->getSerializer()->toQueryValue($last_4); - }// query params - if ($card_brand !== null) { - $queryParams['card_brand'] = $this->apiClient->getSerializer()->toQueryValue($card_brand); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListPaymentsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListPaymentsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListPaymentsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/RefundsApi.php b/includes/classes/vendors/square/connect/lib/Api/RefundsApi.php deleted file mode 100644 index 66b7a494e4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/RefundsApi.php +++ /dev/null @@ -1,374 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return RefundsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * getPaymentRefund - * - * GetPaymentRefund - * - * @param string $refund_id Unique ID for the desired `PaymentRefund`. (required) - * @return \SquareConnect\Model\GetPaymentRefundResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getPaymentRefund($refund_id) - { - list($response, $statusCode, $httpHeader) = $this->getPaymentRefundWithHttpInfo ($refund_id); - return $response; - } - - - /** - * getPaymentRefundWithHttpInfo - * - * GetPaymentRefund - * - * @param string $refund_id Unique ID for the desired `PaymentRefund`. (required) - * @return Array of \SquareConnect\Model\GetPaymentRefundResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getPaymentRefundWithHttpInfo($refund_id) - { - - // verify the required parameter 'refund_id' is set - if ($refund_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $refund_id when calling getPaymentRefund'); - } - - // parse inputs - $resourcePath = "/v2/refunds/{refund_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($refund_id !== null) { - $resourcePath = str_replace( - "{" . "refund_id" . "}", - $this->apiClient->getSerializer()->toPathValue($refund_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetPaymentRefundResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetPaymentRefundResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetPaymentRefundResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listPaymentRefunds - * - * ListPaymentRefunds - * - * @param string $begin_time Timestamp for the beginning of the requested reporting period, in RFC 3339 format. Default: The current time minus one year. (optional) - * @param string $end_time Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. (optional) - * @param string $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. (optional) - * @param string $location_id ID of location associated with payment. (optional) - * @param string $status If provided, only refunds with the given status are returned. For a list of refund status values, see `PaymentRefund`. Default: If omitted refunds are returned regardless of status. (optional) - * @param string $source_type If provided, only refunds with the given source type are returned. - `CARD` - List refunds only for payments where card was specified as payment source. Default: If omitted refunds are returned regardless of source type. (optional) - * @return \SquareConnect\Model\ListPaymentRefundsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listPaymentRefunds($begin_time = null, $end_time = null, $sort_order = null, $cursor = null, $location_id = null, $status = null, $source_type = null) - { - list($response, $statusCode, $httpHeader) = $this->listPaymentRefundsWithHttpInfo ($begin_time, $end_time, $sort_order, $cursor, $location_id, $status, $source_type); - return $response; - } - - - /** - * listPaymentRefundsWithHttpInfo - * - * ListPaymentRefunds - * - * @param string $begin_time Timestamp for the beginning of the requested reporting period, in RFC 3339 format. Default: The current time minus one year. (optional) - * @param string $end_time Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. (optional) - * @param string $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. (optional) - * @param string $location_id ID of location associated with payment. (optional) - * @param string $status If provided, only refunds with the given status are returned. For a list of refund status values, see `PaymentRefund`. Default: If omitted refunds are returned regardless of status. (optional) - * @param string $source_type If provided, only refunds with the given source type are returned. - `CARD` - List refunds only for payments where card was specified as payment source. Default: If omitted refunds are returned regardless of source type. (optional) - * @return Array of \SquareConnect\Model\ListPaymentRefundsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listPaymentRefundsWithHttpInfo($begin_time = null, $end_time = null, $sort_order = null, $cursor = null, $location_id = null, $status = null, $source_type = null) - { - - - // parse inputs - $resourcePath = "/v2/refunds"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($sort_order !== null) { - $queryParams['sort_order'] = $this->apiClient->getSerializer()->toQueryValue($sort_order); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - }// query params - if ($location_id !== null) { - $queryParams['location_id'] = $this->apiClient->getSerializer()->toQueryValue($location_id); - }// query params - if ($status !== null) { - $queryParams['status'] = $this->apiClient->getSerializer()->toQueryValue($status); - }// query params - if ($source_type !== null) { - $queryParams['source_type'] = $this->apiClient->getSerializer()->toQueryValue($source_type); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListPaymentRefundsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListPaymentRefundsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListPaymentRefundsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * refundPayment - * - * RefundPayment - * - * @param \SquareConnect\Model\RefundPaymentRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\RefundPaymentResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function refundPayment($body) - { - list($response, $statusCode, $httpHeader) = $this->refundPaymentWithHttpInfo ($body); - return $response; - } - - - /** - * refundPaymentWithHttpInfo - * - * RefundPayment - * - * @param \SquareConnect\Model\RefundPaymentRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\RefundPaymentResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function refundPaymentWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling refundPayment'); - } - - // parse inputs - $resourcePath = "/v2/refunds"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RefundPaymentResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RefundPaymentResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RefundPaymentResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/ReportingApi.php b/includes/classes/vendors/square/connect/lib/Api/ReportingApi.php deleted file mode 100644 index 1d2cc01f7b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/ReportingApi.php +++ /dev/null @@ -1,303 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return ReportingApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * @deprecated - * listAdditionalRecipientReceivableRefunds - * - * ListAdditionalRecipientReceivableRefunds - * - * @param string $location_id The ID of the location to list AdditionalRecipientReceivableRefunds for. (required) - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. (optional) - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @return \SquareConnect\Model\ListAdditionalRecipientReceivableRefundsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listAdditionalRecipientReceivableRefunds($location_id, $begin_time = null, $end_time = null, $sort_order = null, $cursor = null) - { - trigger_error("\x1B[33mCalling deprecated API: ReportingApi.listAdditionalRecipientReceivableRefunds\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listAdditionalRecipientReceivableRefundsWithHttpInfo ($location_id, $begin_time, $end_time, $sort_order, $cursor); - return $response; - } - - - /** - * listAdditionalRecipientReceivableRefundsWithHttpInfo - * - * ListAdditionalRecipientReceivableRefunds - * - * @param string $location_id The ID of the location to list AdditionalRecipientReceivableRefunds for. (required) - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. (optional) - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @return Array of \SquareConnect\Model\ListAdditionalRecipientReceivableRefundsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listAdditionalRecipientReceivableRefundsWithHttpInfo($location_id, $begin_time = null, $end_time = null, $sort_order = null, $cursor = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listAdditionalRecipientReceivableRefunds'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/additional-recipient-receivable-refunds"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($sort_order !== null) { - $queryParams['sort_order'] = $this->apiClient->getSerializer()->toQueryValue($sort_order); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListAdditionalRecipientReceivableRefundsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListAdditionalRecipientReceivableRefundsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListAdditionalRecipientReceivableRefundsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listAdditionalRecipientReceivables - * - * ListAdditionalRecipientReceivables - * - * @param string $location_id The ID of the location to list AdditionalRecipientReceivables for. (required) - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. (optional) - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @return \SquareConnect\Model\ListAdditionalRecipientReceivablesResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listAdditionalRecipientReceivables($location_id, $begin_time = null, $end_time = null, $sort_order = null, $cursor = null) - { - trigger_error("\x1B[33mCalling deprecated API: ReportingApi.listAdditionalRecipientReceivables\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listAdditionalRecipientReceivablesWithHttpInfo ($location_id, $begin_time, $end_time, $sort_order, $cursor); - return $response; - } - - - /** - * listAdditionalRecipientReceivablesWithHttpInfo - * - * ListAdditionalRecipientReceivables - * - * @param string $location_id The ID of the location to list AdditionalRecipientReceivables for. (required) - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. (optional) - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @return Array of \SquareConnect\Model\ListAdditionalRecipientReceivablesResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listAdditionalRecipientReceivablesWithHttpInfo($location_id, $begin_time = null, $end_time = null, $sort_order = null, $cursor = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listAdditionalRecipientReceivables'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/additional-recipient-receivables"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($sort_order !== null) { - $queryParams['sort_order'] = $this->apiClient->getSerializer()->toQueryValue($sort_order); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListAdditionalRecipientReceivablesResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListAdditionalRecipientReceivablesResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListAdditionalRecipientReceivablesResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/TerminalApi.php b/includes/classes/vendors/square/connect/lib/Api/TerminalApi.php deleted file mode 100644 index bfa828c7a6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/TerminalApi.php +++ /dev/null @@ -1,449 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return TerminalApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * cancelTerminalCheckout - * - * CancelTerminalCheckout - * Note: This endpoint is in beta. - * - * @param string $checkout_id Unique ID for the desired `TerminalCheckout` (required) - * @return \SquareConnect\Model\CancelTerminalCheckoutResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function cancelTerminalCheckout($checkout_id) - { - list($response, $statusCode, $httpHeader) = $this->cancelTerminalCheckoutWithHttpInfo ($checkout_id); - return $response; - } - - - /** - * cancelTerminalCheckoutWithHttpInfo - * - * CancelTerminalCheckout - * - * @param string $checkout_id Unique ID for the desired `TerminalCheckout` (required) - * @return Array of \SquareConnect\Model\CancelTerminalCheckoutResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function cancelTerminalCheckoutWithHttpInfo($checkout_id) - { - - // verify the required parameter 'checkout_id' is set - if ($checkout_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $checkout_id when calling cancelTerminalCheckout'); - } - - // parse inputs - $resourcePath = "/v2/terminals/checkouts/{checkout_id}/cancel"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($checkout_id !== null) { - $resourcePath = str_replace( - "{" . "checkout_id" . "}", - $this->apiClient->getSerializer()->toPathValue($checkout_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CancelTerminalCheckoutResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CancelTerminalCheckoutResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CancelTerminalCheckoutResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createTerminalCheckout - * - * CreateTerminalCheckout - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\CreateTerminalCheckoutRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateTerminalCheckoutResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createTerminalCheckout($body) - { - list($response, $statusCode, $httpHeader) = $this->createTerminalCheckoutWithHttpInfo ($body); - return $response; - } - - - /** - * createTerminalCheckoutWithHttpInfo - * - * CreateTerminalCheckout - * - * @param \SquareConnect\Model\CreateTerminalCheckoutRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateTerminalCheckoutResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createTerminalCheckoutWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createTerminalCheckout'); - } - - // parse inputs - $resourcePath = "/v2/terminals/checkouts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateTerminalCheckoutResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateTerminalCheckoutResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateTerminalCheckoutResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * getTerminalCheckout - * - * GetTerminalCheckout - * Note: This endpoint is in beta. - * - * @param string $checkout_id Unique ID for the desired `TerminalCheckout` (required) - * @return \SquareConnect\Model\GetTerminalCheckoutResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getTerminalCheckout($checkout_id) - { - list($response, $statusCode, $httpHeader) = $this->getTerminalCheckoutWithHttpInfo ($checkout_id); - return $response; - } - - - /** - * getTerminalCheckoutWithHttpInfo - * - * GetTerminalCheckout - * - * @param string $checkout_id Unique ID for the desired `TerminalCheckout` (required) - * @return Array of \SquareConnect\Model\GetTerminalCheckoutResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function getTerminalCheckoutWithHttpInfo($checkout_id) - { - - // verify the required parameter 'checkout_id' is set - if ($checkout_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $checkout_id when calling getTerminalCheckout'); - } - - // parse inputs - $resourcePath = "/v2/terminals/checkouts/{checkout_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($checkout_id !== null) { - $resourcePath = str_replace( - "{" . "checkout_id" . "}", - $this->apiClient->getSerializer()->toPathValue($checkout_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\GetTerminalCheckoutResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\GetTerminalCheckoutResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\GetTerminalCheckoutResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * searchTerminalCheckouts - * - * SearchTerminalCheckouts - * Note: This endpoint is in beta. - * - * @param \SquareConnect\Model\SearchTerminalCheckoutsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\SearchTerminalCheckoutsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchTerminalCheckouts($body) - { - list($response, $statusCode, $httpHeader) = $this->searchTerminalCheckoutsWithHttpInfo ($body); - return $response; - } - - - /** - * searchTerminalCheckoutsWithHttpInfo - * - * SearchTerminalCheckouts - * - * @param \SquareConnect\Model\SearchTerminalCheckoutsRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\SearchTerminalCheckoutsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function searchTerminalCheckoutsWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling searchTerminalCheckouts'); - } - - // parse inputs - $resourcePath = "/v2/terminals/checkouts/search"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\SearchTerminalCheckoutsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\SearchTerminalCheckoutsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\SearchTerminalCheckoutsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/TransactionsApi.php b/includes/classes/vendors/square/connect/lib/Api/TransactionsApi.php deleted file mode 100644 index 2e0baf245d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/TransactionsApi.php +++ /dev/null @@ -1,865 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return TransactionsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * @deprecated - * captureTransaction - * - * CaptureTransaction - * - * @param string $location_id (required) - * @param string $transaction_id (required) - * @return \SquareConnect\Model\CaptureTransactionResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function captureTransaction($location_id, $transaction_id) - { - trigger_error("\x1B[33mCalling deprecated API: TransactionsApi.captureTransaction\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->captureTransactionWithHttpInfo ($location_id, $transaction_id); - return $response; - } - - - /** - * captureTransactionWithHttpInfo - * - * CaptureTransaction - * - * @param string $location_id (required) - * @param string $transaction_id (required) - * @return Array of \SquareConnect\Model\CaptureTransactionResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function captureTransactionWithHttpInfo($location_id, $transaction_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling captureTransaction'); - } - // verify the required parameter 'transaction_id' is set - if ($transaction_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $transaction_id when calling captureTransaction'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/transactions/{transaction_id}/capture"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($transaction_id !== null) { - $resourcePath = str_replace( - "{" . "transaction_id" . "}", - $this->apiClient->getSerializer()->toPathValue($transaction_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CaptureTransactionResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CaptureTransactionResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CaptureTransactionResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * charge - * - * Charge - * - * @param string $location_id The ID of the location to associate the created transaction with. (required) - * @param \SquareConnect\Model\ChargeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\ChargeResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function charge($location_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: TransactionsApi.charge\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->chargeWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * chargeWithHttpInfo - * - * Charge - * - * @param string $location_id The ID of the location to associate the created transaction with. (required) - * @param \SquareConnect\Model\ChargeRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\ChargeResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function chargeWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling charge'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling charge'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/transactions"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ChargeResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ChargeResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ChargeResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createRefund - * - * CreateRefund - * - * @param string $location_id The ID of the original transaction's associated location. (required) - * @param string $transaction_id The ID of the original transaction that includes the tender to refund. (required) - * @param \SquareConnect\Model\CreateRefundRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\CreateRefundResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createRefund($location_id, $transaction_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: TransactionsApi.createRefund\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createRefundWithHttpInfo ($location_id, $transaction_id, $body); - return $response; - } - - - /** - * createRefundWithHttpInfo - * - * CreateRefund - * - * @param string $location_id The ID of the original transaction's associated location. (required) - * @param string $transaction_id The ID of the original transaction that includes the tender to refund. (required) - * @param \SquareConnect\Model\CreateRefundRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\CreateRefundResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createRefundWithHttpInfo($location_id, $transaction_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createRefund'); - } - // verify the required parameter 'transaction_id' is set - if ($transaction_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $transaction_id when calling createRefund'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createRefund'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/transactions/{transaction_id}/refund"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($transaction_id !== null) { - $resourcePath = str_replace( - "{" . "transaction_id" . "}", - $this->apiClient->getSerializer()->toPathValue($transaction_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\CreateRefundResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\CreateRefundResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\CreateRefundResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listRefunds - * - * ListRefunds - * - * @param string $location_id The ID of the location to list refunds for. (required) - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. (optional) - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @return \SquareConnect\Model\ListRefundsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listRefunds($location_id, $begin_time = null, $end_time = null, $sort_order = null, $cursor = null) - { - trigger_error("\x1B[33mCalling deprecated API: TransactionsApi.listRefunds\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listRefundsWithHttpInfo ($location_id, $begin_time, $end_time, $sort_order, $cursor); - return $response; - } - - - /** - * listRefundsWithHttpInfo - * - * ListRefunds - * - * @param string $location_id The ID of the location to list refunds for. (required) - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. (optional) - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @return Array of \SquareConnect\Model\ListRefundsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listRefundsWithHttpInfo($location_id, $begin_time = null, $end_time = null, $sort_order = null, $cursor = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listRefunds'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/refunds"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($sort_order !== null) { - $queryParams['sort_order'] = $this->apiClient->getSerializer()->toQueryValue($sort_order); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListRefundsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListRefundsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListRefundsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listTransactions - * - * ListTransactions - * - * @param string $location_id The ID of the location to list transactions for. (required) - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. (optional) - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @return \SquareConnect\Model\ListTransactionsResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listTransactions($location_id, $begin_time = null, $end_time = null, $sort_order = null, $cursor = null) - { - trigger_error("\x1B[33mCalling deprecated API: TransactionsApi.listTransactions\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listTransactionsWithHttpInfo ($location_id, $begin_time, $end_time, $sort_order, $cursor); - return $response; - } - - - /** - * listTransactionsWithHttpInfo - * - * ListTransactions - * - * @param string $location_id The ID of the location to list transactions for. (required) - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. (optional) - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` (optional) - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. (optional) - * @return Array of \SquareConnect\Model\ListTransactionsResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listTransactionsWithHttpInfo($location_id, $begin_time = null, $end_time = null, $sort_order = null, $cursor = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listTransactions'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/transactions"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($sort_order !== null) { - $queryParams['sort_order'] = $this->apiClient->getSerializer()->toQueryValue($sort_order); - }// query params - if ($cursor !== null) { - $queryParams['cursor'] = $this->apiClient->getSerializer()->toQueryValue($cursor); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\ListTransactionsResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\ListTransactionsResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ListTransactionsResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * retrieveTransaction - * - * RetrieveTransaction - * - * @param string $location_id The ID of the transaction's associated location. (required) - * @param string $transaction_id The ID of the transaction to retrieve. (required) - * @return \SquareConnect\Model\RetrieveTransactionResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveTransaction($location_id, $transaction_id) - { - trigger_error("\x1B[33mCalling deprecated API: TransactionsApi.retrieveTransaction\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->retrieveTransactionWithHttpInfo ($location_id, $transaction_id); - return $response; - } - - - /** - * retrieveTransactionWithHttpInfo - * - * RetrieveTransaction - * - * @param string $location_id The ID of the transaction's associated location. (required) - * @param string $transaction_id The ID of the transaction to retrieve. (required) - * @return Array of \SquareConnect\Model\RetrieveTransactionResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveTransactionWithHttpInfo($location_id, $transaction_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveTransaction'); - } - // verify the required parameter 'transaction_id' is set - if ($transaction_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $transaction_id when calling retrieveTransaction'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/transactions/{transaction_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($transaction_id !== null) { - $resourcePath = str_replace( - "{" . "transaction_id" . "}", - $this->apiClient->getSerializer()->toPathValue($transaction_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\RetrieveTransactionResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\RetrieveTransactionResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\RetrieveTransactionResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * voidTransaction - * - * VoidTransaction - * - * @param string $location_id (required) - * @param string $transaction_id (required) - * @return \SquareConnect\Model\VoidTransactionResponse - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function voidTransaction($location_id, $transaction_id) - { - trigger_error("\x1B[33mCalling deprecated API: TransactionsApi.voidTransaction\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->voidTransactionWithHttpInfo ($location_id, $transaction_id); - return $response; - } - - - /** - * voidTransactionWithHttpInfo - * - * VoidTransaction - * - * @param string $location_id (required) - * @param string $transaction_id (required) - * @return Array of \SquareConnect\Model\VoidTransactionResponse, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function voidTransactionWithHttpInfo($location_id, $transaction_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling voidTransaction'); - } - // verify the required parameter 'transaction_id' is set - if ($transaction_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $transaction_id when calling voidTransaction'); - } - - // parse inputs - $resourcePath = "/v2/locations/{location_id}/transactions/{transaction_id}/void"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($transaction_id !== null) { - $resourcePath = str_replace( - "{" . "transaction_id" . "}", - $this->apiClient->getSerializer()->toPathValue($transaction_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\VoidTransactionResponse' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\VoidTransactionResponse', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\VoidTransactionResponse', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/V1EmployeesApi.php b/includes/classes/vendors/square/connect/lib/Api/V1EmployeesApi.php deleted file mode 100644 index 8cd6deb7ae..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/V1EmployeesApi.php +++ /dev/null @@ -1,1744 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return V1EmployeesApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * createEmployee - * - * CreateEmployee - * - * @param \SquareConnect\Model\V1Employee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Employee - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createEmployee($body) - { - list($response, $statusCode, $httpHeader) = $this->createEmployeeWithHttpInfo ($body); - return $response; - } - - - /** - * createEmployeeWithHttpInfo - * - * CreateEmployee - * - * @param \SquareConnect\Model\V1Employee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Employee, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createEmployeeWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createEmployee'); - } - - // parse inputs - $resourcePath = "/v1/me/employees"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Employee' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Employee', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Employee', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * createEmployeeRole - * - * CreateEmployeeRole - * - * @param \SquareConnect\Model\V1EmployeeRole $employee_role An EmployeeRole object with a name and permissions, and an optional owner flag. (required) - * @return \SquareConnect\Model\V1EmployeeRole - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createEmployeeRole($employee_role) - { - list($response, $statusCode, $httpHeader) = $this->createEmployeeRoleWithHttpInfo ($employee_role); - return $response; - } - - - /** - * createEmployeeRoleWithHttpInfo - * - * CreateEmployeeRole - * - * @param \SquareConnect\Model\V1EmployeeRole $employee_role An EmployeeRole object with a name and permissions, and an optional owner flag. (required) - * @return Array of \SquareConnect\Model\V1EmployeeRole, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createEmployeeRoleWithHttpInfo($employee_role) - { - - // verify the required parameter 'employee_role' is set - if ($employee_role === null) { - throw new \InvalidArgumentException('Missing the required parameter $employee_role when calling createEmployeeRole'); - } - - // parse inputs - $resourcePath = "/v1/me/roles"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($employee_role)) { - $_tempBody = $employee_role; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1EmployeeRole' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1EmployeeRole', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1EmployeeRole', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createTimecard - * - * CreateTimecard - * - * @param \SquareConnect\Model\V1Timecard $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Timecard - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createTimecard($body) - { - trigger_error("\x1B[33mCalling deprecated API: V1EmployeesApi.createTimecard\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createTimecardWithHttpInfo ($body); - return $response; - } - - - /** - * createTimecardWithHttpInfo - * - * CreateTimecard - * - * @param \SquareConnect\Model\V1Timecard $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Timecard, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createTimecardWithHttpInfo($body) - { - - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createTimecard'); - } - - // parse inputs - $resourcePath = "/v1/me/timecards"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Timecard' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Timecard', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Timecard', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deleteTimecard - * - * DeleteTimecard - * - * @param string $timecard_id The ID of the timecard to delete. (required) - * @return object - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteTimecard($timecard_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1EmployeesApi.deleteTimecard\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deleteTimecardWithHttpInfo ($timecard_id); - return $response; - } - - - /** - * deleteTimecardWithHttpInfo - * - * DeleteTimecard - * - * @param string $timecard_id The ID of the timecard to delete. (required) - * @return Array of object, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteTimecardWithHttpInfo($timecard_id) - { - - // verify the required parameter 'timecard_id' is set - if ($timecard_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $timecard_id when calling deleteTimecard'); - } - - // parse inputs - $resourcePath = "/v1/me/timecards/{timecard_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($timecard_id !== null) { - $resourcePath = str_replace( - "{" . "timecard_id" . "}", - $this->apiClient->getSerializer()->toPathValue($timecard_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, 'object' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, 'object', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), 'object', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listCashDrawerShifts - * - * ListCashDrawerShifts - * - * @param string $location_id The ID of the location to list cash drawer shifts for. (required) - * @param string $order The order in which cash drawer shifts are listed in the response, based on their created_at field. Default value: ASC (optional) - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time minus 90 days. (optional) - * @param string $end_time The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time. (optional) - * @return \SquareConnect\Model\V1CashDrawerShift[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCashDrawerShifts($location_id, $order = null, $begin_time = null, $end_time = null) - { - trigger_error("\x1B[33mCalling deprecated API: V1EmployeesApi.listCashDrawerShifts\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listCashDrawerShiftsWithHttpInfo ($location_id, $order, $begin_time, $end_time); - return $response; - } - - - /** - * listCashDrawerShiftsWithHttpInfo - * - * ListCashDrawerShifts - * - * @param string $location_id The ID of the location to list cash drawer shifts for. (required) - * @param string $order The order in which cash drawer shifts are listed in the response, based on their created_at field. Default value: ASC (optional) - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time minus 90 days. (optional) - * @param string $end_time The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time. (optional) - * @return Array of \SquareConnect\Model\V1CashDrawerShift[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCashDrawerShiftsWithHttpInfo($location_id, $order = null, $begin_time = null, $end_time = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listCashDrawerShifts'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/cash-drawer-shifts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($order !== null) { - $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); - }// query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1CashDrawerShift[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1CashDrawerShift[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1CashDrawerShift[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listEmployeeRoles - * - * ListEmployeeRoles - * - * @param string $order The order in which employees are listed in the response, based on their created_at field.Default value: ASC (optional) - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return \SquareConnect\Model\V1EmployeeRole[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listEmployeeRoles($order = null, $limit = null, $batch_token = null) - { - list($response, $statusCode, $httpHeader) = $this->listEmployeeRolesWithHttpInfo ($order, $limit, $batch_token); - return $response; - } - - - /** - * listEmployeeRolesWithHttpInfo - * - * ListEmployeeRoles - * - * @param string $order The order in which employees are listed in the response, based on their created_at field.Default value: ASC (optional) - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return Array of \SquareConnect\Model\V1EmployeeRole[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listEmployeeRolesWithHttpInfo($order = null, $limit = null, $batch_token = null) - { - - - // parse inputs - $resourcePath = "/v1/me/roles"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($order !== null) { - $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1EmployeeRole[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1EmployeeRole[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1EmployeeRole[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listEmployees - * - * ListEmployees - * - * @param string $order The order in which employees are listed in the response, based on their created_at field. Default value: ASC (optional) - * @param string $begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format (optional) - * @param string $end_updated_at If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param string $begin_created_at If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format. (optional) - * @param string $end_created_at If filtering results by their created_at field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param string $status If provided, the endpoint returns only employee entities with the specified status (ACTIVE or INACTIVE). (optional) - * @param string $external_id If provided, the endpoint returns only employee entities with the specified external_id. (optional) - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return \SquareConnect\Model\V1Employee[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listEmployees($order = null, $begin_updated_at = null, $end_updated_at = null, $begin_created_at = null, $end_created_at = null, $status = null, $external_id = null, $limit = null, $batch_token = null) - { - list($response, $statusCode, $httpHeader) = $this->listEmployeesWithHttpInfo ($order, $begin_updated_at, $end_updated_at, $begin_created_at, $end_created_at, $status, $external_id, $limit, $batch_token); - return $response; - } - - - /** - * listEmployeesWithHttpInfo - * - * ListEmployees - * - * @param string $order The order in which employees are listed in the response, based on their created_at field. Default value: ASC (optional) - * @param string $begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format (optional) - * @param string $end_updated_at If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param string $begin_created_at If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format. (optional) - * @param string $end_created_at If filtering results by their created_at field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param string $status If provided, the endpoint returns only employee entities with the specified status (ACTIVE or INACTIVE). (optional) - * @param string $external_id If provided, the endpoint returns only employee entities with the specified external_id. (optional) - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return Array of \SquareConnect\Model\V1Employee[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listEmployeesWithHttpInfo($order = null, $begin_updated_at = null, $end_updated_at = null, $begin_created_at = null, $end_created_at = null, $status = null, $external_id = null, $limit = null, $batch_token = null) - { - - - // parse inputs - $resourcePath = "/v1/me/employees"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($order !== null) { - $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); - }// query params - if ($begin_updated_at !== null) { - $queryParams['begin_updated_at'] = $this->apiClient->getSerializer()->toQueryValue($begin_updated_at); - }// query params - if ($end_updated_at !== null) { - $queryParams['end_updated_at'] = $this->apiClient->getSerializer()->toQueryValue($end_updated_at); - }// query params - if ($begin_created_at !== null) { - $queryParams['begin_created_at'] = $this->apiClient->getSerializer()->toQueryValue($begin_created_at); - }// query params - if ($end_created_at !== null) { - $queryParams['end_created_at'] = $this->apiClient->getSerializer()->toQueryValue($end_created_at); - }// query params - if ($status !== null) { - $queryParams['status'] = $this->apiClient->getSerializer()->toQueryValue($status); - }// query params - if ($external_id !== null) { - $queryParams['external_id'] = $this->apiClient->getSerializer()->toQueryValue($external_id); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Employee[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Employee[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Employee[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listTimecardEvents - * - * ListTimecardEvents - * - * @param string $timecard_id The ID of the timecard to list events for. (required) - * @return \SquareConnect\Model\V1TimecardEvent[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listTimecardEvents($timecard_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1EmployeesApi.listTimecardEvents\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listTimecardEventsWithHttpInfo ($timecard_id); - return $response; - } - - - /** - * listTimecardEventsWithHttpInfo - * - * ListTimecardEvents - * - * @param string $timecard_id The ID of the timecard to list events for. (required) - * @return Array of \SquareConnect\Model\V1TimecardEvent[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listTimecardEventsWithHttpInfo($timecard_id) - { - - // verify the required parameter 'timecard_id' is set - if ($timecard_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $timecard_id when calling listTimecardEvents'); - } - - // parse inputs - $resourcePath = "/v1/me/timecards/{timecard_id}/events"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($timecard_id !== null) { - $resourcePath = str_replace( - "{" . "timecard_id" . "}", - $this->apiClient->getSerializer()->toPathValue($timecard_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1TimecardEvent[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1TimecardEvent[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1TimecardEvent[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listTimecards - * - * ListTimecards - * - * @param string $order The order in which timecards are listed in the response, based on their created_at field. (optional) - * @param string $employee_id If provided, the endpoint returns only timecards for the employee with the specified ID. (optional) - * @param string $begin_clockin_time If filtering results by their clockin_time field, the beginning of the requested reporting period, in ISO 8601 format. (optional) - * @param string $end_clockin_time If filtering results by their clockin_time field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param string $begin_clockout_time If filtering results by their clockout_time field, the beginning of the requested reporting period, in ISO 8601 format. (optional) - * @param string $end_clockout_time If filtering results by their clockout_time field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param string $begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format. (optional) - * @param string $end_updated_at If filtering results by their updated_at field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param bool $deleted If true, only deleted timecards are returned. If false, only valid timecards are returned.If you don't provide this parameter, both valid and deleted timecards are returned. (optional) - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return \SquareConnect\Model\V1Timecard[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listTimecards($order = null, $employee_id = null, $begin_clockin_time = null, $end_clockin_time = null, $begin_clockout_time = null, $end_clockout_time = null, $begin_updated_at = null, $end_updated_at = null, $deleted = null, $limit = null, $batch_token = null) - { - trigger_error("\x1B[33mCalling deprecated API: V1EmployeesApi.listTimecards\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listTimecardsWithHttpInfo ($order, $employee_id, $begin_clockin_time, $end_clockin_time, $begin_clockout_time, $end_clockout_time, $begin_updated_at, $end_updated_at, $deleted, $limit, $batch_token); - return $response; - } - - - /** - * listTimecardsWithHttpInfo - * - * ListTimecards - * - * @param string $order The order in which timecards are listed in the response, based on their created_at field. (optional) - * @param string $employee_id If provided, the endpoint returns only timecards for the employee with the specified ID. (optional) - * @param string $begin_clockin_time If filtering results by their clockin_time field, the beginning of the requested reporting period, in ISO 8601 format. (optional) - * @param string $end_clockin_time If filtering results by their clockin_time field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param string $begin_clockout_time If filtering results by their clockout_time field, the beginning of the requested reporting period, in ISO 8601 format. (optional) - * @param string $end_clockout_time If filtering results by their clockout_time field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param string $begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format. (optional) - * @param string $end_updated_at If filtering results by their updated_at field, the end of the requested reporting period, in ISO 8601 format. (optional) - * @param bool $deleted If true, only deleted timecards are returned. If false, only valid timecards are returned.If you don't provide this parameter, both valid and deleted timecards are returned. (optional) - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return Array of \SquareConnect\Model\V1Timecard[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listTimecardsWithHttpInfo($order = null, $employee_id = null, $begin_clockin_time = null, $end_clockin_time = null, $begin_clockout_time = null, $end_clockout_time = null, $begin_updated_at = null, $end_updated_at = null, $deleted = null, $limit = null, $batch_token = null) - { - - - // parse inputs - $resourcePath = "/v1/me/timecards"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($order !== null) { - $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); - }// query params - if ($employee_id !== null) { - $queryParams['employee_id'] = $this->apiClient->getSerializer()->toQueryValue($employee_id); - }// query params - if ($begin_clockin_time !== null) { - $queryParams['begin_clockin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_clockin_time); - }// query params - if ($end_clockin_time !== null) { - $queryParams['end_clockin_time'] = $this->apiClient->getSerializer()->toQueryValue($end_clockin_time); - }// query params - if ($begin_clockout_time !== null) { - $queryParams['begin_clockout_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_clockout_time); - }// query params - if ($end_clockout_time !== null) { - $queryParams['end_clockout_time'] = $this->apiClient->getSerializer()->toQueryValue($end_clockout_time); - }// query params - if ($begin_updated_at !== null) { - $queryParams['begin_updated_at'] = $this->apiClient->getSerializer()->toQueryValue($begin_updated_at); - }// query params - if ($end_updated_at !== null) { - $queryParams['end_updated_at'] = $this->apiClient->getSerializer()->toQueryValue($end_updated_at); - }// query params - if ($deleted !== null) { - $queryParams['deleted'] = $this->apiClient->getSerializer()->toQueryValue($deleted); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - } - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Timecard[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Timecard[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Timecard[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * retrieveCashDrawerShift - * - * RetrieveCashDrawerShift - * - * @param string $location_id The ID of the location to list cash drawer shifts for. (required) - * @param string $shift_id The shift's ID. (required) - * @return \SquareConnect\Model\V1CashDrawerShift - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCashDrawerShift($location_id, $shift_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1EmployeesApi.retrieveCashDrawerShift\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->retrieveCashDrawerShiftWithHttpInfo ($location_id, $shift_id); - return $response; - } - - - /** - * retrieveCashDrawerShiftWithHttpInfo - * - * RetrieveCashDrawerShift - * - * @param string $location_id The ID of the location to list cash drawer shifts for. (required) - * @param string $shift_id The shift's ID. (required) - * @return Array of \SquareConnect\Model\V1CashDrawerShift, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveCashDrawerShiftWithHttpInfo($location_id, $shift_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveCashDrawerShift'); - } - // verify the required parameter 'shift_id' is set - if ($shift_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $shift_id when calling retrieveCashDrawerShift'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/cash-drawer-shifts/{shift_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($shift_id !== null) { - $resourcePath = str_replace( - "{" . "shift_id" . "}", - $this->apiClient->getSerializer()->toPathValue($shift_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1CashDrawerShift' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1CashDrawerShift', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1CashDrawerShift', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveEmployee - * - * RetrieveEmployee - * - * @param string $employee_id The employee's ID. (required) - * @return \SquareConnect\Model\V1Employee - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveEmployee($employee_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveEmployeeWithHttpInfo ($employee_id); - return $response; - } - - - /** - * retrieveEmployeeWithHttpInfo - * - * RetrieveEmployee - * - * @param string $employee_id The employee's ID. (required) - * @return Array of \SquareConnect\Model\V1Employee, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveEmployeeWithHttpInfo($employee_id) - { - - // verify the required parameter 'employee_id' is set - if ($employee_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $employee_id when calling retrieveEmployee'); - } - - // parse inputs - $resourcePath = "/v1/me/employees/{employee_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($employee_id !== null) { - $resourcePath = str_replace( - "{" . "employee_id" . "}", - $this->apiClient->getSerializer()->toPathValue($employee_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Employee' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Employee', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Employee', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveEmployeeRole - * - * RetrieveEmployeeRole - * - * @param string $role_id The role's ID. (required) - * @return \SquareConnect\Model\V1EmployeeRole - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveEmployeeRole($role_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveEmployeeRoleWithHttpInfo ($role_id); - return $response; - } - - - /** - * retrieveEmployeeRoleWithHttpInfo - * - * RetrieveEmployeeRole - * - * @param string $role_id The role's ID. (required) - * @return Array of \SquareConnect\Model\V1EmployeeRole, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveEmployeeRoleWithHttpInfo($role_id) - { - - // verify the required parameter 'role_id' is set - if ($role_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $role_id when calling retrieveEmployeeRole'); - } - - // parse inputs - $resourcePath = "/v1/me/roles/{role_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($role_id !== null) { - $resourcePath = str_replace( - "{" . "role_id" . "}", - $this->apiClient->getSerializer()->toPathValue($role_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1EmployeeRole' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1EmployeeRole', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1EmployeeRole', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * retrieveTimecard - * - * RetrieveTimecard - * - * @param string $timecard_id The timecard's ID. (required) - * @return \SquareConnect\Model\V1Timecard - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveTimecard($timecard_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1EmployeesApi.retrieveTimecard\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->retrieveTimecardWithHttpInfo ($timecard_id); - return $response; - } - - - /** - * retrieveTimecardWithHttpInfo - * - * RetrieveTimecard - * - * @param string $timecard_id The timecard's ID. (required) - * @return Array of \SquareConnect\Model\V1Timecard, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveTimecardWithHttpInfo($timecard_id) - { - - // verify the required parameter 'timecard_id' is set - if ($timecard_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $timecard_id when calling retrieveTimecard'); - } - - // parse inputs - $resourcePath = "/v1/me/timecards/{timecard_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($timecard_id !== null) { - $resourcePath = str_replace( - "{" . "timecard_id" . "}", - $this->apiClient->getSerializer()->toPathValue($timecard_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Timecard' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Timecard', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Timecard', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateEmployee - * - * UpdateEmployee - * - * @param string $employee_id The ID of the role to modify. (required) - * @param \SquareConnect\Model\V1Employee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Employee - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateEmployee($employee_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateEmployeeWithHttpInfo ($employee_id, $body); - return $response; - } - - - /** - * updateEmployeeWithHttpInfo - * - * UpdateEmployee - * - * @param string $employee_id The ID of the role to modify. (required) - * @param \SquareConnect\Model\V1Employee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Employee, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateEmployeeWithHttpInfo($employee_id, $body) - { - - // verify the required parameter 'employee_id' is set - if ($employee_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $employee_id when calling updateEmployee'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateEmployee'); - } - - // parse inputs - $resourcePath = "/v1/me/employees/{employee_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($employee_id !== null) { - $resourcePath = str_replace( - "{" . "employee_id" . "}", - $this->apiClient->getSerializer()->toPathValue($employee_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Employee' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Employee', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Employee', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateEmployeeRole - * - * UpdateEmployeeRole - * - * @param string $role_id The ID of the role to modify. (required) - * @param \SquareConnect\Model\V1EmployeeRole $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1EmployeeRole - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateEmployeeRole($role_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateEmployeeRoleWithHttpInfo ($role_id, $body); - return $response; - } - - - /** - * updateEmployeeRoleWithHttpInfo - * - * UpdateEmployeeRole - * - * @param string $role_id The ID of the role to modify. (required) - * @param \SquareConnect\Model\V1EmployeeRole $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1EmployeeRole, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateEmployeeRoleWithHttpInfo($role_id, $body) - { - - // verify the required parameter 'role_id' is set - if ($role_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $role_id when calling updateEmployeeRole'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateEmployeeRole'); - } - - // parse inputs - $resourcePath = "/v1/me/roles/{role_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($role_id !== null) { - $resourcePath = str_replace( - "{" . "role_id" . "}", - $this->apiClient->getSerializer()->toPathValue($role_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1EmployeeRole' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1EmployeeRole', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1EmployeeRole', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updateTimecard - * - * UpdateTimecard - * - * @param string $timecard_id TThe ID of the timecard to modify. (required) - * @param \SquareConnect\Model\V1Timecard $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Timecard - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateTimecard($timecard_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1EmployeesApi.updateTimecard\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updateTimecardWithHttpInfo ($timecard_id, $body); - return $response; - } - - - /** - * updateTimecardWithHttpInfo - * - * UpdateTimecard - * - * @param string $timecard_id TThe ID of the timecard to modify. (required) - * @param \SquareConnect\Model\V1Timecard $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Timecard, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateTimecardWithHttpInfo($timecard_id, $body) - { - - // verify the required parameter 'timecard_id' is set - if ($timecard_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $timecard_id when calling updateTimecard'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateTimecard'); - } - - // parse inputs - $resourcePath = "/v1/me/timecards/{timecard_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($timecard_id !== null) { - $resourcePath = str_replace( - "{" . "timecard_id" . "}", - $this->apiClient->getSerializer()->toPathValue($timecard_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Timecard' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Timecard', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Timecard', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/V1ItemsApi.php b/includes/classes/vendors/square/connect/lib/Api/V1ItemsApi.php deleted file mode 100644 index df19157110..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/V1ItemsApi.php +++ /dev/null @@ -1,4647 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return V1ItemsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * @deprecated - * adjustInventory - * - * AdjustInventory - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $variation_id The ID of the variation to adjust inventory information for. (required) - * @param \SquareConnect\Model\V1AdjustInventoryRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1InventoryEntry - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function adjustInventory($location_id, $variation_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.adjustInventory\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->adjustInventoryWithHttpInfo ($location_id, $variation_id, $body); - return $response; - } - - - /** - * adjustInventoryWithHttpInfo - * - * AdjustInventory - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $variation_id The ID of the variation to adjust inventory information for. (required) - * @param \SquareConnect\Model\V1AdjustInventoryRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1InventoryEntry, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function adjustInventoryWithHttpInfo($location_id, $variation_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling adjustInventory'); - } - // verify the required parameter 'variation_id' is set - if ($variation_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $variation_id when calling adjustInventory'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling adjustInventory'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/inventory/{variation_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($variation_id !== null) { - $resourcePath = str_replace( - "{" . "variation_id" . "}", - $this->apiClient->getSerializer()->toPathValue($variation_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1InventoryEntry' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1InventoryEntry', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1InventoryEntry', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * applyFee - * - * ApplyFee - * - * @param string $location_id The ID of the fee's associated location. (required) - * @param string $item_id The ID of the item to add the fee to. (required) - * @param string $fee_id The ID of the fee to apply. (required) - * @return \SquareConnect\Model\V1Item - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function applyFee($location_id, $item_id, $fee_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.applyFee\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->applyFeeWithHttpInfo ($location_id, $item_id, $fee_id); - return $response; - } - - - /** - * applyFeeWithHttpInfo - * - * ApplyFee - * - * @param string $location_id The ID of the fee's associated location. (required) - * @param string $item_id The ID of the item to add the fee to. (required) - * @param string $fee_id The ID of the fee to apply. (required) - * @return Array of \SquareConnect\Model\V1Item, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function applyFeeWithHttpInfo($location_id, $item_id, $fee_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling applyFee'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling applyFee'); - } - // verify the required parameter 'fee_id' is set - if ($fee_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $fee_id when calling applyFee'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}/fees/{fee_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - }// path params - if ($fee_id !== null) { - $resourcePath = str_replace( - "{" . "fee_id" . "}", - $this->apiClient->getSerializer()->toPathValue($fee_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * applyModifierList - * - * ApplyModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to apply. (required) - * @param string $item_id The ID of the item to add the modifier list to. (required) - * @return \SquareConnect\Model\V1Item - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function applyModifierList($location_id, $modifier_list_id, $item_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.applyModifierList\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->applyModifierListWithHttpInfo ($location_id, $modifier_list_id, $item_id); - return $response; - } - - - /** - * applyModifierListWithHttpInfo - * - * ApplyModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to apply. (required) - * @param string $item_id The ID of the item to add the modifier list to. (required) - * @return Array of \SquareConnect\Model\V1Item, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function applyModifierListWithHttpInfo($location_id, $modifier_list_id, $item_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling applyModifierList'); - } - // verify the required parameter 'modifier_list_id' is set - if ($modifier_list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_list_id when calling applyModifierList'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling applyModifierList'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}/modifier-lists/{modifier_list_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($modifier_list_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_list_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_list_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createCategory - * - * CreateCategory - * - * @param string $location_id The ID of the location to create an item for. (required) - * @param \SquareConnect\Model\V1Category $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Category - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCategory($location_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.createCategory\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createCategoryWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createCategoryWithHttpInfo - * - * CreateCategory - * - * @param string $location_id The ID of the location to create an item for. (required) - * @param \SquareConnect\Model\V1Category $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Category, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createCategoryWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createCategory'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createCategory'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/categories"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Category' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Category', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Category', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createDiscount - * - * CreateDiscount - * - * @param string $location_id The ID of the location to create an item for. (required) - * @param \SquareConnect\Model\V1Discount $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Discount - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createDiscount($location_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.createDiscount\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createDiscountWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createDiscountWithHttpInfo - * - * CreateDiscount - * - * @param string $location_id The ID of the location to create an item for. (required) - * @param \SquareConnect\Model\V1Discount $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Discount, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createDiscountWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createDiscount'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createDiscount'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/discounts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Discount' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Discount', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Discount', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createFee - * - * CreateFee - * - * @param string $location_id The ID of the location to create a fee for. (required) - * @param \SquareConnect\Model\V1Fee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Fee - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createFee($location_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.createFee\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createFeeWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createFeeWithHttpInfo - * - * CreateFee - * - * @param string $location_id The ID of the location to create a fee for. (required) - * @param \SquareConnect\Model\V1Fee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Fee, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createFeeWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createFee'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createFee'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/fees"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Fee' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Fee', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Fee', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createItem - * - * CreateItem - * - * @param string $location_id The ID of the location to create an item for. (required) - * @param \SquareConnect\Model\V1Item $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Item - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createItem($location_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.createItem\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createItemWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createItemWithHttpInfo - * - * CreateItem - * - * @param string $location_id The ID of the location to create an item for. (required) - * @param \SquareConnect\Model\V1Item $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Item, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createItemWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createItem'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createItem'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createModifierList - * - * CreateModifierList - * - * @param string $location_id The ID of the location to create a modifier list for. (required) - * @param \SquareConnect\Model\V1ModifierList $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1ModifierList - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createModifierList($location_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.createModifierList\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createModifierListWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createModifierListWithHttpInfo - * - * CreateModifierList - * - * @param string $location_id The ID of the location to create a modifier list for. (required) - * @param \SquareConnect\Model\V1ModifierList $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1ModifierList, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createModifierListWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createModifierList'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createModifierList'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/modifier-lists"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1ModifierList' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1ModifierList', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1ModifierList', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createModifierOption - * - * CreateModifierOption - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to edit. (required) - * @param \SquareConnect\Model\V1ModifierOption $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1ModifierOption - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createModifierOption($location_id, $modifier_list_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.createModifierOption\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createModifierOptionWithHttpInfo ($location_id, $modifier_list_id, $body); - return $response; - } - - - /** - * createModifierOptionWithHttpInfo - * - * CreateModifierOption - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to edit. (required) - * @param \SquareConnect\Model\V1ModifierOption $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1ModifierOption, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createModifierOptionWithHttpInfo($location_id, $modifier_list_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createModifierOption'); - } - // verify the required parameter 'modifier_list_id' is set - if ($modifier_list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_list_id when calling createModifierOption'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createModifierOption'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($modifier_list_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_list_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_list_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1ModifierOption' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1ModifierOption', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1ModifierOption', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createPage - * - * CreatePage - * - * @param string $location_id The ID of the location to create an item for. (required) - * @param \SquareConnect\Model\V1Page $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Page - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createPage($location_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.createPage\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createPageWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createPageWithHttpInfo - * - * CreatePage - * - * @param string $location_id The ID of the location to create an item for. (required) - * @param \SquareConnect\Model\V1Page $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Page, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createPageWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createPage'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createPage'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/pages"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Page' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Page', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Page', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * createVariation - * - * CreateVariation - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The item's ID. (required) - * @param \SquareConnect\Model\V1Variation $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Variation - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createVariation($location_id, $item_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.createVariation\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->createVariationWithHttpInfo ($location_id, $item_id, $body); - return $response; - } - - - /** - * createVariationWithHttpInfo - * - * CreateVariation - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The item's ID. (required) - * @param \SquareConnect\Model\V1Variation $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Variation, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createVariationWithHttpInfo($location_id, $item_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createVariation'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling createVariation'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createVariation'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}/variations"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Variation' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Variation', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Variation', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deleteCategory - * - * DeleteCategory - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $category_id The ID of the category to delete. (required) - * @return \SquareConnect\Model\V1Category - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCategory($location_id, $category_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deleteCategory\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deleteCategoryWithHttpInfo ($location_id, $category_id); - return $response; - } - - - /** - * deleteCategoryWithHttpInfo - * - * DeleteCategory - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $category_id The ID of the category to delete. (required) - * @return Array of \SquareConnect\Model\V1Category, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteCategoryWithHttpInfo($location_id, $category_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deleteCategory'); - } - // verify the required parameter 'category_id' is set - if ($category_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $category_id when calling deleteCategory'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/categories/{category_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($category_id !== null) { - $resourcePath = str_replace( - "{" . "category_id" . "}", - $this->apiClient->getSerializer()->toPathValue($category_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Category' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Category', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Category', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deleteDiscount - * - * DeleteDiscount - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $discount_id The ID of the discount to delete. (required) - * @return \SquareConnect\Model\V1Discount - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteDiscount($location_id, $discount_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deleteDiscount\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deleteDiscountWithHttpInfo ($location_id, $discount_id); - return $response; - } - - - /** - * deleteDiscountWithHttpInfo - * - * DeleteDiscount - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $discount_id The ID of the discount to delete. (required) - * @return Array of \SquareConnect\Model\V1Discount, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteDiscountWithHttpInfo($location_id, $discount_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deleteDiscount'); - } - // verify the required parameter 'discount_id' is set - if ($discount_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $discount_id when calling deleteDiscount'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/discounts/{discount_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($discount_id !== null) { - $resourcePath = str_replace( - "{" . "discount_id" . "}", - $this->apiClient->getSerializer()->toPathValue($discount_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Discount' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Discount', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Discount', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deleteFee - * - * DeleteFee - * - * @param string $location_id The ID of the fee's associated location. (required) - * @param string $fee_id The ID of the fee to delete. (required) - * @return \SquareConnect\Model\V1Fee - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteFee($location_id, $fee_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deleteFee\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deleteFeeWithHttpInfo ($location_id, $fee_id); - return $response; - } - - - /** - * deleteFeeWithHttpInfo - * - * DeleteFee - * - * @param string $location_id The ID of the fee's associated location. (required) - * @param string $fee_id The ID of the fee to delete. (required) - * @return Array of \SquareConnect\Model\V1Fee, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteFeeWithHttpInfo($location_id, $fee_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deleteFee'); - } - // verify the required parameter 'fee_id' is set - if ($fee_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $fee_id when calling deleteFee'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/fees/{fee_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($fee_id !== null) { - $resourcePath = str_replace( - "{" . "fee_id" . "}", - $this->apiClient->getSerializer()->toPathValue($fee_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Fee' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Fee', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Fee', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deleteItem - * - * DeleteItem - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The ID of the item to modify. (required) - * @return \SquareConnect\Model\V1Item - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteItem($location_id, $item_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deleteItem\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deleteItemWithHttpInfo ($location_id, $item_id); - return $response; - } - - - /** - * deleteItemWithHttpInfo - * - * DeleteItem - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The ID of the item to modify. (required) - * @return Array of \SquareConnect\Model\V1Item, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteItemWithHttpInfo($location_id, $item_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deleteItem'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling deleteItem'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deleteModifierList - * - * DeleteModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to delete. (required) - * @return \SquareConnect\Model\V1ModifierList - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteModifierList($location_id, $modifier_list_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deleteModifierList\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deleteModifierListWithHttpInfo ($location_id, $modifier_list_id); - return $response; - } - - - /** - * deleteModifierListWithHttpInfo - * - * DeleteModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to delete. (required) - * @return Array of \SquareConnect\Model\V1ModifierList, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteModifierListWithHttpInfo($location_id, $modifier_list_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deleteModifierList'); - } - // verify the required parameter 'modifier_list_id' is set - if ($modifier_list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_list_id when calling deleteModifierList'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/modifier-lists/{modifier_list_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($modifier_list_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_list_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_list_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1ModifierList' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1ModifierList', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1ModifierList', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deleteModifierOption - * - * DeleteModifierOption - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to delete. (required) - * @param string $modifier_option_id The ID of the modifier list to edit. (required) - * @return \SquareConnect\Model\V1ModifierOption - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteModifierOption($location_id, $modifier_list_id, $modifier_option_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deleteModifierOption\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deleteModifierOptionWithHttpInfo ($location_id, $modifier_list_id, $modifier_option_id); - return $response; - } - - - /** - * deleteModifierOptionWithHttpInfo - * - * DeleteModifierOption - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to delete. (required) - * @param string $modifier_option_id The ID of the modifier list to edit. (required) - * @return Array of \SquareConnect\Model\V1ModifierOption, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteModifierOptionWithHttpInfo($location_id, $modifier_list_id, $modifier_option_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deleteModifierOption'); - } - // verify the required parameter 'modifier_list_id' is set - if ($modifier_list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_list_id when calling deleteModifierOption'); - } - // verify the required parameter 'modifier_option_id' is set - if ($modifier_option_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_option_id when calling deleteModifierOption'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options/{modifier_option_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($modifier_list_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_list_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_list_id), - $resourcePath - ); - }// path params - if ($modifier_option_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_option_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_option_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1ModifierOption' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1ModifierOption', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1ModifierOption', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deletePage - * - * DeletePage - * - * @param string $location_id The ID of the Favorites page's associated location. (required) - * @param string $page_id The ID of the page to delete. (required) - * @return \SquareConnect\Model\V1Page - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deletePage($location_id, $page_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deletePage\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deletePageWithHttpInfo ($location_id, $page_id); - return $response; - } - - - /** - * deletePageWithHttpInfo - * - * DeletePage - * - * @param string $location_id The ID of the Favorites page's associated location. (required) - * @param string $page_id The ID of the page to delete. (required) - * @return Array of \SquareConnect\Model\V1Page, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deletePageWithHttpInfo($location_id, $page_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deletePage'); - } - // verify the required parameter 'page_id' is set - if ($page_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $page_id when calling deletePage'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/pages/{page_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($page_id !== null) { - $resourcePath = str_replace( - "{" . "page_id" . "}", - $this->apiClient->getSerializer()->toPathValue($page_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Page' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Page', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Page', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deletePageCell - * - * DeletePageCell - * - * @param string $location_id The ID of the Favorites page's associated location. (required) - * @param string $page_id The ID of the page to delete. (required) - * @param string $row The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row. (optional) - * @param string $column The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column. (optional) - * @return \SquareConnect\Model\V1Page - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deletePageCell($location_id, $page_id, $row = null, $column = null) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deletePageCell\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deletePageCellWithHttpInfo ($location_id, $page_id, $row, $column); - return $response; - } - - - /** - * deletePageCellWithHttpInfo - * - * DeletePageCell - * - * @param string $location_id The ID of the Favorites page's associated location. (required) - * @param string $page_id The ID of the page to delete. (required) - * @param string $row The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row. (optional) - * @param string $column The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column. (optional) - * @return Array of \SquareConnect\Model\V1Page, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deletePageCellWithHttpInfo($location_id, $page_id, $row = null, $column = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deletePageCell'); - } - // verify the required parameter 'page_id' is set - if ($page_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $page_id when calling deletePageCell'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/pages/{page_id}/cells"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($row !== null) { - $queryParams['row'] = $this->apiClient->getSerializer()->toQueryValue($row); - }// query params - if ($column !== null) { - $queryParams['column'] = $this->apiClient->getSerializer()->toQueryValue($column); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($page_id !== null) { - $resourcePath = str_replace( - "{" . "page_id" . "}", - $this->apiClient->getSerializer()->toPathValue($page_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Page' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Page', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Page', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * deleteVariation - * - * DeleteVariation - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The ID of the item to delete. (required) - * @param string $variation_id The ID of the variation to delete. (required) - * @return \SquareConnect\Model\V1Variation - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteVariation($location_id, $item_id, $variation_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.deleteVariation\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->deleteVariationWithHttpInfo ($location_id, $item_id, $variation_id); - return $response; - } - - - /** - * deleteVariationWithHttpInfo - * - * DeleteVariation - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The ID of the item to delete. (required) - * @param string $variation_id The ID of the variation to delete. (required) - * @return Array of \SquareConnect\Model\V1Variation, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function deleteVariationWithHttpInfo($location_id, $item_id, $variation_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling deleteVariation'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling deleteVariation'); - } - // verify the required parameter 'variation_id' is set - if ($variation_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $variation_id when calling deleteVariation'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}/variations/{variation_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - }// path params - if ($variation_id !== null) { - $resourcePath = str_replace( - "{" . "variation_id" . "}", - $this->apiClient->getSerializer()->toPathValue($variation_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Variation' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Variation', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Variation', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listCategories - * - * ListCategories - * - * @param string $location_id The ID of the location to list categories for. (required) - * @return \SquareConnect\Model\V1Category[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCategories($location_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.listCategories\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listCategoriesWithHttpInfo ($location_id); - return $response; - } - - - /** - * listCategoriesWithHttpInfo - * - * ListCategories - * - * @param string $location_id The ID of the location to list categories for. (required) - * @return Array of \SquareConnect\Model\V1Category[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listCategoriesWithHttpInfo($location_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listCategories'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/categories"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Category[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Category[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Category[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listDiscounts - * - * ListDiscounts - * - * @param string $location_id The ID of the location to list categories for. (required) - * @return \SquareConnect\Model\V1Discount[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listDiscounts($location_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.listDiscounts\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listDiscountsWithHttpInfo ($location_id); - return $response; - } - - - /** - * listDiscountsWithHttpInfo - * - * ListDiscounts - * - * @param string $location_id The ID of the location to list categories for. (required) - * @return Array of \SquareConnect\Model\V1Discount[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listDiscountsWithHttpInfo($location_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listDiscounts'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/discounts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Discount[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Discount[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Discount[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listFees - * - * ListFees - * - * @param string $location_id The ID of the location to list fees for. (required) - * @return \SquareConnect\Model\V1Fee[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listFees($location_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.listFees\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listFeesWithHttpInfo ($location_id); - return $response; - } - - - /** - * listFeesWithHttpInfo - * - * ListFees - * - * @param string $location_id The ID of the location to list fees for. (required) - * @return Array of \SquareConnect\Model\V1Fee[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listFeesWithHttpInfo($location_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listFees'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/fees"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Fee[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Fee[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Fee[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listInventory - * - * ListInventory - * - * @param string $location_id The ID of the item's associated location. (required) - * @param int $limit The maximum number of inventory entries to return in a single response. This value cannot exceed 1000. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return \SquareConnect\Model\V1InventoryEntry[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listInventory($location_id, $limit = null, $batch_token = null) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.listInventory\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listInventoryWithHttpInfo ($location_id, $limit, $batch_token); - return $response; - } - - - /** - * listInventoryWithHttpInfo - * - * ListInventory - * - * @param string $location_id The ID of the item's associated location. (required) - * @param int $limit The maximum number of inventory entries to return in a single response. This value cannot exceed 1000. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return Array of \SquareConnect\Model\V1InventoryEntry[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listInventoryWithHttpInfo($location_id, $limit = null, $batch_token = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listInventory'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/inventory"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1InventoryEntry[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1InventoryEntry[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1InventoryEntry[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listItems - * - * ListItems - * - * @param string $location_id The ID of the location to list items for. (required) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return \SquareConnect\Model\V1Item[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listItems($location_id, $batch_token = null) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.listItems\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listItemsWithHttpInfo ($location_id, $batch_token); - return $response; - } - - - /** - * listItemsWithHttpInfo - * - * ListItems - * - * @param string $location_id The ID of the location to list items for. (required) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return Array of \SquareConnect\Model\V1Item[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listItemsWithHttpInfo($location_id, $batch_token = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listItems'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listModifierLists - * - * ListModifierLists - * - * @param string $location_id The ID of the location to list modifier lists for. (required) - * @return \SquareConnect\Model\V1ModifierList[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listModifierLists($location_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.listModifierLists\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listModifierListsWithHttpInfo ($location_id); - return $response; - } - - - /** - * listModifierListsWithHttpInfo - * - * ListModifierLists - * - * @param string $location_id The ID of the location to list modifier lists for. (required) - * @return Array of \SquareConnect\Model\V1ModifierList[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listModifierListsWithHttpInfo($location_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listModifierLists'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/modifier-lists"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1ModifierList[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1ModifierList[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1ModifierList[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listPages - * - * ListPages - * - * @param string $location_id The ID of the location to list Favorites pages for. (required) - * @return \SquareConnect\Model\V1Page[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listPages($location_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.listPages\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listPagesWithHttpInfo ($location_id); - return $response; - } - - - /** - * listPagesWithHttpInfo - * - * ListPages - * - * @param string $location_id The ID of the location to list Favorites pages for. (required) - * @return Array of \SquareConnect\Model\V1Page[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listPagesWithHttpInfo($location_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listPages'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/pages"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Page[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Page[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Page[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * removeFee - * - * RemoveFee - * - * @param string $location_id The ID of the fee's associated location. (required) - * @param string $item_id The ID of the item to add the fee to. (required) - * @param string $fee_id The ID of the fee to apply. (required) - * @return \SquareConnect\Model\V1Item - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function removeFee($location_id, $item_id, $fee_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.removeFee\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->removeFeeWithHttpInfo ($location_id, $item_id, $fee_id); - return $response; - } - - - /** - * removeFeeWithHttpInfo - * - * RemoveFee - * - * @param string $location_id The ID of the fee's associated location. (required) - * @param string $item_id The ID of the item to add the fee to. (required) - * @param string $fee_id The ID of the fee to apply. (required) - * @return Array of \SquareConnect\Model\V1Item, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function removeFeeWithHttpInfo($location_id, $item_id, $fee_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling removeFee'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling removeFee'); - } - // verify the required parameter 'fee_id' is set - if ($fee_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $fee_id when calling removeFee'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}/fees/{fee_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - }// path params - if ($fee_id !== null) { - $resourcePath = str_replace( - "{" . "fee_id" . "}", - $this->apiClient->getSerializer()->toPathValue($fee_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * removeModifierList - * - * RemoveModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to remove. (required) - * @param string $item_id The ID of the item to remove the modifier list from. (required) - * @return \SquareConnect\Model\V1Item - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function removeModifierList($location_id, $modifier_list_id, $item_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.removeModifierList\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->removeModifierListWithHttpInfo ($location_id, $modifier_list_id, $item_id); - return $response; - } - - - /** - * removeModifierListWithHttpInfo - * - * RemoveModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to remove. (required) - * @param string $item_id The ID of the item to remove the modifier list from. (required) - * @return Array of \SquareConnect\Model\V1Item, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function removeModifierListWithHttpInfo($location_id, $modifier_list_id, $item_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling removeModifierList'); - } - // verify the required parameter 'modifier_list_id' is set - if ($modifier_list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_list_id when calling removeModifierList'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling removeModifierList'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}/modifier-lists/{modifier_list_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($modifier_list_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_list_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_list_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'DELETE', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * retrieveItem - * - * RetrieveItem - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The item's ID. (required) - * @return \SquareConnect\Model\V1Item - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveItem($location_id, $item_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.retrieveItem\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->retrieveItemWithHttpInfo ($location_id, $item_id); - return $response; - } - - - /** - * retrieveItemWithHttpInfo - * - * RetrieveItem - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The item's ID. (required) - * @return Array of \SquareConnect\Model\V1Item, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveItemWithHttpInfo($location_id, $item_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveItem'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling retrieveItem'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * retrieveModifierList - * - * RetrieveModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The modifier list's ID. (required) - * @return \SquareConnect\Model\V1ModifierList - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveModifierList($location_id, $modifier_list_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.retrieveModifierList\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->retrieveModifierListWithHttpInfo ($location_id, $modifier_list_id); - return $response; - } - - - /** - * retrieveModifierListWithHttpInfo - * - * RetrieveModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The modifier list's ID. (required) - * @return Array of \SquareConnect\Model\V1ModifierList, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveModifierListWithHttpInfo($location_id, $modifier_list_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveModifierList'); - } - // verify the required parameter 'modifier_list_id' is set - if ($modifier_list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_list_id when calling retrieveModifierList'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/modifier-lists/{modifier_list_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($modifier_list_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_list_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_list_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1ModifierList' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1ModifierList', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1ModifierList', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updateCategory - * - * UpdateCategory - * - * @param string $location_id The ID of the category's associated location. (required) - * @param string $category_id The ID of the category to edit. (required) - * @param \SquareConnect\Model\V1Category $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Category - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateCategory($location_id, $category_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updateCategory\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updateCategoryWithHttpInfo ($location_id, $category_id, $body); - return $response; - } - - - /** - * updateCategoryWithHttpInfo - * - * UpdateCategory - * - * @param string $location_id The ID of the category's associated location. (required) - * @param string $category_id The ID of the category to edit. (required) - * @param \SquareConnect\Model\V1Category $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Category, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateCategoryWithHttpInfo($location_id, $category_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateCategory'); - } - // verify the required parameter 'category_id' is set - if ($category_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $category_id when calling updateCategory'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateCategory'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/categories/{category_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($category_id !== null) { - $resourcePath = str_replace( - "{" . "category_id" . "}", - $this->apiClient->getSerializer()->toPathValue($category_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Category' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Category', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Category', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updateDiscount - * - * UpdateDiscount - * - * @param string $location_id The ID of the category's associated location. (required) - * @param string $discount_id The ID of the discount to edit. (required) - * @param \SquareConnect\Model\V1Discount $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Discount - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateDiscount($location_id, $discount_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updateDiscount\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updateDiscountWithHttpInfo ($location_id, $discount_id, $body); - return $response; - } - - - /** - * updateDiscountWithHttpInfo - * - * UpdateDiscount - * - * @param string $location_id The ID of the category's associated location. (required) - * @param string $discount_id The ID of the discount to edit. (required) - * @param \SquareConnect\Model\V1Discount $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Discount, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateDiscountWithHttpInfo($location_id, $discount_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateDiscount'); - } - // verify the required parameter 'discount_id' is set - if ($discount_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $discount_id when calling updateDiscount'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateDiscount'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/discounts/{discount_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($discount_id !== null) { - $resourcePath = str_replace( - "{" . "discount_id" . "}", - $this->apiClient->getSerializer()->toPathValue($discount_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Discount' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Discount', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Discount', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updateFee - * - * UpdateFee - * - * @param string $location_id The ID of the fee's associated location. (required) - * @param string $fee_id The ID of the fee to edit. (required) - * @param \SquareConnect\Model\V1Fee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Fee - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateFee($location_id, $fee_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updateFee\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updateFeeWithHttpInfo ($location_id, $fee_id, $body); - return $response; - } - - - /** - * updateFeeWithHttpInfo - * - * UpdateFee - * - * @param string $location_id The ID of the fee's associated location. (required) - * @param string $fee_id The ID of the fee to edit. (required) - * @param \SquareConnect\Model\V1Fee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Fee, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateFeeWithHttpInfo($location_id, $fee_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateFee'); - } - // verify the required parameter 'fee_id' is set - if ($fee_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $fee_id when calling updateFee'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateFee'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/fees/{fee_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($fee_id !== null) { - $resourcePath = str_replace( - "{" . "fee_id" . "}", - $this->apiClient->getSerializer()->toPathValue($fee_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Fee' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Fee', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Fee', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updateItem - * - * UpdateItem - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The ID of the item to modify. (required) - * @param \SquareConnect\Model\V1Item $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Item - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateItem($location_id, $item_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updateItem\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updateItemWithHttpInfo ($location_id, $item_id, $body); - return $response; - } - - - /** - * updateItemWithHttpInfo - * - * UpdateItem - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The ID of the item to modify. (required) - * @param \SquareConnect\Model\V1Item $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Item, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateItemWithHttpInfo($location_id, $item_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateItem'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling updateItem'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateItem'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Item' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Item', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Item', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updateModifierList - * - * UpdateModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to edit. (required) - * @param \SquareConnect\Model\V1UpdateModifierListRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1ModifierList - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateModifierList($location_id, $modifier_list_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updateModifierList\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updateModifierListWithHttpInfo ($location_id, $modifier_list_id, $body); - return $response; - } - - - /** - * updateModifierListWithHttpInfo - * - * UpdateModifierList - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to edit. (required) - * @param \SquareConnect\Model\V1UpdateModifierListRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1ModifierList, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateModifierListWithHttpInfo($location_id, $modifier_list_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateModifierList'); - } - // verify the required parameter 'modifier_list_id' is set - if ($modifier_list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_list_id when calling updateModifierList'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateModifierList'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/modifier-lists/{modifier_list_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($modifier_list_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_list_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_list_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1ModifierList' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1ModifierList', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1ModifierList', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updateModifierOption - * - * UpdateModifierOption - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to edit. (required) - * @param string $modifier_option_id The ID of the modifier list to edit. (required) - * @param \SquareConnect\Model\V1ModifierOption $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1ModifierOption - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateModifierOption($location_id, $modifier_list_id, $modifier_option_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updateModifierOption\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updateModifierOptionWithHttpInfo ($location_id, $modifier_list_id, $modifier_option_id, $body); - return $response; - } - - - /** - * updateModifierOptionWithHttpInfo - * - * UpdateModifierOption - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $modifier_list_id The ID of the modifier list to edit. (required) - * @param string $modifier_option_id The ID of the modifier list to edit. (required) - * @param \SquareConnect\Model\V1ModifierOption $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1ModifierOption, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateModifierOptionWithHttpInfo($location_id, $modifier_list_id, $modifier_option_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateModifierOption'); - } - // verify the required parameter 'modifier_list_id' is set - if ($modifier_list_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_list_id when calling updateModifierOption'); - } - // verify the required parameter 'modifier_option_id' is set - if ($modifier_option_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $modifier_option_id when calling updateModifierOption'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateModifierOption'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options/{modifier_option_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($modifier_list_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_list_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_list_id), - $resourcePath - ); - }// path params - if ($modifier_option_id !== null) { - $resourcePath = str_replace( - "{" . "modifier_option_id" . "}", - $this->apiClient->getSerializer()->toPathValue($modifier_option_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1ModifierOption' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1ModifierOption', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1ModifierOption', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updatePage - * - * UpdatePage - * - * @param string $location_id The ID of the Favorites page's associated location (required) - * @param string $page_id The ID of the page to modify. (required) - * @param \SquareConnect\Model\V1Page $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Page - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updatePage($location_id, $page_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updatePage\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updatePageWithHttpInfo ($location_id, $page_id, $body); - return $response; - } - - - /** - * updatePageWithHttpInfo - * - * UpdatePage - * - * @param string $location_id The ID of the Favorites page's associated location (required) - * @param string $page_id The ID of the page to modify. (required) - * @param \SquareConnect\Model\V1Page $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Page, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updatePageWithHttpInfo($location_id, $page_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updatePage'); - } - // verify the required parameter 'page_id' is set - if ($page_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $page_id when calling updatePage'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updatePage'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/pages/{page_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($page_id !== null) { - $resourcePath = str_replace( - "{" . "page_id" . "}", - $this->apiClient->getSerializer()->toPathValue($page_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Page' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Page', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Page', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updatePageCell - * - * UpdatePageCell - * - * @param string $location_id The ID of the Favorites page's associated location. (required) - * @param string $page_id The ID of the page the cell belongs to. (required) - * @param \SquareConnect\Model\V1PageCell $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Page - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updatePageCell($location_id, $page_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updatePageCell\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updatePageCellWithHttpInfo ($location_id, $page_id, $body); - return $response; - } - - - /** - * updatePageCellWithHttpInfo - * - * UpdatePageCell - * - * @param string $location_id The ID of the Favorites page's associated location. (required) - * @param string $page_id The ID of the page the cell belongs to. (required) - * @param \SquareConnect\Model\V1PageCell $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Page, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updatePageCellWithHttpInfo($location_id, $page_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updatePageCell'); - } - // verify the required parameter 'page_id' is set - if ($page_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $page_id when calling updatePageCell'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updatePageCell'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/pages/{page_id}/cells"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($page_id !== null) { - $resourcePath = str_replace( - "{" . "page_id" . "}", - $this->apiClient->getSerializer()->toPathValue($page_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Page' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Page', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Page', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * updateVariation - * - * UpdateVariation - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The ID of the item to modify. (required) - * @param string $variation_id The ID of the variation to modify. (required) - * @param \SquareConnect\Model\V1Variation $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Variation - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateVariation($location_id, $item_id, $variation_id, $body) - { - trigger_error("\x1B[33mCalling deprecated API: V1ItemsApi.updateVariation\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->updateVariationWithHttpInfo ($location_id, $item_id, $variation_id, $body); - return $response; - } - - - /** - * updateVariationWithHttpInfo - * - * UpdateVariation - * - * @param string $location_id The ID of the item's associated location. (required) - * @param string $item_id The ID of the item to modify. (required) - * @param string $variation_id The ID of the variation to modify. (required) - * @param \SquareConnect\Model\V1Variation $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Variation, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateVariationWithHttpInfo($location_id, $item_id, $variation_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateVariation'); - } - // verify the required parameter 'item_id' is set - if ($item_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $item_id when calling updateVariation'); - } - // verify the required parameter 'variation_id' is set - if ($variation_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $variation_id when calling updateVariation'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateVariation'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/items/{item_id}/variations/{variation_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($item_id !== null) { - $resourcePath = str_replace( - "{" . "item_id" . "}", - $this->apiClient->getSerializer()->toPathValue($item_id), - $resourcePath - ); - }// path params - if ($variation_id !== null) { - $resourcePath = str_replace( - "{" . "variation_id" . "}", - $this->apiClient->getSerializer()->toPathValue($variation_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Variation' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Variation', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Variation', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/V1LocationsApi.php b/includes/classes/vendors/square/connect/lib/Api/V1LocationsApi.php deleted file mode 100644 index 7cff869cc2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/V1LocationsApi.php +++ /dev/null @@ -1,237 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return V1LocationsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * @deprecated - * listLocations - * - * ListLocations - * - * @return \SquareConnect\Model\V1Merchant[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listLocations() - { - trigger_error("\x1B[33mCalling deprecated API: V1LocationsApi.listLocations\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listLocationsWithHttpInfo (); - return $response; - } - - - /** - * listLocationsWithHttpInfo - * - * ListLocations - * - * @return Array of \SquareConnect\Model\V1Merchant[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listLocationsWithHttpInfo() - { - - - // parse inputs - $resourcePath = "/v1/me/locations"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Merchant[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Merchant[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Merchant[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * retrieveBusiness - * - * RetrieveBusiness - * - * @return \SquareConnect\Model\V1Merchant - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveBusiness() - { - trigger_error("\x1B[33mCalling deprecated API: V1LocationsApi.retrieveBusiness\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->retrieveBusinessWithHttpInfo (); - return $response; - } - - - /** - * retrieveBusinessWithHttpInfo - * - * RetrieveBusiness - * - * @return Array of \SquareConnect\Model\V1Merchant, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveBusinessWithHttpInfo() - { - - - // parse inputs - $resourcePath = "/v1/me"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Merchant' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Merchant', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Merchant', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Api/V1TransactionsApi.php b/includes/classes/vendors/square/connect/lib/Api/V1TransactionsApi.php deleted file mode 100644 index 287888586d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Api/V1TransactionsApi.php +++ /dev/null @@ -1,1312 +0,0 @@ -getConfig()->setHost('https://connect.squareup.com'); - } - - $this->apiClient = $apiClient; - } - - /** - * Get API client - * @return \SquareConnect\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * @param \SquareConnect\ApiClient $apiClient set the API client - * @return V1TransactionsApi - */ - public function setApiClient(ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * createRefund - * - * CreateRefund - * - * @param string $location_id The ID of the original payment's associated location. (required) - * @param \SquareConnect\Model\V1CreateRefundRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Refund - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createRefund($location_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->createRefundWithHttpInfo ($location_id, $body); - return $response; - } - - - /** - * createRefundWithHttpInfo - * - * CreateRefund - * - * @param string $location_id The ID of the original payment's associated location. (required) - * @param \SquareConnect\Model\V1CreateRefundRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Refund, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function createRefundWithHttpInfo($location_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling createRefund'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createRefund'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/refunds"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'POST', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Refund' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Refund', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Refund', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * listBankAccounts - * - * ListBankAccounts - * - * @param string $location_id The ID of the location to list bank accounts for. (required) - * @return \SquareConnect\Model\V1BankAccount[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listBankAccounts($location_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1TransactionsApi.listBankAccounts\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->listBankAccountsWithHttpInfo ($location_id); - return $response; - } - - - /** - * listBankAccountsWithHttpInfo - * - * ListBankAccounts - * - * @param string $location_id The ID of the location to list bank accounts for. (required) - * @return Array of \SquareConnect\Model\V1BankAccount[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listBankAccountsWithHttpInfo($location_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listBankAccounts'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/bank-accounts"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1BankAccount[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1BankAccount[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1BankAccount[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listOrders - * - * ListOrders - * - * @param string $location_id The ID of the location to list online store orders for. (required) - * @param string $order TThe order in which payments are listed in the response. (optional) - * @param int $limit The maximum number of payments to return in a single response. This value cannot exceed 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return \SquareConnect\Model\V1Order[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listOrders($location_id, $order = null, $limit = null, $batch_token = null) - { - list($response, $statusCode, $httpHeader) = $this->listOrdersWithHttpInfo ($location_id, $order, $limit, $batch_token); - return $response; - } - - - /** - * listOrdersWithHttpInfo - * - * ListOrders - * - * @param string $location_id The ID of the location to list online store orders for. (required) - * @param string $order TThe order in which payments are listed in the response. (optional) - * @param int $limit The maximum number of payments to return in a single response. This value cannot exceed 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return Array of \SquareConnect\Model\V1Order[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listOrdersWithHttpInfo($location_id, $order = null, $limit = null, $batch_token = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listOrders'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/orders"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($order !== null) { - $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Order[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Order[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Order[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listPayments - * - * ListPayments - * - * @param string $location_id The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations. (required) - * @param string $order The order in which payments are listed in the response. (optional) - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. (optional) - * @param int $limit The maximum number of payments to return in a single response. This value cannot exceed 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @param bool $include_partial Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed. (optional) - * @return \SquareConnect\Model\V1Payment[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listPayments($location_id, $order = null, $begin_time = null, $end_time = null, $limit = null, $batch_token = null, $include_partial = null) - { - list($response, $statusCode, $httpHeader) = $this->listPaymentsWithHttpInfo ($location_id, $order, $begin_time, $end_time, $limit, $batch_token, $include_partial); - return $response; - } - - - /** - * listPaymentsWithHttpInfo - * - * ListPayments - * - * @param string $location_id The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations. (required) - * @param string $order The order in which payments are listed in the response. (optional) - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. (optional) - * @param int $limit The maximum number of payments to return in a single response. This value cannot exceed 200. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @param bool $include_partial Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed. (optional) - * @return Array of \SquareConnect\Model\V1Payment[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listPaymentsWithHttpInfo($location_id, $order = null, $begin_time = null, $end_time = null, $limit = null, $batch_token = null, $include_partial = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listPayments'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/payments"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($order !== null) { - $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); - }// query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - }// query params - if ($include_partial !== null) { - $queryParams['include_partial'] = $this->apiClient->getSerializer()->toQueryValue($include_partial); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Payment[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Payment[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Payment[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listRefunds - * - * ListRefunds - * - * @param string $location_id The ID of the location to list refunds for. (required) - * @param string $order TThe order in which payments are listed in the response. (optional) - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. (optional) - * @param int $limit The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return \SquareConnect\Model\V1Refund[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listRefunds($location_id, $order = null, $begin_time = null, $end_time = null, $limit = null, $batch_token = null) - { - list($response, $statusCode, $httpHeader) = $this->listRefundsWithHttpInfo ($location_id, $order, $begin_time, $end_time, $limit, $batch_token); - return $response; - } - - - /** - * listRefundsWithHttpInfo - * - * ListRefunds - * - * @param string $location_id The ID of the location to list refunds for. (required) - * @param string $order TThe order in which payments are listed in the response. (optional) - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. (optional) - * @param int $limit The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods. (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return Array of \SquareConnect\Model\V1Refund[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listRefundsWithHttpInfo($location_id, $order = null, $begin_time = null, $end_time = null, $limit = null, $batch_token = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listRefunds'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/refunds"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($order !== null) { - $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); - }// query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Refund[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Refund[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Refund[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * listSettlements - * - * ListSettlements - * - * @param string $location_id The ID of the location to list settlements for. If you specify me, this endpoint returns settlements aggregated from all of the business's locations. (required) - * @param string $order The order in which settlements are listed in the response. (optional) - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. (optional) - * @param int $limit The maximum number of settlements to return in a single response. This value cannot exceed 200. (optional) - * @param string $status Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED). (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return \SquareConnect\Model\V1Settlement[] - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listSettlements($location_id, $order = null, $begin_time = null, $end_time = null, $limit = null, $status = null, $batch_token = null) - { - list($response, $statusCode, $httpHeader) = $this->listSettlementsWithHttpInfo ($location_id, $order, $begin_time, $end_time, $limit, $status, $batch_token); - return $response; - } - - - /** - * listSettlementsWithHttpInfo - * - * ListSettlements - * - * @param string $location_id The ID of the location to list settlements for. If you specify me, this endpoint returns settlements aggregated from all of the business's locations. (required) - * @param string $order The order in which settlements are listed in the response. (optional) - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. (optional) - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. (optional) - * @param int $limit The maximum number of settlements to return in a single response. This value cannot exceed 200. (optional) - * @param string $status Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED). (optional) - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional) - * @return Array of \SquareConnect\Model\V1Settlement[], HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function listSettlementsWithHttpInfo($location_id, $order = null, $begin_time = null, $end_time = null, $limit = null, $status = null, $batch_token = null) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling listSettlements'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/settlements"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - // query params - if ($order !== null) { - $queryParams['order'] = $this->apiClient->getSerializer()->toQueryValue($order); - }// query params - if ($begin_time !== null) { - $queryParams['begin_time'] = $this->apiClient->getSerializer()->toQueryValue($begin_time); - }// query params - if ($end_time !== null) { - $queryParams['end_time'] = $this->apiClient->getSerializer()->toQueryValue($end_time); - }// query params - if ($limit !== null) { - $queryParams['limit'] = $this->apiClient->getSerializer()->toQueryValue($limit); - }// query params - if ($status !== null) { - $queryParams['status'] = $this->apiClient->getSerializer()->toQueryValue($status); - }// query params - if ($batch_token !== null) { - $queryParams['batch_token'] = $this->apiClient->getSerializer()->toQueryValue($batch_token); - } - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Settlement[]' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Settlement[]', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Settlement[]', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * @deprecated - * retrieveBankAccount - * - * RetrieveBankAccount - * - * @param string $location_id The ID of the bank account's associated location. (required) - * @param string $bank_account_id The bank account's Square-issued ID. You obtain this value from Settlement objects returned. (required) - * @return \SquareConnect\Model\V1BankAccount - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveBankAccount($location_id, $bank_account_id) - { - trigger_error("\x1B[33mCalling deprecated API: V1TransactionsApi.retrieveBankAccount\x1B[0m", E_USER_DEPRECATED); - list($response, $statusCode, $httpHeader) = $this->retrieveBankAccountWithHttpInfo ($location_id, $bank_account_id); - return $response; - } - - - /** - * retrieveBankAccountWithHttpInfo - * - * RetrieveBankAccount - * - * @param string $location_id The ID of the bank account's associated location. (required) - * @param string $bank_account_id The bank account's Square-issued ID. You obtain this value from Settlement objects returned. (required) - * @return Array of \SquareConnect\Model\V1BankAccount, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveBankAccountWithHttpInfo($location_id, $bank_account_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveBankAccount'); - } - // verify the required parameter 'bank_account_id' is set - if ($bank_account_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $bank_account_id when calling retrieveBankAccount'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/bank-accounts/{bank_account_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($bank_account_id !== null) { - $resourcePath = str_replace( - "{" . "bank_account_id" . "}", - $this->apiClient->getSerializer()->toPathValue($bank_account_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1BankAccount' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1BankAccount', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1BankAccount', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveOrder - * - * RetrieveOrder - * - * @param string $location_id The ID of the order's associated location. (required) - * @param string $order_id The order's Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint (required) - * @return \SquareConnect\Model\V1Order - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveOrder($location_id, $order_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveOrderWithHttpInfo ($location_id, $order_id); - return $response; - } - - - /** - * retrieveOrderWithHttpInfo - * - * RetrieveOrder - * - * @param string $location_id The ID of the order's associated location. (required) - * @param string $order_id The order's Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint (required) - * @return Array of \SquareConnect\Model\V1Order, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveOrderWithHttpInfo($location_id, $order_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveOrder'); - } - // verify the required parameter 'order_id' is set - if ($order_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $order_id when calling retrieveOrder'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/orders/{order_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($order_id !== null) { - $resourcePath = str_replace( - "{" . "order_id" . "}", - $this->apiClient->getSerializer()->toPathValue($order_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Order' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Order', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Order', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrievePayment - * - * RetrievePayment - * - * @param string $location_id The ID of the payment's associated location. (required) - * @param string $payment_id The Square-issued payment ID. payment_id comes from Payment objects returned by the List Payments endpoint, Settlement objects returned by the List Settlements endpoint, or Refund objects returned by the List Refunds endpoint. (required) - * @return \SquareConnect\Model\V1Payment - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrievePayment($location_id, $payment_id) - { - list($response, $statusCode, $httpHeader) = $this->retrievePaymentWithHttpInfo ($location_id, $payment_id); - return $response; - } - - - /** - * retrievePaymentWithHttpInfo - * - * RetrievePayment - * - * @param string $location_id The ID of the payment's associated location. (required) - * @param string $payment_id The Square-issued payment ID. payment_id comes from Payment objects returned by the List Payments endpoint, Settlement objects returned by the List Settlements endpoint, or Refund objects returned by the List Refunds endpoint. (required) - * @return Array of \SquareConnect\Model\V1Payment, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrievePaymentWithHttpInfo($location_id, $payment_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrievePayment'); - } - // verify the required parameter 'payment_id' is set - if ($payment_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $payment_id when calling retrievePayment'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/payments/{payment_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($payment_id !== null) { - $resourcePath = str_replace( - "{" . "payment_id" . "}", - $this->apiClient->getSerializer()->toPathValue($payment_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Payment' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Payment', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Payment', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * retrieveSettlement - * - * RetrieveSettlement - * - * @param string $location_id The ID of the settlements's associated location. (required) - * @param string $settlement_id The settlement's Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint. (required) - * @return \SquareConnect\Model\V1Settlement - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveSettlement($location_id, $settlement_id) - { - list($response, $statusCode, $httpHeader) = $this->retrieveSettlementWithHttpInfo ($location_id, $settlement_id); - return $response; - } - - - /** - * retrieveSettlementWithHttpInfo - * - * RetrieveSettlement - * - * @param string $location_id The ID of the settlements's associated location. (required) - * @param string $settlement_id The settlement's Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint. (required) - * @return Array of \SquareConnect\Model\V1Settlement, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function retrieveSettlementWithHttpInfo($location_id, $settlement_id) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling retrieveSettlement'); - } - // verify the required parameter 'settlement_id' is set - if ($settlement_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $settlement_id when calling retrieveSettlement'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/settlements/{settlement_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($settlement_id !== null) { - $resourcePath = str_replace( - "{" . "settlement_id" . "}", - $this->apiClient->getSerializer()->toPathValue($settlement_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'GET', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Settlement' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Settlement', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Settlement', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } - /** - * updateOrder - * - * UpdateOrder - * - * @param string $location_id The ID of the order's associated location. (required) - * @param string $order_id The order's Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint (required) - * @param \SquareConnect\Model\V1UpdateOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return \SquareConnect\Model\V1Order - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateOrder($location_id, $order_id, $body) - { - list($response, $statusCode, $httpHeader) = $this->updateOrderWithHttpInfo ($location_id, $order_id, $body); - return $response; - } - - - /** - * updateOrderWithHttpInfo - * - * UpdateOrder - * - * @param string $location_id The ID of the order's associated location. (required) - * @param string $order_id The order's Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint (required) - * @param \SquareConnect\Model\V1UpdateOrderRequest $body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) - * @return Array of \SquareConnect\Model\V1Order, HTTP status code, HTTP response headers (array of strings) - * @throws \SquareConnect\ApiException on non-2xx response - */ - public function updateOrderWithHttpInfo($location_id, $order_id, $body) - { - - // verify the required parameter 'location_id' is set - if ($location_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $location_id when calling updateOrder'); - } - // verify the required parameter 'order_id' is set - if ($order_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $order_id when calling updateOrder'); - } - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling updateOrder'); - } - - // parse inputs - $resourcePath = "/v1/{location_id}/orders/{order_id}"; - $httpBody = ''; - $queryParams = array(); - $headerParams = array(); - $formParams = array(); - $_header_accept = ApiClient::selectHeaderAccept(array('application/json')); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json')); - $headerParams['Square-Version'] = "2020-05-28"; - - - - // path params - if ($location_id !== null) { - $resourcePath = str_replace( - "{" . "location_id" . "}", - $this->apiClient->getSerializer()->toPathValue($location_id), - $resourcePath - ); - }// path params - if ($order_id !== null) { - $resourcePath = str_replace( - "{" . "order_id" . "}", - $this->apiClient->getSerializer()->toPathValue($order_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - - // this endpoint requires OAuth (access token) - if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { - $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, 'PUT', - $queryParams, $httpBody, - $headerParams, '\SquareConnect\Model\V1Order' - ); - if (!$response) { - return array(null, $statusCode, $httpHeader); - } - - return array(\SquareConnect\ObjectSerializer::deserialize($response, '\SquareConnect\Model\V1Order', $httpHeader), $statusCode, $httpHeader); - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = \SquareConnect\ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\V1Order', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/ApiClient.php b/includes/classes/vendors/square/connect/lib/ApiClient.php deleted file mode 100644 index 030093e165..0000000000 --- a/includes/classes/vendors/square/connect/lib/ApiClient.php +++ /dev/null @@ -1,356 +0,0 @@ -config = $config; - $this->serializer = new ObjectSerializer(); - } - - /** - * Get the config - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Get the serializer - * @return ObjectSerializer - */ - public function getSerializer() - { - return $this->serializer; - } - - /** - * Get API key (with prefix if set) - * @param string $apiKeyIdentifier name of apikey - * @return string API key with the prefix - */ - public function getApiKeyWithPrefix($apiKeyIdentifier) - { - $prefix = $this->config->getApiKeyPrefix($apiKeyIdentifier); - $apiKey = $this->config->getApiKey($apiKeyIdentifier); - - if (!isset($apiKey)) { - return null; - } - - if (isset($prefix)) { - $keyWithPrefix = $prefix." ".$apiKey; - } else { - $keyWithPrefix = $apiKey; - } - - return $keyWithPrefix; - } - - /** - * Make the HTTP call (Sync) - * @param string $resourcePath path to method endpoint - * @param string $method method to call - * @param array $queryParams parameters to be place in query URL - * @param array $postData parameters to be placed in POST body - * @param array $headerParams parameters to be place in request header - * @param string $responseType expected response type of the endpoint - * @throws \SquareConnect\ApiException on a non 2xx response - * @return mixed - */ - public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null) - { - - $headers = array(); - - // construct the http header - $headerParams = array_merge( - (array)$this->config->getDefaultHeaders(), - (array)$headerParams - ); - - foreach ($headerParams as $key => $val) { - if (strcasecmp($key, "Authorization") == 0 ) { - if (strrpos($val, "Bearer", -strlen($val)) === false) { - $headers[] = "$key: Bearer $val"; - continue; - } - } - $headers[] = "$key: $val"; - } - - // form data - if ($postData and in_array('Content-Type: application/x-www-form-urlencoded', $headers)) { - $postData = http_build_query($postData); - } elseif ((is_object($postData) or is_array($postData)) and !in_array('Content-Type: multipart/form-data', $headers)) { // json model - $postData = json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($postData)); - } - - $url = $this->config->getHost() . $resourcePath; - - $curl = curl_init(); - // set timeout, if needed - if ($this->config->getCurlTimeout() != 0) { - curl_setopt($curl, CURLOPT_TIMEOUT, $this->config->getCurlTimeout()); - } - // return the result on success, rather than just true - curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); - - curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); - - // disable SSL verification, if needed - if ($this->config->getSSLVerification() == false) { - curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); - curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); - } - - if (! empty($queryParams)) { - $url = ($url . '?' . http_build_query($queryParams)); - } - - if ($method == self::$POST) { - curl_setopt($curl, CURLOPT_POST, true); - curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); - } elseif ($method == self::$HEAD) { - curl_setopt($curl, CURLOPT_NOBODY, true); - } elseif ($method == self::$OPTIONS) { - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "OPTIONS"); - curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); - } elseif ($method == self::$PATCH) { - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PATCH"); - curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); - } elseif ($method == self::$PUT) { - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT"); - curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); - } elseif ($method == self::$DELETE) { - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE"); - curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); - } elseif ($method != self::$GET) { - throw new ApiException('Method ' . $method . ' is not recognized.'); - } - curl_setopt($curl, CURLOPT_URL, $url); - - // Set user agent - curl_setopt($curl, CURLOPT_USERAGENT, $this->config->getUserAgent()); - - // debugging for curl - if ($this->config->getDebug()) { - error_log("[DEBUG] HTTP Request body ~BEGIN~\n".print_r($postData, true)."\n~END~\n", 3, $this->config->getDebugFile()); - - curl_setopt($curl, CURLOPT_VERBOSE, 1); - curl_setopt($curl, CURLOPT_STDERR, fopen($this->config->getDebugFile(), 'a')); - } else { - curl_setopt($curl, CURLOPT_VERBOSE, 0); - } - - // obtain the HTTP response headers - curl_setopt($curl, CURLOPT_HEADER, 1); - - // Make the request - $response = curl_exec($curl); - $http_header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE); - $http_header = $this->http_parse_headers(substr($response, 0, $http_header_size)); - $http_body = substr($response, $http_header_size); - $response_info = curl_getinfo($curl); - - // debug HTTP response body - if ($this->config->getDebug()) { - error_log("[DEBUG] HTTP Response body ~BEGIN~\n".print_r($http_body, true)."\n~END~\n", 3, $this->config->getDebugFile()); - } - - // Handle the response - if ($response_info['http_code'] == 0) { - $curl_error_message = curl_error($curl); - - // curl_exec can sometimes fail but still return a blank message from curl_error(). - if (!empty($curl_error_message)) { - $error_message = "API call to $url failed: " . curl_error($curl); - } else { - $error_message = "API call to $url failed, but for an unknown reason. " . - "This could happen if you are disconnected from the network."; - } - throw new ApiException($error_message, 0, null, null); - } elseif ($response_info['http_code'] >= 200 && $response_info['http_code'] <= 299 ) { - // return raw body if response is a file - if ($responseType == '\SplFileObject' || $responseType == 'ByteArray') { - return array($http_body, $response_info['http_code'], $http_header); - } - - $data = json_decode($http_body); - if (json_last_error() > 0) { // if response is a string - $data = $http_body; - } - } else { - $data = json_decode($http_body); - if (json_last_error() > 0) { // if response is a string - $data = $http_body; - } - - throw new ApiException( - "[{$http_header[0]}] $http_body", - $response_info['http_code'], $http_header, $data - ); - } - return array($data, $response_info['http_code'], $http_header); - } - - /** - * Return the header 'Accept' based on an array of Accept provided - * - * @param string[] $accept Array of header - * - * @return string Accept (e.g. application/json) - */ - public static function selectHeaderAccept($accept) - { - if (count($accept) === 0 or (count($accept) === 1 and $accept[0] === '')) { - return null; - } elseif (preg_grep("/application\/json/i", $accept)) { - return 'application/json'; - } else { - return implode(',', $accept); - } - } - - /** - * Return the content type based on an array of content-type provided - * - * @param string[] $content_type Array fo content-type - * - * @return string Content-Type (e.g. application/json) - */ - public static function selectHeaderContentType($content_type) - { - if (count($content_type) === 0 or (count($content_type) === 1 and $content_type[0] === '')) { - return 'application/json'; - } elseif (preg_grep("/application\/json/i", $content_type)) { - return 'application/json'; - } else { - return implode(',', $content_type); - } - } - - /** - * Return a batch_token if present on the Link header or null if no token - * is present - * - * @param string[] Array of HTTP response heaers - * - * @return - */ - public static function getV1BatchTokenFromHeaders($http_headers) { - if (is_array($http_headers) && isset($http_headers['Link'])) - { - $connect_link_regexp = "/^<([^>]+)>;rel='next'$/"; - if (preg_match($connect_link_regexp, $http_headers['Link'], $match) === 1) - { - $link_uri = $match[1]; - if ($query = parse_url($link_uri, PHP_URL_QUERY)) - { - parse_str($query, $query_params); - if (is_array($query_params) && isset($query_params['batch_token'])) - { - return $query_params['batch_token']; - } - } - } - } - - return null; - } - - /** - * Return an array of HTTP response headers - * - * @param string $raw_headers A string of raw HTTP response headers - * - * @return \SquareConnect\Util\CaseInsensitiveArray(string[]) CaseInsensitiveArray of HTTP response headers - */ - protected function http_parse_headers($raw_headers) - { - // ref/credit: http://php.net/manual/en/function.http-parse-headers.php#112986 - $headers = new \SquareConnect\Util\CaseInsensitiveArray(); - $key = ''; // [+] - - foreach(explode("\n", $raw_headers) as $i => $h) - { - $h = explode(':', $h, 2); - - if (isset($h[1])) - { - if (!isset($headers[$h[0]])) - $headers[$h[0]] = trim($h[1]); - elseif (is_array($headers[$h[0]])) - { - // $tmp = array_merge($headers[$h[0]], array(trim($h[1]))); // [-] - // $headers[$h[0]] = $tmp; // [-] - $headers[$h[0]] = array_merge($headers[$h[0]], array(trim($h[1]))); // [+] - } - else - { - // $tmp = array_merge(array($headers[$h[0]]), array(trim($h[1]))); // [-] - // $headers[$h[0]] = $tmp; // [-] - $headers[$h[0]] = array_merge(array($headers[$h[0]]), array(trim($h[1]))); // [+] - } - - $key = $h[0]; // [+] - } - else // [+] - { // [+] - if (substr($h[0], 0, 1) == "\t") // [+] - $headers[$key] .= "\r\n\t".trim($h[0]); // [+] - elseif (!$key) // [+] - $headers[0] = trim($h[0]);trim($h[0]); // [+] - } // [+] - } - - return $headers; - } -} diff --git a/includes/classes/vendors/square/connect/lib/ApiException.php b/includes/classes/vendors/square/connect/lib/ApiException.php deleted file mode 100644 index 542e980bec..0000000000 --- a/includes/classes/vendors/square/connect/lib/ApiException.php +++ /dev/null @@ -1,95 +0,0 @@ -responseHeaders = $responseHeaders; - $this->responseBody = $responseBody; - } - - /** - * Gets the HTTP response header - * - * @return string HTTP response header - */ - public function getResponseHeaders() - { - return $this->responseHeaders; - } - - /** - * Gets the HTTP body of the server response either as Json or string - * - * @return mixed HTTP body of the server response either as Json or string - */ - public function getResponseBody() - { - return $this->responseBody; - } - - /** - * Sets the deseralized response object (during deserialization) - * @param mixed $obj Deserialized response object - * @return void - */ - public function setResponseObject($obj) - { - $this->responseObject = $obj; - } - - /** - * Gets the deseralized response object (during deserialization) - * - * @return mixed the deserialized response object - */ - public function getResponseObject() - { - return $this->responseObject; - } -} diff --git a/includes/classes/vendors/square/connect/lib/Configuration.php b/includes/classes/vendors/square/connect/lib/Configuration.php deleted file mode 100644 index 4cdac3ee09..0000000000 --- a/includes/classes/vendors/square/connect/lib/Configuration.php +++ /dev/null @@ -1,510 +0,0 @@ -tempFolderPath = sys_get_temp_dir(); - } - - /** - * Sets API key - * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * @param string $key API key or token - * - * @return Configuration - */ - public function setApiKey($apiKeyIdentifier, $key) - { - $this->apiKeys[$apiKeyIdentifier] = $key; - return $this; - } - - /** - * Gets API key - * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * - * @return string API key or token - */ - public function getApiKey($apiKeyIdentifier) - { - return isset($this->apiKeys[$apiKeyIdentifier]) ? $this->apiKeys[$apiKeyIdentifier] : null; - } - - /** - * Sets the prefix for API key (e.g. Bearer) - * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * @param string $prefix API key prefix, e.g. Bearer - * - * @return Configuration - */ - public function setApiKeyPrefix($apiKeyIdentifier, $prefix) - { - $this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix; - return $this; - } - - /** - * Gets API key prefix - * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * - * @return string - */ - public function getApiKeyPrefix($apiKeyIdentifier) - { - return isset($this->apiKeyPrefixes[$apiKeyIdentifier]) ? $this->apiKeyPrefixes[$apiKeyIdentifier] : null; - } - - /** - * Sets the access token for OAuth - * - * @param string $accessToken Token for OAuth - * - * @return Configuration - */ - public function setAccessToken($accessToken) - { - $this->accessToken = $accessToken; - return $this; - } - - /** - * Gets the access token for OAuth - * - * @return string Access token for OAuth - */ - public function getAccessToken() - { - return $this->accessToken; - } - - /** - * Sets the username for HTTP basic authentication - * - * @param string $username Username for HTTP basic authentication - * - * @return Configuration - */ - public function setUsername($username) - { - $this->username = $username; - return $this; - } - - /** - * Gets the username for HTTP basic authentication - * - * @return string Username for HTTP basic authentication - */ - public function getUsername() - { - return $this->username; - } - - /** - * Sets the password for HTTP basic authentication - * - * @param string $password Password for HTTP basic authentication - * - * @return Configuration - */ - public function setPassword($password) - { - $this->password = $password; - return $this; - } - - /** - * Gets the password for HTTP basic authentication - * - * @return string Password for HTTP basic authentication - */ - public function getPassword() - { - return $this->password; - } - - /** - * Adds a default header - * - * @param string $headerName header name (e.g. Token) - * @param string $headerValue header value (e.g. 1z8wp3) - * - * @return ApiClient - */ - public function addDefaultHeader($headerName, $headerValue) - { - if (!is_string($headerName)) { - throw new \InvalidArgumentException('Header name must be a string.'); - } - - $this->defaultHeaders[$headerName] = $headerValue; - return $this; - } - - /** - * Gets the default header - * - * @return array An array of default header(s) - */ - public function getDefaultHeaders() - { - return $this->defaultHeaders; - } - - /** - * Deletes a default header - * - * @param string $headerName the header to delete - * - * @return Configuration - */ - public function deleteDefaultHeader($headerName) - { - unset($this->defaultHeaders[$headerName]); - } - - /** - * Sets the host - * - * @param string $host Host - * - * @return Configuration - */ - public function setHost($host) - { - $this->host = $host; - return $this; - } - - /** - * Gets the host - * - * @return string Host - */ - public function getHost() - { - return $this->host; - } - - /** - * Sets the user agent of the api client - * - * @param string $userAgent the user agent of the api client - * - * @return ApiClient - */ - public function setUserAgent($userAgent) - { - if (!is_string($userAgent)) { - throw new \InvalidArgumentException('User-agent must be a string.'); - } - - $this->userAgent = $userAgent; - return $this; - } - - /** - * Gets the user agent of the api client - * - * @return string user agent - */ - public function getUserAgent() - { - return $this->userAgent; - } - - /** - * Sets the HTTP timeout value - * - * @param integer $seconds Number of seconds before timing out [set to 0 for no timeout] - * - * @return ApiClient - */ - public function setCurlTimeout($seconds) - { - if (!is_numeric($seconds) || $seconds < 0) { - throw new \InvalidArgumentException('Timeout value must be numeric and a non-negative number.'); - } - - $this->curlTimeout = $seconds; - return $this; - } - - /** - * Gets the HTTP timeout value - * - * @return string HTTP timeout value - */ - public function getCurlTimeout() - { - return $this->curlTimeout; - } - - /** - * Sets debug flag - * - * @param bool $debug Debug flag - * - * @return Configuration - */ - public function setDebug($debug) - { - $this->debug = $debug; - return $this; - } - - /** - * Gets the debug flag - * - * @return bool - */ - public function getDebug() - { - return $this->debug; - } - - /** - * Sets the debug file - * - * @param string $debugFile Debug file - * - * @return Configuration - */ - public function setDebugFile($debugFile) - { - $this->debugFile = $debugFile; - return $this; - } - - /** - * Gets the debug file - * - * @return string - */ - public function getDebugFile() - { - return $this->debugFile; - } - - /** - * Sets the temp folder path - * - * @param string $tempFolderPath Temp folder path - * - * @return Configuration - */ - public function setTempFolderPath($tempFolderPath) - { - $this->tempFolderPath = $tempFolderPath; - return $this; - } - - /** - * Gets the temp folder path - * - * @return string Temp folder path - */ - public function getTempFolderPath() - { - return $this->tempFolderPath; - } - - /** - * Sets if SSL verification should be enabled or disabled - * - * @param boolean $sslVerification True if the certificate should be validated, false otherwise - * - * @return Configuration - */ - public function setSSLVerification($sslVerification) - { - $this->sslVerification = $sslVerification; - return $this; - } - - /** - * Gets if SSL verification should be enabled or disabled - * - * @return boolean True if the certificate should be validated, false otherwise - */ - public function getSSLVerification() - { - return $this->sslVerification; - } - - /** - * Gets the default configuration instance - * - * @return Configuration - */ - public static function getDefaultConfiguration() - { - if (self::$_defaultConfiguration == null) { - self::$_defaultConfiguration = new Configuration(); - } - - return self::$_defaultConfiguration; - } - - /** - * Sets the detault configuration instance - * - * @param Configuration $config An instance of the Configuration Object - * - * @return void - */ - public static function setDefaultConfiguration(Configuration $config) - { - self::$_defaultConfiguration = $config; - } - - /** - * Gets the essential information for debugging - * - * @return string The report for debugging - */ - public static function toDebugReport() - { - $report = "PHP SDK (SquareConnect) Debug Report:\n"; - $report .= " OS: ".php_uname()."\n"; - $report .= " PHP Version: ".phpversion()."\n"; - $report .= " OpenAPI Spec Version: 2.0\n"; - $report .= " SDK Package Version: 3.20200528.1\n"; - $report .= " Temp Folder Path: ".self::getDefaultConfiguration()->getTempFolderPath()."\n"; - - return $report; - } - -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AcceptDisputeRequest.php b/includes/classes/vendors/square/connect/lib/Model/AcceptDisputeRequest.php deleted file mode 100644 index deb9f1656a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AcceptDisputeRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AcceptDisputeResponse.php b/includes/classes/vendors/square/connect/lib/Model/AcceptDisputeResponse.php deleted file mode 100644 index 73e13b39e6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AcceptDisputeResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'dispute' => '\SquareConnect\Model\Dispute' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'dispute' => 'dispute' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'dispute' => 'setDispute' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'dispute' => 'getDispute' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $dispute Details about the accepted dispute. - * @var \SquareConnect\Model\Dispute - */ - protected $dispute; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["dispute"])) { - $this->dispute = $data["dispute"]; - } else { - $this->dispute = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets dispute - * @return \SquareConnect\Model\Dispute - */ - public function getDispute() - { - return $this->dispute; - } - - /** - * Sets dispute - * @param \SquareConnect\Model\Dispute $dispute Details about the accepted dispute. - * @return $this - */ - public function setDispute($dispute) - { - $this->dispute = $dispute; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AccumulateLoyaltyPointsRequest.php b/includes/classes/vendors/square/connect/lib/Model/AccumulateLoyaltyPointsRequest.php deleted file mode 100644 index ddff6f0340..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AccumulateLoyaltyPointsRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\LoyaltyEventAccumulatePoints', - 'idempotency_key' => 'string', - 'location_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'accumulate_points' => 'accumulate_points', - 'idempotency_key' => 'idempotency_key', - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'accumulate_points' => 'setAccumulatePoints', - 'idempotency_key' => 'setIdempotencyKey', - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'accumulate_points' => 'getAccumulatePoints', - 'idempotency_key' => 'getIdempotencyKey', - 'location_id' => 'getLocationId' - ); - - /** - * $accumulate_points The points to add to the account. If you are using the Orders API to manage orders, you specify the order ID. Otherwise, specify the points to add. - * @var \SquareConnect\Model\LoyaltyEventAccumulatePoints - */ - protected $accumulate_points; - /** - * $idempotency_key A unique string that identifies the `AccumulateLoyaltyPoints` request. Keys can be any valid string but must be unique for every request. - * @var string - */ - protected $idempotency_key; - /** - * $location_id The `location` where the purchase was made. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["accumulate_points"])) { - $this->accumulate_points = $data["accumulate_points"]; - } else { - $this->accumulate_points = null; - } - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets accumulate_points - * @return \SquareConnect\Model\LoyaltyEventAccumulatePoints - */ - public function getAccumulatePoints() - { - return $this->accumulate_points; - } - - /** - * Sets accumulate_points - * @param \SquareConnect\Model\LoyaltyEventAccumulatePoints $accumulate_points The points to add to the account. If you are using the Orders API to manage orders, you specify the order ID. Otherwise, specify the points to add. - * @return $this - */ - public function setAccumulatePoints($accumulate_points) - { - $this->accumulate_points = $accumulate_points; - return $this; - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies the `AccumulateLoyaltyPoints` request. Keys can be any valid string but must be unique for every request. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The `location` where the purchase was made. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AccumulateLoyaltyPointsResponse.php b/includes/classes/vendors/square/connect/lib/Model/AccumulateLoyaltyPointsResponse.php deleted file mode 100644 index 2b14023770..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AccumulateLoyaltyPointsResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'event' => '\SquareConnect\Model\LoyaltyEvent' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'event' => 'event' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'event' => 'setEvent' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'event' => 'getEvent' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $event The resulting loyalty event. - * @var \SquareConnect\Model\LoyaltyEvent - */ - protected $event; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["event"])) { - $this->event = $data["event"]; - } else { - $this->event = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets event - * @return \SquareConnect\Model\LoyaltyEvent - */ - public function getEvent() - { - return $this->event; - } - - /** - * Sets event - * @param \SquareConnect\Model\LoyaltyEvent $event The resulting loyalty event. - * @return $this - */ - public function setEvent($event) - { - $this->event = $event; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AddGroupToCustomerRequest.php b/includes/classes/vendors/square/connect/lib/Model/AddGroupToCustomerRequest.php deleted file mode 100644 index 424b704a3d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AddGroupToCustomerRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AddGroupToCustomerResponse.php b/includes/classes/vendors/square/connect/lib/Model/AddGroupToCustomerResponse.php deleted file mode 100644 index 52238329a8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AddGroupToCustomerResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipient.php b/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipient.php deleted file mode 100644 index 4267477075..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipient.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'description' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'receivable_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id', - 'description' => 'description', - 'amount_money' => 'amount_money', - 'receivable_id' => 'receivable_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId', - 'description' => 'setDescription', - 'amount_money' => 'setAmountMoney', - 'receivable_id' => 'setReceivableId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId', - 'description' => 'getDescription', - 'amount_money' => 'getAmountMoney', - 'receivable_id' => 'getReceivableId' - ); - - /** - * $location_id The location ID for a recipient (other than the merchant) receiving a portion of this tender. - * @var string - */ - protected $location_id; - /** - * $description The description of the additional recipient. - * @var string - */ - protected $description; - /** - * $amount_money The amount of money distributed to the recipient. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $receivable_id The unique ID for this `AdditionalRecipientReceivable`, assigned by the server. - * @var string - */ - protected $receivable_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["receivable_id"])) { - $this->receivable_id = $data["receivable_id"]; - } else { - $this->receivable_id = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The location ID for a recipient (other than the merchant) receiving a portion of this tender. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description The description of the additional recipient. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money distributed to the recipient. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets receivable_id - * @return string - */ - public function getReceivableId() - { - return $this->receivable_id; - } - - /** - * Sets receivable_id - * @param string $receivable_id The unique ID for this `AdditionalRecipientReceivable`, assigned by the server. - * @return $this - */ - public function setReceivableId($receivable_id) - { - $this->receivable_id = $receivable_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipientReceivable.php b/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipientReceivable.php deleted file mode 100644 index 7167d496cc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipientReceivable.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'transaction_id' => 'string', - 'transaction_location_id' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'created_at' => 'string', - 'refunds' => '\SquareConnect\Model\AdditionalRecipientReceivableRefund[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'transaction_id' => 'transaction_id', - 'transaction_location_id' => 'transaction_location_id', - 'amount_money' => 'amount_money', - 'created_at' => 'created_at', - 'refunds' => 'refunds' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'transaction_id' => 'setTransactionId', - 'transaction_location_id' => 'setTransactionLocationId', - 'amount_money' => 'setAmountMoney', - 'created_at' => 'setCreatedAt', - 'refunds' => 'setRefunds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'transaction_id' => 'getTransactionId', - 'transaction_location_id' => 'getTransactionLocationId', - 'amount_money' => 'getAmountMoney', - 'created_at' => 'getCreatedAt', - 'refunds' => 'getRefunds' - ); - - /** - * $id The additional recipient receivable's unique ID, issued by Square payments servers. - * @var string - */ - protected $id; - /** - * $transaction_id The ID of the transaction that the additional recipient receivable was applied to. - * @var string - */ - protected $transaction_id; - /** - * $transaction_location_id The ID of the location that created the receivable. This is the location ID on the associated transaction. - * @var string - */ - protected $transaction_location_id; - /** - * $amount_money The amount of the receivable. This will always be non-negative. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $created_at The time when the additional recipient receivable was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $refunds Any refunds of the receivable that have been applied. - * @var \SquareConnect\Model\AdditionalRecipientReceivableRefund[] - */ - protected $refunds; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["transaction_id"])) { - $this->transaction_id = $data["transaction_id"]; - } else { - $this->transaction_id = null; - } - if (isset($data["transaction_location_id"])) { - $this->transaction_location_id = $data["transaction_location_id"]; - } else { - $this->transaction_location_id = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["refunds"])) { - $this->refunds = $data["refunds"]; - } else { - $this->refunds = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The additional recipient receivable's unique ID, issued by Square payments servers. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets transaction_id - * @return string - */ - public function getTransactionId() - { - return $this->transaction_id; - } - - /** - * Sets transaction_id - * @param string $transaction_id The ID of the transaction that the additional recipient receivable was applied to. - * @return $this - */ - public function setTransactionId($transaction_id) - { - $this->transaction_id = $transaction_id; - return $this; - } - /** - * Gets transaction_location_id - * @return string - */ - public function getTransactionLocationId() - { - return $this->transaction_location_id; - } - - /** - * Sets transaction_location_id - * @param string $transaction_location_id The ID of the location that created the receivable. This is the location ID on the associated transaction. - * @return $this - */ - public function setTransactionLocationId($transaction_location_id) - { - $this->transaction_location_id = $transaction_location_id; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of the receivable. This will always be non-negative. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the additional recipient receivable was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets refunds - * @return \SquareConnect\Model\AdditionalRecipientReceivableRefund[] - */ - public function getRefunds() - { - return $this->refunds; - } - - /** - * Sets refunds - * @param \SquareConnect\Model\AdditionalRecipientReceivableRefund[] $refunds Any refunds of the receivable that have been applied. - * @return $this - */ - public function setRefunds($refunds) - { - $this->refunds = $refunds; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipientReceivableRefund.php b/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipientReceivableRefund.php deleted file mode 100644 index c2d10db623..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AdditionalRecipientReceivableRefund.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'receivable_id' => 'string', - 'refund_id' => 'string', - 'transaction_location_id' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'created_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'receivable_id' => 'receivable_id', - 'refund_id' => 'refund_id', - 'transaction_location_id' => 'transaction_location_id', - 'amount_money' => 'amount_money', - 'created_at' => 'created_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'receivable_id' => 'setReceivableId', - 'refund_id' => 'setRefundId', - 'transaction_location_id' => 'setTransactionLocationId', - 'amount_money' => 'setAmountMoney', - 'created_at' => 'setCreatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'receivable_id' => 'getReceivableId', - 'refund_id' => 'getRefundId', - 'transaction_location_id' => 'getTransactionLocationId', - 'amount_money' => 'getAmountMoney', - 'created_at' => 'getCreatedAt' - ); - - /** - * $id The receivable refund's unique ID, issued by Square payments servers. - * @var string - */ - protected $id; - /** - * $receivable_id The ID of the receivable that the refund was applied to. - * @var string - */ - protected $receivable_id; - /** - * $refund_id The ID of the refund that is associated to this receivable refund. - * @var string - */ - protected $refund_id; - /** - * $transaction_location_id The ID of the location that created the receivable. This is the location ID on the associated transaction. - * @var string - */ - protected $transaction_location_id; - /** - * $amount_money The amount of the refund. This will always be non-negative. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $created_at The time when the refund was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["receivable_id"])) { - $this->receivable_id = $data["receivable_id"]; - } else { - $this->receivable_id = null; - } - if (isset($data["refund_id"])) { - $this->refund_id = $data["refund_id"]; - } else { - $this->refund_id = null; - } - if (isset($data["transaction_location_id"])) { - $this->transaction_location_id = $data["transaction_location_id"]; - } else { - $this->transaction_location_id = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The receivable refund's unique ID, issued by Square payments servers. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets receivable_id - * @return string - */ - public function getReceivableId() - { - return $this->receivable_id; - } - - /** - * Sets receivable_id - * @param string $receivable_id The ID of the receivable that the refund was applied to. - * @return $this - */ - public function setReceivableId($receivable_id) - { - $this->receivable_id = $receivable_id; - return $this; - } - /** - * Gets refund_id - * @return string - */ - public function getRefundId() - { - return $this->refund_id; - } - - /** - * Sets refund_id - * @param string $refund_id The ID of the refund that is associated to this receivable refund. - * @return $this - */ - public function setRefundId($refund_id) - { - $this->refund_id = $refund_id; - return $this; - } - /** - * Gets transaction_location_id - * @return string - */ - public function getTransactionLocationId() - { - return $this->transaction_location_id; - } - - /** - * Sets transaction_location_id - * @param string $transaction_location_id The ID of the location that created the receivable. This is the location ID on the associated transaction. - * @return $this - */ - public function setTransactionLocationId($transaction_location_id) - { - $this->transaction_location_id = $transaction_location_id; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of the refund. This will always be non-negative. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the refund was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Address.php b/includes/classes/vendors/square/connect/lib/Model/Address.php deleted file mode 100644 index d2056697e3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Address.php +++ /dev/null @@ -1,608 +0,0 @@ - 'string', - 'address_line_2' => 'string', - 'address_line_3' => 'string', - 'locality' => 'string', - 'sublocality' => 'string', - 'sublocality_2' => 'string', - 'sublocality_3' => 'string', - 'administrative_district_level_1' => 'string', - 'administrative_district_level_2' => 'string', - 'administrative_district_level_3' => 'string', - 'postal_code' => 'string', - 'country' => 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'organization' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'address_line_1' => 'address_line_1', - 'address_line_2' => 'address_line_2', - 'address_line_3' => 'address_line_3', - 'locality' => 'locality', - 'sublocality' => 'sublocality', - 'sublocality_2' => 'sublocality_2', - 'sublocality_3' => 'sublocality_3', - 'administrative_district_level_1' => 'administrative_district_level_1', - 'administrative_district_level_2' => 'administrative_district_level_2', - 'administrative_district_level_3' => 'administrative_district_level_3', - 'postal_code' => 'postal_code', - 'country' => 'country', - 'first_name' => 'first_name', - 'last_name' => 'last_name', - 'organization' => 'organization' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'address_line_1' => 'setAddressLine1', - 'address_line_2' => 'setAddressLine2', - 'address_line_3' => 'setAddressLine3', - 'locality' => 'setLocality', - 'sublocality' => 'setSublocality', - 'sublocality_2' => 'setSublocality2', - 'sublocality_3' => 'setSublocality3', - 'administrative_district_level_1' => 'setAdministrativeDistrictLevel1', - 'administrative_district_level_2' => 'setAdministrativeDistrictLevel2', - 'administrative_district_level_3' => 'setAdministrativeDistrictLevel3', - 'postal_code' => 'setPostalCode', - 'country' => 'setCountry', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'organization' => 'setOrganization' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'address_line_1' => 'getAddressLine1', - 'address_line_2' => 'getAddressLine2', - 'address_line_3' => 'getAddressLine3', - 'locality' => 'getLocality', - 'sublocality' => 'getSublocality', - 'sublocality_2' => 'getSublocality2', - 'sublocality_3' => 'getSublocality3', - 'administrative_district_level_1' => 'getAdministrativeDistrictLevel1', - 'administrative_district_level_2' => 'getAdministrativeDistrictLevel2', - 'administrative_district_level_3' => 'getAdministrativeDistrictLevel3', - 'postal_code' => 'getPostalCode', - 'country' => 'getCountry', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'organization' => 'getOrganization' - ); - - /** - * $address_line_1 The first line of the address. Fields that start with `address_line` provide the address's most specific details, like street number, street name, and building name. They do *not* provide less specific details like city, state/province, or country (these details are provided in other fields). - * @var string - */ - protected $address_line_1; - /** - * $address_line_2 The second line of the address, if any. - * @var string - */ - protected $address_line_2; - /** - * $address_line_3 The third line of the address, if any. - * @var string - */ - protected $address_line_3; - /** - * $locality The city or town of the address. - * @var string - */ - protected $locality; - /** - * $sublocality A civil region within the address's `locality`, if any. - * @var string - */ - protected $sublocality; - /** - * $sublocality_2 A civil region within the address's `sublocality`, if any. - * @var string - */ - protected $sublocality_2; - /** - * $sublocality_3 A civil region within the address's `sublocality_2`, if any. - * @var string - */ - protected $sublocality_3; - /** - * $administrative_district_level_1 A civil entity within the address's country. In the US, this is the state. - * @var string - */ - protected $administrative_district_level_1; - /** - * $administrative_district_level_2 A civil entity within the address's `administrative_district_level_1`. In the US, this is the county. - * @var string - */ - protected $administrative_district_level_2; - /** - * $administrative_district_level_3 A civil entity within the address's `administrative_district_level_2`, if any. - * @var string - */ - protected $administrative_district_level_3; - /** - * $postal_code The address's postal code. - * @var string - */ - protected $postal_code; - /** - * $country The address's country, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values - * @var string - */ - protected $country; - /** - * $first_name Optional first name when it's representing recipient. - * @var string - */ - protected $first_name; - /** - * $last_name Optional last name when it's representing recipient. - * @var string - */ - protected $last_name; - /** - * $organization Optional organization name when it's representing recipient. - * @var string - */ - protected $organization; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["address_line_1"])) { - $this->address_line_1 = $data["address_line_1"]; - } else { - $this->address_line_1 = null; - } - if (isset($data["address_line_2"])) { - $this->address_line_2 = $data["address_line_2"]; - } else { - $this->address_line_2 = null; - } - if (isset($data["address_line_3"])) { - $this->address_line_3 = $data["address_line_3"]; - } else { - $this->address_line_3 = null; - } - if (isset($data["locality"])) { - $this->locality = $data["locality"]; - } else { - $this->locality = null; - } - if (isset($data["sublocality"])) { - $this->sublocality = $data["sublocality"]; - } else { - $this->sublocality = null; - } - if (isset($data["sublocality_2"])) { - $this->sublocality_2 = $data["sublocality_2"]; - } else { - $this->sublocality_2 = null; - } - if (isset($data["sublocality_3"])) { - $this->sublocality_3 = $data["sublocality_3"]; - } else { - $this->sublocality_3 = null; - } - if (isset($data["administrative_district_level_1"])) { - $this->administrative_district_level_1 = $data["administrative_district_level_1"]; - } else { - $this->administrative_district_level_1 = null; - } - if (isset($data["administrative_district_level_2"])) { - $this->administrative_district_level_2 = $data["administrative_district_level_2"]; - } else { - $this->administrative_district_level_2 = null; - } - if (isset($data["administrative_district_level_3"])) { - $this->administrative_district_level_3 = $data["administrative_district_level_3"]; - } else { - $this->administrative_district_level_3 = null; - } - if (isset($data["postal_code"])) { - $this->postal_code = $data["postal_code"]; - } else { - $this->postal_code = null; - } - if (isset($data["country"])) { - $this->country = $data["country"]; - } else { - $this->country = null; - } - if (isset($data["first_name"])) { - $this->first_name = $data["first_name"]; - } else { - $this->first_name = null; - } - if (isset($data["last_name"])) { - $this->last_name = $data["last_name"]; - } else { - $this->last_name = null; - } - if (isset($data["organization"])) { - $this->organization = $data["organization"]; - } else { - $this->organization = null; - } - } - } - /** - * Gets address_line_1 - * @return string - */ - public function getAddressLine1() - { - return $this->address_line_1; - } - - /** - * Sets address_line_1 - * @param string $address_line_1 The first line of the address. Fields that start with `address_line` provide the address's most specific details, like street number, street name, and building name. They do *not* provide less specific details like city, state/province, or country (these details are provided in other fields). - * @return $this - */ - public function setAddressLine1($address_line_1) - { - $this->address_line_1 = $address_line_1; - return $this; - } - /** - * Gets address_line_2 - * @return string - */ - public function getAddressLine2() - { - return $this->address_line_2; - } - - /** - * Sets address_line_2 - * @param string $address_line_2 The second line of the address, if any. - * @return $this - */ - public function setAddressLine2($address_line_2) - { - $this->address_line_2 = $address_line_2; - return $this; - } - /** - * Gets address_line_3 - * @return string - */ - public function getAddressLine3() - { - return $this->address_line_3; - } - - /** - * Sets address_line_3 - * @param string $address_line_3 The third line of the address, if any. - * @return $this - */ - public function setAddressLine3($address_line_3) - { - $this->address_line_3 = $address_line_3; - return $this; - } - /** - * Gets locality - * @return string - */ - public function getLocality() - { - return $this->locality; - } - - /** - * Sets locality - * @param string $locality The city or town of the address. - * @return $this - */ - public function setLocality($locality) - { - $this->locality = $locality; - return $this; - } - /** - * Gets sublocality - * @return string - */ - public function getSublocality() - { - return $this->sublocality; - } - - /** - * Sets sublocality - * @param string $sublocality A civil region within the address's `locality`, if any. - * @return $this - */ - public function setSublocality($sublocality) - { - $this->sublocality = $sublocality; - return $this; - } - /** - * Gets sublocality_2 - * @return string - */ - public function getSublocality2() - { - return $this->sublocality_2; - } - - /** - * Sets sublocality_2 - * @param string $sublocality_2 A civil region within the address's `sublocality`, if any. - * @return $this - */ - public function setSublocality2($sublocality_2) - { - $this->sublocality_2 = $sublocality_2; - return $this; - } - /** - * Gets sublocality_3 - * @return string - */ - public function getSublocality3() - { - return $this->sublocality_3; - } - - /** - * Sets sublocality_3 - * @param string $sublocality_3 A civil region within the address's `sublocality_2`, if any. - * @return $this - */ - public function setSublocality3($sublocality_3) - { - $this->sublocality_3 = $sublocality_3; - return $this; - } - /** - * Gets administrative_district_level_1 - * @return string - */ - public function getAdministrativeDistrictLevel1() - { - return $this->administrative_district_level_1; - } - - /** - * Sets administrative_district_level_1 - * @param string $administrative_district_level_1 A civil entity within the address's country. In the US, this is the state. - * @return $this - */ - public function setAdministrativeDistrictLevel1($administrative_district_level_1) - { - $this->administrative_district_level_1 = $administrative_district_level_1; - return $this; - } - /** - * Gets administrative_district_level_2 - * @return string - */ - public function getAdministrativeDistrictLevel2() - { - return $this->administrative_district_level_2; - } - - /** - * Sets administrative_district_level_2 - * @param string $administrative_district_level_2 A civil entity within the address's `administrative_district_level_1`. In the US, this is the county. - * @return $this - */ - public function setAdministrativeDistrictLevel2($administrative_district_level_2) - { - $this->administrative_district_level_2 = $administrative_district_level_2; - return $this; - } - /** - * Gets administrative_district_level_3 - * @return string - */ - public function getAdministrativeDistrictLevel3() - { - return $this->administrative_district_level_3; - } - - /** - * Sets administrative_district_level_3 - * @param string $administrative_district_level_3 A civil entity within the address's `administrative_district_level_2`, if any. - * @return $this - */ - public function setAdministrativeDistrictLevel3($administrative_district_level_3) - { - $this->administrative_district_level_3 = $administrative_district_level_3; - return $this; - } - /** - * Gets postal_code - * @return string - */ - public function getPostalCode() - { - return $this->postal_code; - } - - /** - * Sets postal_code - * @param string $postal_code The address's postal code. - * @return $this - */ - public function setPostalCode($postal_code) - { - $this->postal_code = $postal_code; - return $this; - } - /** - * Gets country - * @return string - */ - public function getCountry() - { - return $this->country; - } - - /** - * Sets country - * @param string $country The address's country, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values - * @return $this - */ - public function setCountry($country) - { - $this->country = $country; - return $this; - } - /** - * Gets first_name - * @return string - */ - public function getFirstName() - { - return $this->first_name; - } - - /** - * Sets first_name - * @param string $first_name Optional first name when it's representing recipient. - * @return $this - */ - public function setFirstName($first_name) - { - $this->first_name = $first_name; - return $this; - } - /** - * Gets last_name - * @return string - */ - public function getLastName() - { - return $this->last_name; - } - - /** - * Sets last_name - * @param string $last_name Optional last name when it's representing recipient. - * @return $this - */ - public function setLastName($last_name) - { - $this->last_name = $last_name; - return $this; - } - /** - * Gets organization - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * Sets organization - * @param string $organization Optional organization name when it's representing recipient. - * @return $this - */ - public function setOrganization($organization) - { - $this->organization = $organization; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AdjustLoyaltyPointsRequest.php b/includes/classes/vendors/square/connect/lib/Model/AdjustLoyaltyPointsRequest.php deleted file mode 100644 index 642f0e241d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AdjustLoyaltyPointsRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'adjust_points' => '\SquareConnect\Model\LoyaltyEventAdjustPoints' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'adjust_points' => 'adjust_points' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'adjust_points' => 'setAdjustPoints' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'adjust_points' => 'getAdjustPoints' - ); - - /** - * $idempotency_key A unique string that identifies this `AdjustLoyaltyPoints` request. Keys can be any valid string, but must be unique for every request. - * @var string - */ - protected $idempotency_key; - /** - * $adjust_points The points to adjust (add or subtract) and the reason for the adjustment. - * @var \SquareConnect\Model\LoyaltyEventAdjustPoints - */ - protected $adjust_points; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["adjust_points"])) { - $this->adjust_points = $data["adjust_points"]; - } else { - $this->adjust_points = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this `AdjustLoyaltyPoints` request. Keys can be any valid string, but must be unique for every request. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets adjust_points - * @return \SquareConnect\Model\LoyaltyEventAdjustPoints - */ - public function getAdjustPoints() - { - return $this->adjust_points; - } - - /** - * Sets adjust_points - * @param \SquareConnect\Model\LoyaltyEventAdjustPoints $adjust_points The points to adjust (add or subtract) and the reason for the adjustment. - * @return $this - */ - public function setAdjustPoints($adjust_points) - { - $this->adjust_points = $adjust_points; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/AdjustLoyaltyPointsResponse.php b/includes/classes/vendors/square/connect/lib/Model/AdjustLoyaltyPointsResponse.php deleted file mode 100644 index d7f87e03b6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/AdjustLoyaltyPointsResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'event' => '\SquareConnect\Model\LoyaltyEvent' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'event' => 'event' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'event' => 'setEvent' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'event' => 'getEvent' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $event The resulting event data for adjusting points. - * @var \SquareConnect\Model\LoyaltyEvent - */ - protected $event; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["event"])) { - $this->event = $data["event"]; - } else { - $this->event = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets event - * @return \SquareConnect\Model\LoyaltyEvent - */ - public function getEvent() - { - return $this->event; - } - - /** - * Sets event - * @param \SquareConnect\Model\LoyaltyEvent $event The resulting event data for adjusting points. - * @return $this - */ - public function setEvent($event) - { - $this->event = $event; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BalancePaymentDetails.php b/includes/classes/vendors/square/connect/lib/Model/BalancePaymentDetails.php deleted file mode 100644 index d83f5b9079..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BalancePaymentDetails.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'status' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'account_id' => 'account_id', - 'status' => 'status' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'account_id' => 'setAccountId', - 'status' => 'setStatus' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'account_id' => 'getAccountId', - 'status' => 'getStatus' - ); - - /** - * $account_id ID for the account used to fund the payment. - * @var string - */ - protected $account_id; - /** - * $status The balance payment’s current state. Can be `COMPLETED` or `FAILED`. - * @var string - */ - protected $status; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["account_id"])) { - $this->account_id = $data["account_id"]; - } else { - $this->account_id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - } - } - /** - * Gets account_id - * @return string - */ - public function getAccountId() - { - return $this->account_id; - } - - /** - * Sets account_id - * @param string $account_id ID for the account used to fund the payment. - * @return $this - */ - public function setAccountId($account_id) - { - $this->account_id = $account_id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The balance payment’s current state. Can be `COMPLETED` or `FAILED`. - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BankAccount.php b/includes/classes/vendors/square/connect/lib/Model/BankAccount.php deleted file mode 100644 index 8bd45a3b00..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BankAccount.php +++ /dev/null @@ -1,674 +0,0 @@ - 'string', - 'account_number_suffix' => 'string', - 'country' => 'string', - 'currency' => 'string', - 'account_type' => 'string', - 'holder_name' => 'string', - 'primary_bank_identification_number' => 'string', - 'secondary_bank_identification_number' => 'string', - 'debit_mandate_reference_id' => 'string', - 'reference_id' => 'string', - 'location_id' => 'string', - 'status' => 'string', - 'creditable' => 'bool', - 'debitable' => 'bool', - 'fingerprint' => 'string', - 'version' => 'int', - 'bank_name' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'account_number_suffix' => 'account_number_suffix', - 'country' => 'country', - 'currency' => 'currency', - 'account_type' => 'account_type', - 'holder_name' => 'holder_name', - 'primary_bank_identification_number' => 'primary_bank_identification_number', - 'secondary_bank_identification_number' => 'secondary_bank_identification_number', - 'debit_mandate_reference_id' => 'debit_mandate_reference_id', - 'reference_id' => 'reference_id', - 'location_id' => 'location_id', - 'status' => 'status', - 'creditable' => 'creditable', - 'debitable' => 'debitable', - 'fingerprint' => 'fingerprint', - 'version' => 'version', - 'bank_name' => 'bank_name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'account_number_suffix' => 'setAccountNumberSuffix', - 'country' => 'setCountry', - 'currency' => 'setCurrency', - 'account_type' => 'setAccountType', - 'holder_name' => 'setHolderName', - 'primary_bank_identification_number' => 'setPrimaryBankIdentificationNumber', - 'secondary_bank_identification_number' => 'setSecondaryBankIdentificationNumber', - 'debit_mandate_reference_id' => 'setDebitMandateReferenceId', - 'reference_id' => 'setReferenceId', - 'location_id' => 'setLocationId', - 'status' => 'setStatus', - 'creditable' => 'setCreditable', - 'debitable' => 'setDebitable', - 'fingerprint' => 'setFingerprint', - 'version' => 'setVersion', - 'bank_name' => 'setBankName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'account_number_suffix' => 'getAccountNumberSuffix', - 'country' => 'getCountry', - 'currency' => 'getCurrency', - 'account_type' => 'getAccountType', - 'holder_name' => 'getHolderName', - 'primary_bank_identification_number' => 'getPrimaryBankIdentificationNumber', - 'secondary_bank_identification_number' => 'getSecondaryBankIdentificationNumber', - 'debit_mandate_reference_id' => 'getDebitMandateReferenceId', - 'reference_id' => 'getReferenceId', - 'location_id' => 'getLocationId', - 'status' => 'getStatus', - 'creditable' => 'getCreditable', - 'debitable' => 'getDebitable', - 'fingerprint' => 'getFingerprint', - 'version' => 'getVersion', - 'bank_name' => 'getBankName' - ); - - /** - * $id The unique, Square-issued identifier for the bank account. - * @var string - */ - protected $id; - /** - * $account_number_suffix The last few digits of the account number. - * @var string - */ - protected $account_number_suffix; - /** - * $country The ISO 3166 Alpha-2 country code where the bank account is based. See [Country](#type-country) for possible values - * @var string - */ - protected $country; - /** - * $currency The 3-character ISO 4217 currency code indicating the operating currency of the bank account. For example, the currency code for US dollars is `USD`. See [Currency](#type-currency) for possible values - * @var string - */ - protected $currency; - /** - * $account_type The financial purpose of the associated bank account. See [BankAccountType](#type-bankaccounttype) for possible values - * @var string - */ - protected $account_type; - /** - * $holder_name Name of the account holder. This name must match the name on the targeted bank account record. - * @var string - */ - protected $holder_name; - /** - * $primary_bank_identification_number Primary identifier for the bank. For more information, see [Bank Accounts API](https://developer.squareup.com/docs/docs/bank-accounts-api). - * @var string - */ - protected $primary_bank_identification_number; - /** - * $secondary_bank_identification_number Secondary identifier for the bank. For more information, see [Bank Accounts API](https://developer.squareup.com/docs/docs/bank-accounts-api). - * @var string - */ - protected $secondary_bank_identification_number; - /** - * $debit_mandate_reference_id Reference identifier that will be displayed to UK bank account owners when collecting direct debit authorization. Only required for UK bank accounts. - * @var string - */ - protected $debit_mandate_reference_id; - /** - * $reference_id Client-provided identifier for linking the banking account to an entity in a third-party system (for example, a bank account number or a user identifier). - * @var string - */ - protected $reference_id; - /** - * $location_id The location to which the bank account belongs. - * @var string - */ - protected $location_id; - /** - * $status Read-only. The current verification status of this BankAccount object. See [BankAccountStatus](#type-bankaccountstatus) for possible values - * @var string - */ - protected $status; - /** - * $creditable Indicates whether it is possible for Square to send money to this bank account. - * @var bool - */ - protected $creditable; - /** - * $debitable Indicates whether it is possible for Square to take money from this bank account. - * @var bool - */ - protected $debitable; - /** - * $fingerprint A Square-assigned, unique identifier for the bank account based on the account information. The account fingerprint can be used to compare account entries and determine if the they represent the same real-world bank account. - * @var string - */ - protected $fingerprint; - /** - * $version The current version of the `BankAccount`. - * @var int - */ - protected $version; - /** - * $bank_name Read only. Name of actual financial institution. For example \"Bank of America\". - * @var string - */ - protected $bank_name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["account_number_suffix"])) { - $this->account_number_suffix = $data["account_number_suffix"]; - } else { - $this->account_number_suffix = null; - } - if (isset($data["country"])) { - $this->country = $data["country"]; - } else { - $this->country = null; - } - if (isset($data["currency"])) { - $this->currency = $data["currency"]; - } else { - $this->currency = null; - } - if (isset($data["account_type"])) { - $this->account_type = $data["account_type"]; - } else { - $this->account_type = null; - } - if (isset($data["holder_name"])) { - $this->holder_name = $data["holder_name"]; - } else { - $this->holder_name = null; - } - if (isset($data["primary_bank_identification_number"])) { - $this->primary_bank_identification_number = $data["primary_bank_identification_number"]; - } else { - $this->primary_bank_identification_number = null; - } - if (isset($data["secondary_bank_identification_number"])) { - $this->secondary_bank_identification_number = $data["secondary_bank_identification_number"]; - } else { - $this->secondary_bank_identification_number = null; - } - if (isset($data["debit_mandate_reference_id"])) { - $this->debit_mandate_reference_id = $data["debit_mandate_reference_id"]; - } else { - $this->debit_mandate_reference_id = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["creditable"])) { - $this->creditable = $data["creditable"]; - } else { - $this->creditable = null; - } - if (isset($data["debitable"])) { - $this->debitable = $data["debitable"]; - } else { - $this->debitable = null; - } - if (isset($data["fingerprint"])) { - $this->fingerprint = $data["fingerprint"]; - } else { - $this->fingerprint = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["bank_name"])) { - $this->bank_name = $data["bank_name"]; - } else { - $this->bank_name = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The unique, Square-issued identifier for the bank account. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets account_number_suffix - * @return string - */ - public function getAccountNumberSuffix() - { - return $this->account_number_suffix; - } - - /** - * Sets account_number_suffix - * @param string $account_number_suffix The last few digits of the account number. - * @return $this - */ - public function setAccountNumberSuffix($account_number_suffix) - { - $this->account_number_suffix = $account_number_suffix; - return $this; - } - /** - * Gets country - * @return string - */ - public function getCountry() - { - return $this->country; - } - - /** - * Sets country - * @param string $country The ISO 3166 Alpha-2 country code where the bank account is based. See [Country](#type-country) for possible values - * @return $this - */ - public function setCountry($country) - { - $this->country = $country; - return $this; - } - /** - * Gets currency - * @return string - */ - public function getCurrency() - { - return $this->currency; - } - - /** - * Sets currency - * @param string $currency The 3-character ISO 4217 currency code indicating the operating currency of the bank account. For example, the currency code for US dollars is `USD`. See [Currency](#type-currency) for possible values - * @return $this - */ - public function setCurrency($currency) - { - $this->currency = $currency; - return $this; - } - /** - * Gets account_type - * @return string - */ - public function getAccountType() - { - return $this->account_type; - } - - /** - * Sets account_type - * @param string $account_type The financial purpose of the associated bank account. See [BankAccountType](#type-bankaccounttype) for possible values - * @return $this - */ - public function setAccountType($account_type) - { - $this->account_type = $account_type; - return $this; - } - /** - * Gets holder_name - * @return string - */ - public function getHolderName() - { - return $this->holder_name; - } - - /** - * Sets holder_name - * @param string $holder_name Name of the account holder. This name must match the name on the targeted bank account record. - * @return $this - */ - public function setHolderName($holder_name) - { - $this->holder_name = $holder_name; - return $this; - } - /** - * Gets primary_bank_identification_number - * @return string - */ - public function getPrimaryBankIdentificationNumber() - { - return $this->primary_bank_identification_number; - } - - /** - * Sets primary_bank_identification_number - * @param string $primary_bank_identification_number Primary identifier for the bank. For more information, see [Bank Accounts API](https://developer.squareup.com/docs/docs/bank-accounts-api). - * @return $this - */ - public function setPrimaryBankIdentificationNumber($primary_bank_identification_number) - { - $this->primary_bank_identification_number = $primary_bank_identification_number; - return $this; - } - /** - * Gets secondary_bank_identification_number - * @return string - */ - public function getSecondaryBankIdentificationNumber() - { - return $this->secondary_bank_identification_number; - } - - /** - * Sets secondary_bank_identification_number - * @param string $secondary_bank_identification_number Secondary identifier for the bank. For more information, see [Bank Accounts API](https://developer.squareup.com/docs/docs/bank-accounts-api). - * @return $this - */ - public function setSecondaryBankIdentificationNumber($secondary_bank_identification_number) - { - $this->secondary_bank_identification_number = $secondary_bank_identification_number; - return $this; - } - /** - * Gets debit_mandate_reference_id - * @return string - */ - public function getDebitMandateReferenceId() - { - return $this->debit_mandate_reference_id; - } - - /** - * Sets debit_mandate_reference_id - * @param string $debit_mandate_reference_id Reference identifier that will be displayed to UK bank account owners when collecting direct debit authorization. Only required for UK bank accounts. - * @return $this - */ - public function setDebitMandateReferenceId($debit_mandate_reference_id) - { - $this->debit_mandate_reference_id = $debit_mandate_reference_id; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id Client-provided identifier for linking the banking account to an entity in a third-party system (for example, a bank account number or a user identifier). - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The location to which the bank account belongs. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Read-only. The current verification status of this BankAccount object. See [BankAccountStatus](#type-bankaccountstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets creditable - * @return bool - */ - public function getCreditable() - { - return $this->creditable; - } - - /** - * Sets creditable - * @param bool $creditable Indicates whether it is possible for Square to send money to this bank account. - * @return $this - */ - public function setCreditable($creditable) - { - $this->creditable = $creditable; - return $this; - } - /** - * Gets debitable - * @return bool - */ - public function getDebitable() - { - return $this->debitable; - } - - /** - * Sets debitable - * @param bool $debitable Indicates whether it is possible for Square to take money from this bank account. - * @return $this - */ - public function setDebitable($debitable) - { - $this->debitable = $debitable; - return $this; - } - /** - * Gets fingerprint - * @return string - */ - public function getFingerprint() - { - return $this->fingerprint; - } - - /** - * Sets fingerprint - * @param string $fingerprint A Square-assigned, unique identifier for the bank account based on the account information. The account fingerprint can be used to compare account entries and determine if the they represent the same real-world bank account. - * @return $this - */ - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version The current version of the `BankAccount`. - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets bank_name - * @return string - */ - public function getBankName() - { - return $this->bank_name; - } - - /** - * Sets bank_name - * @param string $bank_name Read only. Name of actual financial institution. For example \"Bank of America\". - * @return $this - */ - public function setBankName($bank_name) - { - $this->bank_name = $bank_name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BankAccountStatus.php b/includes/classes/vendors/square/connect/lib/Model/BankAccountStatus.php deleted file mode 100644 index 9689ac0a37..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BankAccountStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BankAccountType.php b/includes/classes/vendors/square/connect/lib/Model/BankAccountType.php deleted file mode 100644 index 64cf4941f5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BankAccountType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchChangeInventoryRequest.php b/includes/classes/vendors/square/connect/lib/Model/BatchChangeInventoryRequest.php deleted file mode 100644 index 3beaba9da9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchChangeInventoryRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'changes' => '\SquareConnect\Model\InventoryChange[]', - 'ignore_unchanged_counts' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'changes' => 'changes', - 'ignore_unchanged_counts' => 'ignore_unchanged_counts' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'changes' => 'setChanges', - 'ignore_unchanged_counts' => 'setIgnoreUnchangedCounts' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'changes' => 'getChanges', - 'ignore_unchanged_counts' => 'getIgnoreUnchangedCounts' - ); - - /** - * $idempotency_key A client-supplied, universally unique identifier (UUID) for the request. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) in the [API Development 101](https://developer.squareup.com/docs/basics/api101/overview) section for more information. - * @var string - */ - protected $idempotency_key; - /** - * $changes The set of physical counts and inventory adjustments to be made. Changes are applied based on the client-supplied timestamp and may be sent out of order. Max size is 100 changes. - * @var \SquareConnect\Model\InventoryChange[] - */ - protected $changes; - /** - * $ignore_unchanged_counts Indicates whether the current physical count should be ignored if the quantity is unchanged since the last physical count. Default: `true`. - * @var bool - */ - protected $ignore_unchanged_counts; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["changes"])) { - $this->changes = $data["changes"]; - } else { - $this->changes = null; - } - if (isset($data["ignore_unchanged_counts"])) { - $this->ignore_unchanged_counts = $data["ignore_unchanged_counts"]; - } else { - $this->ignore_unchanged_counts = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A client-supplied, universally unique identifier (UUID) for the request. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) in the [API Development 101](https://developer.squareup.com/docs/basics/api101/overview) section for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets changes - * @return \SquareConnect\Model\InventoryChange[] - */ - public function getChanges() - { - return $this->changes; - } - - /** - * Sets changes - * @param \SquareConnect\Model\InventoryChange[] $changes The set of physical counts and inventory adjustments to be made. Changes are applied based on the client-supplied timestamp and may be sent out of order. Max size is 100 changes. - * @return $this - */ - public function setChanges($changes) - { - $this->changes = $changes; - return $this; - } - /** - * Gets ignore_unchanged_counts - * @return bool - */ - public function getIgnoreUnchangedCounts() - { - return $this->ignore_unchanged_counts; - } - - /** - * Sets ignore_unchanged_counts - * @param bool $ignore_unchanged_counts Indicates whether the current physical count should be ignored if the quantity is unchanged since the last physical count. Default: `true`. - * @return $this - */ - public function setIgnoreUnchangedCounts($ignore_unchanged_counts) - { - $this->ignore_unchanged_counts = $ignore_unchanged_counts; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchChangeInventoryResponse.php b/includes/classes/vendors/square/connect/lib/Model/BatchChangeInventoryResponse.php deleted file mode 100644 index aee923cf5c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchChangeInventoryResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'counts' => '\SquareConnect\Model\InventoryCount[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'counts' => 'counts' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'counts' => 'setCounts' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'counts' => 'getCounts' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $counts The current counts for all objects referenced in the request. - * @var \SquareConnect\Model\InventoryCount[] - */ - protected $counts; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["counts"])) { - $this->counts = $data["counts"]; - } else { - $this->counts = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets counts - * @return \SquareConnect\Model\InventoryCount[] - */ - public function getCounts() - { - return $this->counts; - } - - /** - * Sets counts - * @param \SquareConnect\Model\InventoryCount[] $counts The current counts for all objects referenced in the request. - * @return $this - */ - public function setCounts($counts) - { - $this->counts = $counts; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchDeleteCatalogObjectsRequest.php b/includes/classes/vendors/square/connect/lib/Model/BatchDeleteCatalogObjectsRequest.php deleted file mode 100644 index 7aba3ea43f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchDeleteCatalogObjectsRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'object_ids' => 'object_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'object_ids' => 'setObjectIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'object_ids' => 'getObjectIds' - ); - - /** - * $object_ids The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a CatalogItem will delete its CatalogItemVariation. - * @var string[] - */ - protected $object_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["object_ids"])) { - $this->object_ids = $data["object_ids"]; - } else { - $this->object_ids = null; - } - } - } - /** - * Gets object_ids - * @return string[] - */ - public function getObjectIds() - { - return $this->object_ids; - } - - /** - * Sets object_ids - * @param string[] $object_ids The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a CatalogItem will delete its CatalogItemVariation. - * @return $this - */ - public function setObjectIds($object_ids) - { - $this->object_ids = $object_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchDeleteCatalogObjectsResponse.php b/includes/classes/vendors/square/connect/lib/Model/BatchDeleteCatalogObjectsResponse.php deleted file mode 100644 index 21bd853672..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchDeleteCatalogObjectsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'deleted_object_ids' => 'string[]', - 'deleted_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'deleted_object_ids' => 'deleted_object_ids', - 'deleted_at' => 'deleted_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'deleted_object_ids' => 'setDeletedObjectIds', - 'deleted_at' => 'setDeletedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'deleted_object_ids' => 'getDeletedObjectIds', - 'deleted_at' => 'getDeletedAt' - ); - - /** - * $errors The set of Errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $deleted_object_ids The IDs of all CatalogObjects deleted by this request. - * @var string[] - */ - protected $deleted_object_ids; - /** - * $deleted_at The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $deleted_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["deleted_object_ids"])) { - $this->deleted_object_ids = $data["deleted_object_ids"]; - } else { - $this->deleted_object_ids = null; - } - if (isset($data["deleted_at"])) { - $this->deleted_at = $data["deleted_at"]; - } else { - $this->deleted_at = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors The set of Errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets deleted_object_ids - * @return string[] - */ - public function getDeletedObjectIds() - { - return $this->deleted_object_ids; - } - - /** - * Sets deleted_object_ids - * @param string[] $deleted_object_ids The IDs of all CatalogObjects deleted by this request. - * @return $this - */ - public function setDeletedObjectIds($deleted_object_ids) - { - $this->deleted_object_ids = $deleted_object_ids; - return $this; - } - /** - * Gets deleted_at - * @return string - */ - public function getDeletedAt() - { - return $this->deleted_at; - } - - /** - * Sets deleted_at - * @param string $deleted_at The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setDeletedAt($deleted_at) - { - $this->deleted_at = $deleted_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveCatalogObjectsRequest.php b/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveCatalogObjectsRequest.php deleted file mode 100644 index 2f5092a584..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveCatalogObjectsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string[]', - 'include_related_objects' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'object_ids' => 'object_ids', - 'include_related_objects' => 'include_related_objects' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'object_ids' => 'setObjectIds', - 'include_related_objects' => 'setIncludeRelatedObjects' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'object_ids' => 'getObjectIds', - 'include_related_objects' => 'getIncludeRelatedObjects' - ); - - /** - * $object_ids The IDs of the CatalogObjects to be retrieved. - * @var string[] - */ - protected $object_ids; - /** - * $include_related_objects If `true`, the response will include additional objects that are related to the requested objects, as follows: If the `objects` field of the response contains a CatalogItem, its associated CatalogCategory objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists will be returned in the `related_objects` field of the response. If the `objects` field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the `related_objects` field of the response. - * @var bool - */ - protected $include_related_objects; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["object_ids"])) { - $this->object_ids = $data["object_ids"]; - } else { - $this->object_ids = null; - } - if (isset($data["include_related_objects"])) { - $this->include_related_objects = $data["include_related_objects"]; - } else { - $this->include_related_objects = null; - } - } - } - /** - * Gets object_ids - * @return string[] - */ - public function getObjectIds() - { - return $this->object_ids; - } - - /** - * Sets object_ids - * @param string[] $object_ids The IDs of the CatalogObjects to be retrieved. - * @return $this - */ - public function setObjectIds($object_ids) - { - $this->object_ids = $object_ids; - return $this; - } - /** - * Gets include_related_objects - * @return bool - */ - public function getIncludeRelatedObjects() - { - return $this->include_related_objects; - } - - /** - * Sets include_related_objects - * @param bool $include_related_objects If `true`, the response will include additional objects that are related to the requested objects, as follows: If the `objects` field of the response contains a CatalogItem, its associated CatalogCategory objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists will be returned in the `related_objects` field of the response. If the `objects` field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the `related_objects` field of the response. - * @return $this - */ - public function setIncludeRelatedObjects($include_related_objects) - { - $this->include_related_objects = $include_related_objects; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveCatalogObjectsResponse.php b/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveCatalogObjectsResponse.php deleted file mode 100644 index 72bd779152..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveCatalogObjectsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'objects' => '\SquareConnect\Model\CatalogObject[]', - 'related_objects' => '\SquareConnect\Model\CatalogObject[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'objects' => 'objects', - 'related_objects' => 'related_objects' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'objects' => 'setObjects', - 'related_objects' => 'setRelatedObjects' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'objects' => 'getObjects', - 'related_objects' => 'getRelatedObjects' - ); - - /** - * $errors The set of `Error`s encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $objects A list of `CatalogObject`s returned. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $objects; - /** - * $related_objects A list of `CatalogObject`s referenced by the object in the `objects` field. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $related_objects; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["objects"])) { - $this->objects = $data["objects"]; - } else { - $this->objects = null; - } - if (isset($data["related_objects"])) { - $this->related_objects = $data["related_objects"]; - } else { - $this->related_objects = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors The set of `Error`s encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets objects - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getObjects() - { - return $this->objects; - } - - /** - * Sets objects - * @param \SquareConnect\Model\CatalogObject[] $objects A list of `CatalogObject`s returned. - * @return $this - */ - public function setObjects($objects) - { - $this->objects = $objects; - return $this; - } - /** - * Gets related_objects - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getRelatedObjects() - { - return $this->related_objects; - } - - /** - * Sets related_objects - * @param \SquareConnect\Model\CatalogObject[] $related_objects A list of `CatalogObject`s referenced by the object in the `objects` field. - * @return $this - */ - public function setRelatedObjects($related_objects) - { - $this->related_objects = $related_objects; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryChangesRequest.php b/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryChangesRequest.php deleted file mode 100644 index b1668d0ca7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryChangesRequest.php +++ /dev/null @@ -1,344 +0,0 @@ - 'string[]', - 'location_ids' => 'string[]', - 'types' => 'string[]', - 'states' => 'string[]', - 'updated_after' => 'string', - 'updated_before' => 'string', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'catalog_object_ids' => 'catalog_object_ids', - 'location_ids' => 'location_ids', - 'types' => 'types', - 'states' => 'states', - 'updated_after' => 'updated_after', - 'updated_before' => 'updated_before', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'catalog_object_ids' => 'setCatalogObjectIds', - 'location_ids' => 'setLocationIds', - 'types' => 'setTypes', - 'states' => 'setStates', - 'updated_after' => 'setUpdatedAfter', - 'updated_before' => 'setUpdatedBefore', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'catalog_object_ids' => 'getCatalogObjectIds', - 'location_ids' => 'getLocationIds', - 'types' => 'getTypes', - 'states' => 'getStates', - 'updated_after' => 'getUpdatedAfter', - 'updated_before' => 'getUpdatedBefore', - 'cursor' => 'getCursor' - ); - - /** - * $catalog_object_ids Filters results by `CatalogObject` ID. Only applied when set. Default: unset. - * @var string[] - */ - protected $catalog_object_ids; - /** - * $location_ids Filters results by `Location` ID. Only applied when set. Default: unset. - * @var string[] - */ - protected $location_ids; - /** - * $types Filters results by `InventoryChangeType`. Default: [`PHYSICAL_COUNT`, `ADJUSTMENT`]. `TRANSFER` is not supported as a filter. See [InventoryChangeType](#type-inventorychangetype) for possible values - * @var string[] - */ - protected $types; - /** - * $states Filters `ADJUSTMENT` query results by `InventoryState`. Only applied when set. Default: unset. See [InventoryState](#type-inventorystate) for possible values - * @var string[] - */ - protected $states; - /** - * $updated_after Provided as an RFC 3339 timestamp. Returns results whose `created_at` or `calculated_at` value is after the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). - * @var string - */ - protected $updated_after; - /** - * $updated_before Provided as an RFC 3339 timestamp. Returns results whose `created_at` or `calculated_at` value is strictly before the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). - * @var string - */ - protected $updated_before; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["catalog_object_ids"])) { - $this->catalog_object_ids = $data["catalog_object_ids"]; - } else { - $this->catalog_object_ids = null; - } - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - if (isset($data["types"])) { - $this->types = $data["types"]; - } else { - $this->types = null; - } - if (isset($data["states"])) { - $this->states = $data["states"]; - } else { - $this->states = null; - } - if (isset($data["updated_after"])) { - $this->updated_after = $data["updated_after"]; - } else { - $this->updated_after = null; - } - if (isset($data["updated_before"])) { - $this->updated_before = $data["updated_before"]; - } else { - $this->updated_before = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets catalog_object_ids - * @return string[] - */ - public function getCatalogObjectIds() - { - return $this->catalog_object_ids; - } - - /** - * Sets catalog_object_ids - * @param string[] $catalog_object_ids Filters results by `CatalogObject` ID. Only applied when set. Default: unset. - * @return $this - */ - public function setCatalogObjectIds($catalog_object_ids) - { - $this->catalog_object_ids = $catalog_object_ids; - return $this; - } - /** - * Gets location_ids - * @return string[] - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string[] $location_ids Filters results by `Location` ID. Only applied when set. Default: unset. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Gets types - * @return string[] - */ - public function getTypes() - { - return $this->types; - } - - /** - * Sets types - * @param string[] $types Filters results by `InventoryChangeType`. Default: [`PHYSICAL_COUNT`, `ADJUSTMENT`]. `TRANSFER` is not supported as a filter. See [InventoryChangeType](#type-inventorychangetype) for possible values - * @return $this - */ - public function setTypes($types) - { - $this->types = $types; - return $this; - } - /** - * Gets states - * @return string[] - */ - public function getStates() - { - return $this->states; - } - - /** - * Sets states - * @param string[] $states Filters `ADJUSTMENT` query results by `InventoryState`. Only applied when set. Default: unset. See [InventoryState](#type-inventorystate) for possible values - * @return $this - */ - public function setStates($states) - { - $this->states = $states; - return $this; - } - /** - * Gets updated_after - * @return string - */ - public function getUpdatedAfter() - { - return $this->updated_after; - } - - /** - * Sets updated_after - * @param string $updated_after Provided as an RFC 3339 timestamp. Returns results whose `created_at` or `calculated_at` value is after the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). - * @return $this - */ - public function setUpdatedAfter($updated_after) - { - $this->updated_after = $updated_after; - return $this; - } - /** - * Gets updated_before - * @return string - */ - public function getUpdatedBefore() - { - return $this->updated_before; - } - - /** - * Sets updated_before - * @param string $updated_before Provided as an RFC 3339 timestamp. Returns results whose `created_at` or `calculated_at` value is strictly before the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). - * @return $this - */ - public function setUpdatedBefore($updated_before) - { - $this->updated_before = $updated_before; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryChangesResponse.php b/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryChangesResponse.php deleted file mode 100644 index cbce307299..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryChangesResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'changes' => '\SquareConnect\Model\InventoryChange[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'changes' => 'changes', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'changes' => 'setChanges', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'changes' => 'getChanges', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $changes The current calculated inventory changes for the requested objects and locations. - * @var \SquareConnect\Model\InventoryChange[] - */ - protected $changes; - /** - * $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["changes"])) { - $this->changes = $data["changes"]; - } else { - $this->changes = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets changes - * @return \SquareConnect\Model\InventoryChange[] - */ - public function getChanges() - { - return $this->changes; - } - - /** - * Sets changes - * @param \SquareConnect\Model\InventoryChange[] $changes The current calculated inventory changes for the requested objects and locations. - * @return $this - */ - public function setChanges($changes) - { - $this->changes = $changes; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryCountsRequest.php b/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryCountsRequest.php deleted file mode 100644 index 60c37d952b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryCountsRequest.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string[]', - 'location_ids' => 'string[]', - 'updated_after' => 'string', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'catalog_object_ids' => 'catalog_object_ids', - 'location_ids' => 'location_ids', - 'updated_after' => 'updated_after', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'catalog_object_ids' => 'setCatalogObjectIds', - 'location_ids' => 'setLocationIds', - 'updated_after' => 'setUpdatedAfter', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'catalog_object_ids' => 'getCatalogObjectIds', - 'location_ids' => 'getLocationIds', - 'updated_after' => 'getUpdatedAfter', - 'cursor' => 'getCursor' - ); - - /** - * $catalog_object_ids Filters results by `CatalogObject` ID. Only applied when set. Default: unset. - * @var string[] - */ - protected $catalog_object_ids; - /** - * $location_ids Filters results by `Location` ID. Only applied when set. Default: unset. - * @var string[] - */ - protected $location_ids; - /** - * $updated_after Provided as an RFC 3339 timestamp. Returns results whose `calculated_at` value is after the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). - * @var string - */ - protected $updated_after; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["catalog_object_ids"])) { - $this->catalog_object_ids = $data["catalog_object_ids"]; - } else { - $this->catalog_object_ids = null; - } - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - if (isset($data["updated_after"])) { - $this->updated_after = $data["updated_after"]; - } else { - $this->updated_after = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets catalog_object_ids - * @return string[] - */ - public function getCatalogObjectIds() - { - return $this->catalog_object_ids; - } - - /** - * Sets catalog_object_ids - * @param string[] $catalog_object_ids Filters results by `CatalogObject` ID. Only applied when set. Default: unset. - * @return $this - */ - public function setCatalogObjectIds($catalog_object_ids) - { - $this->catalog_object_ids = $catalog_object_ids; - return $this; - } - /** - * Gets location_ids - * @return string[] - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string[] $location_ids Filters results by `Location` ID. Only applied when set. Default: unset. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Gets updated_after - * @return string - */ - public function getUpdatedAfter() - { - return $this->updated_after; - } - - /** - * Sets updated_after - * @param string $updated_after Provided as an RFC 3339 timestamp. Returns results whose `calculated_at` value is after the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`). - * @return $this - */ - public function setUpdatedAfter($updated_after) - { - $this->updated_after = $updated_after; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryCountsResponse.php b/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryCountsResponse.php deleted file mode 100644 index 14315af836..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveInventoryCountsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'counts' => '\SquareConnect\Model\InventoryCount[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'counts' => 'counts', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'counts' => 'setCounts', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'counts' => 'getCounts', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $counts The current calculated inventory counts for the requested objects and locations. - * @var \SquareConnect\Model\InventoryCount[] - */ - protected $counts; - /** - * $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["counts"])) { - $this->counts = $data["counts"]; - } else { - $this->counts = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets counts - * @return \SquareConnect\Model\InventoryCount[] - */ - public function getCounts() - { - return $this->counts; - } - - /** - * Sets counts - * @param \SquareConnect\Model\InventoryCount[] $counts The current calculated inventory counts for the requested objects and locations. - * @return $this - */ - public function setCounts($counts) - { - $this->counts = $counts; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveOrdersRequest.php b/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveOrdersRequest.php deleted file mode 100644 index 3005b8e4a0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveOrdersRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_ids' => 'order_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_ids' => 'setOrderIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_ids' => 'getOrderIds' - ); - - /** - * $order_ids The IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request. - * @var string[] - */ - protected $order_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_ids"])) { - $this->order_ids = $data["order_ids"]; - } else { - $this->order_ids = null; - } - } - } - /** - * Gets order_ids - * @return string[] - */ - public function getOrderIds() - { - return $this->order_ids; - } - - /** - * Sets order_ids - * @param string[] $order_ids The IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request. - * @return $this - */ - public function setOrderIds($order_ids) - { - $this->order_ids = $order_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveOrdersResponse.php b/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveOrdersResponse.php deleted file mode 100644 index 2abd61cb0f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchRetrieveOrdersResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Order[]', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'orders' => 'orders', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'orders' => 'setOrders', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'orders' => 'getOrders', - 'errors' => 'getErrors' - ); - - /** - * $orders The requested orders. This will omit any requested orders that do not exist. - * @var \SquareConnect\Model\Order[] - */ - protected $orders; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["orders"])) { - $this->orders = $data["orders"]; - } else { - $this->orders = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets orders - * @return \SquareConnect\Model\Order[] - */ - public function getOrders() - { - return $this->orders; - } - - /** - * Sets orders - * @param \SquareConnect\Model\Order[] $orders The requested orders. This will omit any requested orders that do not exist. - * @return $this - */ - public function setOrders($orders) - { - $this->orders = $orders; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchUpsertCatalogObjectsRequest.php b/includes/classes/vendors/square/connect/lib/Model/BatchUpsertCatalogObjectsRequest.php deleted file mode 100644 index 095e2cf16e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchUpsertCatalogObjectsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'batches' => '\SquareConnect\Model\CatalogObjectBatch[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'batches' => 'batches' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'batches' => 'setBatches' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'batches' => 'getBatches' - ); - - /** - * $idempotency_key A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you're unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $batches A batch of CatalogObjects to be inserted/updated atomically. The objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs attempting to insert or update an object within a batch, the entire batch will be rejected. However, an error in one batch will not affect other batches within the same request. For each object, its `updated_at` field is ignored and replaced with a current [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates), and its `is_deleted` field must not be set to `true`. To modify an existing object, supply its ID. To create a new object, use an ID starting with `#`. These IDs may be used to create relationships between an object and attributes of other objects that reference it. For example, you can create a CatalogItem with ID `#ABC` and a CatalogItemVariation with its `item_id` attribute set to `#ABC` in order to associate the CatalogItemVariation with its parent CatalogItem. Any `#`-prefixed IDs are valid only within a single atomic batch, and will be replaced by server-generated IDs. Each batch may contain up to 1,000 objects. The total number of objects across all batches for a single request may not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will be inserted or updated. - * @var \SquareConnect\Model\CatalogObjectBatch[] - */ - protected $batches; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["batches"])) { - $this->batches = $data["batches"]; - } else { - $this->batches = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you're unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets batches - * @return \SquareConnect\Model\CatalogObjectBatch[] - */ - public function getBatches() - { - return $this->batches; - } - - /** - * Sets batches - * @param \SquareConnect\Model\CatalogObjectBatch[] $batches A batch of CatalogObjects to be inserted/updated atomically. The objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs attempting to insert or update an object within a batch, the entire batch will be rejected. However, an error in one batch will not affect other batches within the same request. For each object, its `updated_at` field is ignored and replaced with a current [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates), and its `is_deleted` field must not be set to `true`. To modify an existing object, supply its ID. To create a new object, use an ID starting with `#`. These IDs may be used to create relationships between an object and attributes of other objects that reference it. For example, you can create a CatalogItem with ID `#ABC` and a CatalogItemVariation with its `item_id` attribute set to `#ABC` in order to associate the CatalogItemVariation with its parent CatalogItem. Any `#`-prefixed IDs are valid only within a single atomic batch, and will be replaced by server-generated IDs. Each batch may contain up to 1,000 objects. The total number of objects across all batches for a single request may not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will be inserted or updated. - * @return $this - */ - public function setBatches($batches) - { - $this->batches = $batches; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BatchUpsertCatalogObjectsResponse.php b/includes/classes/vendors/square/connect/lib/Model/BatchUpsertCatalogObjectsResponse.php deleted file mode 100644 index cf70f64f99..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BatchUpsertCatalogObjectsResponse.php +++ /dev/null @@ -1,245 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'objects' => '\SquareConnect\Model\CatalogObject[]', - 'updated_at' => 'string', - 'id_mappings' => '\SquareConnect\Model\CatalogIdMapping[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'objects' => 'objects', - 'updated_at' => 'updated_at', - 'id_mappings' => 'id_mappings' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'objects' => 'setObjects', - 'updated_at' => 'setUpdatedAt', - 'id_mappings' => 'setIdMappings' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'objects' => 'getObjects', - 'updated_at' => 'getUpdatedAt', - 'id_mappings' => 'getIdMappings' - ); - - /** - * $errors Information on any errors that encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $objects The created successfully created CatalogObjects. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $objects; - /** - * $updated_at The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this update in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $updated_at; - /** - * $id_mappings The mapping between client and server IDs for this upsert. - * @var \SquareConnect\Model\CatalogIdMapping[] - */ - protected $id_mappings; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["objects"])) { - $this->objects = $data["objects"]; - } else { - $this->objects = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["id_mappings"])) { - $this->id_mappings = $data["id_mappings"]; - } else { - $this->id_mappings = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors that encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets objects - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getObjects() - { - return $this->objects; - } - - /** - * Sets objects - * @param \SquareConnect\Model\CatalogObject[] $objects The created successfully created CatalogObjects. - * @return $this - */ - public function setObjects($objects) - { - $this->objects = $objects; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this update in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets id_mappings - * @return \SquareConnect\Model\CatalogIdMapping[] - */ - public function getIdMappings() - { - return $this->id_mappings; - } - - /** - * Sets id_mappings - * @param \SquareConnect\Model\CatalogIdMapping[] $id_mappings The mapping between client and server IDs for this upsert. - * @return $this - */ - public function setIdMappings($id_mappings) - { - $this->id_mappings = $id_mappings; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BreakType.php b/includes/classes/vendors/square/connect/lib/Model/BreakType.php deleted file mode 100644 index f1fe101c39..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BreakType.php +++ /dev/null @@ -1,377 +0,0 @@ - 'string', - 'location_id' => 'string', - 'break_name' => 'string', - 'expected_duration' => 'string', - 'is_paid' => 'bool', - 'version' => 'int', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'location_id' => 'location_id', - 'break_name' => 'break_name', - 'expected_duration' => 'expected_duration', - 'is_paid' => 'is_paid', - 'version' => 'version', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'location_id' => 'setLocationId', - 'break_name' => 'setBreakName', - 'expected_duration' => 'setExpectedDuration', - 'is_paid' => 'setIsPaid', - 'version' => 'setVersion', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'location_id' => 'getLocationId', - 'break_name' => 'getBreakName', - 'expected_duration' => 'getExpectedDuration', - 'is_paid' => 'getIsPaid', - 'version' => 'getVersion', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id UUID for this object. - * @var string - */ - protected $id; - /** - * $location_id The ID of the business location this type of break applies to. - * @var string - */ - protected $location_id; - /** - * $break_name A human-readable name for this type of break. Will be displayed to employees in Square products. - * @var string - */ - protected $break_name; - /** - * $expected_duration Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of this break. Precision below minutes is truncated. - * @var string - */ - protected $expected_duration; - /** - * $is_paid Whether this break counts towards time worked for compensation purposes. - * @var bool - */ - protected $is_paid; - /** - * $version Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If a value is not provided, Square's servers execute a \"blind\" write; potentially overwriting another writer's data. - * @var int - */ - protected $version; - /** - * $created_at A read-only timestamp in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at A read-only timestamp in RFC 3339 format. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["break_name"])) { - $this->break_name = $data["break_name"]; - } else { - $this->break_name = null; - } - if (isset($data["expected_duration"])) { - $this->expected_duration = $data["expected_duration"]; - } else { - $this->expected_duration = null; - } - if (isset($data["is_paid"])) { - $this->is_paid = $data["is_paid"]; - } else { - $this->is_paid = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id UUID for this object. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the business location this type of break applies to. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets break_name - * @return string - */ - public function getBreakName() - { - return $this->break_name; - } - - /** - * Sets break_name - * @param string $break_name A human-readable name for this type of break. Will be displayed to employees in Square products. - * @return $this - */ - public function setBreakName($break_name) - { - $this->break_name = $break_name; - return $this; - } - /** - * Gets expected_duration - * @return string - */ - public function getExpectedDuration() - { - return $this->expected_duration; - } - - /** - * Sets expected_duration - * @param string $expected_duration Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of this break. Precision below minutes is truncated. - * @return $this - */ - public function setExpectedDuration($expected_duration) - { - $this->expected_duration = $expected_duration; - return $this; - } - /** - * Gets is_paid - * @return bool - */ - public function getIsPaid() - { - return $this->is_paid; - } - - /** - * Sets is_paid - * @param bool $is_paid Whether this break counts towards time worked for compensation purposes. - * @return $this - */ - public function setIsPaid($is_paid) - { - $this->is_paid = $is_paid; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If a value is not provided, Square's servers execute a \"blind\" write; potentially overwriting another writer's data. - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at A read-only timestamp in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at A read-only timestamp in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BusinessHours.php b/includes/classes/vendors/square/connect/lib/Model/BusinessHours.php deleted file mode 100644 index 9bfb8b142d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BusinessHours.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\BusinessHoursPeriod[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'periods' => 'periods' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'periods' => 'setPeriods' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'periods' => 'getPeriods' - ); - - /** - * $periods The list of time periods during which the business is open. There may be at most 10 periods per day. - * @var \SquareConnect\Model\BusinessHoursPeriod[] - */ - protected $periods; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["periods"])) { - $this->periods = $data["periods"]; - } else { - $this->periods = null; - } - } - } - /** - * Gets periods - * @return \SquareConnect\Model\BusinessHoursPeriod[] - */ - public function getPeriods() - { - return $this->periods; - } - - /** - * Sets periods - * @param \SquareConnect\Model\BusinessHoursPeriod[] $periods The list of time periods during which the business is open. There may be at most 10 periods per day. - * @return $this - */ - public function setPeriods($periods) - { - $this->periods = $periods; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/BusinessHoursPeriod.php b/includes/classes/vendors/square/connect/lib/Model/BusinessHoursPeriod.php deleted file mode 100644 index 42df9999d3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/BusinessHoursPeriod.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'start_local_time' => 'string', - 'end_local_time' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'day_of_week' => 'day_of_week', - 'start_local_time' => 'start_local_time', - 'end_local_time' => 'end_local_time' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'day_of_week' => 'setDayOfWeek', - 'start_local_time' => 'setStartLocalTime', - 'end_local_time' => 'setEndLocalTime' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'day_of_week' => 'getDayOfWeek', - 'start_local_time' => 'getStartLocalTime', - 'end_local_time' => 'getEndLocalTime' - ); - - /** - * $day_of_week The day of week for this time period. See [DayOfWeek](#type-dayofweek) for possible values - * @var string - */ - protected $day_of_week; - /** - * $start_local_time The start time of a business hours period, specified in local time using partial-time RFC3339 format. - * @var string - */ - protected $start_local_time; - /** - * $end_local_time The end time of a business hours period, specified in local time using partial-time RFC3339 format. - * @var string - */ - protected $end_local_time; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["day_of_week"])) { - $this->day_of_week = $data["day_of_week"]; - } else { - $this->day_of_week = null; - } - if (isset($data["start_local_time"])) { - $this->start_local_time = $data["start_local_time"]; - } else { - $this->start_local_time = null; - } - if (isset($data["end_local_time"])) { - $this->end_local_time = $data["end_local_time"]; - } else { - $this->end_local_time = null; - } - } - } - /** - * Gets day_of_week - * @return string - */ - public function getDayOfWeek() - { - return $this->day_of_week; - } - - /** - * Sets day_of_week - * @param string $day_of_week The day of week for this time period. See [DayOfWeek](#type-dayofweek) for possible values - * @return $this - */ - public function setDayOfWeek($day_of_week) - { - $this->day_of_week = $day_of_week; - return $this; - } - /** - * Gets start_local_time - * @return string - */ - public function getStartLocalTime() - { - return $this->start_local_time; - } - - /** - * Sets start_local_time - * @param string $start_local_time The start time of a business hours period, specified in local time using partial-time RFC3339 format. - * @return $this - */ - public function setStartLocalTime($start_local_time) - { - $this->start_local_time = $start_local_time; - return $this; - } - /** - * Gets end_local_time - * @return string - */ - public function getEndLocalTime() - { - return $this->end_local_time; - } - - /** - * Sets end_local_time - * @param string $end_local_time The end time of a business hours period, specified in local time using partial-time RFC3339 format. - * @return $this - */ - public function setEndLocalTime($end_local_time) - { - $this->end_local_time = $end_local_time; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CalculateLoyaltyPointsRequest.php b/includes/classes/vendors/square/connect/lib/Model/CalculateLoyaltyPointsRequest.php deleted file mode 100644 index d46a8c6b6a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CalculateLoyaltyPointsRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'transaction_amount_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_id' => 'order_id', - 'transaction_amount_money' => 'transaction_amount_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_id' => 'setOrderId', - 'transaction_amount_money' => 'setTransactionAmountMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_id' => 'getOrderId', - 'transaction_amount_money' => 'getTransactionAmountMoney' - ); - - /** - * $order_id The `order` ID for which to calculate the points. Specify this field if your application uses the Orders API to process orders. Otherwise, specify the `transaction_amount`. - * @var string - */ - protected $order_id; - /** - * $transaction_amount_money The purchase amount for which to calculate the points. Specify this field if your application does not use the Orders API to process orders. Otherwise, specify the `order_id`. - * @var \SquareConnect\Model\Money - */ - protected $transaction_amount_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["transaction_amount_money"])) { - $this->transaction_amount_money = $data["transaction_amount_money"]; - } else { - $this->transaction_amount_money = null; - } - } - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The `order` ID for which to calculate the points. Specify this field if your application uses the Orders API to process orders. Otherwise, specify the `transaction_amount`. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets transaction_amount_money - * @return \SquareConnect\Model\Money - */ - public function getTransactionAmountMoney() - { - return $this->transaction_amount_money; - } - - /** - * Sets transaction_amount_money - * @param \SquareConnect\Model\Money $transaction_amount_money The purchase amount for which to calculate the points. Specify this field if your application does not use the Orders API to process orders. Otherwise, specify the `order_id`. - * @return $this - */ - public function setTransactionAmountMoney($transaction_amount_money) - { - $this->transaction_amount_money = $transaction_amount_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CalculateLoyaltyPointsResponse.php b/includes/classes/vendors/square/connect/lib/Model/CalculateLoyaltyPointsResponse.php deleted file mode 100644 index 2362b0cc09..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CalculateLoyaltyPointsResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'points' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'points' => 'points' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'points' => 'setPoints' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'points' => 'getPoints' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $points The points that the buyer can earn from a specified purchase. - * @var int - */ - protected $points; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The points that the buyer can earn from a specified purchase. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CalculateOrderRequest.php b/includes/classes/vendors/square/connect/lib/Model/CalculateOrderRequest.php deleted file mode 100644 index ac3aab20b1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CalculateOrderRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Order', - 'proposed_rewards' => '\SquareConnect\Model\OrderReward[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'proposed_rewards' => 'proposed_rewards' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'proposed_rewards' => 'setProposedRewards' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'proposed_rewards' => 'getProposedRewards' - ); - - /** - * $order The order to be calculated. Expects the entire order, not a sparse update. - * @var \SquareConnect\Model\Order - */ - protected $order; - /** - * $proposed_rewards Identifies one or more loyalty reward tiers to apply during order calculation. The discounts defined by the reward tiers are added to the order only to preview the effect of applying the specified reward(s). The reward(s) do not correspond to actual redemptions, that is, no `reward`s are created. Therefore, the reward `id`s are random strings used only to reference the reward tier. - * @var \SquareConnect\Model\OrderReward[] - */ - protected $proposed_rewards; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["proposed_rewards"])) { - $this->proposed_rewards = $data["proposed_rewards"]; - } else { - $this->proposed_rewards = null; - } - } - } - /** - * Gets order - * @return \SquareConnect\Model\Order - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\Order $order The order to be calculated. Expects the entire order, not a sparse update. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets proposed_rewards - * @return \SquareConnect\Model\OrderReward[] - */ - public function getProposedRewards() - { - return $this->proposed_rewards; - } - - /** - * Sets proposed_rewards - * @param \SquareConnect\Model\OrderReward[] $proposed_rewards Identifies one or more loyalty reward tiers to apply during order calculation. The discounts defined by the reward tiers are added to the order only to preview the effect of applying the specified reward(s). The reward(s) do not correspond to actual redemptions, that is, no `reward`s are created. Therefore, the reward `id`s are random strings used only to reference the reward tier. - * @return $this - */ - public function setProposedRewards($proposed_rewards) - { - $this->proposed_rewards = $proposed_rewards; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CalculateOrderResponse.php b/includes/classes/vendors/square/connect/lib/Model/CalculateOrderResponse.php deleted file mode 100644 index b52272dd07..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CalculateOrderResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Order', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'errors' => 'getErrors' - ); - - /** - * $order The calculated version of the order provided in the request. - * @var \SquareConnect\Model\Order - */ - protected $order; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets order - * @return \SquareConnect\Model\Order - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\Order $order The calculated version of the order provided in the request. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CancelPaymentByIdempotencyKeyRequest.php b/includes/classes/vendors/square/connect/lib/Model/CancelPaymentByIdempotencyKeyRequest.php deleted file mode 100644 index 25ed9ab9c8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CancelPaymentByIdempotencyKeyRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey' - ); - - /** - * $idempotency_key `idempotency_key` identifying the payment to be canceled. - * @var string - */ - protected $idempotency_key; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key `idempotency_key` identifying the payment to be canceled. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CancelPaymentByIdempotencyKeyResponse.php b/includes/classes/vendors/square/connect/lib/Model/CancelPaymentByIdempotencyKeyResponse.php deleted file mode 100644 index 42b5648b2a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CancelPaymentByIdempotencyKeyResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CancelPaymentRequest.php b/includes/classes/vendors/square/connect/lib/Model/CancelPaymentRequest.php deleted file mode 100644 index 3f6a53c355..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CancelPaymentRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CancelPaymentResponse.php b/includes/classes/vendors/square/connect/lib/Model/CancelPaymentResponse.php deleted file mode 100644 index 3a03b70ba7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CancelPaymentResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'payment' => '\SquareConnect\Model\Payment' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'payment' => 'payment' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'payment' => 'setPayment' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'payment' => 'getPayment' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $payment The successfully canceled `Payment` object. - * @var \SquareConnect\Model\Payment - */ - protected $payment; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["payment"])) { - $this->payment = $data["payment"]; - } else { - $this->payment = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets payment - * @return \SquareConnect\Model\Payment - */ - public function getPayment() - { - return $this->payment; - } - - /** - * Sets payment - * @param \SquareConnect\Model\Payment $payment The successfully canceled `Payment` object. - * @return $this - */ - public function setPayment($payment) - { - $this->payment = $payment; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CancelTerminalCheckoutRequest.php b/includes/classes/vendors/square/connect/lib/Model/CancelTerminalCheckoutRequest.php deleted file mode 100644 index b268adddea..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CancelTerminalCheckoutRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CancelTerminalCheckoutResponse.php b/includes/classes/vendors/square/connect/lib/Model/CancelTerminalCheckoutResponse.php deleted file mode 100644 index dc8bdd5229..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CancelTerminalCheckoutResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'checkout' => '\SquareConnect\Model\TerminalCheckout' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'checkout' => 'checkout' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'checkout' => 'setCheckout' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'checkout' => 'getCheckout' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $checkout The updated `TerminalCheckout` - * @var \SquareConnect\Model\TerminalCheckout - */ - protected $checkout; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["checkout"])) { - $this->checkout = $data["checkout"]; - } else { - $this->checkout = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets checkout - * @return \SquareConnect\Model\TerminalCheckout - */ - public function getCheckout() - { - return $this->checkout; - } - - /** - * Sets checkout - * @param \SquareConnect\Model\TerminalCheckout $checkout The updated `TerminalCheckout` - * @return $this - */ - public function setCheckout($checkout) - { - $this->checkout = $checkout; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CaptureTransactionRequest.php b/includes/classes/vendors/square/connect/lib/Model/CaptureTransactionRequest.php deleted file mode 100644 index 7eee5c6ee4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CaptureTransactionRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CaptureTransactionResponse.php b/includes/classes/vendors/square/connect/lib/Model/CaptureTransactionResponse.php deleted file mode 100644 index 11f94b2349..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CaptureTransactionResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Card.php b/includes/classes/vendors/square/connect/lib/Model/Card.php deleted file mode 100644 index 10db28808b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Card.php +++ /dev/null @@ -1,476 +0,0 @@ - 'string', - 'card_brand' => 'string', - 'last_4' => 'string', - 'exp_month' => 'int', - 'exp_year' => 'int', - 'cardholder_name' => 'string', - 'billing_address' => '\SquareConnect\Model\Address', - 'fingerprint' => 'string', - 'card_type' => 'string', - 'prepaid_type' => 'string', - 'bin' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'card_brand' => 'card_brand', - 'last_4' => 'last_4', - 'exp_month' => 'exp_month', - 'exp_year' => 'exp_year', - 'cardholder_name' => 'cardholder_name', - 'billing_address' => 'billing_address', - 'fingerprint' => 'fingerprint', - 'card_type' => 'card_type', - 'prepaid_type' => 'prepaid_type', - 'bin' => 'bin' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'card_brand' => 'setCardBrand', - 'last_4' => 'setLast4', - 'exp_month' => 'setExpMonth', - 'exp_year' => 'setExpYear', - 'cardholder_name' => 'setCardholderName', - 'billing_address' => 'setBillingAddress', - 'fingerprint' => 'setFingerprint', - 'card_type' => 'setCardType', - 'prepaid_type' => 'setPrepaidType', - 'bin' => 'setBin' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'card_brand' => 'getCardBrand', - 'last_4' => 'getLast4', - 'exp_month' => 'getExpMonth', - 'exp_year' => 'getExpYear', - 'cardholder_name' => 'getCardholderName', - 'billing_address' => 'getBillingAddress', - 'fingerprint' => 'getFingerprint', - 'card_type' => 'getCardType', - 'prepaid_type' => 'getPrepaidType', - 'bin' => 'getBin' - ); - - /** - * $id Unique ID for this card. Generated by Square. - * @var string - */ - protected $id; - /** - * $card_brand The card's brand. See [CardBrand](#type-cardbrand) for possible values - * @var string - */ - protected $card_brand; - /** - * $last_4 The last 4 digits of the card number. - * @var string - */ - protected $last_4; - /** - * $exp_month The expiration month of the associated card as an integer between 1 and 12. - * @var int - */ - protected $exp_month; - /** - * $exp_year The four-digit year of the card's expiration date. - * @var int - */ - protected $exp_year; - /** - * $cardholder_name The name of the cardholder. - * @var string - */ - protected $cardholder_name; - /** - * $billing_address The billing address for this card. - * @var \SquareConnect\Model\Address - */ - protected $billing_address; - /** - * $fingerprint __Not currently set.__ Intended as a Square-assigned identifier, based on the card number, to identify the card across multiple locations within a single application. - * @var string - */ - protected $fingerprint; - /** - * $card_type The type of the card. The Card object includes this field only in response to Payments API calls. See [CardType](#type-cardtype) for possible values - * @var string - */ - protected $card_type; - /** - * $prepaid_type Indicates whether the Card is prepaid or not. The Card object includes this field only in response to Payments API calls. See [CardPrepaidType](#type-cardprepaidtype) for possible values - * @var string - */ - protected $prepaid_type; - /** - * $bin The first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API returns this field. - * @var string - */ - protected $bin; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["card_brand"])) { - $this->card_brand = $data["card_brand"]; - } else { - $this->card_brand = null; - } - if (isset($data["last_4"])) { - $this->last_4 = $data["last_4"]; - } else { - $this->last_4 = null; - } - if (isset($data["exp_month"])) { - $this->exp_month = $data["exp_month"]; - } else { - $this->exp_month = null; - } - if (isset($data["exp_year"])) { - $this->exp_year = $data["exp_year"]; - } else { - $this->exp_year = null; - } - if (isset($data["cardholder_name"])) { - $this->cardholder_name = $data["cardholder_name"]; - } else { - $this->cardholder_name = null; - } - if (isset($data["billing_address"])) { - $this->billing_address = $data["billing_address"]; - } else { - $this->billing_address = null; - } - if (isset($data["fingerprint"])) { - $this->fingerprint = $data["fingerprint"]; - } else { - $this->fingerprint = null; - } - if (isset($data["card_type"])) { - $this->card_type = $data["card_type"]; - } else { - $this->card_type = null; - } - if (isset($data["prepaid_type"])) { - $this->prepaid_type = $data["prepaid_type"]; - } else { - $this->prepaid_type = null; - } - if (isset($data["bin"])) { - $this->bin = $data["bin"]; - } else { - $this->bin = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id Unique ID for this card. Generated by Square. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets card_brand - * @return string - */ - public function getCardBrand() - { - return $this->card_brand; - } - - /** - * Sets card_brand - * @param string $card_brand The card's brand. See [CardBrand](#type-cardbrand) for possible values - * @return $this - */ - public function setCardBrand($card_brand) - { - $this->card_brand = $card_brand; - return $this; - } - /** - * Gets last_4 - * @return string - */ - public function getLast4() - { - return $this->last_4; - } - - /** - * Sets last_4 - * @param string $last_4 The last 4 digits of the card number. - * @return $this - */ - public function setLast4($last_4) - { - $this->last_4 = $last_4; - return $this; - } - /** - * Gets exp_month - * @return int - */ - public function getExpMonth() - { - return $this->exp_month; - } - - /** - * Sets exp_month - * @param int $exp_month The expiration month of the associated card as an integer between 1 and 12. - * @return $this - */ - public function setExpMonth($exp_month) - { - $this->exp_month = $exp_month; - return $this; - } - /** - * Gets exp_year - * @return int - */ - public function getExpYear() - { - return $this->exp_year; - } - - /** - * Sets exp_year - * @param int $exp_year The four-digit year of the card's expiration date. - * @return $this - */ - public function setExpYear($exp_year) - { - $this->exp_year = $exp_year; - return $this; - } - /** - * Gets cardholder_name - * @return string - */ - public function getCardholderName() - { - return $this->cardholder_name; - } - - /** - * Sets cardholder_name - * @param string $cardholder_name The name of the cardholder. - * @return $this - */ - public function setCardholderName($cardholder_name) - { - $this->cardholder_name = $cardholder_name; - return $this; - } - /** - * Gets billing_address - * @return \SquareConnect\Model\Address - */ - public function getBillingAddress() - { - return $this->billing_address; - } - - /** - * Sets billing_address - * @param \SquareConnect\Model\Address $billing_address The billing address for this card. - * @return $this - */ - public function setBillingAddress($billing_address) - { - $this->billing_address = $billing_address; - return $this; - } - /** - * Gets fingerprint - * @return string - */ - public function getFingerprint() - { - return $this->fingerprint; - } - - /** - * Sets fingerprint - * @param string $fingerprint __Not currently set.__ Intended as a Square-assigned identifier, based on the card number, to identify the card across multiple locations within a single application. - * @return $this - */ - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - return $this; - } - /** - * Gets card_type - * @return string - */ - public function getCardType() - { - return $this->card_type; - } - - /** - * Sets card_type - * @param string $card_type The type of the card. The Card object includes this field only in response to Payments API calls. See [CardType](#type-cardtype) for possible values - * @return $this - */ - public function setCardType($card_type) - { - $this->card_type = $card_type; - return $this; - } - /** - * Gets prepaid_type - * @return string - */ - public function getPrepaidType() - { - return $this->prepaid_type; - } - - /** - * Sets prepaid_type - * @param string $prepaid_type Indicates whether the Card is prepaid or not. The Card object includes this field only in response to Payments API calls. See [CardPrepaidType](#type-cardprepaidtype) for possible values - * @return $this - */ - public function setPrepaidType($prepaid_type) - { - $this->prepaid_type = $prepaid_type; - return $this; - } - /** - * Gets bin - * @return string - */ - public function getBin() - { - return $this->bin; - } - - /** - * Sets bin - * @param string $bin The first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API returns this field. - * @return $this - */ - public function setBin($bin) - { - $this->bin = $bin; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CardBrand.php b/includes/classes/vendors/square/connect/lib/Model/CardBrand.php deleted file mode 100644 index c6fe72888f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CardBrand.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CardPaymentDetails.php b/includes/classes/vendors/square/connect/lib/Model/CardPaymentDetails.php deleted file mode 100644 index bbc7a0ebf6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CardPaymentDetails.php +++ /dev/null @@ -1,575 +0,0 @@ - 'string', - 'card' => '\SquareConnect\Model\Card', - 'entry_method' => 'string', - 'cvv_status' => 'string', - 'avs_status' => 'string', - 'auth_result_code' => 'string', - 'application_identifier' => 'string', - 'application_name' => 'string', - 'application_cryptogram' => 'string', - 'verification_method' => 'string', - 'verification_results' => 'string', - 'statement_description' => 'string', - 'device_details' => '\SquareConnect\Model\DeviceDetails', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'status' => 'status', - 'card' => 'card', - 'entry_method' => 'entry_method', - 'cvv_status' => 'cvv_status', - 'avs_status' => 'avs_status', - 'auth_result_code' => 'auth_result_code', - 'application_identifier' => 'application_identifier', - 'application_name' => 'application_name', - 'application_cryptogram' => 'application_cryptogram', - 'verification_method' => 'verification_method', - 'verification_results' => 'verification_results', - 'statement_description' => 'statement_description', - 'device_details' => 'device_details', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'status' => 'setStatus', - 'card' => 'setCard', - 'entry_method' => 'setEntryMethod', - 'cvv_status' => 'setCvvStatus', - 'avs_status' => 'setAvsStatus', - 'auth_result_code' => 'setAuthResultCode', - 'application_identifier' => 'setApplicationIdentifier', - 'application_name' => 'setApplicationName', - 'application_cryptogram' => 'setApplicationCryptogram', - 'verification_method' => 'setVerificationMethod', - 'verification_results' => 'setVerificationResults', - 'statement_description' => 'setStatementDescription', - 'device_details' => 'setDeviceDetails', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'status' => 'getStatus', - 'card' => 'getCard', - 'entry_method' => 'getEntryMethod', - 'cvv_status' => 'getCvvStatus', - 'avs_status' => 'getAvsStatus', - 'auth_result_code' => 'getAuthResultCode', - 'application_identifier' => 'getApplicationIdentifier', - 'application_name' => 'getApplicationName', - 'application_cryptogram' => 'getApplicationCryptogram', - 'verification_method' => 'getVerificationMethod', - 'verification_results' => 'getVerificationResults', - 'statement_description' => 'getStatementDescription', - 'device_details' => 'getDeviceDetails', - 'errors' => 'getErrors' - ); - - /** - * $status The card payment's current state. It can be one of: `AUTHORIZED`, `CAPTURED`, `VOIDED`, `FAILED`. - * @var string - */ - protected $status; - /** - * $card The credit card's non-confidential details. - * @var \SquareConnect\Model\Card - */ - protected $card; - /** - * $entry_method The method used to enter the card's details for the payment. Can be `KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`. - * @var string - */ - protected $entry_method; - /** - * $cvv_status Status code returned from the Card Verification Value (CVV) check. Can be `CVV_ACCEPTED`, `CVV_REJECTED`, `CVV_NOT_CHECKED`. - * @var string - */ - protected $cvv_status; - /** - * $avs_status Status code returned from the Address Verification System (AVS) check. Can be `AVS_ACCEPTED`, `AVS_REJECTED`, `AVS_NOT_CHECKED`. - * @var string - */ - protected $avs_status; - /** - * $auth_result_code Status code returned by the card issuer that describes the payment's authorization status. - * @var string - */ - protected $auth_result_code; - /** - * $application_identifier For EMV payments, identifies the EMV application used for the payment. - * @var string - */ - protected $application_identifier; - /** - * $application_name For EMV payments, the human-readable name of the EMV application used for the payment. - * @var string - */ - protected $application_name; - /** - * $application_cryptogram For EMV payments, the cryptogram generated for the payment. - * @var string - */ - protected $application_cryptogram; - /** - * $verification_method For EMV payments, method used to verify the cardholder's identity. Can be one of `PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`. - * @var string - */ - protected $verification_method; - /** - * $verification_results For EMV payments, the results of the cardholder verification. Can be one of `SUCCESS`, `FAILURE`, or `UNKNOWN`. - * @var string - */ - protected $verification_results; - /** - * $statement_description The statement description sent to the card networks. Note: The actual statement description will vary and is likely to be truncated and appended with additional information on a per issuer basis. - * @var string - */ - protected $statement_description; - /** - * $device_details Details about the device that took the payment. - * @var \SquareConnect\Model\DeviceDetails - */ - protected $device_details; - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["card"])) { - $this->card = $data["card"]; - } else { - $this->card = null; - } - if (isset($data["entry_method"])) { - $this->entry_method = $data["entry_method"]; - } else { - $this->entry_method = null; - } - if (isset($data["cvv_status"])) { - $this->cvv_status = $data["cvv_status"]; - } else { - $this->cvv_status = null; - } - if (isset($data["avs_status"])) { - $this->avs_status = $data["avs_status"]; - } else { - $this->avs_status = null; - } - if (isset($data["auth_result_code"])) { - $this->auth_result_code = $data["auth_result_code"]; - } else { - $this->auth_result_code = null; - } - if (isset($data["application_identifier"])) { - $this->application_identifier = $data["application_identifier"]; - } else { - $this->application_identifier = null; - } - if (isset($data["application_name"])) { - $this->application_name = $data["application_name"]; - } else { - $this->application_name = null; - } - if (isset($data["application_cryptogram"])) { - $this->application_cryptogram = $data["application_cryptogram"]; - } else { - $this->application_cryptogram = null; - } - if (isset($data["verification_method"])) { - $this->verification_method = $data["verification_method"]; - } else { - $this->verification_method = null; - } - if (isset($data["verification_results"])) { - $this->verification_results = $data["verification_results"]; - } else { - $this->verification_results = null; - } - if (isset($data["statement_description"])) { - $this->statement_description = $data["statement_description"]; - } else { - $this->statement_description = null; - } - if (isset($data["device_details"])) { - $this->device_details = $data["device_details"]; - } else { - $this->device_details = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The card payment's current state. It can be one of: `AUTHORIZED`, `CAPTURED`, `VOIDED`, `FAILED`. - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets card - * @return \SquareConnect\Model\Card - */ - public function getCard() - { - return $this->card; - } - - /** - * Sets card - * @param \SquareConnect\Model\Card $card The credit card's non-confidential details. - * @return $this - */ - public function setCard($card) - { - $this->card = $card; - return $this; - } - /** - * Gets entry_method - * @return string - */ - public function getEntryMethod() - { - return $this->entry_method; - } - - /** - * Sets entry_method - * @param string $entry_method The method used to enter the card's details for the payment. Can be `KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`. - * @return $this - */ - public function setEntryMethod($entry_method) - { - $this->entry_method = $entry_method; - return $this; - } - /** - * Gets cvv_status - * @return string - */ - public function getCvvStatus() - { - return $this->cvv_status; - } - - /** - * Sets cvv_status - * @param string $cvv_status Status code returned from the Card Verification Value (CVV) check. Can be `CVV_ACCEPTED`, `CVV_REJECTED`, `CVV_NOT_CHECKED`. - * @return $this - */ - public function setCvvStatus($cvv_status) - { - $this->cvv_status = $cvv_status; - return $this; - } - /** - * Gets avs_status - * @return string - */ - public function getAvsStatus() - { - return $this->avs_status; - } - - /** - * Sets avs_status - * @param string $avs_status Status code returned from the Address Verification System (AVS) check. Can be `AVS_ACCEPTED`, `AVS_REJECTED`, `AVS_NOT_CHECKED`. - * @return $this - */ - public function setAvsStatus($avs_status) - { - $this->avs_status = $avs_status; - return $this; - } - /** - * Gets auth_result_code - * @return string - */ - public function getAuthResultCode() - { - return $this->auth_result_code; - } - - /** - * Sets auth_result_code - * @param string $auth_result_code Status code returned by the card issuer that describes the payment's authorization status. - * @return $this - */ - public function setAuthResultCode($auth_result_code) - { - $this->auth_result_code = $auth_result_code; - return $this; - } - /** - * Gets application_identifier - * @return string - */ - public function getApplicationIdentifier() - { - return $this->application_identifier; - } - - /** - * Sets application_identifier - * @param string $application_identifier For EMV payments, identifies the EMV application used for the payment. - * @return $this - */ - public function setApplicationIdentifier($application_identifier) - { - $this->application_identifier = $application_identifier; - return $this; - } - /** - * Gets application_name - * @return string - */ - public function getApplicationName() - { - return $this->application_name; - } - - /** - * Sets application_name - * @param string $application_name For EMV payments, the human-readable name of the EMV application used for the payment. - * @return $this - */ - public function setApplicationName($application_name) - { - $this->application_name = $application_name; - return $this; - } - /** - * Gets application_cryptogram - * @return string - */ - public function getApplicationCryptogram() - { - return $this->application_cryptogram; - } - - /** - * Sets application_cryptogram - * @param string $application_cryptogram For EMV payments, the cryptogram generated for the payment. - * @return $this - */ - public function setApplicationCryptogram($application_cryptogram) - { - $this->application_cryptogram = $application_cryptogram; - return $this; - } - /** - * Gets verification_method - * @return string - */ - public function getVerificationMethod() - { - return $this->verification_method; - } - - /** - * Sets verification_method - * @param string $verification_method For EMV payments, method used to verify the cardholder's identity. Can be one of `PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`. - * @return $this - */ - public function setVerificationMethod($verification_method) - { - $this->verification_method = $verification_method; - return $this; - } - /** - * Gets verification_results - * @return string - */ - public function getVerificationResults() - { - return $this->verification_results; - } - - /** - * Sets verification_results - * @param string $verification_results For EMV payments, the results of the cardholder verification. Can be one of `SUCCESS`, `FAILURE`, or `UNKNOWN`. - * @return $this - */ - public function setVerificationResults($verification_results) - { - $this->verification_results = $verification_results; - return $this; - } - /** - * Gets statement_description - * @return string - */ - public function getStatementDescription() - { - return $this->statement_description; - } - - /** - * Sets statement_description - * @param string $statement_description The statement description sent to the card networks. Note: The actual statement description will vary and is likely to be truncated and appended with additional information on a per issuer basis. - * @return $this - */ - public function setStatementDescription($statement_description) - { - $this->statement_description = $statement_description; - return $this; - } - /** - * Gets device_details - * @return \SquareConnect\Model\DeviceDetails - */ - public function getDeviceDetails() - { - return $this->device_details; - } - - /** - * Sets device_details - * @param \SquareConnect\Model\DeviceDetails $device_details Details about the device that took the payment. - * @return $this - */ - public function setDeviceDetails($device_details) - { - $this->device_details = $device_details; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CardPrepaidType.php b/includes/classes/vendors/square/connect/lib/Model/CardPrepaidType.php deleted file mode 100644 index 2b779fd06e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CardPrepaidType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CardType.php b/includes/classes/vendors/square/connect/lib/Model/CardType.php deleted file mode 100644 index 05d1dbe79c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CardType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CashDrawerDevice.php b/includes/classes/vendors/square/connect/lib/Model/CashDrawerDevice.php deleted file mode 100644 index 7ff5ef8d41..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CashDrawerDevice.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'name' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName' - ); - - /** - * $id The device Square-issued ID - * @var string - */ - protected $id; - /** - * $name The device merchant-specified name. - * @var string - */ - protected $name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The device Square-issued ID - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The device merchant-specified name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CashDrawerEventType.php b/includes/classes/vendors/square/connect/lib/Model/CashDrawerEventType.php deleted file mode 100644 index 13d0ca27a4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CashDrawerEventType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CashDrawerShift.php b/includes/classes/vendors/square/connect/lib/Model/CashDrawerShift.php deleted file mode 100644 index cd4c2ec2ac..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CashDrawerShift.php +++ /dev/null @@ -1,707 +0,0 @@ - 'string', - 'state' => 'string', - 'opened_at' => 'string', - 'ended_at' => 'string', - 'closed_at' => 'string', - 'employee_ids' => 'string[]', - 'opening_employee_id' => 'string', - 'ending_employee_id' => 'string', - 'closing_employee_id' => 'string', - 'description' => 'string', - 'opened_cash_money' => '\SquareConnect\Model\Money', - 'cash_payment_money' => '\SquareConnect\Model\Money', - 'cash_refunds_money' => '\SquareConnect\Model\Money', - 'cash_paid_in_money' => '\SquareConnect\Model\Money', - 'cash_paid_out_money' => '\SquareConnect\Model\Money', - 'expected_cash_money' => '\SquareConnect\Model\Money', - 'closed_cash_money' => '\SquareConnect\Model\Money', - 'device' => '\SquareConnect\Model\CashDrawerDevice' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'state' => 'state', - 'opened_at' => 'opened_at', - 'ended_at' => 'ended_at', - 'closed_at' => 'closed_at', - 'employee_ids' => 'employee_ids', - 'opening_employee_id' => 'opening_employee_id', - 'ending_employee_id' => 'ending_employee_id', - 'closing_employee_id' => 'closing_employee_id', - 'description' => 'description', - 'opened_cash_money' => 'opened_cash_money', - 'cash_payment_money' => 'cash_payment_money', - 'cash_refunds_money' => 'cash_refunds_money', - 'cash_paid_in_money' => 'cash_paid_in_money', - 'cash_paid_out_money' => 'cash_paid_out_money', - 'expected_cash_money' => 'expected_cash_money', - 'closed_cash_money' => 'closed_cash_money', - 'device' => 'device' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'state' => 'setState', - 'opened_at' => 'setOpenedAt', - 'ended_at' => 'setEndedAt', - 'closed_at' => 'setClosedAt', - 'employee_ids' => 'setEmployeeIds', - 'opening_employee_id' => 'setOpeningEmployeeId', - 'ending_employee_id' => 'setEndingEmployeeId', - 'closing_employee_id' => 'setClosingEmployeeId', - 'description' => 'setDescription', - 'opened_cash_money' => 'setOpenedCashMoney', - 'cash_payment_money' => 'setCashPaymentMoney', - 'cash_refunds_money' => 'setCashRefundsMoney', - 'cash_paid_in_money' => 'setCashPaidInMoney', - 'cash_paid_out_money' => 'setCashPaidOutMoney', - 'expected_cash_money' => 'setExpectedCashMoney', - 'closed_cash_money' => 'setClosedCashMoney', - 'device' => 'setDevice' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'state' => 'getState', - 'opened_at' => 'getOpenedAt', - 'ended_at' => 'getEndedAt', - 'closed_at' => 'getClosedAt', - 'employee_ids' => 'getEmployeeIds', - 'opening_employee_id' => 'getOpeningEmployeeId', - 'ending_employee_id' => 'getEndingEmployeeId', - 'closing_employee_id' => 'getClosingEmployeeId', - 'description' => 'getDescription', - 'opened_cash_money' => 'getOpenedCashMoney', - 'cash_payment_money' => 'getCashPaymentMoney', - 'cash_refunds_money' => 'getCashRefundsMoney', - 'cash_paid_in_money' => 'getCashPaidInMoney', - 'cash_paid_out_money' => 'getCashPaidOutMoney', - 'expected_cash_money' => 'getExpectedCashMoney', - 'closed_cash_money' => 'getClosedCashMoney', - 'device' => 'getDevice' - ); - - /** - * $id The shift unique ID. - * @var string - */ - protected $id; - /** - * $state The shift current state. See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values - * @var string - */ - protected $state; - /** - * $opened_at The time when the shift began, in ISO 8601 format. - * @var string - */ - protected $opened_at; - /** - * $ended_at The time when the shift ended, in ISO 8601 format. - * @var string - */ - protected $ended_at; - /** - * $closed_at The time when the shift was closed, in ISO 8601 format. - * @var string - */ - protected $closed_at; - /** - * $employee_ids The IDs of all employees that were logged into Square Point of Sale at any point while the cash drawer shift was open. - * @var string[] - */ - protected $employee_ids; - /** - * $opening_employee_id The ID of the employee that started the cash drawer shift. - * @var string - */ - protected $opening_employee_id; - /** - * $ending_employee_id The ID of the employee that ended the cash drawer shift. - * @var string - */ - protected $ending_employee_id; - /** - * $closing_employee_id The ID of the employee that closed the cash drawer shift by auditing the cash drawer contents. - * @var string - */ - protected $closing_employee_id; - /** - * $description The free-form text description of a cash drawer by an employee. - * @var string - */ - protected $description; - /** - * $opened_cash_money The amount of money in the cash drawer at the start of the shift. The amount must be greater than or equal to zero. - * @var \SquareConnect\Model\Money - */ - protected $opened_cash_money; - /** - * $cash_payment_money The amount of money added to the cash drawer from cash payments. This is computed by summing all events with the types CASH_TENDER_PAYMENT and CASH_TENDER_CANCELED_PAYMENT. The amount is always greater than or equal to zero. - * @var \SquareConnect\Model\Money - */ - protected $cash_payment_money; - /** - * $cash_refunds_money The amount of money removed from the cash drawer from cash refunds. It is computed by summing the events of type CASH_TENDER_REFUND. The amount is always greater than or equal to zero. - * @var \SquareConnect\Model\Money - */ - protected $cash_refunds_money; - /** - * $cash_paid_in_money The amount of money added to the cash drawer for reasons other than cash payments. It is computed by summing the events of type PAID_IN. The amount is always greater than or equal to zero. - * @var \SquareConnect\Model\Money - */ - protected $cash_paid_in_money; - /** - * $cash_paid_out_money The amount of money removed from the cash drawer for reasons other than cash refunds. It is computed by summing the events of type PAID_OUT. The amount is always greater than or equal to zero. - * @var \SquareConnect\Model\Money - */ - protected $cash_paid_out_money; - /** - * $expected_cash_money The amount of money that should be in the cash drawer at the end of the shift, based on the shift's other money amounts. This can be negative if employees have not correctly recorded all the events on the cash drawer. cash_paid_out_money is a summation of amounts from cash_payment_money (zero or positive), cash_refunds_money (zero or negative), cash_paid_in_money (zero or positive), and cash_paid_out_money (zero or negative) event types. - * @var \SquareConnect\Model\Money - */ - protected $expected_cash_money; - /** - * $closed_cash_money The amount of money found in the cash drawer at the end of the shift by an auditing employee. The amount should be positive. - * @var \SquareConnect\Model\Money - */ - protected $closed_cash_money; - /** - * $device The device running Square Point of Sale that was connected to the cash drawer. - * @var \SquareConnect\Model\CashDrawerDevice - */ - protected $device; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["opened_at"])) { - $this->opened_at = $data["opened_at"]; - } else { - $this->opened_at = null; - } - if (isset($data["ended_at"])) { - $this->ended_at = $data["ended_at"]; - } else { - $this->ended_at = null; - } - if (isset($data["closed_at"])) { - $this->closed_at = $data["closed_at"]; - } else { - $this->closed_at = null; - } - if (isset($data["employee_ids"])) { - $this->employee_ids = $data["employee_ids"]; - } else { - $this->employee_ids = null; - } - if (isset($data["opening_employee_id"])) { - $this->opening_employee_id = $data["opening_employee_id"]; - } else { - $this->opening_employee_id = null; - } - if (isset($data["ending_employee_id"])) { - $this->ending_employee_id = $data["ending_employee_id"]; - } else { - $this->ending_employee_id = null; - } - if (isset($data["closing_employee_id"])) { - $this->closing_employee_id = $data["closing_employee_id"]; - } else { - $this->closing_employee_id = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["opened_cash_money"])) { - $this->opened_cash_money = $data["opened_cash_money"]; - } else { - $this->opened_cash_money = null; - } - if (isset($data["cash_payment_money"])) { - $this->cash_payment_money = $data["cash_payment_money"]; - } else { - $this->cash_payment_money = null; - } - if (isset($data["cash_refunds_money"])) { - $this->cash_refunds_money = $data["cash_refunds_money"]; - } else { - $this->cash_refunds_money = null; - } - if (isset($data["cash_paid_in_money"])) { - $this->cash_paid_in_money = $data["cash_paid_in_money"]; - } else { - $this->cash_paid_in_money = null; - } - if (isset($data["cash_paid_out_money"])) { - $this->cash_paid_out_money = $data["cash_paid_out_money"]; - } else { - $this->cash_paid_out_money = null; - } - if (isset($data["expected_cash_money"])) { - $this->expected_cash_money = $data["expected_cash_money"]; - } else { - $this->expected_cash_money = null; - } - if (isset($data["closed_cash_money"])) { - $this->closed_cash_money = $data["closed_cash_money"]; - } else { - $this->closed_cash_money = null; - } - if (isset($data["device"])) { - $this->device = $data["device"]; - } else { - $this->device = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The shift unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The shift current state. See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets opened_at - * @return string - */ - public function getOpenedAt() - { - return $this->opened_at; - } - - /** - * Sets opened_at - * @param string $opened_at The time when the shift began, in ISO 8601 format. - * @return $this - */ - public function setOpenedAt($opened_at) - { - $this->opened_at = $opened_at; - return $this; - } - /** - * Gets ended_at - * @return string - */ - public function getEndedAt() - { - return $this->ended_at; - } - - /** - * Sets ended_at - * @param string $ended_at The time when the shift ended, in ISO 8601 format. - * @return $this - */ - public function setEndedAt($ended_at) - { - $this->ended_at = $ended_at; - return $this; - } - /** - * Gets closed_at - * @return string - */ - public function getClosedAt() - { - return $this->closed_at; - } - - /** - * Sets closed_at - * @param string $closed_at The time when the shift was closed, in ISO 8601 format. - * @return $this - */ - public function setClosedAt($closed_at) - { - $this->closed_at = $closed_at; - return $this; - } - /** - * Gets employee_ids - * @return string[] - */ - public function getEmployeeIds() - { - return $this->employee_ids; - } - - /** - * Sets employee_ids - * @param string[] $employee_ids The IDs of all employees that were logged into Square Point of Sale at any point while the cash drawer shift was open. - * @return $this - */ - public function setEmployeeIds($employee_ids) - { - $this->employee_ids = $employee_ids; - return $this; - } - /** - * Gets opening_employee_id - * @return string - */ - public function getOpeningEmployeeId() - { - return $this->opening_employee_id; - } - - /** - * Sets opening_employee_id - * @param string $opening_employee_id The ID of the employee that started the cash drawer shift. - * @return $this - */ - public function setOpeningEmployeeId($opening_employee_id) - { - $this->opening_employee_id = $opening_employee_id; - return $this; - } - /** - * Gets ending_employee_id - * @return string - */ - public function getEndingEmployeeId() - { - return $this->ending_employee_id; - } - - /** - * Sets ending_employee_id - * @param string $ending_employee_id The ID of the employee that ended the cash drawer shift. - * @return $this - */ - public function setEndingEmployeeId($ending_employee_id) - { - $this->ending_employee_id = $ending_employee_id; - return $this; - } - /** - * Gets closing_employee_id - * @return string - */ - public function getClosingEmployeeId() - { - return $this->closing_employee_id; - } - - /** - * Sets closing_employee_id - * @param string $closing_employee_id The ID of the employee that closed the cash drawer shift by auditing the cash drawer contents. - * @return $this - */ - public function setClosingEmployeeId($closing_employee_id) - { - $this->closing_employee_id = $closing_employee_id; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description The free-form text description of a cash drawer by an employee. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets opened_cash_money - * @return \SquareConnect\Model\Money - */ - public function getOpenedCashMoney() - { - return $this->opened_cash_money; - } - - /** - * Sets opened_cash_money - * @param \SquareConnect\Model\Money $opened_cash_money The amount of money in the cash drawer at the start of the shift. The amount must be greater than or equal to zero. - * @return $this - */ - public function setOpenedCashMoney($opened_cash_money) - { - $this->opened_cash_money = $opened_cash_money; - return $this; - } - /** - * Gets cash_payment_money - * @return \SquareConnect\Model\Money - */ - public function getCashPaymentMoney() - { - return $this->cash_payment_money; - } - - /** - * Sets cash_payment_money - * @param \SquareConnect\Model\Money $cash_payment_money The amount of money added to the cash drawer from cash payments. This is computed by summing all events with the types CASH_TENDER_PAYMENT and CASH_TENDER_CANCELED_PAYMENT. The amount is always greater than or equal to zero. - * @return $this - */ - public function setCashPaymentMoney($cash_payment_money) - { - $this->cash_payment_money = $cash_payment_money; - return $this; - } - /** - * Gets cash_refunds_money - * @return \SquareConnect\Model\Money - */ - public function getCashRefundsMoney() - { - return $this->cash_refunds_money; - } - - /** - * Sets cash_refunds_money - * @param \SquareConnect\Model\Money $cash_refunds_money The amount of money removed from the cash drawer from cash refunds. It is computed by summing the events of type CASH_TENDER_REFUND. The amount is always greater than or equal to zero. - * @return $this - */ - public function setCashRefundsMoney($cash_refunds_money) - { - $this->cash_refunds_money = $cash_refunds_money; - return $this; - } - /** - * Gets cash_paid_in_money - * @return \SquareConnect\Model\Money - */ - public function getCashPaidInMoney() - { - return $this->cash_paid_in_money; - } - - /** - * Sets cash_paid_in_money - * @param \SquareConnect\Model\Money $cash_paid_in_money The amount of money added to the cash drawer for reasons other than cash payments. It is computed by summing the events of type PAID_IN. The amount is always greater than or equal to zero. - * @return $this - */ - public function setCashPaidInMoney($cash_paid_in_money) - { - $this->cash_paid_in_money = $cash_paid_in_money; - return $this; - } - /** - * Gets cash_paid_out_money - * @return \SquareConnect\Model\Money - */ - public function getCashPaidOutMoney() - { - return $this->cash_paid_out_money; - } - - /** - * Sets cash_paid_out_money - * @param \SquareConnect\Model\Money $cash_paid_out_money The amount of money removed from the cash drawer for reasons other than cash refunds. It is computed by summing the events of type PAID_OUT. The amount is always greater than or equal to zero. - * @return $this - */ - public function setCashPaidOutMoney($cash_paid_out_money) - { - $this->cash_paid_out_money = $cash_paid_out_money; - return $this; - } - /** - * Gets expected_cash_money - * @return \SquareConnect\Model\Money - */ - public function getExpectedCashMoney() - { - return $this->expected_cash_money; - } - - /** - * Sets expected_cash_money - * @param \SquareConnect\Model\Money $expected_cash_money The amount of money that should be in the cash drawer at the end of the shift, based on the shift's other money amounts. This can be negative if employees have not correctly recorded all the events on the cash drawer. cash_paid_out_money is a summation of amounts from cash_payment_money (zero or positive), cash_refunds_money (zero or negative), cash_paid_in_money (zero or positive), and cash_paid_out_money (zero or negative) event types. - * @return $this - */ - public function setExpectedCashMoney($expected_cash_money) - { - $this->expected_cash_money = $expected_cash_money; - return $this; - } - /** - * Gets closed_cash_money - * @return \SquareConnect\Model\Money - */ - public function getClosedCashMoney() - { - return $this->closed_cash_money; - } - - /** - * Sets closed_cash_money - * @param \SquareConnect\Model\Money $closed_cash_money The amount of money found in the cash drawer at the end of the shift by an auditing employee. The amount should be positive. - * @return $this - */ - public function setClosedCashMoney($closed_cash_money) - { - $this->closed_cash_money = $closed_cash_money; - return $this; - } - /** - * Gets device - * @return \SquareConnect\Model\CashDrawerDevice - */ - public function getDevice() - { - return $this->device; - } - - /** - * Sets device - * @param \SquareConnect\Model\CashDrawerDevice $device The device running Square Point of Sale that was connected to the cash drawer. - * @return $this - */ - public function setDevice($device) - { - $this->device = $device; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftEvent.php b/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftEvent.php deleted file mode 100644 index 2e18fb692a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftEvent.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'employee_id' => 'string', - 'event_type' => 'string', - 'event_money' => '\SquareConnect\Model\Money', - 'created_at' => 'string', - 'description' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'employee_id' => 'employee_id', - 'event_type' => 'event_type', - 'event_money' => 'event_money', - 'created_at' => 'created_at', - 'description' => 'description' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'employee_id' => 'setEmployeeId', - 'event_type' => 'setEventType', - 'event_money' => 'setEventMoney', - 'created_at' => 'setCreatedAt', - 'description' => 'setDescription' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'employee_id' => 'getEmployeeId', - 'event_type' => 'getEventType', - 'event_money' => 'getEventMoney', - 'created_at' => 'getCreatedAt', - 'description' => 'getDescription' - ); - - /** - * $id The unique ID of the event. - * @var string - */ - protected $id; - /** - * $employee_id The ID of the employee that created the event. - * @var string - */ - protected $employee_id; - /** - * $event_type The type of cash drawer shift event. See [CashDrawerEventType](#type-cashdrawereventtype) for possible values - * @var string - */ - protected $event_type; - /** - * $event_money The amount of money that was added to or removed from the cash drawer in the event. The amount can be positive (for added money), negative (for removed money), or zero (for other tender type payments). - * @var \SquareConnect\Model\Money - */ - protected $event_money; - /** - * $created_at The event time in ISO 8601 format. - * @var string - */ - protected $created_at; - /** - * $description An optional description of the event, entered by the employee that created the event. - * @var string - */ - protected $description; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["event_type"])) { - $this->event_type = $data["event_type"]; - } else { - $this->event_type = null; - } - if (isset($data["event_money"])) { - $this->event_money = $data["event_money"]; - } else { - $this->event_money = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The unique ID of the event. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The ID of the employee that created the event. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets event_type - * @return string - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Sets event_type - * @param string $event_type The type of cash drawer shift event. See [CashDrawerEventType](#type-cashdrawereventtype) for possible values - * @return $this - */ - public function setEventType($event_type) - { - $this->event_type = $event_type; - return $this; - } - /** - * Gets event_money - * @return \SquareConnect\Model\Money - */ - public function getEventMoney() - { - return $this->event_money; - } - - /** - * Sets event_money - * @param \SquareConnect\Model\Money $event_money The amount of money that was added to or removed from the cash drawer in the event. The amount can be positive (for added money), negative (for removed money), or zero (for other tender type payments). - * @return $this - */ - public function setEventMoney($event_money) - { - $this->event_money = $event_money; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The event time in ISO 8601 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description An optional description of the event, entered by the employee that created the event. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftState.php b/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftState.php deleted file mode 100644 index 9c2097603d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftState.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftSummary.php b/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftSummary.php deleted file mode 100644 index faf2540a19..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CashDrawerShiftSummary.php +++ /dev/null @@ -1,410 +0,0 @@ - 'string', - 'state' => 'string', - 'opened_at' => 'string', - 'ended_at' => 'string', - 'closed_at' => 'string', - 'description' => 'string', - 'opened_cash_money' => '\SquareConnect\Model\Money', - 'expected_cash_money' => '\SquareConnect\Model\Money', - 'closed_cash_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'state' => 'state', - 'opened_at' => 'opened_at', - 'ended_at' => 'ended_at', - 'closed_at' => 'closed_at', - 'description' => 'description', - 'opened_cash_money' => 'opened_cash_money', - 'expected_cash_money' => 'expected_cash_money', - 'closed_cash_money' => 'closed_cash_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'state' => 'setState', - 'opened_at' => 'setOpenedAt', - 'ended_at' => 'setEndedAt', - 'closed_at' => 'setClosedAt', - 'description' => 'setDescription', - 'opened_cash_money' => 'setOpenedCashMoney', - 'expected_cash_money' => 'setExpectedCashMoney', - 'closed_cash_money' => 'setClosedCashMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'state' => 'getState', - 'opened_at' => 'getOpenedAt', - 'ended_at' => 'getEndedAt', - 'closed_at' => 'getClosedAt', - 'description' => 'getDescription', - 'opened_cash_money' => 'getOpenedCashMoney', - 'expected_cash_money' => 'getExpectedCashMoney', - 'closed_cash_money' => 'getClosedCashMoney' - ); - - /** - * $id The shift unique ID. - * @var string - */ - protected $id; - /** - * $state The shift current state. See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values - * @var string - */ - protected $state; - /** - * $opened_at The shift start time in ISO 8601 format. - * @var string - */ - protected $opened_at; - /** - * $ended_at The shift end time in ISO 8601 format. - * @var string - */ - protected $ended_at; - /** - * $closed_at The shift close time in ISO 8601 format. - * @var string - */ - protected $closed_at; - /** - * $description An employee free-text description of a cash drawer shift. - * @var string - */ - protected $description; - /** - * $opened_cash_money The amount of money in the cash drawer at the start of the shift. This must be a positive amount. - * @var \SquareConnect\Model\Money - */ - protected $opened_cash_money; - /** - * $expected_cash_money The amount of money that should be in the cash drawer at the end of the shift, based on the cash drawer events on the shift. The amount is correct if all shift employees accurately recorded their cash drawer shift events. Unrecorded events and events with the wrong amount result in an incorrect expected_cash_money amount that can be negative. - * @var \SquareConnect\Model\Money - */ - protected $expected_cash_money; - /** - * $closed_cash_money The amount of money found in the cash drawer at the end of the shift by an auditing employee. The amount must be greater than or equal to zero. - * @var \SquareConnect\Model\Money - */ - protected $closed_cash_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["opened_at"])) { - $this->opened_at = $data["opened_at"]; - } else { - $this->opened_at = null; - } - if (isset($data["ended_at"])) { - $this->ended_at = $data["ended_at"]; - } else { - $this->ended_at = null; - } - if (isset($data["closed_at"])) { - $this->closed_at = $data["closed_at"]; - } else { - $this->closed_at = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["opened_cash_money"])) { - $this->opened_cash_money = $data["opened_cash_money"]; - } else { - $this->opened_cash_money = null; - } - if (isset($data["expected_cash_money"])) { - $this->expected_cash_money = $data["expected_cash_money"]; - } else { - $this->expected_cash_money = null; - } - if (isset($data["closed_cash_money"])) { - $this->closed_cash_money = $data["closed_cash_money"]; - } else { - $this->closed_cash_money = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The shift unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The shift current state. See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets opened_at - * @return string - */ - public function getOpenedAt() - { - return $this->opened_at; - } - - /** - * Sets opened_at - * @param string $opened_at The shift start time in ISO 8601 format. - * @return $this - */ - public function setOpenedAt($opened_at) - { - $this->opened_at = $opened_at; - return $this; - } - /** - * Gets ended_at - * @return string - */ - public function getEndedAt() - { - return $this->ended_at; - } - - /** - * Sets ended_at - * @param string $ended_at The shift end time in ISO 8601 format. - * @return $this - */ - public function setEndedAt($ended_at) - { - $this->ended_at = $ended_at; - return $this; - } - /** - * Gets closed_at - * @return string - */ - public function getClosedAt() - { - return $this->closed_at; - } - - /** - * Sets closed_at - * @param string $closed_at The shift close time in ISO 8601 format. - * @return $this - */ - public function setClosedAt($closed_at) - { - $this->closed_at = $closed_at; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description An employee free-text description of a cash drawer shift. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets opened_cash_money - * @return \SquareConnect\Model\Money - */ - public function getOpenedCashMoney() - { - return $this->opened_cash_money; - } - - /** - * Sets opened_cash_money - * @param \SquareConnect\Model\Money $opened_cash_money The amount of money in the cash drawer at the start of the shift. This must be a positive amount. - * @return $this - */ - public function setOpenedCashMoney($opened_cash_money) - { - $this->opened_cash_money = $opened_cash_money; - return $this; - } - /** - * Gets expected_cash_money - * @return \SquareConnect\Model\Money - */ - public function getExpectedCashMoney() - { - return $this->expected_cash_money; - } - - /** - * Sets expected_cash_money - * @param \SquareConnect\Model\Money $expected_cash_money The amount of money that should be in the cash drawer at the end of the shift, based on the cash drawer events on the shift. The amount is correct if all shift employees accurately recorded their cash drawer shift events. Unrecorded events and events with the wrong amount result in an incorrect expected_cash_money amount that can be negative. - * @return $this - */ - public function setExpectedCashMoney($expected_cash_money) - { - $this->expected_cash_money = $expected_cash_money; - return $this; - } - /** - * Gets closed_cash_money - * @return \SquareConnect\Model\Money - */ - public function getClosedCashMoney() - { - return $this->closed_cash_money; - } - - /** - * Sets closed_cash_money - * @param \SquareConnect\Model\Money $closed_cash_money The amount of money found in the cash drawer at the end of the shift by an auditing employee. The amount must be greater than or equal to zero. - * @return $this - */ - public function setClosedCashMoney($closed_cash_money) - { - $this->closed_cash_money = $closed_cash_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCategory.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCategory.php deleted file mode 100644 index 8873fde877..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCategory.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName' - ); - - /** - * $name The category name. Searchable. This field has max length of 255 Unicode code points. - * @var string - */ - protected $name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The category name. Searchable. This field has max length of 255 Unicode code points. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinition.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinition.php deleted file mode 100644 index c6cab3b6b8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinition.php +++ /dev/null @@ -1,510 +0,0 @@ - 'string', - 'name' => 'string', - 'description' => 'string', - 'source_application' => '\SquareConnect\Model\SourceApplication', - 'allowed_object_types' => 'string[]', - 'seller_visibility' => 'string', - 'app_visibility' => 'string', - 'string_config' => '\SquareConnect\Model\CatalogCustomAttributeDefinitionStringConfig', - 'number_config' => '\SquareConnect\Model\CatalogCustomAttributeDefinitionNumberConfig', - 'selection_config' => '\SquareConnect\Model\CatalogCustomAttributeDefinitionSelectionConfig', - 'custom_attribute_usage_count' => 'int', - 'key' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'type' => 'type', - 'name' => 'name', - 'description' => 'description', - 'source_application' => 'source_application', - 'allowed_object_types' => 'allowed_object_types', - 'seller_visibility' => 'seller_visibility', - 'app_visibility' => 'app_visibility', - 'string_config' => 'string_config', - 'number_config' => 'number_config', - 'selection_config' => 'selection_config', - 'custom_attribute_usage_count' => 'custom_attribute_usage_count', - 'key' => 'key' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'type' => 'setType', - 'name' => 'setName', - 'description' => 'setDescription', - 'source_application' => 'setSourceApplication', - 'allowed_object_types' => 'setAllowedObjectTypes', - 'seller_visibility' => 'setSellerVisibility', - 'app_visibility' => 'setAppVisibility', - 'string_config' => 'setStringConfig', - 'number_config' => 'setNumberConfig', - 'selection_config' => 'setSelectionConfig', - 'custom_attribute_usage_count' => 'setCustomAttributeUsageCount', - 'key' => 'setKey' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'type' => 'getType', - 'name' => 'getName', - 'description' => 'getDescription', - 'source_application' => 'getSourceApplication', - 'allowed_object_types' => 'getAllowedObjectTypes', - 'seller_visibility' => 'getSellerVisibility', - 'app_visibility' => 'getAppVisibility', - 'string_config' => 'getStringConfig', - 'number_config' => 'getNumberConfig', - 'selection_config' => 'getSelectionConfig', - 'custom_attribute_usage_count' => 'getCustomAttributeUsageCount', - 'key' => 'getKey' - ); - - /** - * $type The type of this custom attribute. Cannot be modified after creation. Required. See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values - * @var string - */ - protected $type; - /** - * $name The name of this definition for API and seller-facing UI purposes. The name must be unique within the (merchant, application_id) pair. Required. May not be empty and may not exceed 255 characters. Can be modified after creation. - * @var string - */ - protected $name; - /** - * $description Seller-oriented description of the meaning of this Custom Attribute, any constraints that the seller should observe, etc. May be displayed as a tooltip in Square UIs. - * @var string - */ - protected $description; - /** - * $source_application __Read only.__ Contains information about the application that created this custom attribute definition. - * @var \SquareConnect\Model\SourceApplication - */ - protected $source_application; - /** - * $allowed_object_types The set of Catalog Object Types that this Custom Attribute may be applied to. Currently, only `ITEM` and `ITEM_VARIATION` are allowed. At least one type must be included. See [CatalogObjectType](#type-catalogobjecttype) for possible values - * @var string[] - */ - protected $allowed_object_types; - /** - * $seller_visibility The visibility of a custom attribute in seller-facing UIs (including Square Point of Sale applications and Square Dashboard). May be modified. See [CatalogCustomAttributeDefinitionSellerVisibility](#type-catalogcustomattributedefinitionsellervisibility) for possible values - * @var string - */ - protected $seller_visibility; - /** - * $app_visibility The visibility of a custom attribute to applications other than the application that created the attribute. See [CatalogCustomAttributeDefinitionAppVisibility](#type-catalogcustomattributedefinitionappvisibility) for possible values - * @var string - */ - protected $app_visibility; - /** - * $string_config Optionally, populated when `type` = `STRING`, unset otherwise. - * @var \SquareConnect\Model\CatalogCustomAttributeDefinitionStringConfig - */ - protected $string_config; - /** - * $number_config - * @var \SquareConnect\Model\CatalogCustomAttributeDefinitionNumberConfig - */ - protected $number_config; - /** - * $selection_config Populated when `type` is set to `SELECTION`, unset otherwise. - * @var \SquareConnect\Model\CatalogCustomAttributeDefinitionSelectionConfig - */ - protected $selection_config; - /** - * $custom_attribute_usage_count __Read-only.__ The number of custom attributes that reference this custom attribute definition. Set by the server in response to a ListCatalog request with `include_counts` set to `true`. If the actual count is greater than 100, `custom_attribute_usage_count` will be set to `100`. - * @var int - */ - protected $custom_attribute_usage_count; - /** - * $key The name of the desired custom attribute key that can be used to access the custom attribute value on catalog objects. Cannot be modified after the custom attribute definition has been created. Must be between 1 and 60 characters, and may only contain the characters [a-zA-Z0-9_-]. - * @var string - */ - protected $key; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["source_application"])) { - $this->source_application = $data["source_application"]; - } else { - $this->source_application = null; - } - if (isset($data["allowed_object_types"])) { - $this->allowed_object_types = $data["allowed_object_types"]; - } else { - $this->allowed_object_types = null; - } - if (isset($data["seller_visibility"])) { - $this->seller_visibility = $data["seller_visibility"]; - } else { - $this->seller_visibility = null; - } - if (isset($data["app_visibility"])) { - $this->app_visibility = $data["app_visibility"]; - } else { - $this->app_visibility = null; - } - if (isset($data["string_config"])) { - $this->string_config = $data["string_config"]; - } else { - $this->string_config = null; - } - if (isset($data["number_config"])) { - $this->number_config = $data["number_config"]; - } else { - $this->number_config = null; - } - if (isset($data["selection_config"])) { - $this->selection_config = $data["selection_config"]; - } else { - $this->selection_config = null; - } - if (isset($data["custom_attribute_usage_count"])) { - $this->custom_attribute_usage_count = $data["custom_attribute_usage_count"]; - } else { - $this->custom_attribute_usage_count = null; - } - if (isset($data["key"])) { - $this->key = $data["key"]; - } else { - $this->key = null; - } - } - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of this custom attribute. Cannot be modified after creation. Required. See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of this definition for API and seller-facing UI purposes. The name must be unique within the (merchant, application_id) pair. Required. May not be empty and may not exceed 255 characters. Can be modified after creation. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description Seller-oriented description of the meaning of this Custom Attribute, any constraints that the seller should observe, etc. May be displayed as a tooltip in Square UIs. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets source_application - * @return \SquareConnect\Model\SourceApplication - */ - public function getSourceApplication() - { - return $this->source_application; - } - - /** - * Sets source_application - * @param \SquareConnect\Model\SourceApplication $source_application __Read only.__ Contains information about the application that created this custom attribute definition. - * @return $this - */ - public function setSourceApplication($source_application) - { - $this->source_application = $source_application; - return $this; - } - /** - * Gets allowed_object_types - * @return string[] - */ - public function getAllowedObjectTypes() - { - return $this->allowed_object_types; - } - - /** - * Sets allowed_object_types - * @param string[] $allowed_object_types The set of Catalog Object Types that this Custom Attribute may be applied to. Currently, only `ITEM` and `ITEM_VARIATION` are allowed. At least one type must be included. See [CatalogObjectType](#type-catalogobjecttype) for possible values - * @return $this - */ - public function setAllowedObjectTypes($allowed_object_types) - { - $this->allowed_object_types = $allowed_object_types; - return $this; - } - /** - * Gets seller_visibility - * @return string - */ - public function getSellerVisibility() - { - return $this->seller_visibility; - } - - /** - * Sets seller_visibility - * @param string $seller_visibility The visibility of a custom attribute in seller-facing UIs (including Square Point of Sale applications and Square Dashboard). May be modified. See [CatalogCustomAttributeDefinitionSellerVisibility](#type-catalogcustomattributedefinitionsellervisibility) for possible values - * @return $this - */ - public function setSellerVisibility($seller_visibility) - { - $this->seller_visibility = $seller_visibility; - return $this; - } - /** - * Gets app_visibility - * @return string - */ - public function getAppVisibility() - { - return $this->app_visibility; - } - - /** - * Sets app_visibility - * @param string $app_visibility The visibility of a custom attribute to applications other than the application that created the attribute. See [CatalogCustomAttributeDefinitionAppVisibility](#type-catalogcustomattributedefinitionappvisibility) for possible values - * @return $this - */ - public function setAppVisibility($app_visibility) - { - $this->app_visibility = $app_visibility; - return $this; - } - /** - * Gets string_config - * @return \SquareConnect\Model\CatalogCustomAttributeDefinitionStringConfig - */ - public function getStringConfig() - { - return $this->string_config; - } - - /** - * Sets string_config - * @param \SquareConnect\Model\CatalogCustomAttributeDefinitionStringConfig $string_config Optionally, populated when `type` = `STRING`, unset otherwise. - * @return $this - */ - public function setStringConfig($string_config) - { - $this->string_config = $string_config; - return $this; - } - /** - * Gets number_config - * @return \SquareConnect\Model\CatalogCustomAttributeDefinitionNumberConfig - */ - public function getNumberConfig() - { - return $this->number_config; - } - - /** - * Sets number_config - * @param \SquareConnect\Model\CatalogCustomAttributeDefinitionNumberConfig $number_config - * @return $this - */ - public function setNumberConfig($number_config) - { - $this->number_config = $number_config; - return $this; - } - /** - * Gets selection_config - * @return \SquareConnect\Model\CatalogCustomAttributeDefinitionSelectionConfig - */ - public function getSelectionConfig() - { - return $this->selection_config; - } - - /** - * Sets selection_config - * @param \SquareConnect\Model\CatalogCustomAttributeDefinitionSelectionConfig $selection_config Populated when `type` is set to `SELECTION`, unset otherwise. - * @return $this - */ - public function setSelectionConfig($selection_config) - { - $this->selection_config = $selection_config; - return $this; - } - /** - * Gets custom_attribute_usage_count - * @return int - */ - public function getCustomAttributeUsageCount() - { - return $this->custom_attribute_usage_count; - } - - /** - * Sets custom_attribute_usage_count - * @param int $custom_attribute_usage_count __Read-only.__ The number of custom attributes that reference this custom attribute definition. Set by the server in response to a ListCatalog request with `include_counts` set to `true`. If the actual count is greater than 100, `custom_attribute_usage_count` will be set to `100`. - * @return $this - */ - public function setCustomAttributeUsageCount($custom_attribute_usage_count) - { - $this->custom_attribute_usage_count = $custom_attribute_usage_count; - return $this; - } - /** - * Gets key - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Sets key - * @param string $key The name of the desired custom attribute key that can be used to access the custom attribute value on catalog objects. Cannot be modified after the custom attribute definition has been created. Must be between 1 and 60 characters, and may only contain the characters [a-zA-Z0-9_-]. - * @return $this - */ - public function setKey($key) - { - $this->key = $key; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionAppVisibility.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionAppVisibility.php deleted file mode 100644 index 534760d64d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionAppVisibility.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionNumberConfig.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionNumberConfig.php deleted file mode 100644 index 182d1b271e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionNumberConfig.php +++ /dev/null @@ -1,147 +0,0 @@ - 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'precision' => 'precision' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'precision' => 'setPrecision' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'precision' => 'getPrecision' - ); - - /** - * $precision An integer between 0 and 5 that represents the maximum number of positions allowed after the decimal in number custom attribute values For example: - if the precision is 0, the quantity can be 1, 2, 3, etc. - if the precision is 1, the quantity can be 0.1, 0.2, etc. - if the precision is 2, the quantity can be 0.01, 0.12, etc. Default: 3 - * @var int - */ - protected $precision; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["precision"])) { - $this->precision = $data["precision"]; - } else { - $this->precision = null; - } - } - } - /** - * Gets precision - * @return int - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * Sets precision - * @param int $precision An integer between 0 and 5 that represents the maximum number of positions allowed after the decimal in number custom attribute values For example: - if the precision is 0, the quantity can be 1, 2, 3, etc. - if the precision is 1, the quantity can be 0.1, 0.2, etc. - if the precision is 2, the quantity can be 0.01, 0.12, etc. Default: 3 - * @return $this - */ - public function setPrecision($precision) - { - $this->precision = $precision; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSelectionConfig.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSelectionConfig.php deleted file mode 100644 index fc110415c3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSelectionConfig.php +++ /dev/null @@ -1,180 +0,0 @@ - 'int', - 'allowed_selections' => '\SquareConnect\Model\CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'max_allowed_selections' => 'max_allowed_selections', - 'allowed_selections' => 'allowed_selections' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'max_allowed_selections' => 'setMaxAllowedSelections', - 'allowed_selections' => 'setAllowedSelections' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'max_allowed_selections' => 'getMaxAllowedSelections', - 'allowed_selections' => 'getAllowedSelections' - ); - - /** - * $max_allowed_selections The maximum number of selections that can be set. The maximum value for this attribute is 100. The default value is 1. The value can be modified, but changing the value will not affect existing custom attribute values on objects. Clients need to handle custom attributes with more selected values than allowed by this limit. - * @var int - */ - protected $max_allowed_selections; - /** - * $allowed_selections The set of valid `CatalogCustomAttributeSelections`. Up to a maximum of 100 selections can be defined. Can be modified. - * @var \SquareConnect\Model\CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection[] - */ - protected $allowed_selections; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["max_allowed_selections"])) { - $this->max_allowed_selections = $data["max_allowed_selections"]; - } else { - $this->max_allowed_selections = null; - } - if (isset($data["allowed_selections"])) { - $this->allowed_selections = $data["allowed_selections"]; - } else { - $this->allowed_selections = null; - } - } - } - /** - * Gets max_allowed_selections - * @return int - */ - public function getMaxAllowedSelections() - { - return $this->max_allowed_selections; - } - - /** - * Sets max_allowed_selections - * @param int $max_allowed_selections The maximum number of selections that can be set. The maximum value for this attribute is 100. The default value is 1. The value can be modified, but changing the value will not affect existing custom attribute values on objects. Clients need to handle custom attributes with more selected values than allowed by this limit. - * @return $this - */ - public function setMaxAllowedSelections($max_allowed_selections) - { - $this->max_allowed_selections = $max_allowed_selections; - return $this; - } - /** - * Gets allowed_selections - * @return \SquareConnect\Model\CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection[] - */ - public function getAllowedSelections() - { - return $this->allowed_selections; - } - - /** - * Sets allowed_selections - * @param \SquareConnect\Model\CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection[] $allowed_selections The set of valid `CatalogCustomAttributeSelections`. Up to a maximum of 100 selections can be defined. Can be modified. - * @return $this - */ - public function setAllowedSelections($allowed_selections) - { - $this->allowed_selections = $allowed_selections; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.php deleted file mode 100644 index 0521426d0a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'name' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'name' => 'name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'name' => 'setName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'name' => 'getName' - ); - - /** - * $uid Unique ID set by Square. - * @var string - */ - protected $uid; - /** - * $name Selection name, unique within `allowed_selections`. Required. Min length of 1, max length of 255. - * @var string - */ - protected $name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID set by Square. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name Selection name, unique within `allowed_selections`. Required. Min length of 1, max length of 255. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSellerVisibility.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSellerVisibility.php deleted file mode 100644 index 02488fdfe5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionSellerVisibility.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionStringConfig.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionStringConfig.php deleted file mode 100644 index b85741578f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionStringConfig.php +++ /dev/null @@ -1,147 +0,0 @@ - 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'enforce_uniqueness' => 'enforce_uniqueness' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'enforce_uniqueness' => 'setEnforceUniqueness' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'enforce_uniqueness' => 'getEnforceUniqueness' - ); - - /** - * $enforce_uniqueness If true, each Custom Attribute instance associated with this Custom Attribute Definition must have a unique value within the seller's catalog. For example, this may be used for a value like a SKU that should not be duplicated within a seller's catalog. May not be modified after the definition has been created. - * @var bool - */ - protected $enforce_uniqueness; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["enforce_uniqueness"])) { - $this->enforce_uniqueness = $data["enforce_uniqueness"]; - } else { - $this->enforce_uniqueness = null; - } - } - } - /** - * Gets enforce_uniqueness - * @return bool - */ - public function getEnforceUniqueness() - { - return $this->enforce_uniqueness; - } - - /** - * Sets enforce_uniqueness - * @param bool $enforce_uniqueness If true, each Custom Attribute instance associated with this Custom Attribute Definition must have a unique value within the seller's catalog. For example, this may be used for a value like a SKU that should not be duplicated within a seller's catalog. May not be modified after the definition has been created. - * @return $this - */ - public function setEnforceUniqueness($enforce_uniqueness) - { - $this->enforce_uniqueness = $enforce_uniqueness; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionType.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionType.php deleted file mode 100644 index 9ce48f2762..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeDefinitionType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeValue.php b/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeValue.php deleted file mode 100644 index 5d989c6c29..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogCustomAttributeValue.php +++ /dev/null @@ -1,378 +0,0 @@ - 'string', - 'string_value' => 'string', - 'custom_attribute_definition_id' => 'string', - 'type' => 'string', - 'number_value' => 'string', - 'boolean_value' => 'bool', - 'selection_uid_values' => 'string[]', - 'key' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'string_value' => 'string_value', - 'custom_attribute_definition_id' => 'custom_attribute_definition_id', - 'type' => 'type', - 'number_value' => 'number_value', - 'boolean_value' => 'boolean_value', - 'selection_uid_values' => 'selection_uid_values', - 'key' => 'key' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'string_value' => 'setStringValue', - 'custom_attribute_definition_id' => 'setCustomAttributeDefinitionId', - 'type' => 'setType', - 'number_value' => 'setNumberValue', - 'boolean_value' => 'setBooleanValue', - 'selection_uid_values' => 'setSelectionUidValues', - 'key' => 'setKey' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'string_value' => 'getStringValue', - 'custom_attribute_definition_id' => 'getCustomAttributeDefinitionId', - 'type' => 'getType', - 'number_value' => 'getNumberValue', - 'boolean_value' => 'getBooleanValue', - 'selection_uid_values' => 'getSelectionUidValues', - 'key' => 'getKey' - ); - - /** - * $name The name of the custom attribute. - * @var string - */ - protected $name; - /** - * $string_value The string value of the custom attribute. Populated if `type` = `STRING`. - * @var string - */ - protected $string_value; - /** - * $custom_attribute_definition_id __Read-only.__ The id of the `CatalogCustomAttributeDefinition` this value belongs to. - * @var string - */ - protected $custom_attribute_definition_id; - /** - * $type __Read-only.__ A copy of type from the associated `CatalogCustomAttributeDefinition`. See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values - * @var string - */ - protected $type; - /** - * $number_value Populated if `type` = `NUMBER`. Contains a string representation of a decimal number, using a `.` as the decimal separator. - * @var string - */ - protected $number_value; - /** - * $boolean_value A `true` or `false` value. Populated if `type` = `BOOLEAN`. - * @var bool - */ - protected $boolean_value; - /** - * $selection_uid_values One or more choices from `allowed_selections`. Populated if `type` = `SELECTION`. - * @var string[] - */ - protected $selection_uid_values; - /** - * $key __Read-only.__ A copy of key from the associated `CatalogCustomAttributeDefinition`. - * @var string - */ - protected $key; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["string_value"])) { - $this->string_value = $data["string_value"]; - } else { - $this->string_value = null; - } - if (isset($data["custom_attribute_definition_id"])) { - $this->custom_attribute_definition_id = $data["custom_attribute_definition_id"]; - } else { - $this->custom_attribute_definition_id = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["number_value"])) { - $this->number_value = $data["number_value"]; - } else { - $this->number_value = null; - } - if (isset($data["boolean_value"])) { - $this->boolean_value = $data["boolean_value"]; - } else { - $this->boolean_value = null; - } - if (isset($data["selection_uid_values"])) { - $this->selection_uid_values = $data["selection_uid_values"]; - } else { - $this->selection_uid_values = null; - } - if (isset($data["key"])) { - $this->key = $data["key"]; - } else { - $this->key = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the custom attribute. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets string_value - * @return string - */ - public function getStringValue() - { - return $this->string_value; - } - - /** - * Sets string_value - * @param string $string_value The string value of the custom attribute. Populated if `type` = `STRING`. - * @return $this - */ - public function setStringValue($string_value) - { - $this->string_value = $string_value; - return $this; - } - /** - * Gets custom_attribute_definition_id - * @return string - */ - public function getCustomAttributeDefinitionId() - { - return $this->custom_attribute_definition_id; - } - - /** - * Sets custom_attribute_definition_id - * @param string $custom_attribute_definition_id __Read-only.__ The id of the `CatalogCustomAttributeDefinition` this value belongs to. - * @return $this - */ - public function setCustomAttributeDefinitionId($custom_attribute_definition_id) - { - $this->custom_attribute_definition_id = $custom_attribute_definition_id; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type __Read-only.__ A copy of type from the associated `CatalogCustomAttributeDefinition`. See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets number_value - * @return string - */ - public function getNumberValue() - { - return $this->number_value; - } - - /** - * Sets number_value - * @param string $number_value Populated if `type` = `NUMBER`. Contains a string representation of a decimal number, using a `.` as the decimal separator. - * @return $this - */ - public function setNumberValue($number_value) - { - $this->number_value = $number_value; - return $this; - } - /** - * Gets boolean_value - * @return bool - */ - public function getBooleanValue() - { - return $this->boolean_value; - } - - /** - * Sets boolean_value - * @param bool $boolean_value A `true` or `false` value. Populated if `type` = `BOOLEAN`. - * @return $this - */ - public function setBooleanValue($boolean_value) - { - $this->boolean_value = $boolean_value; - return $this; - } - /** - * Gets selection_uid_values - * @return string[] - */ - public function getSelectionUidValues() - { - return $this->selection_uid_values; - } - - /** - * Sets selection_uid_values - * @param string[] $selection_uid_values One or more choices from `allowed_selections`. Populated if `type` = `SELECTION`. - * @return $this - */ - public function setSelectionUidValues($selection_uid_values) - { - $this->selection_uid_values = $selection_uid_values; - return $this; - } - /** - * Gets key - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Sets key - * @param string $key __Read-only.__ A copy of key from the associated `CatalogCustomAttributeDefinition`. - * @return $this - */ - public function setKey($key) - { - $this->key = $key; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogDiscount.php b/includes/classes/vendors/square/connect/lib/Model/CatalogDiscount.php deleted file mode 100644 index 91b86efe20..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogDiscount.php +++ /dev/null @@ -1,344 +0,0 @@ - 'string', - 'discount_type' => 'string', - 'percentage' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'pin_required' => 'bool', - 'label_color' => 'string', - 'modify_tax_basis' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'discount_type' => 'discount_type', - 'percentage' => 'percentage', - 'amount_money' => 'amount_money', - 'pin_required' => 'pin_required', - 'label_color' => 'label_color', - 'modify_tax_basis' => 'modify_tax_basis' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'discount_type' => 'setDiscountType', - 'percentage' => 'setPercentage', - 'amount_money' => 'setAmountMoney', - 'pin_required' => 'setPinRequired', - 'label_color' => 'setLabelColor', - 'modify_tax_basis' => 'setModifyTaxBasis' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'discount_type' => 'getDiscountType', - 'percentage' => 'getPercentage', - 'amount_money' => 'getAmountMoney', - 'pin_required' => 'getPinRequired', - 'label_color' => 'getLabelColor', - 'modify_tax_basis' => 'getModifyTaxBasis' - ); - - /** - * $name The discount name. Searchable. This field has max length of 255 Unicode code points. - * @var string - */ - protected $name; - /** - * $discount_type Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale. See [CatalogDiscountType](#type-catalogdiscounttype) for possible values - * @var string - */ - protected $discount_type; - /** - * $percentage The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type` is `VARIABLE_PERCENTAGE`. Do not include this field for amount-based or variable discounts. - * @var string - */ - protected $percentage; - /** - * $amount_money The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`. Do not include this field for percentage-based or variable discounts. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $pin_required Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment in the Square Point of Sale app. - * @var bool - */ - protected $pin_required; - /** - * $label_color The color of the discount display label in the Square Point of Sale app. This must be a valid hex color code. - * @var string - */ - protected $label_color; - /** - * $modify_tax_basis Indicates whether this discount should reduce the price used to calculate tax. Most discounts should use `MODIFY_TAX_BASIS`. However, in some circumstances taxes must be calculated based on an item's price, ignoring a particular discount. For example, in many US jurisdictions, a manufacturer coupon or instant rebate reduces the price a customer pays but does not reduce the sale price used to calculate how much sales tax is due. In this case, the discount representing that manufacturer coupon should have `DO_NOT_MODIFY_TAX_BASIS` for this field. If you are unsure whether you need to use this field, consult your tax professional. See [CatalogDiscountModifyTaxBasis](#type-catalogdiscountmodifytaxbasis) for possible values - * @var string - */ - protected $modify_tax_basis; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["discount_type"])) { - $this->discount_type = $data["discount_type"]; - } else { - $this->discount_type = null; - } - if (isset($data["percentage"])) { - $this->percentage = $data["percentage"]; - } else { - $this->percentage = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["pin_required"])) { - $this->pin_required = $data["pin_required"]; - } else { - $this->pin_required = null; - } - if (isset($data["label_color"])) { - $this->label_color = $data["label_color"]; - } else { - $this->label_color = null; - } - if (isset($data["modify_tax_basis"])) { - $this->modify_tax_basis = $data["modify_tax_basis"]; - } else { - $this->modify_tax_basis = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The discount name. Searchable. This field has max length of 255 Unicode code points. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets discount_type - * @return string - */ - public function getDiscountType() - { - return $this->discount_type; - } - - /** - * Sets discount_type - * @param string $discount_type Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale. See [CatalogDiscountType](#type-catalogdiscounttype) for possible values - * @return $this - */ - public function setDiscountType($discount_type) - { - $this->discount_type = $discount_type; - return $this; - } - /** - * Gets percentage - * @return string - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Sets percentage - * @param string $percentage The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type` is `VARIABLE_PERCENTAGE`. Do not include this field for amount-based or variable discounts. - * @return $this - */ - public function setPercentage($percentage) - { - $this->percentage = $percentage; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`. Do not include this field for percentage-based or variable discounts. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets pin_required - * @return bool - */ - public function getPinRequired() - { - return $this->pin_required; - } - - /** - * Sets pin_required - * @param bool $pin_required Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment in the Square Point of Sale app. - * @return $this - */ - public function setPinRequired($pin_required) - { - $this->pin_required = $pin_required; - return $this; - } - /** - * Gets label_color - * @return string - */ - public function getLabelColor() - { - return $this->label_color; - } - - /** - * Sets label_color - * @param string $label_color The color of the discount display label in the Square Point of Sale app. This must be a valid hex color code. - * @return $this - */ - public function setLabelColor($label_color) - { - $this->label_color = $label_color; - return $this; - } - /** - * Gets modify_tax_basis - * @return string - */ - public function getModifyTaxBasis() - { - return $this->modify_tax_basis; - } - - /** - * Sets modify_tax_basis - * @param string $modify_tax_basis Indicates whether this discount should reduce the price used to calculate tax. Most discounts should use `MODIFY_TAX_BASIS`. However, in some circumstances taxes must be calculated based on an item's price, ignoring a particular discount. For example, in many US jurisdictions, a manufacturer coupon or instant rebate reduces the price a customer pays but does not reduce the sale price used to calculate how much sales tax is due. In this case, the discount representing that manufacturer coupon should have `DO_NOT_MODIFY_TAX_BASIS` for this field. If you are unsure whether you need to use this field, consult your tax professional. See [CatalogDiscountModifyTaxBasis](#type-catalogdiscountmodifytaxbasis) for possible values - * @return $this - */ - public function setModifyTaxBasis($modify_tax_basis) - { - $this->modify_tax_basis = $modify_tax_basis; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogDiscountModifyTaxBasis.php b/includes/classes/vendors/square/connect/lib/Model/CatalogDiscountModifyTaxBasis.php deleted file mode 100644 index 5cb351208d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogDiscountModifyTaxBasis.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogDiscountType.php b/includes/classes/vendors/square/connect/lib/Model/CatalogDiscountType.php deleted file mode 100644 index 0657fd9aea..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogDiscountType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogIdMapping.php b/includes/classes/vendors/square/connect/lib/Model/CatalogIdMapping.php deleted file mode 100644 index 41966252f9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogIdMapping.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'object_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'client_object_id' => 'client_object_id', - 'object_id' => 'object_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'client_object_id' => 'setClientObjectId', - 'object_id' => 'setObjectId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'client_object_id' => 'getClientObjectId', - 'object_id' => 'getObjectId' - ); - - /** - * $client_object_id The client-supplied, temporary `#`-prefixed ID for a new `CatalogObject`. - * @var string - */ - protected $client_object_id; - /** - * $object_id The permanent ID for the CatalogObject created by the server. - * @var string - */ - protected $object_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["client_object_id"])) { - $this->client_object_id = $data["client_object_id"]; - } else { - $this->client_object_id = null; - } - if (isset($data["object_id"])) { - $this->object_id = $data["object_id"]; - } else { - $this->object_id = null; - } - } - } - /** - * Gets client_object_id - * @return string - */ - public function getClientObjectId() - { - return $this->client_object_id; - } - - /** - * Sets client_object_id - * @param string $client_object_id The client-supplied, temporary `#`-prefixed ID for a new `CatalogObject`. - * @return $this - */ - public function setClientObjectId($client_object_id) - { - $this->client_object_id = $client_object_id; - return $this; - } - /** - * Gets object_id - * @return string - */ - public function getObjectId() - { - return $this->object_id; - } - - /** - * Sets object_id - * @param string $object_id The permanent ID for the CatalogObject created by the server. - * @return $this - */ - public function setObjectId($object_id) - { - $this->object_id = $object_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogImage.php b/includes/classes/vendors/square/connect/lib/Model/CatalogImage.php deleted file mode 100644 index 3fe81ba8a4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogImage.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'url' => 'string', - 'caption' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'url' => 'url', - 'caption' => 'caption' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'url' => 'setUrl', - 'caption' => 'setCaption' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'url' => 'getUrl', - 'caption' => 'getCaption' - ); - - /** - * $name The internal name of this image. Identifies this image in calls to the Connect APIs. - * @var string - */ - protected $name; - /** - * $url The URL of this image. Generated by Square after an image is uploaded to the CreateCatalogImage endpoint. - * @var string - */ - protected $url; - /** - * $caption A caption that describes what is shown in the image. Displayed in the Square Online Store. - * @var string - */ - protected $caption; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["url"])) { - $this->url = $data["url"]; - } else { - $this->url = null; - } - if (isset($data["caption"])) { - $this->caption = $data["caption"]; - } else { - $this->caption = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The internal name of this image. Identifies this image in calls to the Connect APIs. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets url - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Sets url - * @param string $url The URL of this image. Generated by Square after an image is uploaded to the CreateCatalogImage endpoint. - * @return $this - */ - public function setUrl($url) - { - $this->url = $url; - return $this; - } - /** - * Gets caption - * @return string - */ - public function getCaption() - { - return $this->caption; - } - - /** - * Sets caption - * @param string $caption A caption that describes what is shown in the image. Displayed in the Square Online Store. - * @return $this - */ - public function setCaption($caption) - { - $this->caption = $caption; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogInfoRequest.php b/includes/classes/vendors/square/connect/lib/Model/CatalogInfoRequest.php deleted file mode 100644 index 3b91eb04f9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogInfoRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogInfoResponse.php b/includes/classes/vendors/square/connect/lib/Model/CatalogInfoResponse.php deleted file mode 100644 index a263fa9ee0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogInfoResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'limits' => '\SquareConnect\Model\CatalogInfoResponseLimits', - 'standard_unit_description_group' => '\SquareConnect\Model\StandardUnitDescriptionGroup' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'limits' => 'limits', - 'standard_unit_description_group' => 'standard_unit_description_group' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'limits' => 'setLimits', - 'standard_unit_description_group' => 'setStandardUnitDescriptionGroup' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'limits' => 'getLimits', - 'standard_unit_description_group' => 'getStandardUnitDescriptionGroup' - ); - - /** - * $errors The set of errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $limits - * @var \SquareConnect\Model\CatalogInfoResponseLimits - */ - protected $limits; - /** - * $standard_unit_description_group Names and abbreviations for standard units. - * @var \SquareConnect\Model\StandardUnitDescriptionGroup - */ - protected $standard_unit_description_group; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["limits"])) { - $this->limits = $data["limits"]; - } else { - $this->limits = null; - } - if (isset($data["standard_unit_description_group"])) { - $this->standard_unit_description_group = $data["standard_unit_description_group"]; - } else { - $this->standard_unit_description_group = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors The set of errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets limits - * @return \SquareConnect\Model\CatalogInfoResponseLimits - */ - public function getLimits() - { - return $this->limits; - } - - /** - * Sets limits - * @param \SquareConnect\Model\CatalogInfoResponseLimits $limits - * @return $this - */ - public function setLimits($limits) - { - $this->limits = $limits; - return $this; - } - /** - * Gets standard_unit_description_group - * @return \SquareConnect\Model\StandardUnitDescriptionGroup - */ - public function getStandardUnitDescriptionGroup() - { - return $this->standard_unit_description_group; - } - - /** - * Sets standard_unit_description_group - * @param \SquareConnect\Model\StandardUnitDescriptionGroup $standard_unit_description_group Names and abbreviations for standard units. - * @return $this - */ - public function setStandardUnitDescriptionGroup($standard_unit_description_group) - { - $this->standard_unit_description_group = $standard_unit_description_group; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogInfoResponseLimits.php b/includes/classes/vendors/square/connect/lib/Model/CatalogInfoResponseLimits.php deleted file mode 100644 index d6e7b185c7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogInfoResponseLimits.php +++ /dev/null @@ -1,476 +0,0 @@ - 'int', - 'batch_upsert_max_total_objects' => 'int', - 'batch_retrieve_max_object_ids' => 'int', - 'search_max_page_limit' => 'int', - 'batch_delete_max_object_ids' => 'int', - 'update_item_taxes_max_item_ids' => 'int', - 'update_item_taxes_max_taxes_to_enable' => 'int', - 'update_item_taxes_max_taxes_to_disable' => 'int', - 'update_item_modifier_lists_max_item_ids' => 'int', - 'update_item_modifier_lists_max_modifier_lists_to_enable' => 'int', - 'update_item_modifier_lists_max_modifier_lists_to_disable' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'batch_upsert_max_objects_per_batch' => 'batch_upsert_max_objects_per_batch', - 'batch_upsert_max_total_objects' => 'batch_upsert_max_total_objects', - 'batch_retrieve_max_object_ids' => 'batch_retrieve_max_object_ids', - 'search_max_page_limit' => 'search_max_page_limit', - 'batch_delete_max_object_ids' => 'batch_delete_max_object_ids', - 'update_item_taxes_max_item_ids' => 'update_item_taxes_max_item_ids', - 'update_item_taxes_max_taxes_to_enable' => 'update_item_taxes_max_taxes_to_enable', - 'update_item_taxes_max_taxes_to_disable' => 'update_item_taxes_max_taxes_to_disable', - 'update_item_modifier_lists_max_item_ids' => 'update_item_modifier_lists_max_item_ids', - 'update_item_modifier_lists_max_modifier_lists_to_enable' => 'update_item_modifier_lists_max_modifier_lists_to_enable', - 'update_item_modifier_lists_max_modifier_lists_to_disable' => 'update_item_modifier_lists_max_modifier_lists_to_disable' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'batch_upsert_max_objects_per_batch' => 'setBatchUpsertMaxObjectsPerBatch', - 'batch_upsert_max_total_objects' => 'setBatchUpsertMaxTotalObjects', - 'batch_retrieve_max_object_ids' => 'setBatchRetrieveMaxObjectIds', - 'search_max_page_limit' => 'setSearchMaxPageLimit', - 'batch_delete_max_object_ids' => 'setBatchDeleteMaxObjectIds', - 'update_item_taxes_max_item_ids' => 'setUpdateItemTaxesMaxItemIds', - 'update_item_taxes_max_taxes_to_enable' => 'setUpdateItemTaxesMaxTaxesToEnable', - 'update_item_taxes_max_taxes_to_disable' => 'setUpdateItemTaxesMaxTaxesToDisable', - 'update_item_modifier_lists_max_item_ids' => 'setUpdateItemModifierListsMaxItemIds', - 'update_item_modifier_lists_max_modifier_lists_to_enable' => 'setUpdateItemModifierListsMaxModifierListsToEnable', - 'update_item_modifier_lists_max_modifier_lists_to_disable' => 'setUpdateItemModifierListsMaxModifierListsToDisable' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'batch_upsert_max_objects_per_batch' => 'getBatchUpsertMaxObjectsPerBatch', - 'batch_upsert_max_total_objects' => 'getBatchUpsertMaxTotalObjects', - 'batch_retrieve_max_object_ids' => 'getBatchRetrieveMaxObjectIds', - 'search_max_page_limit' => 'getSearchMaxPageLimit', - 'batch_delete_max_object_ids' => 'getBatchDeleteMaxObjectIds', - 'update_item_taxes_max_item_ids' => 'getUpdateItemTaxesMaxItemIds', - 'update_item_taxes_max_taxes_to_enable' => 'getUpdateItemTaxesMaxTaxesToEnable', - 'update_item_taxes_max_taxes_to_disable' => 'getUpdateItemTaxesMaxTaxesToDisable', - 'update_item_modifier_lists_max_item_ids' => 'getUpdateItemModifierListsMaxItemIds', - 'update_item_modifier_lists_max_modifier_lists_to_enable' => 'getUpdateItemModifierListsMaxModifierListsToEnable', - 'update_item_modifier_lists_max_modifier_lists_to_disable' => 'getUpdateItemModifierListsMaxModifierListsToDisable' - ); - - /** - * $batch_upsert_max_objects_per_batch The maximum number of objects that may appear within a single batch in a `/v2/catalog/batch-upsert` request. - * @var int - */ - protected $batch_upsert_max_objects_per_batch; - /** - * $batch_upsert_max_total_objects The maximum number of objects that may appear across all batches in a `/v2/catalog/batch-upsert` request. - * @var int - */ - protected $batch_upsert_max_total_objects; - /** - * $batch_retrieve_max_object_ids The maximum number of object IDs that may appear in a `/v2/catalog/batch-retrieve` request. - * @var int - */ - protected $batch_retrieve_max_object_ids; - /** - * $search_max_page_limit The maximum number of results that may be returned in a page of a `/v2/catalog/search` response. - * @var int - */ - protected $search_max_page_limit; - /** - * $batch_delete_max_object_ids The maximum number of object IDs that may be included in a single `/v2/catalog/batch-delete` request. - * @var int - */ - protected $batch_delete_max_object_ids; - /** - * $update_item_taxes_max_item_ids The maximum number of item IDs that may be included in a single `/v2/catalog/update-item-taxes` request. - * @var int - */ - protected $update_item_taxes_max_item_ids; - /** - * $update_item_taxes_max_taxes_to_enable The maximum number of tax IDs to be enabled that may be included in a single `/v2/catalog/update-item-taxes` request. - * @var int - */ - protected $update_item_taxes_max_taxes_to_enable; - /** - * $update_item_taxes_max_taxes_to_disable The maximum number of tax IDs to be disabled that may be included in a single `/v2/catalog/update-item-taxes` request. - * @var int - */ - protected $update_item_taxes_max_taxes_to_disable; - /** - * $update_item_modifier_lists_max_item_ids The maximum number of item IDs that may be included in a single `/v2/catalog/update-item-modifier-lists` request. - * @var int - */ - protected $update_item_modifier_lists_max_item_ids; - /** - * $update_item_modifier_lists_max_modifier_lists_to_enable The maximum number of modifier list IDs to be enabled that may be included in a single `/v2/catalog/update-item-modifier-lists` request. - * @var int - */ - protected $update_item_modifier_lists_max_modifier_lists_to_enable; - /** - * $update_item_modifier_lists_max_modifier_lists_to_disable The maximum number of modifier list IDs to be disabled that may be included in a single `/v2/catalog/update-item-modifier-lists` request. - * @var int - */ - protected $update_item_modifier_lists_max_modifier_lists_to_disable; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["batch_upsert_max_objects_per_batch"])) { - $this->batch_upsert_max_objects_per_batch = $data["batch_upsert_max_objects_per_batch"]; - } else { - $this->batch_upsert_max_objects_per_batch = null; - } - if (isset($data["batch_upsert_max_total_objects"])) { - $this->batch_upsert_max_total_objects = $data["batch_upsert_max_total_objects"]; - } else { - $this->batch_upsert_max_total_objects = null; - } - if (isset($data["batch_retrieve_max_object_ids"])) { - $this->batch_retrieve_max_object_ids = $data["batch_retrieve_max_object_ids"]; - } else { - $this->batch_retrieve_max_object_ids = null; - } - if (isset($data["search_max_page_limit"])) { - $this->search_max_page_limit = $data["search_max_page_limit"]; - } else { - $this->search_max_page_limit = null; - } - if (isset($data["batch_delete_max_object_ids"])) { - $this->batch_delete_max_object_ids = $data["batch_delete_max_object_ids"]; - } else { - $this->batch_delete_max_object_ids = null; - } - if (isset($data["update_item_taxes_max_item_ids"])) { - $this->update_item_taxes_max_item_ids = $data["update_item_taxes_max_item_ids"]; - } else { - $this->update_item_taxes_max_item_ids = null; - } - if (isset($data["update_item_taxes_max_taxes_to_enable"])) { - $this->update_item_taxes_max_taxes_to_enable = $data["update_item_taxes_max_taxes_to_enable"]; - } else { - $this->update_item_taxes_max_taxes_to_enable = null; - } - if (isset($data["update_item_taxes_max_taxes_to_disable"])) { - $this->update_item_taxes_max_taxes_to_disable = $data["update_item_taxes_max_taxes_to_disable"]; - } else { - $this->update_item_taxes_max_taxes_to_disable = null; - } - if (isset($data["update_item_modifier_lists_max_item_ids"])) { - $this->update_item_modifier_lists_max_item_ids = $data["update_item_modifier_lists_max_item_ids"]; - } else { - $this->update_item_modifier_lists_max_item_ids = null; - } - if (isset($data["update_item_modifier_lists_max_modifier_lists_to_enable"])) { - $this->update_item_modifier_lists_max_modifier_lists_to_enable = $data["update_item_modifier_lists_max_modifier_lists_to_enable"]; - } else { - $this->update_item_modifier_lists_max_modifier_lists_to_enable = null; - } - if (isset($data["update_item_modifier_lists_max_modifier_lists_to_disable"])) { - $this->update_item_modifier_lists_max_modifier_lists_to_disable = $data["update_item_modifier_lists_max_modifier_lists_to_disable"]; - } else { - $this->update_item_modifier_lists_max_modifier_lists_to_disable = null; - } - } - } - /** - * Gets batch_upsert_max_objects_per_batch - * @return int - */ - public function getBatchUpsertMaxObjectsPerBatch() - { - return $this->batch_upsert_max_objects_per_batch; - } - - /** - * Sets batch_upsert_max_objects_per_batch - * @param int $batch_upsert_max_objects_per_batch The maximum number of objects that may appear within a single batch in a `/v2/catalog/batch-upsert` request. - * @return $this - */ - public function setBatchUpsertMaxObjectsPerBatch($batch_upsert_max_objects_per_batch) - { - $this->batch_upsert_max_objects_per_batch = $batch_upsert_max_objects_per_batch; - return $this; - } - /** - * Gets batch_upsert_max_total_objects - * @return int - */ - public function getBatchUpsertMaxTotalObjects() - { - return $this->batch_upsert_max_total_objects; - } - - /** - * Sets batch_upsert_max_total_objects - * @param int $batch_upsert_max_total_objects The maximum number of objects that may appear across all batches in a `/v2/catalog/batch-upsert` request. - * @return $this - */ - public function setBatchUpsertMaxTotalObjects($batch_upsert_max_total_objects) - { - $this->batch_upsert_max_total_objects = $batch_upsert_max_total_objects; - return $this; - } - /** - * Gets batch_retrieve_max_object_ids - * @return int - */ - public function getBatchRetrieveMaxObjectIds() - { - return $this->batch_retrieve_max_object_ids; - } - - /** - * Sets batch_retrieve_max_object_ids - * @param int $batch_retrieve_max_object_ids The maximum number of object IDs that may appear in a `/v2/catalog/batch-retrieve` request. - * @return $this - */ - public function setBatchRetrieveMaxObjectIds($batch_retrieve_max_object_ids) - { - $this->batch_retrieve_max_object_ids = $batch_retrieve_max_object_ids; - return $this; - } - /** - * Gets search_max_page_limit - * @return int - */ - public function getSearchMaxPageLimit() - { - return $this->search_max_page_limit; - } - - /** - * Sets search_max_page_limit - * @param int $search_max_page_limit The maximum number of results that may be returned in a page of a `/v2/catalog/search` response. - * @return $this - */ - public function setSearchMaxPageLimit($search_max_page_limit) - { - $this->search_max_page_limit = $search_max_page_limit; - return $this; - } - /** - * Gets batch_delete_max_object_ids - * @return int - */ - public function getBatchDeleteMaxObjectIds() - { - return $this->batch_delete_max_object_ids; - } - - /** - * Sets batch_delete_max_object_ids - * @param int $batch_delete_max_object_ids The maximum number of object IDs that may be included in a single `/v2/catalog/batch-delete` request. - * @return $this - */ - public function setBatchDeleteMaxObjectIds($batch_delete_max_object_ids) - { - $this->batch_delete_max_object_ids = $batch_delete_max_object_ids; - return $this; - } - /** - * Gets update_item_taxes_max_item_ids - * @return int - */ - public function getUpdateItemTaxesMaxItemIds() - { - return $this->update_item_taxes_max_item_ids; - } - - /** - * Sets update_item_taxes_max_item_ids - * @param int $update_item_taxes_max_item_ids The maximum number of item IDs that may be included in a single `/v2/catalog/update-item-taxes` request. - * @return $this - */ - public function setUpdateItemTaxesMaxItemIds($update_item_taxes_max_item_ids) - { - $this->update_item_taxes_max_item_ids = $update_item_taxes_max_item_ids; - return $this; - } - /** - * Gets update_item_taxes_max_taxes_to_enable - * @return int - */ - public function getUpdateItemTaxesMaxTaxesToEnable() - { - return $this->update_item_taxes_max_taxes_to_enable; - } - - /** - * Sets update_item_taxes_max_taxes_to_enable - * @param int $update_item_taxes_max_taxes_to_enable The maximum number of tax IDs to be enabled that may be included in a single `/v2/catalog/update-item-taxes` request. - * @return $this - */ - public function setUpdateItemTaxesMaxTaxesToEnable($update_item_taxes_max_taxes_to_enable) - { - $this->update_item_taxes_max_taxes_to_enable = $update_item_taxes_max_taxes_to_enable; - return $this; - } - /** - * Gets update_item_taxes_max_taxes_to_disable - * @return int - */ - public function getUpdateItemTaxesMaxTaxesToDisable() - { - return $this->update_item_taxes_max_taxes_to_disable; - } - - /** - * Sets update_item_taxes_max_taxes_to_disable - * @param int $update_item_taxes_max_taxes_to_disable The maximum number of tax IDs to be disabled that may be included in a single `/v2/catalog/update-item-taxes` request. - * @return $this - */ - public function setUpdateItemTaxesMaxTaxesToDisable($update_item_taxes_max_taxes_to_disable) - { - $this->update_item_taxes_max_taxes_to_disable = $update_item_taxes_max_taxes_to_disable; - return $this; - } - /** - * Gets update_item_modifier_lists_max_item_ids - * @return int - */ - public function getUpdateItemModifierListsMaxItemIds() - { - return $this->update_item_modifier_lists_max_item_ids; - } - - /** - * Sets update_item_modifier_lists_max_item_ids - * @param int $update_item_modifier_lists_max_item_ids The maximum number of item IDs that may be included in a single `/v2/catalog/update-item-modifier-lists` request. - * @return $this - */ - public function setUpdateItemModifierListsMaxItemIds($update_item_modifier_lists_max_item_ids) - { - $this->update_item_modifier_lists_max_item_ids = $update_item_modifier_lists_max_item_ids; - return $this; - } - /** - * Gets update_item_modifier_lists_max_modifier_lists_to_enable - * @return int - */ - public function getUpdateItemModifierListsMaxModifierListsToEnable() - { - return $this->update_item_modifier_lists_max_modifier_lists_to_enable; - } - - /** - * Sets update_item_modifier_lists_max_modifier_lists_to_enable - * @param int $update_item_modifier_lists_max_modifier_lists_to_enable The maximum number of modifier list IDs to be enabled that may be included in a single `/v2/catalog/update-item-modifier-lists` request. - * @return $this - */ - public function setUpdateItemModifierListsMaxModifierListsToEnable($update_item_modifier_lists_max_modifier_lists_to_enable) - { - $this->update_item_modifier_lists_max_modifier_lists_to_enable = $update_item_modifier_lists_max_modifier_lists_to_enable; - return $this; - } - /** - * Gets update_item_modifier_lists_max_modifier_lists_to_disable - * @return int - */ - public function getUpdateItemModifierListsMaxModifierListsToDisable() - { - return $this->update_item_modifier_lists_max_modifier_lists_to_disable; - } - - /** - * Sets update_item_modifier_lists_max_modifier_lists_to_disable - * @param int $update_item_modifier_lists_max_modifier_lists_to_disable The maximum number of modifier list IDs to be disabled that may be included in a single `/v2/catalog/update-item-modifier-lists` request. - * @return $this - */ - public function setUpdateItemModifierListsMaxModifierListsToDisable($update_item_modifier_lists_max_modifier_lists_to_disable) - { - $this->update_item_modifier_lists_max_modifier_lists_to_disable = $update_item_modifier_lists_max_modifier_lists_to_disable; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogItem.php b/includes/classes/vendors/square/connect/lib/Model/CatalogItem.php deleted file mode 100644 index 01f1a08a24..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogItem.php +++ /dev/null @@ -1,575 +0,0 @@ - 'string', - 'description' => 'string', - 'abbreviation' => 'string', - 'label_color' => 'string', - 'available_online' => 'bool', - 'available_for_pickup' => 'bool', - 'available_electronically' => 'bool', - 'category_id' => 'string', - 'tax_ids' => 'string[]', - 'modifier_list_info' => '\SquareConnect\Model\CatalogItemModifierListInfo[]', - 'variations' => '\SquareConnect\Model\CatalogObject[]', - 'product_type' => 'string', - 'skip_modifier_screen' => 'bool', - 'item_options' => '\SquareConnect\Model\CatalogItemOptionForItem[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'description' => 'description', - 'abbreviation' => 'abbreviation', - 'label_color' => 'label_color', - 'available_online' => 'available_online', - 'available_for_pickup' => 'available_for_pickup', - 'available_electronically' => 'available_electronically', - 'category_id' => 'category_id', - 'tax_ids' => 'tax_ids', - 'modifier_list_info' => 'modifier_list_info', - 'variations' => 'variations', - 'product_type' => 'product_type', - 'skip_modifier_screen' => 'skip_modifier_screen', - 'item_options' => 'item_options' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'description' => 'setDescription', - 'abbreviation' => 'setAbbreviation', - 'label_color' => 'setLabelColor', - 'available_online' => 'setAvailableOnline', - 'available_for_pickup' => 'setAvailableForPickup', - 'available_electronically' => 'setAvailableElectronically', - 'category_id' => 'setCategoryId', - 'tax_ids' => 'setTaxIds', - 'modifier_list_info' => 'setModifierListInfo', - 'variations' => 'setVariations', - 'product_type' => 'setProductType', - 'skip_modifier_screen' => 'setSkipModifierScreen', - 'item_options' => 'setItemOptions' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'description' => 'getDescription', - 'abbreviation' => 'getAbbreviation', - 'label_color' => 'getLabelColor', - 'available_online' => 'getAvailableOnline', - 'available_for_pickup' => 'getAvailableForPickup', - 'available_electronically' => 'getAvailableElectronically', - 'category_id' => 'getCategoryId', - 'tax_ids' => 'getTaxIds', - 'modifier_list_info' => 'getModifierListInfo', - 'variations' => 'getVariations', - 'product_type' => 'getProductType', - 'skip_modifier_screen' => 'getSkipModifierScreen', - 'item_options' => 'getItemOptions' - ); - - /** - * $name The item's name. Searchable. This field must not be empty. This field has max length of 512 Unicode code points. - * @var string - */ - protected $name; - /** - * $description The item's description. Searchable. This field has max length of 4096 Unicode code points. - * @var string - */ - protected $description; - /** - * $abbreviation The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used. Searchable. This field has max length of 24 Unicode code points. - * @var string - */ - protected $abbreviation; - /** - * $label_color The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. - * @var string - */ - protected $label_color; - /** - * $available_online If `true`, the item can be added to shipping orders from the merchant's online store. - * @var bool - */ - protected $available_online; - /** - * $available_for_pickup If `true`, the item can be added to pickup orders from the merchant's online store. - * @var bool - */ - protected $available_for_pickup; - /** - * $available_electronically If `true`, the item can be added to electronically fulfilled orders from the merchant's online store. - * @var bool - */ - protected $available_electronically; - /** - * $category_id The ID of the item's category, if any. - * @var string - */ - protected $category_id; - /** - * $tax_ids A set of IDs indicating the taxes enabled for this item. When updating an item, any taxes listed here will be added to the item. Taxes may also be added to or deleted from an item using `UpdateItemTaxes`. - * @var string[] - */ - protected $tax_ids; - /** - * $modifier_list_info A set of `CatalogItemModifierListInfo` objects representing the modifier lists that apply to this item, along with the overrides and min and max limits that are specific to this item. Modifier lists may also be added to or deleted from an item using `UpdateItemModifierLists`. - * @var \SquareConnect\Model\CatalogItemModifierListInfo[] - */ - protected $modifier_list_info; - /** - * $variations A list of CatalogObjects containing the `CatalogItemVariation`s for this item. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $variations; - /** - * $product_type The product type of the item. May not be changed once an item has been created. Only items of product type `REGULAR` or `APPOINTMENTS_SERVICE` may be created by this API; items with other product types are read-only. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values - * @var string - */ - protected $product_type; - /** - * $skip_modifier_screen If `false`, the Square Point of Sale app will present the `CatalogItem`'s details screen immediately, allowing the merchant to choose `CatalogModifier`s before adding the item to the cart. This is the default behavior. If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected modifiers, and merchants can edit modifiers by drilling down onto the item's details. Third-party clients are encouraged to implement similar behaviors. - * @var bool - */ - protected $skip_modifier_screen; - /** - * $item_options List of item options IDs for this item. Used to manage and group item variations in a specified order. Maximum: 6 item options. - * @var \SquareConnect\Model\CatalogItemOptionForItem[] - */ - protected $item_options; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["abbreviation"])) { - $this->abbreviation = $data["abbreviation"]; - } else { - $this->abbreviation = null; - } - if (isset($data["label_color"])) { - $this->label_color = $data["label_color"]; - } else { - $this->label_color = null; - } - if (isset($data["available_online"])) { - $this->available_online = $data["available_online"]; - } else { - $this->available_online = null; - } - if (isset($data["available_for_pickup"])) { - $this->available_for_pickup = $data["available_for_pickup"]; - } else { - $this->available_for_pickup = null; - } - if (isset($data["available_electronically"])) { - $this->available_electronically = $data["available_electronically"]; - } else { - $this->available_electronically = null; - } - if (isset($data["category_id"])) { - $this->category_id = $data["category_id"]; - } else { - $this->category_id = null; - } - if (isset($data["tax_ids"])) { - $this->tax_ids = $data["tax_ids"]; - } else { - $this->tax_ids = null; - } - if (isset($data["modifier_list_info"])) { - $this->modifier_list_info = $data["modifier_list_info"]; - } else { - $this->modifier_list_info = null; - } - if (isset($data["variations"])) { - $this->variations = $data["variations"]; - } else { - $this->variations = null; - } - if (isset($data["product_type"])) { - $this->product_type = $data["product_type"]; - } else { - $this->product_type = null; - } - if (isset($data["skip_modifier_screen"])) { - $this->skip_modifier_screen = $data["skip_modifier_screen"]; - } else { - $this->skip_modifier_screen = null; - } - if (isset($data["item_options"])) { - $this->item_options = $data["item_options"]; - } else { - $this->item_options = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The item's name. Searchable. This field must not be empty. This field has max length of 512 Unicode code points. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description The item's description. Searchable. This field has max length of 4096 Unicode code points. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets abbreviation - * @return string - */ - public function getAbbreviation() - { - return $this->abbreviation; - } - - /** - * Sets abbreviation - * @param string $abbreviation The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used. Searchable. This field has max length of 24 Unicode code points. - * @return $this - */ - public function setAbbreviation($abbreviation) - { - $this->abbreviation = $abbreviation; - return $this; - } - /** - * Gets label_color - * @return string - */ - public function getLabelColor() - { - return $this->label_color; - } - - /** - * Sets label_color - * @param string $label_color The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. - * @return $this - */ - public function setLabelColor($label_color) - { - $this->label_color = $label_color; - return $this; - } - /** - * Gets available_online - * @return bool - */ - public function getAvailableOnline() - { - return $this->available_online; - } - - /** - * Sets available_online - * @param bool $available_online If `true`, the item can be added to shipping orders from the merchant's online store. - * @return $this - */ - public function setAvailableOnline($available_online) - { - $this->available_online = $available_online; - return $this; - } - /** - * Gets available_for_pickup - * @return bool - */ - public function getAvailableForPickup() - { - return $this->available_for_pickup; - } - - /** - * Sets available_for_pickup - * @param bool $available_for_pickup If `true`, the item can be added to pickup orders from the merchant's online store. - * @return $this - */ - public function setAvailableForPickup($available_for_pickup) - { - $this->available_for_pickup = $available_for_pickup; - return $this; - } - /** - * Gets available_electronically - * @return bool - */ - public function getAvailableElectronically() - { - return $this->available_electronically; - } - - /** - * Sets available_electronically - * @param bool $available_electronically If `true`, the item can be added to electronically fulfilled orders from the merchant's online store. - * @return $this - */ - public function setAvailableElectronically($available_electronically) - { - $this->available_electronically = $available_electronically; - return $this; - } - /** - * Gets category_id - * @return string - */ - public function getCategoryId() - { - return $this->category_id; - } - - /** - * Sets category_id - * @param string $category_id The ID of the item's category, if any. - * @return $this - */ - public function setCategoryId($category_id) - { - $this->category_id = $category_id; - return $this; - } - /** - * Gets tax_ids - * @return string[] - */ - public function getTaxIds() - { - return $this->tax_ids; - } - - /** - * Sets tax_ids - * @param string[] $tax_ids A set of IDs indicating the taxes enabled for this item. When updating an item, any taxes listed here will be added to the item. Taxes may also be added to or deleted from an item using `UpdateItemTaxes`. - * @return $this - */ - public function setTaxIds($tax_ids) - { - $this->tax_ids = $tax_ids; - return $this; - } - /** - * Gets modifier_list_info - * @return \SquareConnect\Model\CatalogItemModifierListInfo[] - */ - public function getModifierListInfo() - { - return $this->modifier_list_info; - } - - /** - * Sets modifier_list_info - * @param \SquareConnect\Model\CatalogItemModifierListInfo[] $modifier_list_info A set of `CatalogItemModifierListInfo` objects representing the modifier lists that apply to this item, along with the overrides and min and max limits that are specific to this item. Modifier lists may also be added to or deleted from an item using `UpdateItemModifierLists`. - * @return $this - */ - public function setModifierListInfo($modifier_list_info) - { - $this->modifier_list_info = $modifier_list_info; - return $this; - } - /** - * Gets variations - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getVariations() - { - return $this->variations; - } - - /** - * Sets variations - * @param \SquareConnect\Model\CatalogObject[] $variations A list of CatalogObjects containing the `CatalogItemVariation`s for this item. - * @return $this - */ - public function setVariations($variations) - { - $this->variations = $variations; - return $this; - } - /** - * Gets product_type - * @return string - */ - public function getProductType() - { - return $this->product_type; - } - - /** - * Sets product_type - * @param string $product_type The product type of the item. May not be changed once an item has been created. Only items of product type `REGULAR` or `APPOINTMENTS_SERVICE` may be created by this API; items with other product types are read-only. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values - * @return $this - */ - public function setProductType($product_type) - { - $this->product_type = $product_type; - return $this; - } - /** - * Gets skip_modifier_screen - * @return bool - */ - public function getSkipModifierScreen() - { - return $this->skip_modifier_screen; - } - - /** - * Sets skip_modifier_screen - * @param bool $skip_modifier_screen If `false`, the Square Point of Sale app will present the `CatalogItem`'s details screen immediately, allowing the merchant to choose `CatalogModifier`s before adding the item to the cart. This is the default behavior. If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected modifiers, and merchants can edit modifiers by drilling down onto the item's details. Third-party clients are encouraged to implement similar behaviors. - * @return $this - */ - public function setSkipModifierScreen($skip_modifier_screen) - { - $this->skip_modifier_screen = $skip_modifier_screen; - return $this; - } - /** - * Gets item_options - * @return \SquareConnect\Model\CatalogItemOptionForItem[] - */ - public function getItemOptions() - { - return $this->item_options; - } - - /** - * Sets item_options - * @param \SquareConnect\Model\CatalogItemOptionForItem[] $item_options List of item options IDs for this item. Used to manage and group item variations in a specified order. Maximum: 6 item options. - * @return $this - */ - public function setItemOptions($item_options) - { - $this->item_options = $item_options; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogItemModifierListInfo.php b/includes/classes/vendors/square/connect/lib/Model/CatalogItemModifierListInfo.php deleted file mode 100644 index 5074ed02b6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogItemModifierListInfo.php +++ /dev/null @@ -1,278 +0,0 @@ - 'string', - 'modifier_overrides' => '\SquareConnect\Model\CatalogModifierOverride[]', - 'min_selected_modifiers' => 'int', - 'max_selected_modifiers' => 'int', - 'enabled' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'modifier_list_id' => 'modifier_list_id', - 'modifier_overrides' => 'modifier_overrides', - 'min_selected_modifiers' => 'min_selected_modifiers', - 'max_selected_modifiers' => 'max_selected_modifiers', - 'enabled' => 'enabled' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'modifier_list_id' => 'setModifierListId', - 'modifier_overrides' => 'setModifierOverrides', - 'min_selected_modifiers' => 'setMinSelectedModifiers', - 'max_selected_modifiers' => 'setMaxSelectedModifiers', - 'enabled' => 'setEnabled' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'modifier_list_id' => 'getModifierListId', - 'modifier_overrides' => 'getModifierOverrides', - 'min_selected_modifiers' => 'getMinSelectedModifiers', - 'max_selected_modifiers' => 'getMaxSelectedModifiers', - 'enabled' => 'getEnabled' - ); - - /** - * $modifier_list_id The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`. - * @var string - */ - protected $modifier_list_id; - /** - * $modifier_overrides A set of `CatalogModifierOverride` objects that override whether a given `CatalogModifier` is enabled by default. - * @var \SquareConnect\Model\CatalogModifierOverride[] - */ - protected $modifier_overrides; - /** - * $min_selected_modifiers If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`. - * @var int - */ - protected $min_selected_modifiers; - /** - * $max_selected_modifiers If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`. - * @var int - */ - protected $max_selected_modifiers; - /** - * $enabled If `true`, enable this `CatalogModifierList`. The default value is `true`. - * @var bool - */ - protected $enabled; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["modifier_list_id"])) { - $this->modifier_list_id = $data["modifier_list_id"]; - } else { - $this->modifier_list_id = null; - } - if (isset($data["modifier_overrides"])) { - $this->modifier_overrides = $data["modifier_overrides"]; - } else { - $this->modifier_overrides = null; - } - if (isset($data["min_selected_modifiers"])) { - $this->min_selected_modifiers = $data["min_selected_modifiers"]; - } else { - $this->min_selected_modifiers = null; - } - if (isset($data["max_selected_modifiers"])) { - $this->max_selected_modifiers = $data["max_selected_modifiers"]; - } else { - $this->max_selected_modifiers = null; - } - if (isset($data["enabled"])) { - $this->enabled = $data["enabled"]; - } else { - $this->enabled = null; - } - } - } - /** - * Gets modifier_list_id - * @return string - */ - public function getModifierListId() - { - return $this->modifier_list_id; - } - - /** - * Sets modifier_list_id - * @param string $modifier_list_id The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`. - * @return $this - */ - public function setModifierListId($modifier_list_id) - { - $this->modifier_list_id = $modifier_list_id; - return $this; - } - /** - * Gets modifier_overrides - * @return \SquareConnect\Model\CatalogModifierOverride[] - */ - public function getModifierOverrides() - { - return $this->modifier_overrides; - } - - /** - * Sets modifier_overrides - * @param \SquareConnect\Model\CatalogModifierOverride[] $modifier_overrides A set of `CatalogModifierOverride` objects that override whether a given `CatalogModifier` is enabled by default. - * @return $this - */ - public function setModifierOverrides($modifier_overrides) - { - $this->modifier_overrides = $modifier_overrides; - return $this; - } - /** - * Gets min_selected_modifiers - * @return int - */ - public function getMinSelectedModifiers() - { - return $this->min_selected_modifiers; - } - - /** - * Sets min_selected_modifiers - * @param int $min_selected_modifiers If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`. - * @return $this - */ - public function setMinSelectedModifiers($min_selected_modifiers) - { - $this->min_selected_modifiers = $min_selected_modifiers; - return $this; - } - /** - * Gets max_selected_modifiers - * @return int - */ - public function getMaxSelectedModifiers() - { - return $this->max_selected_modifiers; - } - - /** - * Sets max_selected_modifiers - * @param int $max_selected_modifiers If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`. - * @return $this - */ - public function setMaxSelectedModifiers($max_selected_modifiers) - { - $this->max_selected_modifiers = $max_selected_modifiers; - return $this; - } - /** - * Gets enabled - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Sets enabled - * @param bool $enabled If `true`, enable this `CatalogModifierList`. The default value is `true`. - * @return $this - */ - public function setEnabled($enabled) - { - $this->enabled = $enabled; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogItemOption.php b/includes/classes/vendors/square/connect/lib/Model/CatalogItemOption.php deleted file mode 100644 index 8320ff2cec..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogItemOption.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'display_name' => 'string', - 'description' => 'string', - 'show_colors' => 'bool', - 'values' => '\SquareConnect\Model\CatalogObject[]', - 'item_count' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'display_name' => 'display_name', - 'description' => 'description', - 'show_colors' => 'show_colors', - 'values' => 'values', - 'item_count' => 'item_count' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'display_name' => 'setDisplayName', - 'description' => 'setDescription', - 'show_colors' => 'setShowColors', - 'values' => 'setValues', - 'item_count' => 'setItemCount' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'display_name' => 'getDisplayName', - 'description' => 'getDescription', - 'show_colors' => 'getShowColors', - 'values' => 'getValues', - 'item_count' => 'getItemCount' - ); - - /** - * $name The item option's display name for the seller. Must be unique across all item options. Searchable. - * @var string - */ - protected $name; - /** - * $display_name The item option's display name for the customer. Searchable. - * @var string - */ - protected $display_name; - /** - * $description The item option's human-readable description. Displayed in the Square Point of Sale app for the seller and in the Online Store or on receipts for the buyer. - * @var string - */ - protected $description; - /** - * $show_colors If true, display colors for entries in `values` when present. - * @var bool - */ - protected $show_colors; - /** - * $values A list of CatalogObjects containing the `CatalogItemOptionValue`s for this item. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $values; - /** - * $item_count The number of `CatalogItem`s currently associated with this item option. Present only if the `include_counts` was specified in the request. Any count over 100 will be returned as `100`. - * @var int - */ - protected $item_count; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["display_name"])) { - $this->display_name = $data["display_name"]; - } else { - $this->display_name = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["show_colors"])) { - $this->show_colors = $data["show_colors"]; - } else { - $this->show_colors = null; - } - if (isset($data["values"])) { - $this->values = $data["values"]; - } else { - $this->values = null; - } - if (isset($data["item_count"])) { - $this->item_count = $data["item_count"]; - } else { - $this->item_count = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The item option's display name for the seller. Must be unique across all item options. Searchable. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets display_name - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Sets display_name - * @param string $display_name The item option's display name for the customer. Searchable. - * @return $this - */ - public function setDisplayName($display_name) - { - $this->display_name = $display_name; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description The item option's human-readable description. Displayed in the Square Point of Sale app for the seller and in the Online Store or on receipts for the buyer. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets show_colors - * @return bool - */ - public function getShowColors() - { - return $this->show_colors; - } - - /** - * Sets show_colors - * @param bool $show_colors If true, display colors for entries in `values` when present. - * @return $this - */ - public function setShowColors($show_colors) - { - $this->show_colors = $show_colors; - return $this; - } - /** - * Gets values - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getValues() - { - return $this->values; - } - - /** - * Sets values - * @param \SquareConnect\Model\CatalogObject[] $values A list of CatalogObjects containing the `CatalogItemOptionValue`s for this item. - * @return $this - */ - public function setValues($values) - { - $this->values = $values; - return $this; - } - /** - * Gets item_count - * @return int - */ - public function getItemCount() - { - return $this->item_count; - } - - /** - * Sets item_count - * @param int $item_count The number of `CatalogItem`s currently associated with this item option. Present only if the `include_counts` was specified in the request. Any count over 100 will be returned as `100`. - * @return $this - */ - public function setItemCount($item_count) - { - $this->item_count = $item_count; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionForItem.php b/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionForItem.php deleted file mode 100644 index cfe859294b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionForItem.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'item_option_id' => 'item_option_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'item_option_id' => 'setItemOptionId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'item_option_id' => 'getItemOptionId' - ); - - /** - * $item_option_id The unique id of the item option, used to form the dimensions of the item option matrix in a specified order. - * @var string - */ - protected $item_option_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["item_option_id"])) { - $this->item_option_id = $data["item_option_id"]; - } else { - $this->item_option_id = null; - } - } - } - /** - * Gets item_option_id - * @return string - */ - public function getItemOptionId() - { - return $this->item_option_id; - } - - /** - * Sets item_option_id - * @param string $item_option_id The unique id of the item option, used to form the dimensions of the item option matrix in a specified order. - * @return $this - */ - public function setItemOptionId($item_option_id) - { - $this->item_option_id = $item_option_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionValue.php b/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionValue.php deleted file mode 100644 index 77e8aa7a0b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionValue.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'name' => 'string', - 'description' => 'string', - 'color' => 'string', - 'ordinal' => 'int', - 'item_variation_count' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'item_option_id' => 'item_option_id', - 'name' => 'name', - 'description' => 'description', - 'color' => 'color', - 'ordinal' => 'ordinal', - 'item_variation_count' => 'item_variation_count' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'item_option_id' => 'setItemOptionId', - 'name' => 'setName', - 'description' => 'setDescription', - 'color' => 'setColor', - 'ordinal' => 'setOrdinal', - 'item_variation_count' => 'setItemVariationCount' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'item_option_id' => 'getItemOptionId', - 'name' => 'getName', - 'description' => 'getDescription', - 'color' => 'getColor', - 'ordinal' => 'getOrdinal', - 'item_variation_count' => 'getItemVariationCount' - ); - - /** - * $item_option_id Unique ID of the associated item option. - * @var string - */ - protected $item_option_id; - /** - * $name Name of this item option value. Searchable. - * @var string - */ - protected $name; - /** - * $description A human-readable description for the option value. - * @var string - */ - protected $description; - /** - * $color The HTML-supported hex color for the item option (e.g., \"#ff8d4e85\"). Only displayed if `show_colors` is enabled on the parent `ItemOption`. When left unset, `color` defaults to white (\"#ffffff\") when `show_colors` is enabled on the parent `ItemOption`. - * @var string - */ - protected $color; - /** - * $ordinal Determines where this option value appears in a list of option values. - * @var int - */ - protected $ordinal; - /** - * $item_variation_count The number of `CatalogItemVariation`s that currently make use of this Item Option value. Present only if `retrieve_counts` was specified on the request used to retrieve the parent Item Option of this value. Maximum: 100 counts. - * @var int - */ - protected $item_variation_count; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["item_option_id"])) { - $this->item_option_id = $data["item_option_id"]; - } else { - $this->item_option_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["color"])) { - $this->color = $data["color"]; - } else { - $this->color = null; - } - if (isset($data["ordinal"])) { - $this->ordinal = $data["ordinal"]; - } else { - $this->ordinal = null; - } - if (isset($data["item_variation_count"])) { - $this->item_variation_count = $data["item_variation_count"]; - } else { - $this->item_variation_count = null; - } - } - } - /** - * Gets item_option_id - * @return string - */ - public function getItemOptionId() - { - return $this->item_option_id; - } - - /** - * Sets item_option_id - * @param string $item_option_id Unique ID of the associated item option. - * @return $this - */ - public function setItemOptionId($item_option_id) - { - $this->item_option_id = $item_option_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name Name of this item option value. Searchable. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description A human-readable description for the option value. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets color - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Sets color - * @param string $color The HTML-supported hex color for the item option (e.g., \"#ff8d4e85\"). Only displayed if `show_colors` is enabled on the parent `ItemOption`. When left unset, `color` defaults to white (\"#ffffff\") when `show_colors` is enabled on the parent `ItemOption`. - * @return $this - */ - public function setColor($color) - { - $this->color = $color; - return $this; - } - /** - * Gets ordinal - * @return int - */ - public function getOrdinal() - { - return $this->ordinal; - } - - /** - * Sets ordinal - * @param int $ordinal Determines where this option value appears in a list of option values. - * @return $this - */ - public function setOrdinal($ordinal) - { - $this->ordinal = $ordinal; - return $this; - } - /** - * Gets item_variation_count - * @return int - */ - public function getItemVariationCount() - { - return $this->item_variation_count; - } - - /** - * Sets item_variation_count - * @param int $item_variation_count The number of `CatalogItemVariation`s that currently make use of this Item Option value. Present only if `retrieve_counts` was specified on the request used to retrieve the parent Item Option of this value. Maximum: 100 counts. - * @return $this - */ - public function setItemVariationCount($item_variation_count) - { - $this->item_variation_count = $item_variation_count; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionValueForItemVariation.php b/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionValueForItemVariation.php deleted file mode 100644 index 3e6dfbb01c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogItemOptionValueForItemVariation.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'item_option_value_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'item_option_id' => 'item_option_id', - 'item_option_value_id' => 'item_option_value_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'item_option_id' => 'setItemOptionId', - 'item_option_value_id' => 'setItemOptionValueId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'item_option_id' => 'getItemOptionId', - 'item_option_value_id' => 'getItemOptionValueId' - ); - - /** - * $item_option_id The unique id of an item option. - * @var string - */ - protected $item_option_id; - /** - * $item_option_value_id The unique id of the selected value for the item option. - * @var string - */ - protected $item_option_value_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["item_option_id"])) { - $this->item_option_id = $data["item_option_id"]; - } else { - $this->item_option_id = null; - } - if (isset($data["item_option_value_id"])) { - $this->item_option_value_id = $data["item_option_value_id"]; - } else { - $this->item_option_value_id = null; - } - } - } - /** - * Gets item_option_id - * @return string - */ - public function getItemOptionId() - { - return $this->item_option_id; - } - - /** - * Sets item_option_id - * @param string $item_option_id The unique id of an item option. - * @return $this - */ - public function setItemOptionId($item_option_id) - { - $this->item_option_id = $item_option_id; - return $this; - } - /** - * Gets item_option_value_id - * @return string - */ - public function getItemOptionValueId() - { - return $this->item_option_value_id; - } - - /** - * Sets item_option_value_id - * @param string $item_option_value_id The unique id of the selected value for the item option. - * @return $this - */ - public function setItemOptionValueId($item_option_value_id) - { - $this->item_option_value_id = $item_option_value_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogItemProductType.php b/includes/classes/vendors/square/connect/lib/Model/CatalogItemProductType.php deleted file mode 100644 index 95dcfaa645..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogItemProductType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogItemVariation.php b/includes/classes/vendors/square/connect/lib/Model/CatalogItemVariation.php deleted file mode 100644 index 897cd68e9f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogItemVariation.php +++ /dev/null @@ -1,608 +0,0 @@ - 'string', - 'name' => 'string', - 'sku' => 'string', - 'upc' => 'string', - 'ordinal' => 'int', - 'pricing_type' => 'string', - 'price_money' => '\SquareConnect\Model\Money', - 'location_overrides' => '\SquareConnect\Model\ItemVariationLocationOverrides[]', - 'track_inventory' => 'bool', - 'inventory_alert_type' => 'string', - 'inventory_alert_threshold' => 'int', - 'user_data' => 'string', - 'service_duration' => 'int', - 'item_option_values' => '\SquareConnect\Model\CatalogItemOptionValueForItemVariation[]', - 'measurement_unit_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'item_id' => 'item_id', - 'name' => 'name', - 'sku' => 'sku', - 'upc' => 'upc', - 'ordinal' => 'ordinal', - 'pricing_type' => 'pricing_type', - 'price_money' => 'price_money', - 'location_overrides' => 'location_overrides', - 'track_inventory' => 'track_inventory', - 'inventory_alert_type' => 'inventory_alert_type', - 'inventory_alert_threshold' => 'inventory_alert_threshold', - 'user_data' => 'user_data', - 'service_duration' => 'service_duration', - 'item_option_values' => 'item_option_values', - 'measurement_unit_id' => 'measurement_unit_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'item_id' => 'setItemId', - 'name' => 'setName', - 'sku' => 'setSku', - 'upc' => 'setUpc', - 'ordinal' => 'setOrdinal', - 'pricing_type' => 'setPricingType', - 'price_money' => 'setPriceMoney', - 'location_overrides' => 'setLocationOverrides', - 'track_inventory' => 'setTrackInventory', - 'inventory_alert_type' => 'setInventoryAlertType', - 'inventory_alert_threshold' => 'setInventoryAlertThreshold', - 'user_data' => 'setUserData', - 'service_duration' => 'setServiceDuration', - 'item_option_values' => 'setItemOptionValues', - 'measurement_unit_id' => 'setMeasurementUnitId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'item_id' => 'getItemId', - 'name' => 'getName', - 'sku' => 'getSku', - 'upc' => 'getUpc', - 'ordinal' => 'getOrdinal', - 'pricing_type' => 'getPricingType', - 'price_money' => 'getPriceMoney', - 'location_overrides' => 'getLocationOverrides', - 'track_inventory' => 'getTrackInventory', - 'inventory_alert_type' => 'getInventoryAlertType', - 'inventory_alert_threshold' => 'getInventoryAlertThreshold', - 'user_data' => 'getUserData', - 'service_duration' => 'getServiceDuration', - 'item_option_values' => 'getItemOptionValues', - 'measurement_unit_id' => 'getMeasurementUnitId' - ); - - /** - * $item_id The ID of the `CatalogItem` associated with this item variation. Searchable. - * @var string - */ - protected $item_id; - /** - * $name The item variation's name. Searchable. This field has max length of 255 Unicode code points. - * @var string - */ - protected $name; - /** - * $sku The item variation's SKU, if any. Searchable. - * @var string - */ - protected $sku; - /** - * $upc The item variation's UPC, if any. Searchable in the Connect API. This field is only exposed in the Connect API. It is not exposed in Square's Dashboard, Square Point of Sale app or Retail Point of Sale app. - * @var string - */ - protected $upc; - /** - * $ordinal The order in which this item variation should be displayed. This value is read-only. On writes, the ordinal for each item variation within a parent `CatalogItem` is set according to the item variations's position. On reads, the value is not guaranteed to be sequential or unique. - * @var int - */ - protected $ordinal; - /** - * $pricing_type Indicates whether the item variation's price is fixed or determined at the time of sale. See [CatalogPricingType](#type-catalogpricingtype) for possible values - * @var string - */ - protected $pricing_type; - /** - * $price_money The item variation's price, if fixed pricing is used. - * @var \SquareConnect\Model\Money - */ - protected $price_money; - /** - * $location_overrides Per-location price and inventory overrides. - * @var \SquareConnect\Model\ItemVariationLocationOverrides[] - */ - protected $location_overrides; - /** - * $track_inventory If `true`, inventory tracking is active for the variation. - * @var bool - */ - protected $track_inventory; - /** - * $inventory_alert_type Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values - * @var string - */ - protected $inventory_alert_type; - /** - * $inventory_alert_threshold If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. - * @var int - */ - protected $inventory_alert_threshold; - /** - * $user_data Arbitrary user metadata to associate with the item variation. Searchable. This field has max length of 255 Unicode code points. - * @var string - */ - protected $user_data; - /** - * $service_duration If the `CatalogItem` that owns this item variation is of type `APPOINTMENTS_SERVICE`, then this is the duration of the service in milliseconds. For example, a 30 minute appointment would have the value `1800000`, which is equal to 30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second). - * @var int - */ - protected $service_duration; - /** - * $item_option_values List of item option values associated with this item variation. Listed in the same order as the item options of the parent item. - * @var \SquareConnect\Model\CatalogItemOptionValueForItemVariation[] - */ - protected $item_option_values; - /** - * $measurement_unit_id ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity sold of this item variation. If left unset, the item will be sold in whole quantities. - * @var string - */ - protected $measurement_unit_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["item_id"])) { - $this->item_id = $data["item_id"]; - } else { - $this->item_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["sku"])) { - $this->sku = $data["sku"]; - } else { - $this->sku = null; - } - if (isset($data["upc"])) { - $this->upc = $data["upc"]; - } else { - $this->upc = null; - } - if (isset($data["ordinal"])) { - $this->ordinal = $data["ordinal"]; - } else { - $this->ordinal = null; - } - if (isset($data["pricing_type"])) { - $this->pricing_type = $data["pricing_type"]; - } else { - $this->pricing_type = null; - } - if (isset($data["price_money"])) { - $this->price_money = $data["price_money"]; - } else { - $this->price_money = null; - } - if (isset($data["location_overrides"])) { - $this->location_overrides = $data["location_overrides"]; - } else { - $this->location_overrides = null; - } - if (isset($data["track_inventory"])) { - $this->track_inventory = $data["track_inventory"]; - } else { - $this->track_inventory = null; - } - if (isset($data["inventory_alert_type"])) { - $this->inventory_alert_type = $data["inventory_alert_type"]; - } else { - $this->inventory_alert_type = null; - } - if (isset($data["inventory_alert_threshold"])) { - $this->inventory_alert_threshold = $data["inventory_alert_threshold"]; - } else { - $this->inventory_alert_threshold = null; - } - if (isset($data["user_data"])) { - $this->user_data = $data["user_data"]; - } else { - $this->user_data = null; - } - if (isset($data["service_duration"])) { - $this->service_duration = $data["service_duration"]; - } else { - $this->service_duration = null; - } - if (isset($data["item_option_values"])) { - $this->item_option_values = $data["item_option_values"]; - } else { - $this->item_option_values = null; - } - if (isset($data["measurement_unit_id"])) { - $this->measurement_unit_id = $data["measurement_unit_id"]; - } else { - $this->measurement_unit_id = null; - } - } - } - /** - * Gets item_id - * @return string - */ - public function getItemId() - { - return $this->item_id; - } - - /** - * Sets item_id - * @param string $item_id The ID of the `CatalogItem` associated with this item variation. Searchable. - * @return $this - */ - public function setItemId($item_id) - { - $this->item_id = $item_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The item variation's name. Searchable. This field has max length of 255 Unicode code points. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets sku - * @return string - */ - public function getSku() - { - return $this->sku; - } - - /** - * Sets sku - * @param string $sku The item variation's SKU, if any. Searchable. - * @return $this - */ - public function setSku($sku) - { - $this->sku = $sku; - return $this; - } - /** - * Gets upc - * @return string - */ - public function getUpc() - { - return $this->upc; - } - - /** - * Sets upc - * @param string $upc The item variation's UPC, if any. Searchable in the Connect API. This field is only exposed in the Connect API. It is not exposed in Square's Dashboard, Square Point of Sale app or Retail Point of Sale app. - * @return $this - */ - public function setUpc($upc) - { - $this->upc = $upc; - return $this; - } - /** - * Gets ordinal - * @return int - */ - public function getOrdinal() - { - return $this->ordinal; - } - - /** - * Sets ordinal - * @param int $ordinal The order in which this item variation should be displayed. This value is read-only. On writes, the ordinal for each item variation within a parent `CatalogItem` is set according to the item variations's position. On reads, the value is not guaranteed to be sequential or unique. - * @return $this - */ - public function setOrdinal($ordinal) - { - $this->ordinal = $ordinal; - return $this; - } - /** - * Gets pricing_type - * @return string - */ - public function getPricingType() - { - return $this->pricing_type; - } - - /** - * Sets pricing_type - * @param string $pricing_type Indicates whether the item variation's price is fixed or determined at the time of sale. See [CatalogPricingType](#type-catalogpricingtype) for possible values - * @return $this - */ - public function setPricingType($pricing_type) - { - $this->pricing_type = $pricing_type; - return $this; - } - /** - * Gets price_money - * @return \SquareConnect\Model\Money - */ - public function getPriceMoney() - { - return $this->price_money; - } - - /** - * Sets price_money - * @param \SquareConnect\Model\Money $price_money The item variation's price, if fixed pricing is used. - * @return $this - */ - public function setPriceMoney($price_money) - { - $this->price_money = $price_money; - return $this; - } - /** - * Gets location_overrides - * @return \SquareConnect\Model\ItemVariationLocationOverrides[] - */ - public function getLocationOverrides() - { - return $this->location_overrides; - } - - /** - * Sets location_overrides - * @param \SquareConnect\Model\ItemVariationLocationOverrides[] $location_overrides Per-location price and inventory overrides. - * @return $this - */ - public function setLocationOverrides($location_overrides) - { - $this->location_overrides = $location_overrides; - return $this; - } - /** - * Gets track_inventory - * @return bool - */ - public function getTrackInventory() - { - return $this->track_inventory; - } - - /** - * Sets track_inventory - * @param bool $track_inventory If `true`, inventory tracking is active for the variation. - * @return $this - */ - public function setTrackInventory($track_inventory) - { - $this->track_inventory = $track_inventory; - return $this; - } - /** - * Gets inventory_alert_type - * @return string - */ - public function getInventoryAlertType() - { - return $this->inventory_alert_type; - } - - /** - * Sets inventory_alert_type - * @param string $inventory_alert_type Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values - * @return $this - */ - public function setInventoryAlertType($inventory_alert_type) - { - $this->inventory_alert_type = $inventory_alert_type; - return $this; - } - /** - * Gets inventory_alert_threshold - * @return int - */ - public function getInventoryAlertThreshold() - { - return $this->inventory_alert_threshold; - } - - /** - * Sets inventory_alert_threshold - * @param int $inventory_alert_threshold If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. - * @return $this - */ - public function setInventoryAlertThreshold($inventory_alert_threshold) - { - $this->inventory_alert_threshold = $inventory_alert_threshold; - return $this; - } - /** - * Gets user_data - * @return string - */ - public function getUserData() - { - return $this->user_data; - } - - /** - * Sets user_data - * @param string $user_data Arbitrary user metadata to associate with the item variation. Searchable. This field has max length of 255 Unicode code points. - * @return $this - */ - public function setUserData($user_data) - { - $this->user_data = $user_data; - return $this; - } - /** - * Gets service_duration - * @return int - */ - public function getServiceDuration() - { - return $this->service_duration; - } - - /** - * Sets service_duration - * @param int $service_duration If the `CatalogItem` that owns this item variation is of type `APPOINTMENTS_SERVICE`, then this is the duration of the service in milliseconds. For example, a 30 minute appointment would have the value `1800000`, which is equal to 30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second). - * @return $this - */ - public function setServiceDuration($service_duration) - { - $this->service_duration = $service_duration; - return $this; - } - /** - * Gets item_option_values - * @return \SquareConnect\Model\CatalogItemOptionValueForItemVariation[] - */ - public function getItemOptionValues() - { - return $this->item_option_values; - } - - /** - * Sets item_option_values - * @param \SquareConnect\Model\CatalogItemOptionValueForItemVariation[] $item_option_values List of item option values associated with this item variation. Listed in the same order as the item options of the parent item. - * @return $this - */ - public function setItemOptionValues($item_option_values) - { - $this->item_option_values = $item_option_values; - return $this; - } - /** - * Gets measurement_unit_id - * @return string - */ - public function getMeasurementUnitId() - { - return $this->measurement_unit_id; - } - - /** - * Sets measurement_unit_id - * @param string $measurement_unit_id ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity sold of this item variation. If left unset, the item will be sold in whole quantities. - * @return $this - */ - public function setMeasurementUnitId($measurement_unit_id) - { - $this->measurement_unit_id = $measurement_unit_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogMeasurementUnit.php b/includes/classes/vendors/square/connect/lib/Model/CatalogMeasurementUnit.php deleted file mode 100644 index 77b5a5698e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogMeasurementUnit.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\MeasurementUnit', - 'precision' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'measurement_unit' => 'measurement_unit', - 'precision' => 'precision' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'measurement_unit' => 'setMeasurementUnit', - 'precision' => 'setPrecision' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'measurement_unit' => 'getMeasurementUnit', - 'precision' => 'getPrecision' - ); - - /** - * $measurement_unit Indicates the unit used to measure the quantity of a catalog item variation. - * @var \SquareConnect\Model\MeasurementUnit - */ - protected $measurement_unit; - /** - * $precision An integer between 0 and 5 that represents the maximum number of positions allowed after the decimal in quantities measured with this unit. For example: - if the precision is 0, the quantity can be 1, 2, 3, etc. - if the precision is 1, the quantity can be 0.1, 0.2, etc. - if the precision is 2, the quantity can be 0.01, 0.12, etc. Default: 3 - * @var int - */ - protected $precision; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["measurement_unit"])) { - $this->measurement_unit = $data["measurement_unit"]; - } else { - $this->measurement_unit = null; - } - if (isset($data["precision"])) { - $this->precision = $data["precision"]; - } else { - $this->precision = null; - } - } - } - /** - * Gets measurement_unit - * @return \SquareConnect\Model\MeasurementUnit - */ - public function getMeasurementUnit() - { - return $this->measurement_unit; - } - - /** - * Sets measurement_unit - * @param \SquareConnect\Model\MeasurementUnit $measurement_unit Indicates the unit used to measure the quantity of a catalog item variation. - * @return $this - */ - public function setMeasurementUnit($measurement_unit) - { - $this->measurement_unit = $measurement_unit; - return $this; - } - /** - * Gets precision - * @return int - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * Sets precision - * @param int $precision An integer between 0 and 5 that represents the maximum number of positions allowed after the decimal in quantities measured with this unit. For example: - if the precision is 0, the quantity can be 1, 2, 3, etc. - if the precision is 1, the quantity can be 0.1, 0.2, etc. - if the precision is 2, the quantity can be 0.01, 0.12, etc. Default: 3 - * @return $this - */ - public function setPrecision($precision) - { - $this->precision = $precision; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogModifier.php b/includes/classes/vendors/square/connect/lib/Model/CatalogModifier.php deleted file mode 100644 index cd883a8163..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogModifier.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'price_money' => '\SquareConnect\Model\Money', - 'ordinal' => 'int', - 'modifier_list_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'price_money' => 'price_money', - 'ordinal' => 'ordinal', - 'modifier_list_id' => 'modifier_list_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'price_money' => 'setPriceMoney', - 'ordinal' => 'setOrdinal', - 'modifier_list_id' => 'setModifierListId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'price_money' => 'getPriceMoney', - 'ordinal' => 'getOrdinal', - 'modifier_list_id' => 'getModifierListId' - ); - - /** - * $name The modifier name. Searchable. This field has max length of 255 Unicode code points. - * @var string - */ - protected $name; - /** - * $price_money The modifier price. - * @var \SquareConnect\Model\Money - */ - protected $price_money; - /** - * $ordinal Determines where this `CatalogModifier` appears in the `CatalogModifierList`. - * @var int - */ - protected $ordinal; - /** - * $modifier_list_id The ID of the `CatalogModifierList` associated with this modifier. Searchable. - * @var string - */ - protected $modifier_list_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["price_money"])) { - $this->price_money = $data["price_money"]; - } else { - $this->price_money = null; - } - if (isset($data["ordinal"])) { - $this->ordinal = $data["ordinal"]; - } else { - $this->ordinal = null; - } - if (isset($data["modifier_list_id"])) { - $this->modifier_list_id = $data["modifier_list_id"]; - } else { - $this->modifier_list_id = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The modifier name. Searchable. This field has max length of 255 Unicode code points. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets price_money - * @return \SquareConnect\Model\Money - */ - public function getPriceMoney() - { - return $this->price_money; - } - - /** - * Sets price_money - * @param \SquareConnect\Model\Money $price_money The modifier price. - * @return $this - */ - public function setPriceMoney($price_money) - { - $this->price_money = $price_money; - return $this; - } - /** - * Gets ordinal - * @return int - */ - public function getOrdinal() - { - return $this->ordinal; - } - - /** - * Sets ordinal - * @param int $ordinal Determines where this `CatalogModifier` appears in the `CatalogModifierList`. - * @return $this - */ - public function setOrdinal($ordinal) - { - $this->ordinal = $ordinal; - return $this; - } - /** - * Gets modifier_list_id - * @return string - */ - public function getModifierListId() - { - return $this->modifier_list_id; - } - - /** - * Sets modifier_list_id - * @param string $modifier_list_id The ID of the `CatalogModifierList` associated with this modifier. Searchable. - * @return $this - */ - public function setModifierListId($modifier_list_id) - { - $this->modifier_list_id = $modifier_list_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogModifierList.php b/includes/classes/vendors/square/connect/lib/Model/CatalogModifierList.php deleted file mode 100644 index e7f77b97b0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogModifierList.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'ordinal' => 'int', - 'selection_type' => 'string', - 'modifiers' => '\SquareConnect\Model\CatalogObject[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'ordinal' => 'ordinal', - 'selection_type' => 'selection_type', - 'modifiers' => 'modifiers' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'ordinal' => 'setOrdinal', - 'selection_type' => 'setSelectionType', - 'modifiers' => 'setModifiers' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'ordinal' => 'getOrdinal', - 'selection_type' => 'getSelectionType', - 'modifiers' => 'getModifiers' - ); - - /** - * $name A searchable name for the `CatalogModifierList`. This field has max length of 255 Unicode code points. - * @var string - */ - protected $name; - /** - * $ordinal Determines where this `CatalogModifierList` appears in a list of `CatalogModifierList` values. - * @var int - */ - protected $ordinal; - /** - * $selection_type Indicates whether multiple options from the `CatalogModifierList` can be applied to a single `CatalogItem`. See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for possible values - * @var string - */ - protected $selection_type; - /** - * $modifiers The options included in the `CatalogModifierList`. You must include at least one `CatalogModifier`. Each CatalogObject must have type `MODIFIER` and contain `CatalogModifier` data. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $modifiers; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["ordinal"])) { - $this->ordinal = $data["ordinal"]; - } else { - $this->ordinal = null; - } - if (isset($data["selection_type"])) { - $this->selection_type = $data["selection_type"]; - } else { - $this->selection_type = null; - } - if (isset($data["modifiers"])) { - $this->modifiers = $data["modifiers"]; - } else { - $this->modifiers = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name A searchable name for the `CatalogModifierList`. This field has max length of 255 Unicode code points. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets ordinal - * @return int - */ - public function getOrdinal() - { - return $this->ordinal; - } - - /** - * Sets ordinal - * @param int $ordinal Determines where this `CatalogModifierList` appears in a list of `CatalogModifierList` values. - * @return $this - */ - public function setOrdinal($ordinal) - { - $this->ordinal = $ordinal; - return $this; - } - /** - * Gets selection_type - * @return string - */ - public function getSelectionType() - { - return $this->selection_type; - } - - /** - * Sets selection_type - * @param string $selection_type Indicates whether multiple options from the `CatalogModifierList` can be applied to a single `CatalogItem`. See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for possible values - * @return $this - */ - public function setSelectionType($selection_type) - { - $this->selection_type = $selection_type; - return $this; - } - /** - * Gets modifiers - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getModifiers() - { - return $this->modifiers; - } - - /** - * Sets modifiers - * @param \SquareConnect\Model\CatalogObject[] $modifiers The options included in the `CatalogModifierList`. You must include at least one `CatalogModifier`. Each CatalogObject must have type `MODIFIER` and contain `CatalogModifier` data. - * @return $this - */ - public function setModifiers($modifiers) - { - $this->modifiers = $modifiers; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogModifierListSelectionType.php b/includes/classes/vendors/square/connect/lib/Model/CatalogModifierListSelectionType.php deleted file mode 100644 index cf5b30452e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogModifierListSelectionType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogModifierOverride.php b/includes/classes/vendors/square/connect/lib/Model/CatalogModifierOverride.php deleted file mode 100644 index 828e9e2ba5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogModifierOverride.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'on_by_default' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'modifier_id' => 'modifier_id', - 'on_by_default' => 'on_by_default' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'modifier_id' => 'setModifierId', - 'on_by_default' => 'setOnByDefault' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'modifier_id' => 'getModifierId', - 'on_by_default' => 'getOnByDefault' - ); - - /** - * $modifier_id The ID of the `CatalogModifier` whose default behavior is being overridden. - * @var string - */ - protected $modifier_id; - /** - * $on_by_default If `true`, this `CatalogModifier` should be selected by default for this `CatalogItem`. - * @var bool - */ - protected $on_by_default; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["modifier_id"])) { - $this->modifier_id = $data["modifier_id"]; - } else { - $this->modifier_id = null; - } - if (isset($data["on_by_default"])) { - $this->on_by_default = $data["on_by_default"]; - } else { - $this->on_by_default = null; - } - } - } - /** - * Gets modifier_id - * @return string - */ - public function getModifierId() - { - return $this->modifier_id; - } - - /** - * Sets modifier_id - * @param string $modifier_id The ID of the `CatalogModifier` whose default behavior is being overridden. - * @return $this - */ - public function setModifierId($modifier_id) - { - $this->modifier_id = $modifier_id; - return $this; - } - /** - * Gets on_by_default - * @return bool - */ - public function getOnByDefault() - { - return $this->on_by_default; - } - - /** - * Sets on_by_default - * @param bool $on_by_default If `true`, this `CatalogModifier` should be selected by default for this `CatalogItem`. - * @return $this - */ - public function setOnByDefault($on_by_default) - { - $this->on_by_default = $on_by_default; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogObject.php b/includes/classes/vendors/square/connect/lib/Model/CatalogObject.php deleted file mode 100644 index 9b521a4bc6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogObject.php +++ /dev/null @@ -1,1004 +0,0 @@ - 'string', - 'id' => 'string', - 'updated_at' => 'string', - 'version' => 'int', - 'is_deleted' => 'bool', - 'custom_attribute_values' => 'map[string,\SquareConnect\Model\CatalogCustomAttributeValue]', - 'catalog_v1_ids' => '\SquareConnect\Model\CatalogV1Id[]', - 'present_at_all_locations' => 'bool', - 'present_at_location_ids' => 'string[]', - 'absent_at_location_ids' => 'string[]', - 'image_id' => 'string', - 'item_data' => '\SquareConnect\Model\CatalogItem', - 'category_data' => '\SquareConnect\Model\CatalogCategory', - 'item_variation_data' => '\SquareConnect\Model\CatalogItemVariation', - 'tax_data' => '\SquareConnect\Model\CatalogTax', - 'discount_data' => '\SquareConnect\Model\CatalogDiscount', - 'modifier_list_data' => '\SquareConnect\Model\CatalogModifierList', - 'modifier_data' => '\SquareConnect\Model\CatalogModifier', - 'time_period_data' => '\SquareConnect\Model\CatalogTimePeriod', - 'product_set_data' => '\SquareConnect\Model\CatalogProductSet', - 'pricing_rule_data' => '\SquareConnect\Model\CatalogPricingRule', - 'image_data' => '\SquareConnect\Model\CatalogImage', - 'measurement_unit_data' => '\SquareConnect\Model\CatalogMeasurementUnit', - 'item_option_data' => '\SquareConnect\Model\CatalogItemOption', - 'item_option_value_data' => '\SquareConnect\Model\CatalogItemOptionValue', - 'custom_attribute_definition_data' => '\SquareConnect\Model\CatalogCustomAttributeDefinition', - 'quick_amounts_settings_data' => '\SquareConnect\Model\CatalogQuickAmountsSettings' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'type' => 'type', - 'id' => 'id', - 'updated_at' => 'updated_at', - 'version' => 'version', - 'is_deleted' => 'is_deleted', - 'custom_attribute_values' => 'custom_attribute_values', - 'catalog_v1_ids' => 'catalog_v1_ids', - 'present_at_all_locations' => 'present_at_all_locations', - 'present_at_location_ids' => 'present_at_location_ids', - 'absent_at_location_ids' => 'absent_at_location_ids', - 'image_id' => 'image_id', - 'item_data' => 'item_data', - 'category_data' => 'category_data', - 'item_variation_data' => 'item_variation_data', - 'tax_data' => 'tax_data', - 'discount_data' => 'discount_data', - 'modifier_list_data' => 'modifier_list_data', - 'modifier_data' => 'modifier_data', - 'time_period_data' => 'time_period_data', - 'product_set_data' => 'product_set_data', - 'pricing_rule_data' => 'pricing_rule_data', - 'image_data' => 'image_data', - 'measurement_unit_data' => 'measurement_unit_data', - 'item_option_data' => 'item_option_data', - 'item_option_value_data' => 'item_option_value_data', - 'custom_attribute_definition_data' => 'custom_attribute_definition_data', - 'quick_amounts_settings_data' => 'quick_amounts_settings_data' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'type' => 'setType', - 'id' => 'setId', - 'updated_at' => 'setUpdatedAt', - 'version' => 'setVersion', - 'is_deleted' => 'setIsDeleted', - 'custom_attribute_values' => 'setCustomAttributeValues', - 'catalog_v1_ids' => 'setCatalogV1Ids', - 'present_at_all_locations' => 'setPresentAtAllLocations', - 'present_at_location_ids' => 'setPresentAtLocationIds', - 'absent_at_location_ids' => 'setAbsentAtLocationIds', - 'image_id' => 'setImageId', - 'item_data' => 'setItemData', - 'category_data' => 'setCategoryData', - 'item_variation_data' => 'setItemVariationData', - 'tax_data' => 'setTaxData', - 'discount_data' => 'setDiscountData', - 'modifier_list_data' => 'setModifierListData', - 'modifier_data' => 'setModifierData', - 'time_period_data' => 'setTimePeriodData', - 'product_set_data' => 'setProductSetData', - 'pricing_rule_data' => 'setPricingRuleData', - 'image_data' => 'setImageData', - 'measurement_unit_data' => 'setMeasurementUnitData', - 'item_option_data' => 'setItemOptionData', - 'item_option_value_data' => 'setItemOptionValueData', - 'custom_attribute_definition_data' => 'setCustomAttributeDefinitionData', - 'quick_amounts_settings_data' => 'setQuickAmountsSettingsData' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'type' => 'getType', - 'id' => 'getId', - 'updated_at' => 'getUpdatedAt', - 'version' => 'getVersion', - 'is_deleted' => 'getIsDeleted', - 'custom_attribute_values' => 'getCustomAttributeValues', - 'catalog_v1_ids' => 'getCatalogV1Ids', - 'present_at_all_locations' => 'getPresentAtAllLocations', - 'present_at_location_ids' => 'getPresentAtLocationIds', - 'absent_at_location_ids' => 'getAbsentAtLocationIds', - 'image_id' => 'getImageId', - 'item_data' => 'getItemData', - 'category_data' => 'getCategoryData', - 'item_variation_data' => 'getItemVariationData', - 'tax_data' => 'getTaxData', - 'discount_data' => 'getDiscountData', - 'modifier_list_data' => 'getModifierListData', - 'modifier_data' => 'getModifierData', - 'time_period_data' => 'getTimePeriodData', - 'product_set_data' => 'getProductSetData', - 'pricing_rule_data' => 'getPricingRuleData', - 'image_data' => 'getImageData', - 'measurement_unit_data' => 'getMeasurementUnitData', - 'item_option_data' => 'getItemOptionData', - 'item_option_value_data' => 'getItemOptionValueData', - 'custom_attribute_definition_data' => 'getCustomAttributeDefinitionData', - 'quick_amounts_settings_data' => 'getQuickAmountsSettingsData' - ); - - /** - * $type The type of this object. Each object type has expected properties expressed in a structured format within its corresponding `*_data` field below. See [CatalogObjectType](#type-catalogobjecttype) for possible values - * @var string - */ - protected $type; - /** - * $id An identifier to reference this object in the catalog. When a new `CatalogObject` is inserted, the client should set the id to a temporary identifier starting with a \"`#`\" character. Other objects being inserted or updated within the same request may use this identifier to refer to the new object. When the server receives the new object, it will supply a unique identifier that replaces the temporary identifier for all future references. - * @var string - */ - protected $id; - /** - * $updated_at Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `\"2016-08-15T23:59:33.123Z\"` would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds. - * @var string - */ - protected $updated_at; - /** - * $version The version of the object. When updating an object, the version supplied must match the version in the database, otherwise the write will be rejected as conflicting. - * @var int - */ - protected $version; - /** - * $is_deleted If `true`, the object has been deleted from the database. Must be `false` for new objects being inserted. When deleted, the `updated_at` field will equal the deletion time. - * @var bool - */ - protected $is_deleted; - /** - * $custom_attribute_values Application-defined key/value attributes that are set at a global (location-independent) level. Custom Attribute Values are intended to store additional information about a Catalog Object or associations with an entity in another system. Do not use custom attributes to store any sensitive information (personally identifiable information, card details, etc.). For CustomAttributesDefinitions defined by the app making the request, the map key is the key defined in the `CatalogCustomAttributeDefinition` (e.g. “reference_id”). For custom attributes created by other apps, the map key is the key defined in `CatalogCustomAttributeDefinition` prefixed with the application ID and a colon (eg. “abcd1234:reference_id”). - * @var map[string,\SquareConnect\Model\CatalogCustomAttributeValue] - */ - protected $custom_attribute_values; - /** - * $catalog_v1_ids The Connect v1 IDs for this object at each location where it is present, where they differ from the object's Connect V2 ID. The field will only be present for objects that have been created or modified by legacy APIs. - * @var \SquareConnect\Model\CatalogV1Id[] - */ - protected $catalog_v1_ids; - /** - * $present_at_all_locations If `true`, this object is present at all locations (including future locations), except where specified in the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations), except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`. - * @var bool - */ - protected $present_at_all_locations; - /** - * $present_at_location_ids A list of locations where the object is present, even if `present_at_all_locations` is `false`. - * @var string[] - */ - protected $present_at_location_ids; - /** - * $absent_at_location_ids A list of locations where the object is not present, even if `present_at_all_locations` is `true`. - * @var string[] - */ - protected $absent_at_location_ids; - /** - * $image_id Identifies the `CatalogImage` attached to this `CatalogObject`. - * @var string - */ - protected $image_id; - /** - * $item_data Structured data for a `CatalogItem`, set for CatalogObjects of type `ITEM`. - * @var \SquareConnect\Model\CatalogItem - */ - protected $item_data; - /** - * $category_data Structured data for a `CatalogCategory`, set for CatalogObjects of type `CATEGORY`. - * @var \SquareConnect\Model\CatalogCategory - */ - protected $category_data; - /** - * $item_variation_data Structured data for a `CatalogItemVariation`, set for CatalogObjects of type `ITEM_VARIATION`. - * @var \SquareConnect\Model\CatalogItemVariation - */ - protected $item_variation_data; - /** - * $tax_data Structured data for a `CatalogTax`, set for CatalogObjects of type `TAX`. - * @var \SquareConnect\Model\CatalogTax - */ - protected $tax_data; - /** - * $discount_data Structured data for a `CatalogDiscount`, set for CatalogObjects of type `DISCOUNT`. - * @var \SquareConnect\Model\CatalogDiscount - */ - protected $discount_data; - /** - * $modifier_list_data Structured data for a `CatalogModifierList`, set for CatalogObjects of type `MODIFIER_LIST`. - * @var \SquareConnect\Model\CatalogModifierList - */ - protected $modifier_list_data; - /** - * $modifier_data Structured data for a `CatalogModifier`, set for CatalogObjects of type `MODIFIER`. - * @var \SquareConnect\Model\CatalogModifier - */ - protected $modifier_data; - /** - * $time_period_data Structured data for a `CatalogTimePeriod`, set for CatalogObjects of type `TIME_PERIOD`. - * @var \SquareConnect\Model\CatalogTimePeriod - */ - protected $time_period_data; - /** - * $product_set_data Structured data for a `CatalogProductSet`, set for CatalogObjects of type `PRODUCT_SET`. - * @var \SquareConnect\Model\CatalogProductSet - */ - protected $product_set_data; - /** - * $pricing_rule_data Structured data for a `CatalogPricingRule`, set for CatalogObjects of type `PRICING_RULE`. - * @var \SquareConnect\Model\CatalogPricingRule - */ - protected $pricing_rule_data; - /** - * $image_data Structured data for a `CatalogImage`, set for CatalogObjects of type `IMAGE`. - * @var \SquareConnect\Model\CatalogImage - */ - protected $image_data; - /** - * $measurement_unit_data Structured data for a `CatalogMeasurementUnit`, set for CatalogObjects of type `MEASUREMENT_UNIT`. - * @var \SquareConnect\Model\CatalogMeasurementUnit - */ - protected $measurement_unit_data; - /** - * $item_option_data Structured data for a `CatalogItemOption`, set for CatalogObjects of type `ITEM_OPTION`. - * @var \SquareConnect\Model\CatalogItemOption - */ - protected $item_option_data; - /** - * $item_option_value_data Structured data for a `CatalogItemOptionValue`, set for CatalogObjects of type `ITEM_OPTION_VAL`. - * @var \SquareConnect\Model\CatalogItemOptionValue - */ - protected $item_option_value_data; - /** - * $custom_attribute_definition_data Structured data for a `CatalogCustomAttributeDefinition`, set for CatalogObjects of type `CUSTOM_ATTRIBUTE_DEFINITION`. - * @var \SquareConnect\Model\CatalogCustomAttributeDefinition - */ - protected $custom_attribute_definition_data; - /** - * $quick_amounts_settings_data Structured data for a `CatalogQuickAmountsSettings`, set for CatalogObjects of type `QUICK_AMOUNTS_SETTINGS`. - * @var \SquareConnect\Model\CatalogQuickAmountsSettings - */ - protected $quick_amounts_settings_data; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["is_deleted"])) { - $this->is_deleted = $data["is_deleted"]; - } else { - $this->is_deleted = null; - } - if (isset($data["custom_attribute_values"])) { - $this->custom_attribute_values = $data["custom_attribute_values"]; - } else { - $this->custom_attribute_values = null; - } - if (isset($data["catalog_v1_ids"])) { - $this->catalog_v1_ids = $data["catalog_v1_ids"]; - } else { - $this->catalog_v1_ids = null; - } - if (isset($data["present_at_all_locations"])) { - $this->present_at_all_locations = $data["present_at_all_locations"]; - } else { - $this->present_at_all_locations = null; - } - if (isset($data["present_at_location_ids"])) { - $this->present_at_location_ids = $data["present_at_location_ids"]; - } else { - $this->present_at_location_ids = null; - } - if (isset($data["absent_at_location_ids"])) { - $this->absent_at_location_ids = $data["absent_at_location_ids"]; - } else { - $this->absent_at_location_ids = null; - } - if (isset($data["image_id"])) { - $this->image_id = $data["image_id"]; - } else { - $this->image_id = null; - } - if (isset($data["item_data"])) { - $this->item_data = $data["item_data"]; - } else { - $this->item_data = null; - } - if (isset($data["category_data"])) { - $this->category_data = $data["category_data"]; - } else { - $this->category_data = null; - } - if (isset($data["item_variation_data"])) { - $this->item_variation_data = $data["item_variation_data"]; - } else { - $this->item_variation_data = null; - } - if (isset($data["tax_data"])) { - $this->tax_data = $data["tax_data"]; - } else { - $this->tax_data = null; - } - if (isset($data["discount_data"])) { - $this->discount_data = $data["discount_data"]; - } else { - $this->discount_data = null; - } - if (isset($data["modifier_list_data"])) { - $this->modifier_list_data = $data["modifier_list_data"]; - } else { - $this->modifier_list_data = null; - } - if (isset($data["modifier_data"])) { - $this->modifier_data = $data["modifier_data"]; - } else { - $this->modifier_data = null; - } - if (isset($data["time_period_data"])) { - $this->time_period_data = $data["time_period_data"]; - } else { - $this->time_period_data = null; - } - if (isset($data["product_set_data"])) { - $this->product_set_data = $data["product_set_data"]; - } else { - $this->product_set_data = null; - } - if (isset($data["pricing_rule_data"])) { - $this->pricing_rule_data = $data["pricing_rule_data"]; - } else { - $this->pricing_rule_data = null; - } - if (isset($data["image_data"])) { - $this->image_data = $data["image_data"]; - } else { - $this->image_data = null; - } - if (isset($data["measurement_unit_data"])) { - $this->measurement_unit_data = $data["measurement_unit_data"]; - } else { - $this->measurement_unit_data = null; - } - if (isset($data["item_option_data"])) { - $this->item_option_data = $data["item_option_data"]; - } else { - $this->item_option_data = null; - } - if (isset($data["item_option_value_data"])) { - $this->item_option_value_data = $data["item_option_value_data"]; - } else { - $this->item_option_value_data = null; - } - if (isset($data["custom_attribute_definition_data"])) { - $this->custom_attribute_definition_data = $data["custom_attribute_definition_data"]; - } else { - $this->custom_attribute_definition_data = null; - } - if (isset($data["quick_amounts_settings_data"])) { - $this->quick_amounts_settings_data = $data["quick_amounts_settings_data"]; - } else { - $this->quick_amounts_settings_data = null; - } - } - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of this object. Each object type has expected properties expressed in a structured format within its corresponding `*_data` field below. See [CatalogObjectType](#type-catalogobjecttype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id An identifier to reference this object in the catalog. When a new `CatalogObject` is inserted, the client should set the id to a temporary identifier starting with a \"`#`\" character. Other objects being inserted or updated within the same request may use this identifier to refer to the new object. When the server receives the new object, it will supply a unique identifier that replaces the temporary identifier for all future references. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `\"2016-08-15T23:59:33.123Z\"` would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version The version of the object. When updating an object, the version supplied must match the version in the database, otherwise the write will be rejected as conflicting. - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets is_deleted - * @return bool - */ - public function getIsDeleted() - { - return $this->is_deleted; - } - - /** - * Sets is_deleted - * @param bool $is_deleted If `true`, the object has been deleted from the database. Must be `false` for new objects being inserted. When deleted, the `updated_at` field will equal the deletion time. - * @return $this - */ - public function setIsDeleted($is_deleted) - { - $this->is_deleted = $is_deleted; - return $this; - } - /** - * Gets custom_attribute_values - * @return map[string,\SquareConnect\Model\CatalogCustomAttributeValue] - */ - public function getCustomAttributeValues() - { - return $this->custom_attribute_values; - } - - /** - * Sets custom_attribute_values - * @param map[string,\SquareConnect\Model\CatalogCustomAttributeValue] $custom_attribute_values Application-defined key/value attributes that are set at a global (location-independent) level. Custom Attribute Values are intended to store additional information about a Catalog Object or associations with an entity in another system. Do not use custom attributes to store any sensitive information (personally identifiable information, card details, etc.). For CustomAttributesDefinitions defined by the app making the request, the map key is the key defined in the `CatalogCustomAttributeDefinition` (e.g. “reference_id”). For custom attributes created by other apps, the map key is the key defined in `CatalogCustomAttributeDefinition` prefixed with the application ID and a colon (eg. “abcd1234:reference_id”). - * @return $this - */ - public function setCustomAttributeValues($custom_attribute_values) - { - $this->custom_attribute_values = $custom_attribute_values; - return $this; - } - /** - * Gets catalog_v1_ids - * @return \SquareConnect\Model\CatalogV1Id[] - */ - public function getCatalogV1Ids() - { - return $this->catalog_v1_ids; - } - - /** - * Sets catalog_v1_ids - * @param \SquareConnect\Model\CatalogV1Id[] $catalog_v1_ids The Connect v1 IDs for this object at each location where it is present, where they differ from the object's Connect V2 ID. The field will only be present for objects that have been created or modified by legacy APIs. - * @return $this - */ - public function setCatalogV1Ids($catalog_v1_ids) - { - $this->catalog_v1_ids = $catalog_v1_ids; - return $this; - } - /** - * Gets present_at_all_locations - * @return bool - */ - public function getPresentAtAllLocations() - { - return $this->present_at_all_locations; - } - - /** - * Sets present_at_all_locations - * @param bool $present_at_all_locations If `true`, this object is present at all locations (including future locations), except where specified in the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations), except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`. - * @return $this - */ - public function setPresentAtAllLocations($present_at_all_locations) - { - $this->present_at_all_locations = $present_at_all_locations; - return $this; - } - /** - * Gets present_at_location_ids - * @return string[] - */ - public function getPresentAtLocationIds() - { - return $this->present_at_location_ids; - } - - /** - * Sets present_at_location_ids - * @param string[] $present_at_location_ids A list of locations where the object is present, even if `present_at_all_locations` is `false`. - * @return $this - */ - public function setPresentAtLocationIds($present_at_location_ids) - { - $this->present_at_location_ids = $present_at_location_ids; - return $this; - } - /** - * Gets absent_at_location_ids - * @return string[] - */ - public function getAbsentAtLocationIds() - { - return $this->absent_at_location_ids; - } - - /** - * Sets absent_at_location_ids - * @param string[] $absent_at_location_ids A list of locations where the object is not present, even if `present_at_all_locations` is `true`. - * @return $this - */ - public function setAbsentAtLocationIds($absent_at_location_ids) - { - $this->absent_at_location_ids = $absent_at_location_ids; - return $this; - } - /** - * Gets image_id - * @return string - */ - public function getImageId() - { - return $this->image_id; - } - - /** - * Sets image_id - * @param string $image_id Identifies the `CatalogImage` attached to this `CatalogObject`. - * @return $this - */ - public function setImageId($image_id) - { - $this->image_id = $image_id; - return $this; - } - /** - * Gets item_data - * @return \SquareConnect\Model\CatalogItem - */ - public function getItemData() - { - return $this->item_data; - } - - /** - * Sets item_data - * @param \SquareConnect\Model\CatalogItem $item_data Structured data for a `CatalogItem`, set for CatalogObjects of type `ITEM`. - * @return $this - */ - public function setItemData($item_data) - { - $this->item_data = $item_data; - return $this; - } - /** - * Gets category_data - * @return \SquareConnect\Model\CatalogCategory - */ - public function getCategoryData() - { - return $this->category_data; - } - - /** - * Sets category_data - * @param \SquareConnect\Model\CatalogCategory $category_data Structured data for a `CatalogCategory`, set for CatalogObjects of type `CATEGORY`. - * @return $this - */ - public function setCategoryData($category_data) - { - $this->category_data = $category_data; - return $this; - } - /** - * Gets item_variation_data - * @return \SquareConnect\Model\CatalogItemVariation - */ - public function getItemVariationData() - { - return $this->item_variation_data; - } - - /** - * Sets item_variation_data - * @param \SquareConnect\Model\CatalogItemVariation $item_variation_data Structured data for a `CatalogItemVariation`, set for CatalogObjects of type `ITEM_VARIATION`. - * @return $this - */ - public function setItemVariationData($item_variation_data) - { - $this->item_variation_data = $item_variation_data; - return $this; - } - /** - * Gets tax_data - * @return \SquareConnect\Model\CatalogTax - */ - public function getTaxData() - { - return $this->tax_data; - } - - /** - * Sets tax_data - * @param \SquareConnect\Model\CatalogTax $tax_data Structured data for a `CatalogTax`, set for CatalogObjects of type `TAX`. - * @return $this - */ - public function setTaxData($tax_data) - { - $this->tax_data = $tax_data; - return $this; - } - /** - * Gets discount_data - * @return \SquareConnect\Model\CatalogDiscount - */ - public function getDiscountData() - { - return $this->discount_data; - } - - /** - * Sets discount_data - * @param \SquareConnect\Model\CatalogDiscount $discount_data Structured data for a `CatalogDiscount`, set for CatalogObjects of type `DISCOUNT`. - * @return $this - */ - public function setDiscountData($discount_data) - { - $this->discount_data = $discount_data; - return $this; - } - /** - * Gets modifier_list_data - * @return \SquareConnect\Model\CatalogModifierList - */ - public function getModifierListData() - { - return $this->modifier_list_data; - } - - /** - * Sets modifier_list_data - * @param \SquareConnect\Model\CatalogModifierList $modifier_list_data Structured data for a `CatalogModifierList`, set for CatalogObjects of type `MODIFIER_LIST`. - * @return $this - */ - public function setModifierListData($modifier_list_data) - { - $this->modifier_list_data = $modifier_list_data; - return $this; - } - /** - * Gets modifier_data - * @return \SquareConnect\Model\CatalogModifier - */ - public function getModifierData() - { - return $this->modifier_data; - } - - /** - * Sets modifier_data - * @param \SquareConnect\Model\CatalogModifier $modifier_data Structured data for a `CatalogModifier`, set for CatalogObjects of type `MODIFIER`. - * @return $this - */ - public function setModifierData($modifier_data) - { - $this->modifier_data = $modifier_data; - return $this; - } - /** - * Gets time_period_data - * @return \SquareConnect\Model\CatalogTimePeriod - */ - public function getTimePeriodData() - { - return $this->time_period_data; - } - - /** - * Sets time_period_data - * @param \SquareConnect\Model\CatalogTimePeriod $time_period_data Structured data for a `CatalogTimePeriod`, set for CatalogObjects of type `TIME_PERIOD`. - * @return $this - */ - public function setTimePeriodData($time_period_data) - { - $this->time_period_data = $time_period_data; - return $this; - } - /** - * Gets product_set_data - * @return \SquareConnect\Model\CatalogProductSet - */ - public function getProductSetData() - { - return $this->product_set_data; - } - - /** - * Sets product_set_data - * @param \SquareConnect\Model\CatalogProductSet $product_set_data Structured data for a `CatalogProductSet`, set for CatalogObjects of type `PRODUCT_SET`. - * @return $this - */ - public function setProductSetData($product_set_data) - { - $this->product_set_data = $product_set_data; - return $this; - } - /** - * Gets pricing_rule_data - * @return \SquareConnect\Model\CatalogPricingRule - */ - public function getPricingRuleData() - { - return $this->pricing_rule_data; - } - - /** - * Sets pricing_rule_data - * @param \SquareConnect\Model\CatalogPricingRule $pricing_rule_data Structured data for a `CatalogPricingRule`, set for CatalogObjects of type `PRICING_RULE`. - * @return $this - */ - public function setPricingRuleData($pricing_rule_data) - { - $this->pricing_rule_data = $pricing_rule_data; - return $this; - } - /** - * Gets image_data - * @return \SquareConnect\Model\CatalogImage - */ - public function getImageData() - { - return $this->image_data; - } - - /** - * Sets image_data - * @param \SquareConnect\Model\CatalogImage $image_data Structured data for a `CatalogImage`, set for CatalogObjects of type `IMAGE`. - * @return $this - */ - public function setImageData($image_data) - { - $this->image_data = $image_data; - return $this; - } - /** - * Gets measurement_unit_data - * @return \SquareConnect\Model\CatalogMeasurementUnit - */ - public function getMeasurementUnitData() - { - return $this->measurement_unit_data; - } - - /** - * Sets measurement_unit_data - * @param \SquareConnect\Model\CatalogMeasurementUnit $measurement_unit_data Structured data for a `CatalogMeasurementUnit`, set for CatalogObjects of type `MEASUREMENT_UNIT`. - * @return $this - */ - public function setMeasurementUnitData($measurement_unit_data) - { - $this->measurement_unit_data = $measurement_unit_data; - return $this; - } - /** - * Gets item_option_data - * @return \SquareConnect\Model\CatalogItemOption - */ - public function getItemOptionData() - { - return $this->item_option_data; - } - - /** - * Sets item_option_data - * @param \SquareConnect\Model\CatalogItemOption $item_option_data Structured data for a `CatalogItemOption`, set for CatalogObjects of type `ITEM_OPTION`. - * @return $this - */ - public function setItemOptionData($item_option_data) - { - $this->item_option_data = $item_option_data; - return $this; - } - /** - * Gets item_option_value_data - * @return \SquareConnect\Model\CatalogItemOptionValue - */ - public function getItemOptionValueData() - { - return $this->item_option_value_data; - } - - /** - * Sets item_option_value_data - * @param \SquareConnect\Model\CatalogItemOptionValue $item_option_value_data Structured data for a `CatalogItemOptionValue`, set for CatalogObjects of type `ITEM_OPTION_VAL`. - * @return $this - */ - public function setItemOptionValueData($item_option_value_data) - { - $this->item_option_value_data = $item_option_value_data; - return $this; - } - /** - * Gets custom_attribute_definition_data - * @return \SquareConnect\Model\CatalogCustomAttributeDefinition - */ - public function getCustomAttributeDefinitionData() - { - return $this->custom_attribute_definition_data; - } - - /** - * Sets custom_attribute_definition_data - * @param \SquareConnect\Model\CatalogCustomAttributeDefinition $custom_attribute_definition_data Structured data for a `CatalogCustomAttributeDefinition`, set for CatalogObjects of type `CUSTOM_ATTRIBUTE_DEFINITION`. - * @return $this - */ - public function setCustomAttributeDefinitionData($custom_attribute_definition_data) - { - $this->custom_attribute_definition_data = $custom_attribute_definition_data; - return $this; - } - /** - * Gets quick_amounts_settings_data - * @return \SquareConnect\Model\CatalogQuickAmountsSettings - */ - public function getQuickAmountsSettingsData() - { - return $this->quick_amounts_settings_data; - } - - /** - * Sets quick_amounts_settings_data - * @param \SquareConnect\Model\CatalogQuickAmountsSettings $quick_amounts_settings_data Structured data for a `CatalogQuickAmountsSettings`, set for CatalogObjects of type `QUICK_AMOUNTS_SETTINGS`. - * @return $this - */ - public function setQuickAmountsSettingsData($quick_amounts_settings_data) - { - $this->quick_amounts_settings_data = $quick_amounts_settings_data; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogObjectBatch.php b/includes/classes/vendors/square/connect/lib/Model/CatalogObjectBatch.php deleted file mode 100644 index 0b47f85b53..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogObjectBatch.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\CatalogObject[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'objects' => 'objects' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'objects' => 'setObjects' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'objects' => 'getObjects' - ); - - /** - * $objects A list of CatalogObjects belonging to this batch. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $objects; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["objects"])) { - $this->objects = $data["objects"]; - } else { - $this->objects = null; - } - } - } - /** - * Gets objects - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getObjects() - { - return $this->objects; - } - - /** - * Sets objects - * @param \SquareConnect\Model\CatalogObject[] $objects A list of CatalogObjects belonging to this batch. - * @return $this - */ - public function setObjects($objects) - { - $this->objects = $objects; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogObjectType.php b/includes/classes/vendors/square/connect/lib/Model/CatalogObjectType.php deleted file mode 100644 index 68283e872e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogObjectType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogPricingRule.php b/includes/classes/vendors/square/connect/lib/Model/CatalogPricingRule.php deleted file mode 100644 index 82c7913eee..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogPricingRule.php +++ /dev/null @@ -1,477 +0,0 @@ - 'string', - 'time_period_ids' => 'string[]', - 'discount_id' => 'string', - 'match_products_id' => 'string', - 'apply_products_id' => 'string', - 'exclude_products_id' => 'string', - 'valid_from_date' => 'string', - 'valid_from_local_time' => 'string', - 'valid_until_date' => 'string', - 'valid_until_local_time' => 'string', - 'exclude_strategy' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'time_period_ids' => 'time_period_ids', - 'discount_id' => 'discount_id', - 'match_products_id' => 'match_products_id', - 'apply_products_id' => 'apply_products_id', - 'exclude_products_id' => 'exclude_products_id', - 'valid_from_date' => 'valid_from_date', - 'valid_from_local_time' => 'valid_from_local_time', - 'valid_until_date' => 'valid_until_date', - 'valid_until_local_time' => 'valid_until_local_time', - 'exclude_strategy' => 'exclude_strategy' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'time_period_ids' => 'setTimePeriodIds', - 'discount_id' => 'setDiscountId', - 'match_products_id' => 'setMatchProductsId', - 'apply_products_id' => 'setApplyProductsId', - 'exclude_products_id' => 'setExcludeProductsId', - 'valid_from_date' => 'setValidFromDate', - 'valid_from_local_time' => 'setValidFromLocalTime', - 'valid_until_date' => 'setValidUntilDate', - 'valid_until_local_time' => 'setValidUntilLocalTime', - 'exclude_strategy' => 'setExcludeStrategy' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'time_period_ids' => 'getTimePeriodIds', - 'discount_id' => 'getDiscountId', - 'match_products_id' => 'getMatchProductsId', - 'apply_products_id' => 'getApplyProductsId', - 'exclude_products_id' => 'getExcludeProductsId', - 'valid_from_date' => 'getValidFromDate', - 'valid_from_local_time' => 'getValidFromLocalTime', - 'valid_until_date' => 'getValidUntilDate', - 'valid_until_local_time' => 'getValidUntilLocalTime', - 'exclude_strategy' => 'getExcludeStrategy' - ); - - /** - * $name User-defined name for the pricing rule. For example, \"Buy one get one free\" or \"10% off\". - * @var string - */ - protected $name; - /** - * $time_period_ids A list of unique IDs for the catalog time periods when this pricing rule is in effect. If left unset, the pricing rule is always in effect. - * @var string[] - */ - protected $time_period_ids; - /** - * $discount_id Unique ID for the `CatalogDiscount` to take off the price of all matched items. - * @var string - */ - protected $discount_id; - /** - * $match_products_id Unique ID for the `CatalogProductSet` that will be matched by this rule. A match rule matches within the entire cart. A match rule can match multiple times in the cart. If no `ProductSet` is present, the rule will match all products. - * @var string - */ - protected $match_products_id; - /** - * $apply_products_id __Deprecated__: Please use the `exclude_products_id` field to apply an exclude set instead. Exclude sets allow better control over quantity ranges and offer more flexibility for which matched items receive a discount. `CatalogProductSet` to apply the pricing to. An apply rule matches within the subset of the cart that fits the match rules (the match set). An apply rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. - * @var string - */ - protected $apply_products_id; - /** - * $exclude_products_id `CatalogProductSet` to exclude from the pricing rule. An exclude rule matches within the subset of the cart that fits the match rules (the match set). An exclude rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. - * @var string - */ - protected $exclude_products_id; - /** - * $valid_from_date Represents the date the Pricing Rule is valid from. Represented in RFC3339 full-date format (YYYY-MM-DD). - * @var string - */ - protected $valid_from_date; - /** - * $valid_from_local_time Represents the local time the pricing rule should be valid from. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. - * @var string - */ - protected $valid_from_local_time; - /** - * $valid_until_date Represents the date the Pricing Rule is valid until. Represented in RFC3339 full-date format (YYYY-MM-DD). - * @var string - */ - protected $valid_until_date; - /** - * $valid_until_local_time Represents the local time the pricing rule should be valid until. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. - * @var string - */ - protected $valid_until_local_time; - /** - * $exclude_strategy If an `exclude_products_id` was given, controls which subset of matched products is excluded from any discounts. Default value: `LEAST_EXPENSIVE` See [ExcludeStrategy](#type-excludestrategy) for possible values - * @var string - */ - protected $exclude_strategy; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["time_period_ids"])) { - $this->time_period_ids = $data["time_period_ids"]; - } else { - $this->time_period_ids = null; - } - if (isset($data["discount_id"])) { - $this->discount_id = $data["discount_id"]; - } else { - $this->discount_id = null; - } - if (isset($data["match_products_id"])) { - $this->match_products_id = $data["match_products_id"]; - } else { - $this->match_products_id = null; - } - if (isset($data["apply_products_id"])) { - $this->apply_products_id = $data["apply_products_id"]; - } else { - $this->apply_products_id = null; - } - if (isset($data["exclude_products_id"])) { - $this->exclude_products_id = $data["exclude_products_id"]; - } else { - $this->exclude_products_id = null; - } - if (isset($data["valid_from_date"])) { - $this->valid_from_date = $data["valid_from_date"]; - } else { - $this->valid_from_date = null; - } - if (isset($data["valid_from_local_time"])) { - $this->valid_from_local_time = $data["valid_from_local_time"]; - } else { - $this->valid_from_local_time = null; - } - if (isset($data["valid_until_date"])) { - $this->valid_until_date = $data["valid_until_date"]; - } else { - $this->valid_until_date = null; - } - if (isset($data["valid_until_local_time"])) { - $this->valid_until_local_time = $data["valid_until_local_time"]; - } else { - $this->valid_until_local_time = null; - } - if (isset($data["exclude_strategy"])) { - $this->exclude_strategy = $data["exclude_strategy"]; - } else { - $this->exclude_strategy = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name User-defined name for the pricing rule. For example, \"Buy one get one free\" or \"10% off\". - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets time_period_ids - * @return string[] - */ - public function getTimePeriodIds() - { - return $this->time_period_ids; - } - - /** - * Sets time_period_ids - * @param string[] $time_period_ids A list of unique IDs for the catalog time periods when this pricing rule is in effect. If left unset, the pricing rule is always in effect. - * @return $this - */ - public function setTimePeriodIds($time_period_ids) - { - $this->time_period_ids = $time_period_ids; - return $this; - } - /** - * Gets discount_id - * @return string - */ - public function getDiscountId() - { - return $this->discount_id; - } - - /** - * Sets discount_id - * @param string $discount_id Unique ID for the `CatalogDiscount` to take off the price of all matched items. - * @return $this - */ - public function setDiscountId($discount_id) - { - $this->discount_id = $discount_id; - return $this; - } - /** - * Gets match_products_id - * @return string - */ - public function getMatchProductsId() - { - return $this->match_products_id; - } - - /** - * Sets match_products_id - * @param string $match_products_id Unique ID for the `CatalogProductSet` that will be matched by this rule. A match rule matches within the entire cart. A match rule can match multiple times in the cart. If no `ProductSet` is present, the rule will match all products. - * @return $this - */ - public function setMatchProductsId($match_products_id) - { - $this->match_products_id = $match_products_id; - return $this; - } - /** - * Gets apply_products_id - * @return string - */ - public function getApplyProductsId() - { - return $this->apply_products_id; - } - - /** - * Sets apply_products_id - * @param string $apply_products_id __Deprecated__: Please use the `exclude_products_id` field to apply an exclude set instead. Exclude sets allow better control over quantity ranges and offer more flexibility for which matched items receive a discount. `CatalogProductSet` to apply the pricing to. An apply rule matches within the subset of the cart that fits the match rules (the match set). An apply rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. - * @return $this - */ - public function setApplyProductsId($apply_products_id) - { - $this->apply_products_id = $apply_products_id; - return $this; - } - /** - * Gets exclude_products_id - * @return string - */ - public function getExcludeProductsId() - { - return $this->exclude_products_id; - } - - /** - * Sets exclude_products_id - * @param string $exclude_products_id `CatalogProductSet` to exclude from the pricing rule. An exclude rule matches within the subset of the cart that fits the match rules (the match set). An exclude rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. - * @return $this - */ - public function setExcludeProductsId($exclude_products_id) - { - $this->exclude_products_id = $exclude_products_id; - return $this; - } - /** - * Gets valid_from_date - * @return string - */ - public function getValidFromDate() - { - return $this->valid_from_date; - } - - /** - * Sets valid_from_date - * @param string $valid_from_date Represents the date the Pricing Rule is valid from. Represented in RFC3339 full-date format (YYYY-MM-DD). - * @return $this - */ - public function setValidFromDate($valid_from_date) - { - $this->valid_from_date = $valid_from_date; - return $this; - } - /** - * Gets valid_from_local_time - * @return string - */ - public function getValidFromLocalTime() - { - return $this->valid_from_local_time; - } - - /** - * Sets valid_from_local_time - * @param string $valid_from_local_time Represents the local time the pricing rule should be valid from. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. - * @return $this - */ - public function setValidFromLocalTime($valid_from_local_time) - { - $this->valid_from_local_time = $valid_from_local_time; - return $this; - } - /** - * Gets valid_until_date - * @return string - */ - public function getValidUntilDate() - { - return $this->valid_until_date; - } - - /** - * Sets valid_until_date - * @param string $valid_until_date Represents the date the Pricing Rule is valid until. Represented in RFC3339 full-date format (YYYY-MM-DD). - * @return $this - */ - public function setValidUntilDate($valid_until_date) - { - $this->valid_until_date = $valid_until_date; - return $this; - } - /** - * Gets valid_until_local_time - * @return string - */ - public function getValidUntilLocalTime() - { - return $this->valid_until_local_time; - } - - /** - * Sets valid_until_local_time - * @param string $valid_until_local_time Represents the local time the pricing rule should be valid until. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. - * @return $this - */ - public function setValidUntilLocalTime($valid_until_local_time) - { - $this->valid_until_local_time = $valid_until_local_time; - return $this; - } - /** - * Gets exclude_strategy - * @return string - */ - public function getExcludeStrategy() - { - return $this->exclude_strategy; - } - - /** - * Sets exclude_strategy - * @param string $exclude_strategy If an `exclude_products_id` was given, controls which subset of matched products is excluded from any discounts. Default value: `LEAST_EXPENSIVE` See [ExcludeStrategy](#type-excludestrategy) for possible values - * @return $this - */ - public function setExcludeStrategy($exclude_strategy) - { - $this->exclude_strategy = $exclude_strategy; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogPricingType.php b/includes/classes/vendors/square/connect/lib/Model/CatalogPricingType.php deleted file mode 100644 index c7d1784429..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogPricingType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogProductSet.php b/includes/classes/vendors/square/connect/lib/Model/CatalogProductSet.php deleted file mode 100644 index 1a6b2181e2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogProductSet.php +++ /dev/null @@ -1,345 +0,0 @@ - 'string', - 'product_ids_any' => 'string[]', - 'product_ids_all' => 'string[]', - 'quantity_exact' => 'int', - 'quantity_min' => 'int', - 'quantity_max' => 'int', - 'all_products' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'product_ids_any' => 'product_ids_any', - 'product_ids_all' => 'product_ids_all', - 'quantity_exact' => 'quantity_exact', - 'quantity_min' => 'quantity_min', - 'quantity_max' => 'quantity_max', - 'all_products' => 'all_products' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'product_ids_any' => 'setProductIdsAny', - 'product_ids_all' => 'setProductIdsAll', - 'quantity_exact' => 'setQuantityExact', - 'quantity_min' => 'setQuantityMin', - 'quantity_max' => 'setQuantityMax', - 'all_products' => 'setAllProducts' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'product_ids_any' => 'getProductIdsAny', - 'product_ids_all' => 'getProductIdsAll', - 'quantity_exact' => 'getQuantityExact', - 'quantity_min' => 'getQuantityMin', - 'quantity_max' => 'getQuantityMax', - 'all_products' => 'getAllProducts' - ); - - /** - * $name User-defined name for the product set. For example, \"Clearance Items\" or \"Winter Sale Items\". - * @var string - */ - protected $name; - /** - * $product_ids_any Unique IDs for any `CatalogObject` included in this product set. Any number of these catalog objects can be in an order for a pricing rule to apply. This can be used with `product_ids_all` in a parent `CatalogProductSet` to match groups of products for a bulk discount, such as a discount for an entree and side combo. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs. - * @var string[] - */ - protected $product_ids_any; - /** - * $product_ids_all Unique IDs for any `CatalogObject` included in this product set. All objects in this set must be included in an order for a pricing rule to apply. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs. - * @var string[] - */ - protected $product_ids_all; - /** - * $quantity_exact If set, there must be exactly this many items from `products_any` or `products_all` in the cart for the discount to apply. Cannot be combined with either `quantity_min` or `quantity_max`. - * @var int - */ - protected $quantity_exact; - /** - * $quantity_min If set, there must be at least this many items from `products_any` or `products_all` in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if `quantity_exact`, `quantity_min` and `quantity_max` are all unspecified. - * @var int - */ - protected $quantity_min; - /** - * $quantity_max If set, the pricing rule will apply to a maximum of this many items from `products_any` or `products_all`. - * @var int - */ - protected $quantity_max; - /** - * $all_products If set to `true`, the product set will include every item in the catalog. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. - * @var bool - */ - protected $all_products; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["product_ids_any"])) { - $this->product_ids_any = $data["product_ids_any"]; - } else { - $this->product_ids_any = null; - } - if (isset($data["product_ids_all"])) { - $this->product_ids_all = $data["product_ids_all"]; - } else { - $this->product_ids_all = null; - } - if (isset($data["quantity_exact"])) { - $this->quantity_exact = $data["quantity_exact"]; - } else { - $this->quantity_exact = null; - } - if (isset($data["quantity_min"])) { - $this->quantity_min = $data["quantity_min"]; - } else { - $this->quantity_min = null; - } - if (isset($data["quantity_max"])) { - $this->quantity_max = $data["quantity_max"]; - } else { - $this->quantity_max = null; - } - if (isset($data["all_products"])) { - $this->all_products = $data["all_products"]; - } else { - $this->all_products = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name User-defined name for the product set. For example, \"Clearance Items\" or \"Winter Sale Items\". - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets product_ids_any - * @return string[] - */ - public function getProductIdsAny() - { - return $this->product_ids_any; - } - - /** - * Sets product_ids_any - * @param string[] $product_ids_any Unique IDs for any `CatalogObject` included in this product set. Any number of these catalog objects can be in an order for a pricing rule to apply. This can be used with `product_ids_all` in a parent `CatalogProductSet` to match groups of products for a bulk discount, such as a discount for an entree and side combo. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs. - * @return $this - */ - public function setProductIdsAny($product_ids_any) - { - $this->product_ids_any = $product_ids_any; - return $this; - } - /** - * Gets product_ids_all - * @return string[] - */ - public function getProductIdsAll() - { - return $this->product_ids_all; - } - - /** - * Sets product_ids_all - * @param string[] $product_ids_all Unique IDs for any `CatalogObject` included in this product set. All objects in this set must be included in an order for a pricing rule to apply. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs. - * @return $this - */ - public function setProductIdsAll($product_ids_all) - { - $this->product_ids_all = $product_ids_all; - return $this; - } - /** - * Gets quantity_exact - * @return int - */ - public function getQuantityExact() - { - return $this->quantity_exact; - } - - /** - * Sets quantity_exact - * @param int $quantity_exact If set, there must be exactly this many items from `products_any` or `products_all` in the cart for the discount to apply. Cannot be combined with either `quantity_min` or `quantity_max`. - * @return $this - */ - public function setQuantityExact($quantity_exact) - { - $this->quantity_exact = $quantity_exact; - return $this; - } - /** - * Gets quantity_min - * @return int - */ - public function getQuantityMin() - { - return $this->quantity_min; - } - - /** - * Sets quantity_min - * @param int $quantity_min If set, there must be at least this many items from `products_any` or `products_all` in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if `quantity_exact`, `quantity_min` and `quantity_max` are all unspecified. - * @return $this - */ - public function setQuantityMin($quantity_min) - { - $this->quantity_min = $quantity_min; - return $this; - } - /** - * Gets quantity_max - * @return int - */ - public function getQuantityMax() - { - return $this->quantity_max; - } - - /** - * Sets quantity_max - * @param int $quantity_max If set, the pricing rule will apply to a maximum of this many items from `products_any` or `products_all`. - * @return $this - */ - public function setQuantityMax($quantity_max) - { - $this->quantity_max = $quantity_max; - return $this; - } - /** - * Gets all_products - * @return bool - */ - public function getAllProducts() - { - return $this->all_products; - } - - /** - * Sets all_products - * @param bool $all_products If set to `true`, the product set will include every item in the catalog. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. - * @return $this - */ - public function setAllProducts($all_products) - { - $this->all_products = $all_products; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQuery.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQuery.php deleted file mode 100644 index 589dfeb5cc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQuery.php +++ /dev/null @@ -1,410 +0,0 @@ - '\SquareConnect\Model\CatalogQuerySortedAttribute', - 'exact_query' => '\SquareConnect\Model\CatalogQueryExact', - 'prefix_query' => '\SquareConnect\Model\CatalogQueryPrefix', - 'range_query' => '\SquareConnect\Model\CatalogQueryRange', - 'text_query' => '\SquareConnect\Model\CatalogQueryText', - 'items_for_tax_query' => '\SquareConnect\Model\CatalogQueryItemsForTax', - 'items_for_modifier_list_query' => '\SquareConnect\Model\CatalogQueryItemsForModifierList', - 'items_for_item_options_query' => '\SquareConnect\Model\CatalogQueryItemsForItemOptions', - 'item_variations_for_item_option_values_query' => '\SquareConnect\Model\CatalogQueryItemVariationsForItemOptionValues' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'sorted_attribute_query' => 'sorted_attribute_query', - 'exact_query' => 'exact_query', - 'prefix_query' => 'prefix_query', - 'range_query' => 'range_query', - 'text_query' => 'text_query', - 'items_for_tax_query' => 'items_for_tax_query', - 'items_for_modifier_list_query' => 'items_for_modifier_list_query', - 'items_for_item_options_query' => 'items_for_item_options_query', - 'item_variations_for_item_option_values_query' => 'item_variations_for_item_option_values_query' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'sorted_attribute_query' => 'setSortedAttributeQuery', - 'exact_query' => 'setExactQuery', - 'prefix_query' => 'setPrefixQuery', - 'range_query' => 'setRangeQuery', - 'text_query' => 'setTextQuery', - 'items_for_tax_query' => 'setItemsForTaxQuery', - 'items_for_modifier_list_query' => 'setItemsForModifierListQuery', - 'items_for_item_options_query' => 'setItemsForItemOptionsQuery', - 'item_variations_for_item_option_values_query' => 'setItemVariationsForItemOptionValuesQuery' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'sorted_attribute_query' => 'getSortedAttributeQuery', - 'exact_query' => 'getExactQuery', - 'prefix_query' => 'getPrefixQuery', - 'range_query' => 'getRangeQuery', - 'text_query' => 'getTextQuery', - 'items_for_tax_query' => 'getItemsForTaxQuery', - 'items_for_modifier_list_query' => 'getItemsForModifierListQuery', - 'items_for_item_options_query' => 'getItemsForItemOptionsQuery', - 'item_variations_for_item_option_values_query' => 'getItemVariationsForItemOptionValuesQuery' - ); - - /** - * $sorted_attribute_query A query that returns all objects, sorted by the given attribute. - * @var \SquareConnect\Model\CatalogQuerySortedAttribute - */ - protected $sorted_attribute_query; - /** - * $exact_query A query that returns only objects for which the given (string-valued) attribute has the given case-insensitive value. - * @var \SquareConnect\Model\CatalogQueryExact - */ - protected $exact_query; - /** - * $prefix_query A query that returns only objects for which the given (string-valued) attribute has the given case-insensitive prefix. - * @var \SquareConnect\Model\CatalogQueryPrefix - */ - protected $prefix_query; - /** - * $range_query A query that returns only objects for which the given (integer-valued) attribute lies in the given range. - * @var \SquareConnect\Model\CatalogQueryRange - */ - protected $range_query; - /** - * $text_query A query that returns only objects whose searchable attributes contain all of the given keywords as prefixes. For example, if a `CatalogItem` contains attributes `{\"name\": \"t-shirt\"}` and `{\"description\": \"Small, Purple\"}`, it will be matched by the query `{\"keywords\": [\"shirt\", \"sma\", \"purp\"]}`. - * @var \SquareConnect\Model\CatalogQueryText - */ - protected $text_query; - /** - * $items_for_tax_query A query that returns all `CatalogItem`s that have any of the given `CatalogTax`es enabled. - * @var \SquareConnect\Model\CatalogQueryItemsForTax - */ - protected $items_for_tax_query; - /** - * $items_for_modifier_list_query A query that returns all `CatalogItem`s that have any of the given `CatalogModifierList`s enabled. - * @var \SquareConnect\Model\CatalogQueryItemsForModifierList - */ - protected $items_for_modifier_list_query; - /** - * $items_for_item_options_query A query that returns all `CatalogItem`s that have all of the given `CatalogItemOption`s. - * @var \SquareConnect\Model\CatalogQueryItemsForItemOptions - */ - protected $items_for_item_options_query; - /** - * $item_variations_for_item_option_values_query A query that returns all `CatalogItemVariation`s that have all of the given `CatalogItemOption` values. - * @var \SquareConnect\Model\CatalogQueryItemVariationsForItemOptionValues - */ - protected $item_variations_for_item_option_values_query; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["sorted_attribute_query"])) { - $this->sorted_attribute_query = $data["sorted_attribute_query"]; - } else { - $this->sorted_attribute_query = null; - } - if (isset($data["exact_query"])) { - $this->exact_query = $data["exact_query"]; - } else { - $this->exact_query = null; - } - if (isset($data["prefix_query"])) { - $this->prefix_query = $data["prefix_query"]; - } else { - $this->prefix_query = null; - } - if (isset($data["range_query"])) { - $this->range_query = $data["range_query"]; - } else { - $this->range_query = null; - } - if (isset($data["text_query"])) { - $this->text_query = $data["text_query"]; - } else { - $this->text_query = null; - } - if (isset($data["items_for_tax_query"])) { - $this->items_for_tax_query = $data["items_for_tax_query"]; - } else { - $this->items_for_tax_query = null; - } - if (isset($data["items_for_modifier_list_query"])) { - $this->items_for_modifier_list_query = $data["items_for_modifier_list_query"]; - } else { - $this->items_for_modifier_list_query = null; - } - if (isset($data["items_for_item_options_query"])) { - $this->items_for_item_options_query = $data["items_for_item_options_query"]; - } else { - $this->items_for_item_options_query = null; - } - if (isset($data["item_variations_for_item_option_values_query"])) { - $this->item_variations_for_item_option_values_query = $data["item_variations_for_item_option_values_query"]; - } else { - $this->item_variations_for_item_option_values_query = null; - } - } - } - /** - * Gets sorted_attribute_query - * @return \SquareConnect\Model\CatalogQuerySortedAttribute - */ - public function getSortedAttributeQuery() - { - return $this->sorted_attribute_query; - } - - /** - * Sets sorted_attribute_query - * @param \SquareConnect\Model\CatalogQuerySortedAttribute $sorted_attribute_query A query that returns all objects, sorted by the given attribute. - * @return $this - */ - public function setSortedAttributeQuery($sorted_attribute_query) - { - $this->sorted_attribute_query = $sorted_attribute_query; - return $this; - } - /** - * Gets exact_query - * @return \SquareConnect\Model\CatalogQueryExact - */ - public function getExactQuery() - { - return $this->exact_query; - } - - /** - * Sets exact_query - * @param \SquareConnect\Model\CatalogQueryExact $exact_query A query that returns only objects for which the given (string-valued) attribute has the given case-insensitive value. - * @return $this - */ - public function setExactQuery($exact_query) - { - $this->exact_query = $exact_query; - return $this; - } - /** - * Gets prefix_query - * @return \SquareConnect\Model\CatalogQueryPrefix - */ - public function getPrefixQuery() - { - return $this->prefix_query; - } - - /** - * Sets prefix_query - * @param \SquareConnect\Model\CatalogQueryPrefix $prefix_query A query that returns only objects for which the given (string-valued) attribute has the given case-insensitive prefix. - * @return $this - */ - public function setPrefixQuery($prefix_query) - { - $this->prefix_query = $prefix_query; - return $this; - } - /** - * Gets range_query - * @return \SquareConnect\Model\CatalogQueryRange - */ - public function getRangeQuery() - { - return $this->range_query; - } - - /** - * Sets range_query - * @param \SquareConnect\Model\CatalogQueryRange $range_query A query that returns only objects for which the given (integer-valued) attribute lies in the given range. - * @return $this - */ - public function setRangeQuery($range_query) - { - $this->range_query = $range_query; - return $this; - } - /** - * Gets text_query - * @return \SquareConnect\Model\CatalogQueryText - */ - public function getTextQuery() - { - return $this->text_query; - } - - /** - * Sets text_query - * @param \SquareConnect\Model\CatalogQueryText $text_query A query that returns only objects whose searchable attributes contain all of the given keywords as prefixes. For example, if a `CatalogItem` contains attributes `{\"name\": \"t-shirt\"}` and `{\"description\": \"Small, Purple\"}`, it will be matched by the query `{\"keywords\": [\"shirt\", \"sma\", \"purp\"]}`. - * @return $this - */ - public function setTextQuery($text_query) - { - $this->text_query = $text_query; - return $this; - } - /** - * Gets items_for_tax_query - * @return \SquareConnect\Model\CatalogQueryItemsForTax - */ - public function getItemsForTaxQuery() - { - return $this->items_for_tax_query; - } - - /** - * Sets items_for_tax_query - * @param \SquareConnect\Model\CatalogQueryItemsForTax $items_for_tax_query A query that returns all `CatalogItem`s that have any of the given `CatalogTax`es enabled. - * @return $this - */ - public function setItemsForTaxQuery($items_for_tax_query) - { - $this->items_for_tax_query = $items_for_tax_query; - return $this; - } - /** - * Gets items_for_modifier_list_query - * @return \SquareConnect\Model\CatalogQueryItemsForModifierList - */ - public function getItemsForModifierListQuery() - { - return $this->items_for_modifier_list_query; - } - - /** - * Sets items_for_modifier_list_query - * @param \SquareConnect\Model\CatalogQueryItemsForModifierList $items_for_modifier_list_query A query that returns all `CatalogItem`s that have any of the given `CatalogModifierList`s enabled. - * @return $this - */ - public function setItemsForModifierListQuery($items_for_modifier_list_query) - { - $this->items_for_modifier_list_query = $items_for_modifier_list_query; - return $this; - } - /** - * Gets items_for_item_options_query - * @return \SquareConnect\Model\CatalogQueryItemsForItemOptions - */ - public function getItemsForItemOptionsQuery() - { - return $this->items_for_item_options_query; - } - - /** - * Sets items_for_item_options_query - * @param \SquareConnect\Model\CatalogQueryItemsForItemOptions $items_for_item_options_query A query that returns all `CatalogItem`s that have all of the given `CatalogItemOption`s. - * @return $this - */ - public function setItemsForItemOptionsQuery($items_for_item_options_query) - { - $this->items_for_item_options_query = $items_for_item_options_query; - return $this; - } - /** - * Gets item_variations_for_item_option_values_query - * @return \SquareConnect\Model\CatalogQueryItemVariationsForItemOptionValues - */ - public function getItemVariationsForItemOptionValuesQuery() - { - return $this->item_variations_for_item_option_values_query; - } - - /** - * Sets item_variations_for_item_option_values_query - * @param \SquareConnect\Model\CatalogQueryItemVariationsForItemOptionValues $item_variations_for_item_option_values_query A query that returns all `CatalogItemVariation`s that have all of the given `CatalogItemOption` values. - * @return $this - */ - public function setItemVariationsForItemOptionValuesQuery($item_variations_for_item_option_values_query) - { - $this->item_variations_for_item_option_values_query = $item_variations_for_item_option_values_query; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryCustomAttributeUsage.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryCustomAttributeUsage.php deleted file mode 100644 index 4cbb81132e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryCustomAttributeUsage.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string[]', - 'has_value' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'custom_attribute_definition_ids' => 'custom_attribute_definition_ids', - 'has_value' => 'has_value' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'custom_attribute_definition_ids' => 'setCustomAttributeDefinitionIds', - 'has_value' => 'setHasValue' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'custom_attribute_definition_ids' => 'getCustomAttributeDefinitionIds', - 'has_value' => 'getHasValue' - ); - - /** - * $custom_attribute_definition_ids - * @var string[] - */ - protected $custom_attribute_definition_ids; - /** - * $has_value - * @var bool - */ - protected $has_value; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["custom_attribute_definition_ids"])) { - $this->custom_attribute_definition_ids = $data["custom_attribute_definition_ids"]; - } else { - $this->custom_attribute_definition_ids = null; - } - if (isset($data["has_value"])) { - $this->has_value = $data["has_value"]; - } else { - $this->has_value = null; - } - } - } - /** - * Gets custom_attribute_definition_ids - * @return string[] - */ - public function getCustomAttributeDefinitionIds() - { - return $this->custom_attribute_definition_ids; - } - - /** - * Sets custom_attribute_definition_ids - * @param string[] $custom_attribute_definition_ids - * @return $this - */ - public function setCustomAttributeDefinitionIds($custom_attribute_definition_ids) - { - $this->custom_attribute_definition_ids = $custom_attribute_definition_ids; - return $this; - } - /** - * Gets has_value - * @return bool - */ - public function getHasValue() - { - return $this->has_value; - } - - /** - * Sets has_value - * @param bool $has_value - * @return $this - */ - public function setHasValue($has_value) - { - $this->has_value = $has_value; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryExact.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryExact.php deleted file mode 100644 index 7246dd2ea5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryExact.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'attribute_value' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'attribute_name' => 'attribute_name', - 'attribute_value' => 'attribute_value' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'attribute_name' => 'setAttributeName', - 'attribute_value' => 'setAttributeValue' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'attribute_name' => 'getAttributeName', - 'attribute_value' => 'getAttributeValue' - ); - - /** - * $attribute_name The name of the attribute to be searched. - * @var string - */ - protected $attribute_name; - /** - * $attribute_value The desired value of the search attribute. - * @var string - */ - protected $attribute_value; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["attribute_name"])) { - $this->attribute_name = $data["attribute_name"]; - } else { - $this->attribute_name = null; - } - if (isset($data["attribute_value"])) { - $this->attribute_value = $data["attribute_value"]; - } else { - $this->attribute_value = null; - } - } - } - /** - * Gets attribute_name - * @return string - */ - public function getAttributeName() - { - return $this->attribute_name; - } - - /** - * Sets attribute_name - * @param string $attribute_name The name of the attribute to be searched. - * @return $this - */ - public function setAttributeName($attribute_name) - { - $this->attribute_name = $attribute_name; - return $this; - } - /** - * Gets attribute_value - * @return string - */ - public function getAttributeValue() - { - return $this->attribute_value; - } - - /** - * Sets attribute_value - * @param string $attribute_value The desired value of the search attribute. - * @return $this - */ - public function setAttributeValue($attribute_value) - { - $this->attribute_value = $attribute_value; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItems.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItems.php deleted file mode 100644 index 6d89b0c466..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItems.php +++ /dev/null @@ -1,443 +0,0 @@ - 'string', - 'search_vendor_code' => 'bool', - 'category_ids' => 'string[]', - 'stock_levels' => 'string[]', - 'enabled_location_ids' => 'string[]', - 'vendor_ids' => 'string[]', - 'product_types' => 'string[]', - 'custom_attribute_filters' => '\SquareConnect\Model\CatalogQueryFilteredItemsCustomAttributeFilter[]', - 'does_not_exist' => 'string[]', - 'sort_order' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'text_filter' => 'text_filter', - 'search_vendor_code' => 'search_vendor_code', - 'category_ids' => 'category_ids', - 'stock_levels' => 'stock_levels', - 'enabled_location_ids' => 'enabled_location_ids', - 'vendor_ids' => 'vendor_ids', - 'product_types' => 'product_types', - 'custom_attribute_filters' => 'custom_attribute_filters', - 'does_not_exist' => 'does_not_exist', - 'sort_order' => 'sort_order' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'text_filter' => 'setTextFilter', - 'search_vendor_code' => 'setSearchVendorCode', - 'category_ids' => 'setCategoryIds', - 'stock_levels' => 'setStockLevels', - 'enabled_location_ids' => 'setEnabledLocationIds', - 'vendor_ids' => 'setVendorIds', - 'product_types' => 'setProductTypes', - 'custom_attribute_filters' => 'setCustomAttributeFilters', - 'does_not_exist' => 'setDoesNotExist', - 'sort_order' => 'setSortOrder' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'text_filter' => 'getTextFilter', - 'search_vendor_code' => 'getSearchVendorCode', - 'category_ids' => 'getCategoryIds', - 'stock_levels' => 'getStockLevels', - 'enabled_location_ids' => 'getEnabledLocationIds', - 'vendor_ids' => 'getVendorIds', - 'product_types' => 'getProductTypes', - 'custom_attribute_filters' => 'getCustomAttributeFilters', - 'does_not_exist' => 'getDoesNotExist', - 'sort_order' => 'getSortOrder' - ); - - /** - * $text_filter - * @var string - */ - protected $text_filter; - /** - * $search_vendor_code - * @var bool - */ - protected $search_vendor_code; - /** - * $category_ids - * @var string[] - */ - protected $category_ids; - /** - * $stock_levels See [CatalogQueryFilteredItemsStockLevel](#type-catalogqueryfiltereditemsstocklevel) for possible values - * @var string[] - */ - protected $stock_levels; - /** - * $enabled_location_ids - * @var string[] - */ - protected $enabled_location_ids; - /** - * $vendor_ids - * @var string[] - */ - protected $vendor_ids; - /** - * $product_types See [CatalogItemProductType](#type-catalogitemproducttype) for possible values - * @var string[] - */ - protected $product_types; - /** - * $custom_attribute_filters - * @var \SquareConnect\Model\CatalogQueryFilteredItemsCustomAttributeFilter[] - */ - protected $custom_attribute_filters; - /** - * $does_not_exist See [CatalogQueryFilteredItemsNullableAttribute](#type-catalogqueryfiltereditemsnullableattribute) for possible values - * @var string[] - */ - protected $does_not_exist; - /** - * $sort_order See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["text_filter"])) { - $this->text_filter = $data["text_filter"]; - } else { - $this->text_filter = null; - } - if (isset($data["search_vendor_code"])) { - $this->search_vendor_code = $data["search_vendor_code"]; - } else { - $this->search_vendor_code = null; - } - if (isset($data["category_ids"])) { - $this->category_ids = $data["category_ids"]; - } else { - $this->category_ids = null; - } - if (isset($data["stock_levels"])) { - $this->stock_levels = $data["stock_levels"]; - } else { - $this->stock_levels = null; - } - if (isset($data["enabled_location_ids"])) { - $this->enabled_location_ids = $data["enabled_location_ids"]; - } else { - $this->enabled_location_ids = null; - } - if (isset($data["vendor_ids"])) { - $this->vendor_ids = $data["vendor_ids"]; - } else { - $this->vendor_ids = null; - } - if (isset($data["product_types"])) { - $this->product_types = $data["product_types"]; - } else { - $this->product_types = null; - } - if (isset($data["custom_attribute_filters"])) { - $this->custom_attribute_filters = $data["custom_attribute_filters"]; - } else { - $this->custom_attribute_filters = null; - } - if (isset($data["does_not_exist"])) { - $this->does_not_exist = $data["does_not_exist"]; - } else { - $this->does_not_exist = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - } - } - /** - * Gets text_filter - * @return string - */ - public function getTextFilter() - { - return $this->text_filter; - } - - /** - * Sets text_filter - * @param string $text_filter - * @return $this - */ - public function setTextFilter($text_filter) - { - $this->text_filter = $text_filter; - return $this; - } - /** - * Gets search_vendor_code - * @return bool - */ - public function getSearchVendorCode() - { - return $this->search_vendor_code; - } - - /** - * Sets search_vendor_code - * @param bool $search_vendor_code - * @return $this - */ - public function setSearchVendorCode($search_vendor_code) - { - $this->search_vendor_code = $search_vendor_code; - return $this; - } - /** - * Gets category_ids - * @return string[] - */ - public function getCategoryIds() - { - return $this->category_ids; - } - - /** - * Sets category_ids - * @param string[] $category_ids - * @return $this - */ - public function setCategoryIds($category_ids) - { - $this->category_ids = $category_ids; - return $this; - } - /** - * Gets stock_levels - * @return string[] - */ - public function getStockLevels() - { - return $this->stock_levels; - } - - /** - * Sets stock_levels - * @param string[] $stock_levels See [CatalogQueryFilteredItemsStockLevel](#type-catalogqueryfiltereditemsstocklevel) for possible values - * @return $this - */ - public function setStockLevels($stock_levels) - { - $this->stock_levels = $stock_levels; - return $this; - } - /** - * Gets enabled_location_ids - * @return string[] - */ - public function getEnabledLocationIds() - { - return $this->enabled_location_ids; - } - - /** - * Sets enabled_location_ids - * @param string[] $enabled_location_ids - * @return $this - */ - public function setEnabledLocationIds($enabled_location_ids) - { - $this->enabled_location_ids = $enabled_location_ids; - return $this; - } - /** - * Gets vendor_ids - * @return string[] - */ - public function getVendorIds() - { - return $this->vendor_ids; - } - - /** - * Sets vendor_ids - * @param string[] $vendor_ids - * @return $this - */ - public function setVendorIds($vendor_ids) - { - $this->vendor_ids = $vendor_ids; - return $this; - } - /** - * Gets product_types - * @return string[] - */ - public function getProductTypes() - { - return $this->product_types; - } - - /** - * Sets product_types - * @param string[] $product_types See [CatalogItemProductType](#type-catalogitemproducttype) for possible values - * @return $this - */ - public function setProductTypes($product_types) - { - $this->product_types = $product_types; - return $this; - } - /** - * Gets custom_attribute_filters - * @return \SquareConnect\Model\CatalogQueryFilteredItemsCustomAttributeFilter[] - */ - public function getCustomAttributeFilters() - { - return $this->custom_attribute_filters; - } - - /** - * Sets custom_attribute_filters - * @param \SquareConnect\Model\CatalogQueryFilteredItemsCustomAttributeFilter[] $custom_attribute_filters - * @return $this - */ - public function setCustomAttributeFilters($custom_attribute_filters) - { - $this->custom_attribute_filters = $custom_attribute_filters; - return $this; - } - /** - * Gets does_not_exist - * @return string[] - */ - public function getDoesNotExist() - { - return $this->does_not_exist; - } - - /** - * Sets does_not_exist - * @param string[] $does_not_exist See [CatalogQueryFilteredItemsNullableAttribute](#type-catalogqueryfiltereditemsnullableattribute) for possible values - * @return $this - */ - public function setDoesNotExist($does_not_exist) - { - $this->does_not_exist = $does_not_exist; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsCustomAttributeFilter.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsCustomAttributeFilter.php deleted file mode 100644 index 050b04372e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsCustomAttributeFilter.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'custom_attribute_definition_ids' => 'string[]', - 'custom_attribute_value_exact' => 'string', - 'custom_attribute_value_prefix' => 'string', - 'custom_attribute_min_value' => 'string', - 'custom_attribute_max_value' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'filter_type' => 'filter_type', - 'custom_attribute_definition_ids' => 'custom_attribute_definition_ids', - 'custom_attribute_value_exact' => 'custom_attribute_value_exact', - 'custom_attribute_value_prefix' => 'custom_attribute_value_prefix', - 'custom_attribute_min_value' => 'custom_attribute_min_value', - 'custom_attribute_max_value' => 'custom_attribute_max_value' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'filter_type' => 'setFilterType', - 'custom_attribute_definition_ids' => 'setCustomAttributeDefinitionIds', - 'custom_attribute_value_exact' => 'setCustomAttributeValueExact', - 'custom_attribute_value_prefix' => 'setCustomAttributeValuePrefix', - 'custom_attribute_min_value' => 'setCustomAttributeMinValue', - 'custom_attribute_max_value' => 'setCustomAttributeMaxValue' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'filter_type' => 'getFilterType', - 'custom_attribute_definition_ids' => 'getCustomAttributeDefinitionIds', - 'custom_attribute_value_exact' => 'getCustomAttributeValueExact', - 'custom_attribute_value_prefix' => 'getCustomAttributeValuePrefix', - 'custom_attribute_min_value' => 'getCustomAttributeMinValue', - 'custom_attribute_max_value' => 'getCustomAttributeMaxValue' - ); - - /** - * $filter_type See [CatalogQueryFilteredItemsCustomAttributeFilterFilterType](#type-catalogqueryfiltereditemscustomattributefilterfiltertype) for possible values - * @var string - */ - protected $filter_type; - /** - * $custom_attribute_definition_ids - * @var string[] - */ - protected $custom_attribute_definition_ids; - /** - * $custom_attribute_value_exact - * @var string - */ - protected $custom_attribute_value_exact; - /** - * $custom_attribute_value_prefix - * @var string - */ - protected $custom_attribute_value_prefix; - /** - * $custom_attribute_min_value - * @var string - */ - protected $custom_attribute_min_value; - /** - * $custom_attribute_max_value - * @var string - */ - protected $custom_attribute_max_value; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["filter_type"])) { - $this->filter_type = $data["filter_type"]; - } else { - $this->filter_type = null; - } - if (isset($data["custom_attribute_definition_ids"])) { - $this->custom_attribute_definition_ids = $data["custom_attribute_definition_ids"]; - } else { - $this->custom_attribute_definition_ids = null; - } - if (isset($data["custom_attribute_value_exact"])) { - $this->custom_attribute_value_exact = $data["custom_attribute_value_exact"]; - } else { - $this->custom_attribute_value_exact = null; - } - if (isset($data["custom_attribute_value_prefix"])) { - $this->custom_attribute_value_prefix = $data["custom_attribute_value_prefix"]; - } else { - $this->custom_attribute_value_prefix = null; - } - if (isset($data["custom_attribute_min_value"])) { - $this->custom_attribute_min_value = $data["custom_attribute_min_value"]; - } else { - $this->custom_attribute_min_value = null; - } - if (isset($data["custom_attribute_max_value"])) { - $this->custom_attribute_max_value = $data["custom_attribute_max_value"]; - } else { - $this->custom_attribute_max_value = null; - } - } - } - /** - * Gets filter_type - * @return string - */ - public function getFilterType() - { - return $this->filter_type; - } - - /** - * Sets filter_type - * @param string $filter_type See [CatalogQueryFilteredItemsCustomAttributeFilterFilterType](#type-catalogqueryfiltereditemscustomattributefilterfiltertype) for possible values - * @return $this - */ - public function setFilterType($filter_type) - { - $this->filter_type = $filter_type; - return $this; - } - /** - * Gets custom_attribute_definition_ids - * @return string[] - */ - public function getCustomAttributeDefinitionIds() - { - return $this->custom_attribute_definition_ids; - } - - /** - * Sets custom_attribute_definition_ids - * @param string[] $custom_attribute_definition_ids - * @return $this - */ - public function setCustomAttributeDefinitionIds($custom_attribute_definition_ids) - { - $this->custom_attribute_definition_ids = $custom_attribute_definition_ids; - return $this; - } - /** - * Gets custom_attribute_value_exact - * @return string - */ - public function getCustomAttributeValueExact() - { - return $this->custom_attribute_value_exact; - } - - /** - * Sets custom_attribute_value_exact - * @param string $custom_attribute_value_exact - * @return $this - */ - public function setCustomAttributeValueExact($custom_attribute_value_exact) - { - $this->custom_attribute_value_exact = $custom_attribute_value_exact; - return $this; - } - /** - * Gets custom_attribute_value_prefix - * @return string - */ - public function getCustomAttributeValuePrefix() - { - return $this->custom_attribute_value_prefix; - } - - /** - * Sets custom_attribute_value_prefix - * @param string $custom_attribute_value_prefix - * @return $this - */ - public function setCustomAttributeValuePrefix($custom_attribute_value_prefix) - { - $this->custom_attribute_value_prefix = $custom_attribute_value_prefix; - return $this; - } - /** - * Gets custom_attribute_min_value - * @return string - */ - public function getCustomAttributeMinValue() - { - return $this->custom_attribute_min_value; - } - - /** - * Sets custom_attribute_min_value - * @param string $custom_attribute_min_value - * @return $this - */ - public function setCustomAttributeMinValue($custom_attribute_min_value) - { - $this->custom_attribute_min_value = $custom_attribute_min_value; - return $this; - } - /** - * Gets custom_attribute_max_value - * @return string - */ - public function getCustomAttributeMaxValue() - { - return $this->custom_attribute_max_value; - } - - /** - * Sets custom_attribute_max_value - * @param string $custom_attribute_max_value - * @return $this - */ - public function setCustomAttributeMaxValue($custom_attribute_max_value) - { - $this->custom_attribute_max_value = $custom_attribute_max_value; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsCustomAttributeFilterFilterType.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsCustomAttributeFilterFilterType.php deleted file mode 100644 index 71a8107771..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsCustomAttributeFilterFilterType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsNullableAttribute.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsNullableAttribute.php deleted file mode 100644 index 073ec61250..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsNullableAttribute.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsStockLevel.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsStockLevel.php deleted file mode 100644 index 2b50348c2b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryFilteredItemsStockLevel.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemVariationsForItemOptionValues.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemVariationsForItemOptionValues.php deleted file mode 100644 index fd0011e465..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemVariationsForItemOptionValues.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'item_option_value_ids' => 'item_option_value_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'item_option_value_ids' => 'setItemOptionValueIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'item_option_value_ids' => 'getItemOptionValueIds' - ); - - /** - * $item_option_value_ids A set of `CatalogItemOptionValue` IDs to be used to find associated `CatalogItemVariation`s. All ItemVariations that contain all of the given Item Option Values (in any order) will be returned. - * @var string[] - */ - protected $item_option_value_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["item_option_value_ids"])) { - $this->item_option_value_ids = $data["item_option_value_ids"]; - } else { - $this->item_option_value_ids = null; - } - } - } - /** - * Gets item_option_value_ids - * @return string[] - */ - public function getItemOptionValueIds() - { - return $this->item_option_value_ids; - } - - /** - * Sets item_option_value_ids - * @param string[] $item_option_value_ids A set of `CatalogItemOptionValue` IDs to be used to find associated `CatalogItemVariation`s. All ItemVariations that contain all of the given Item Option Values (in any order) will be returned. - * @return $this - */ - public function setItemOptionValueIds($item_option_value_ids) - { - $this->item_option_value_ids = $item_option_value_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForItemOptions.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForItemOptions.php deleted file mode 100644 index f81ba8a73c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForItemOptions.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'item_option_ids' => 'item_option_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'item_option_ids' => 'setItemOptionIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'item_option_ids' => 'getItemOptionIds' - ); - - /** - * $item_option_ids A set of `CatalogItemOption` IDs to be used to find associated `CatalogItem`s. All Items that contain all of the given Item Options (in any order) will be returned. - * @var string[] - */ - protected $item_option_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["item_option_ids"])) { - $this->item_option_ids = $data["item_option_ids"]; - } else { - $this->item_option_ids = null; - } - } - } - /** - * Gets item_option_ids - * @return string[] - */ - public function getItemOptionIds() - { - return $this->item_option_ids; - } - - /** - * Sets item_option_ids - * @param string[] $item_option_ids A set of `CatalogItemOption` IDs to be used to find associated `CatalogItem`s. All Items that contain all of the given Item Options (in any order) will be returned. - * @return $this - */ - public function setItemOptionIds($item_option_ids) - { - $this->item_option_ids = $item_option_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForModifierList.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForModifierList.php deleted file mode 100644 index e34f8260c5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForModifierList.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'modifier_list_ids' => 'modifier_list_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'modifier_list_ids' => 'setModifierListIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'modifier_list_ids' => 'getModifierListIds' - ); - - /** - * $modifier_list_ids A set of `CatalogModifierList` IDs to be used to find associated `CatalogItem`s. - * @var string[] - */ - protected $modifier_list_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["modifier_list_ids"])) { - $this->modifier_list_ids = $data["modifier_list_ids"]; - } else { - $this->modifier_list_ids = null; - } - } - } - /** - * Gets modifier_list_ids - * @return string[] - */ - public function getModifierListIds() - { - return $this->modifier_list_ids; - } - - /** - * Sets modifier_list_ids - * @param string[] $modifier_list_ids A set of `CatalogModifierList` IDs to be used to find associated `CatalogItem`s. - * @return $this - */ - public function setModifierListIds($modifier_list_ids) - { - $this->modifier_list_ids = $modifier_list_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForTax.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForTax.php deleted file mode 100644 index f5419d88b6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryItemsForTax.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'tax_ids' => 'tax_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'tax_ids' => 'setTaxIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'tax_ids' => 'getTaxIds' - ); - - /** - * $tax_ids A set of `CatalogTax` IDs to be used to find associated `CatalogItem`s. - * @var string[] - */ - protected $tax_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["tax_ids"])) { - $this->tax_ids = $data["tax_ids"]; - } else { - $this->tax_ids = null; - } - } - } - /** - * Gets tax_ids - * @return string[] - */ - public function getTaxIds() - { - return $this->tax_ids; - } - - /** - * Sets tax_ids - * @param string[] $tax_ids A set of `CatalogTax` IDs to be used to find associated `CatalogItem`s. - * @return $this - */ - public function setTaxIds($tax_ids) - { - $this->tax_ids = $tax_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryPrefix.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryPrefix.php deleted file mode 100644 index 9378972e84..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryPrefix.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'attribute_prefix' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'attribute_name' => 'attribute_name', - 'attribute_prefix' => 'attribute_prefix' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'attribute_name' => 'setAttributeName', - 'attribute_prefix' => 'setAttributePrefix' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'attribute_name' => 'getAttributeName', - 'attribute_prefix' => 'getAttributePrefix' - ); - - /** - * $attribute_name The name of the attribute to be searched. - * @var string - */ - protected $attribute_name; - /** - * $attribute_prefix The desired prefix of the search attribute value. - * @var string - */ - protected $attribute_prefix; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["attribute_name"])) { - $this->attribute_name = $data["attribute_name"]; - } else { - $this->attribute_name = null; - } - if (isset($data["attribute_prefix"])) { - $this->attribute_prefix = $data["attribute_prefix"]; - } else { - $this->attribute_prefix = null; - } - } - } - /** - * Gets attribute_name - * @return string - */ - public function getAttributeName() - { - return $this->attribute_name; - } - - /** - * Sets attribute_name - * @param string $attribute_name The name of the attribute to be searched. - * @return $this - */ - public function setAttributeName($attribute_name) - { - $this->attribute_name = $attribute_name; - return $this; - } - /** - * Gets attribute_prefix - * @return string - */ - public function getAttributePrefix() - { - return $this->attribute_prefix; - } - - /** - * Sets attribute_prefix - * @param string $attribute_prefix The desired prefix of the search attribute value. - * @return $this - */ - public function setAttributePrefix($attribute_prefix) - { - $this->attribute_prefix = $attribute_prefix; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryRange.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryRange.php deleted file mode 100644 index 0013da7ebf..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryRange.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'attribute_min_value' => 'int', - 'attribute_max_value' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'attribute_name' => 'attribute_name', - 'attribute_min_value' => 'attribute_min_value', - 'attribute_max_value' => 'attribute_max_value' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'attribute_name' => 'setAttributeName', - 'attribute_min_value' => 'setAttributeMinValue', - 'attribute_max_value' => 'setAttributeMaxValue' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'attribute_name' => 'getAttributeName', - 'attribute_min_value' => 'getAttributeMinValue', - 'attribute_max_value' => 'getAttributeMaxValue' - ); - - /** - * $attribute_name The name of the attribute to be searched. - * @var string - */ - protected $attribute_name; - /** - * $attribute_min_value The desired minimum value for the search attribute (inclusive). - * @var int - */ - protected $attribute_min_value; - /** - * $attribute_max_value The desired maximum value for the search attribute (inclusive). - * @var int - */ - protected $attribute_max_value; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["attribute_name"])) { - $this->attribute_name = $data["attribute_name"]; - } else { - $this->attribute_name = null; - } - if (isset($data["attribute_min_value"])) { - $this->attribute_min_value = $data["attribute_min_value"]; - } else { - $this->attribute_min_value = null; - } - if (isset($data["attribute_max_value"])) { - $this->attribute_max_value = $data["attribute_max_value"]; - } else { - $this->attribute_max_value = null; - } - } - } - /** - * Gets attribute_name - * @return string - */ - public function getAttributeName() - { - return $this->attribute_name; - } - - /** - * Sets attribute_name - * @param string $attribute_name The name of the attribute to be searched. - * @return $this - */ - public function setAttributeName($attribute_name) - { - $this->attribute_name = $attribute_name; - return $this; - } - /** - * Gets attribute_min_value - * @return int - */ - public function getAttributeMinValue() - { - return $this->attribute_min_value; - } - - /** - * Sets attribute_min_value - * @param int $attribute_min_value The desired minimum value for the search attribute (inclusive). - * @return $this - */ - public function setAttributeMinValue($attribute_min_value) - { - $this->attribute_min_value = $attribute_min_value; - return $this; - } - /** - * Gets attribute_max_value - * @return int - */ - public function getAttributeMaxValue() - { - return $this->attribute_max_value; - } - - /** - * Sets attribute_max_value - * @param int $attribute_max_value The desired maximum value for the search attribute (inclusive). - * @return $this - */ - public function setAttributeMaxValue($attribute_max_value) - { - $this->attribute_max_value = $attribute_max_value; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQuerySortedAttribute.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQuerySortedAttribute.php deleted file mode 100644 index ddac2f93f6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQuerySortedAttribute.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'initial_attribute_value' => 'string', - 'sort_order' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'attribute_name' => 'attribute_name', - 'initial_attribute_value' => 'initial_attribute_value', - 'sort_order' => 'sort_order' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'attribute_name' => 'setAttributeName', - 'initial_attribute_value' => 'setInitialAttributeValue', - 'sort_order' => 'setSortOrder' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'attribute_name' => 'getAttributeName', - 'initial_attribute_value' => 'getInitialAttributeValue', - 'sort_order' => 'getSortOrder' - ); - - /** - * $attribute_name The attribute whose value should be used as the sort key. - * @var string - */ - protected $attribute_name; - /** - * $initial_attribute_value The first attribute value to be returned by the query. Ascending sorts will return only objects with this value or greater, while descending sorts will return only objects with this value or less. If unset, start at the beginning (for ascending sorts) or end (for descending sorts). - * @var string - */ - protected $initial_attribute_value; - /** - * $sort_order The desired sort order, `\"ASC\"` (ascending) or `\"DESC\"` (descending). See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["attribute_name"])) { - $this->attribute_name = $data["attribute_name"]; - } else { - $this->attribute_name = null; - } - if (isset($data["initial_attribute_value"])) { - $this->initial_attribute_value = $data["initial_attribute_value"]; - } else { - $this->initial_attribute_value = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - } - } - /** - * Gets attribute_name - * @return string - */ - public function getAttributeName() - { - return $this->attribute_name; - } - - /** - * Sets attribute_name - * @param string $attribute_name The attribute whose value should be used as the sort key. - * @return $this - */ - public function setAttributeName($attribute_name) - { - $this->attribute_name = $attribute_name; - return $this; - } - /** - * Gets initial_attribute_value - * @return string - */ - public function getInitialAttributeValue() - { - return $this->initial_attribute_value; - } - - /** - * Sets initial_attribute_value - * @param string $initial_attribute_value The first attribute value to be returned by the query. Ascending sorts will return only objects with this value or greater, while descending sorts will return only objects with this value or less. If unset, start at the beginning (for ascending sorts) or end (for descending sorts). - * @return $this - */ - public function setInitialAttributeValue($initial_attribute_value) - { - $this->initial_attribute_value = $initial_attribute_value; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The desired sort order, `\"ASC\"` (ascending) or `\"DESC\"` (descending). See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryText.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQueryText.php deleted file mode 100644 index e4bf7cabca..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQueryText.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'keywords' => 'keywords' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'keywords' => 'setKeywords' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'keywords' => 'getKeywords' - ); - - /** - * $keywords A list of 1, 2, or 3 search keywords. Keywords with fewer than 3 characters are ignored. - * @var string[] - */ - protected $keywords; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["keywords"])) { - $this->keywords = $data["keywords"]; - } else { - $this->keywords = null; - } - } - } - /** - * Gets keywords - * @return string[] - */ - public function getKeywords() - { - return $this->keywords; - } - - /** - * Sets keywords - * @param string[] $keywords A list of 1, 2, or 3 search keywords. Keywords with fewer than 3 characters are ignored. - * @return $this - */ - public function setKeywords($keywords) - { - $this->keywords = $keywords; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmount.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmount.php deleted file mode 100644 index 90707e0b86..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmount.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'amount' => '\SquareConnect\Model\Money', - 'score' => 'int', - 'ordinal' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'type' => 'type', - 'amount' => 'amount', - 'score' => 'score', - 'ordinal' => 'ordinal' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'type' => 'setType', - 'amount' => 'setAmount', - 'score' => 'setScore', - 'ordinal' => 'setOrdinal' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'type' => 'getType', - 'amount' => 'getAmount', - 'score' => 'getScore', - 'ordinal' => 'getOrdinal' - ); - - /** - * $type Represents the type of the Quick Amount. See [CatalogQuickAmountType](#type-catalogquickamounttype) for possible values - * @var string - */ - protected $type; - /** - * $amount Represents the actual amount of the Quick Amount with Money type. - * @var \SquareConnect\Model\Money - */ - protected $amount; - /** - * $score Describes the ranking of the Quick Amount provided by machine learning model, in the range [0, 100]. MANUAL type amount will always have score = 100. - * @var int - */ - protected $score; - /** - * $ordinal The order in which this Quick Amount should be displayed. - * @var int - */ - protected $ordinal; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["amount"])) { - $this->amount = $data["amount"]; - } else { - $this->amount = null; - } - if (isset($data["score"])) { - $this->score = $data["score"]; - } else { - $this->score = null; - } - if (isset($data["ordinal"])) { - $this->ordinal = $data["ordinal"]; - } else { - $this->ordinal = null; - } - } - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type Represents the type of the Quick Amount. See [CatalogQuickAmountType](#type-catalogquickamounttype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets amount - * @return \SquareConnect\Model\Money - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Sets amount - * @param \SquareConnect\Model\Money $amount Represents the actual amount of the Quick Amount with Money type. - * @return $this - */ - public function setAmount($amount) - { - $this->amount = $amount; - return $this; - } - /** - * Gets score - * @return int - */ - public function getScore() - { - return $this->score; - } - - /** - * Sets score - * @param int $score Describes the ranking of the Quick Amount provided by machine learning model, in the range [0, 100]. MANUAL type amount will always have score = 100. - * @return $this - */ - public function setScore($score) - { - $this->score = $score; - return $this; - } - /** - * Gets ordinal - * @return int - */ - public function getOrdinal() - { - return $this->ordinal; - } - - /** - * Sets ordinal - * @param int $ordinal The order in which this Quick Amount should be displayed. - * @return $this - */ - public function setOrdinal($ordinal) - { - $this->ordinal = $ordinal; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountType.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountType.php deleted file mode 100644 index 487d6abed8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountsSettings.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountsSettings.php deleted file mode 100644 index 3fbb5d9879..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountsSettings.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'eligible_for_auto_amounts' => 'bool', - 'amounts' => '\SquareConnect\Model\CatalogQuickAmount[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'option' => 'option', - 'eligible_for_auto_amounts' => 'eligible_for_auto_amounts', - 'amounts' => 'amounts' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'option' => 'setOption', - 'eligible_for_auto_amounts' => 'setEligibleForAutoAmounts', - 'amounts' => 'setAmounts' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'option' => 'getOption', - 'eligible_for_auto_amounts' => 'getEligibleForAutoAmounts', - 'amounts' => 'getAmounts' - ); - - /** - * $option Represents the option seller currently uses on Quick Amounts. See [CatalogQuickAmountsSettingsOption](#type-catalogquickamountssettingsoption) for possible values - * @var string - */ - protected $option; - /** - * $eligible_for_auto_amounts Represents location's eligibility for auto amounts The boolean should be consistent with whether there are AUTO amounts in the `amounts`. - * @var bool - */ - protected $eligible_for_auto_amounts; - /** - * $amounts Represents a set of Quick Amounts at this location. - * @var \SquareConnect\Model\CatalogQuickAmount[] - */ - protected $amounts; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["option"])) { - $this->option = $data["option"]; - } else { - $this->option = null; - } - if (isset($data["eligible_for_auto_amounts"])) { - $this->eligible_for_auto_amounts = $data["eligible_for_auto_amounts"]; - } else { - $this->eligible_for_auto_amounts = null; - } - if (isset($data["amounts"])) { - $this->amounts = $data["amounts"]; - } else { - $this->amounts = null; - } - } - } - /** - * Gets option - * @return string - */ - public function getOption() - { - return $this->option; - } - - /** - * Sets option - * @param string $option Represents the option seller currently uses on Quick Amounts. See [CatalogQuickAmountsSettingsOption](#type-catalogquickamountssettingsoption) for possible values - * @return $this - */ - public function setOption($option) - { - $this->option = $option; - return $this; - } - /** - * Gets eligible_for_auto_amounts - * @return bool - */ - public function getEligibleForAutoAmounts() - { - return $this->eligible_for_auto_amounts; - } - - /** - * Sets eligible_for_auto_amounts - * @param bool $eligible_for_auto_amounts Represents location's eligibility for auto amounts The boolean should be consistent with whether there are AUTO amounts in the `amounts`. - * @return $this - */ - public function setEligibleForAutoAmounts($eligible_for_auto_amounts) - { - $this->eligible_for_auto_amounts = $eligible_for_auto_amounts; - return $this; - } - /** - * Gets amounts - * @return \SquareConnect\Model\CatalogQuickAmount[] - */ - public function getAmounts() - { - return $this->amounts; - } - - /** - * Sets amounts - * @param \SquareConnect\Model\CatalogQuickAmount[] $amounts Represents a set of Quick Amounts at this location. - * @return $this - */ - public function setAmounts($amounts) - { - $this->amounts = $amounts; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountsSettingsOption.php b/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountsSettingsOption.php deleted file mode 100644 index e804479de1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogQuickAmountsSettingsOption.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogTax.php b/includes/classes/vendors/square/connect/lib/Model/CatalogTax.php deleted file mode 100644 index 87d297a94d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogTax.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'calculation_phase' => 'string', - 'inclusion_type' => 'string', - 'percentage' => 'string', - 'applies_to_custom_amounts' => 'bool', - 'enabled' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'calculation_phase' => 'calculation_phase', - 'inclusion_type' => 'inclusion_type', - 'percentage' => 'percentage', - 'applies_to_custom_amounts' => 'applies_to_custom_amounts', - 'enabled' => 'enabled' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'calculation_phase' => 'setCalculationPhase', - 'inclusion_type' => 'setInclusionType', - 'percentage' => 'setPercentage', - 'applies_to_custom_amounts' => 'setAppliesToCustomAmounts', - 'enabled' => 'setEnabled' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'calculation_phase' => 'getCalculationPhase', - 'inclusion_type' => 'getInclusionType', - 'percentage' => 'getPercentage', - 'applies_to_custom_amounts' => 'getAppliesToCustomAmounts', - 'enabled' => 'getEnabled' - ); - - /** - * $name The tax's name. Searchable. This field has max length of 255 Unicode code points. - * @var string - */ - protected $name; - /** - * $calculation_phase Whether the tax is calculated based on a payment's subtotal or total. See [TaxCalculationPhase](#type-taxcalculationphase) for possible values - * @var string - */ - protected $calculation_phase; - /** - * $inclusion_type Whether the tax is `ADDITIVE` or `INCLUSIVE`. See [TaxInclusionType](#type-taxinclusiontype) for possible values - * @var string - */ - protected $inclusion_type; - /** - * $percentage The percentage of the tax in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign. A value of `7.5` corresponds to 7.5%. - * @var string - */ - protected $percentage; - /** - * $applies_to_custom_amounts If `true`, the fee applies to custom amounts entered into the Square Point of Sale app that are not associated with a particular `CatalogItem`. - * @var bool - */ - protected $applies_to_custom_amounts; - /** - * $enabled If `true`, the tax will be shown as enabled in the Square Point of Sale app. - * @var bool - */ - protected $enabled; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["calculation_phase"])) { - $this->calculation_phase = $data["calculation_phase"]; - } else { - $this->calculation_phase = null; - } - if (isset($data["inclusion_type"])) { - $this->inclusion_type = $data["inclusion_type"]; - } else { - $this->inclusion_type = null; - } - if (isset($data["percentage"])) { - $this->percentage = $data["percentage"]; - } else { - $this->percentage = null; - } - if (isset($data["applies_to_custom_amounts"])) { - $this->applies_to_custom_amounts = $data["applies_to_custom_amounts"]; - } else { - $this->applies_to_custom_amounts = null; - } - if (isset($data["enabled"])) { - $this->enabled = $data["enabled"]; - } else { - $this->enabled = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The tax's name. Searchable. This field has max length of 255 Unicode code points. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets calculation_phase - * @return string - */ - public function getCalculationPhase() - { - return $this->calculation_phase; - } - - /** - * Sets calculation_phase - * @param string $calculation_phase Whether the tax is calculated based on a payment's subtotal or total. See [TaxCalculationPhase](#type-taxcalculationphase) for possible values - * @return $this - */ - public function setCalculationPhase($calculation_phase) - { - $this->calculation_phase = $calculation_phase; - return $this; - } - /** - * Gets inclusion_type - * @return string - */ - public function getInclusionType() - { - return $this->inclusion_type; - } - - /** - * Sets inclusion_type - * @param string $inclusion_type Whether the tax is `ADDITIVE` or `INCLUSIVE`. See [TaxInclusionType](#type-taxinclusiontype) for possible values - * @return $this - */ - public function setInclusionType($inclusion_type) - { - $this->inclusion_type = $inclusion_type; - return $this; - } - /** - * Gets percentage - * @return string - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Sets percentage - * @param string $percentage The percentage of the tax in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign. A value of `7.5` corresponds to 7.5%. - * @return $this - */ - public function setPercentage($percentage) - { - $this->percentage = $percentage; - return $this; - } - /** - * Gets applies_to_custom_amounts - * @return bool - */ - public function getAppliesToCustomAmounts() - { - return $this->applies_to_custom_amounts; - } - - /** - * Sets applies_to_custom_amounts - * @param bool $applies_to_custom_amounts If `true`, the fee applies to custom amounts entered into the Square Point of Sale app that are not associated with a particular `CatalogItem`. - * @return $this - */ - public function setAppliesToCustomAmounts($applies_to_custom_amounts) - { - $this->applies_to_custom_amounts = $applies_to_custom_amounts; - return $this; - } - /** - * Gets enabled - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Sets enabled - * @param bool $enabled If `true`, the tax will be shown as enabled in the Square Point of Sale app. - * @return $this - */ - public function setEnabled($enabled) - { - $this->enabled = $enabled; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogTimePeriod.php b/includes/classes/vendors/square/connect/lib/Model/CatalogTimePeriod.php deleted file mode 100644 index 5f1c8def10..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogTimePeriod.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'event' => 'event' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'event' => 'setEvent' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'event' => 'getEvent' - ); - - /** - * $event An iCalendar (RFC5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which specifies the name, timing, duration and recurrence of this time period. Example: ``` DTSTART:20190707T180000 DURATION:P2H RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR ``` Only `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported. `DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT` and `END:VEVENT` is not required in the request. The response will always include them. - * @var string - */ - protected $event; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["event"])) { - $this->event = $data["event"]; - } else { - $this->event = null; - } - } - } - /** - * Gets event - * @return string - */ - public function getEvent() - { - return $this->event; - } - - /** - * Sets event - * @param string $event An iCalendar (RFC5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which specifies the name, timing, duration and recurrence of this time period. Example: ``` DTSTART:20190707T180000 DURATION:P2H RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR ``` Only `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported. `DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT` and `END:VEVENT` is not required in the request. The response will always include them. - * @return $this - */ - public function setEvent($event) - { - $this->event = $event; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CatalogV1Id.php b/includes/classes/vendors/square/connect/lib/Model/CatalogV1Id.php deleted file mode 100644 index aa25a4b816..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CatalogV1Id.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'location_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'catalog_v1_id' => 'catalog_v1_id', - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'catalog_v1_id' => 'setCatalogV1Id', - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'catalog_v1_id' => 'getCatalogV1Id', - 'location_id' => 'getLocationId' - ); - - /** - * $catalog_v1_id The ID for an object in Connect V1, if different from its Connect V2 ID. - * @var string - */ - protected $catalog_v1_id; - /** - * $location_id The ID of the `Location` this Connect V1 ID is associated with. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["catalog_v1_id"])) { - $this->catalog_v1_id = $data["catalog_v1_id"]; - } else { - $this->catalog_v1_id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets catalog_v1_id - * @return string - */ - public function getCatalogV1Id() - { - return $this->catalog_v1_id; - } - - /** - * Sets catalog_v1_id - * @param string $catalog_v1_id The ID for an object in Connect V1, if different from its Connect V2 ID. - * @return $this - */ - public function setCatalogV1Id($catalog_v1_id) - { - $this->catalog_v1_id = $catalog_v1_id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the `Location` this Connect V1 ID is associated with. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ChargeRequest.php b/includes/classes/vendors/square/connect/lib/Model/ChargeRequest.php deleted file mode 100644 index fe77abef21..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ChargeRequest.php +++ /dev/null @@ -1,576 +0,0 @@ - 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'card_nonce' => 'string', - 'customer_card_id' => 'string', - 'delay_capture' => 'bool', - 'reference_id' => 'string', - 'note' => 'string', - 'customer_id' => 'string', - 'billing_address' => '\SquareConnect\Model\Address', - 'shipping_address' => '\SquareConnect\Model\Address', - 'buyer_email_address' => 'string', - 'order_id' => 'string', - 'additional_recipients' => '\SquareConnect\Model\AdditionalRecipient[]', - 'verification_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'amount_money' => 'amount_money', - 'card_nonce' => 'card_nonce', - 'customer_card_id' => 'customer_card_id', - 'delay_capture' => 'delay_capture', - 'reference_id' => 'reference_id', - 'note' => 'note', - 'customer_id' => 'customer_id', - 'billing_address' => 'billing_address', - 'shipping_address' => 'shipping_address', - 'buyer_email_address' => 'buyer_email_address', - 'order_id' => 'order_id', - 'additional_recipients' => 'additional_recipients', - 'verification_token' => 'verification_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'amount_money' => 'setAmountMoney', - 'card_nonce' => 'setCardNonce', - 'customer_card_id' => 'setCustomerCardId', - 'delay_capture' => 'setDelayCapture', - 'reference_id' => 'setReferenceId', - 'note' => 'setNote', - 'customer_id' => 'setCustomerId', - 'billing_address' => 'setBillingAddress', - 'shipping_address' => 'setShippingAddress', - 'buyer_email_address' => 'setBuyerEmailAddress', - 'order_id' => 'setOrderId', - 'additional_recipients' => 'setAdditionalRecipients', - 'verification_token' => 'setVerificationToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'amount_money' => 'getAmountMoney', - 'card_nonce' => 'getCardNonce', - 'customer_card_id' => 'getCustomerCardId', - 'delay_capture' => 'getDelayCapture', - 'reference_id' => 'getReferenceId', - 'note' => 'getNote', - 'customer_id' => 'getCustomerId', - 'billing_address' => 'getBillingAddress', - 'shipping_address' => 'getShippingAddress', - 'buyer_email_address' => 'getBuyerEmailAddress', - 'order_id' => 'getOrderId', - 'additional_recipients' => 'getAdditionalRecipients', - 'verification_token' => 'getVerificationToken' - ); - - /** - * $idempotency_key A value you specify that uniquely identifies this transaction among transactions you've created. If you're unsure whether a particular transaction succeeded, you can reattempt it with the same idempotency key without worrying about double-charging the buyer. See [Idempotency keys](#idempotencykeys) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $amount_money The amount of money to charge. Note that you specify the amount in the __smallest denomination of the applicable currency__. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The value of `currency` must match the currency associated with the business that is charging the card. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $card_nonce A nonce generated from the `SqPaymentForm` that represents the card to charge. The application that provides a nonce to this endpoint must be the _same application_ that generated the nonce with the `SqPaymentForm`. Otherwise, the nonce is invalid. Do not provide a value for this field if you provide a value for `customer_card_id`. - * @var string - */ - protected $card_nonce; - /** - * $customer_card_id The ID of the customer card on file to charge. Do not provide a value for this field if you provide a value for `card_nonce`. If you provide this value, you _must_ also provide a value for `customer_id`. - * @var string - */ - protected $customer_card_id; - /** - * $delay_capture If `true`, the request will only perform an Auth on the provided card. You can then later perform either a Capture (with the `CaptureTransaction` or a Void (with the `VoidTransaction`. Default value: `false` - * @var bool - */ - protected $delay_capture; - /** - * $reference_id An optional ID you can associate with the transaction for your own purposes (such as to associate the transaction with an entity ID in your own database). This value cannot exceed 40 characters. - * @var string - */ - protected $reference_id; - /** - * $note An optional note to associate with the transaction. This value cannot exceed 60 characters. - * @var string - */ - protected $note; - /** - * $customer_id The ID of the customer to associate this transaction with. This field is required if you provide a value for `customer_card_id`, and optional otherwise. - * @var string - */ - protected $customer_id; - /** - * $billing_address The buyer's billing address. This value is optional, but this transaction is ineligible for chargeback protection if neither this parameter nor `shipping_address` is provided. - * @var \SquareConnect\Model\Address - */ - protected $billing_address; - /** - * $shipping_address The buyer's shipping address, if available. This value is optional, but this transaction is ineligible for chargeback protection if neither this parameter nor `billing_address` is provided. - * @var \SquareConnect\Model\Address - */ - protected $shipping_address; - /** - * $buyer_email_address The buyer's email address, if available. This value is optional, but this transaction is ineligible for chargeback protection if it is not provided. - * @var string - */ - protected $buyer_email_address; - /** - * $order_id The ID of the order to associate with this transaction. If you provide this value, the `amount_money` value of your request must __exactly match__ the value of the order's `total_money` field. - * @var string - */ - protected $order_id; - /** - * $additional_recipients The basic primitive of multi-party transaction. The value is optional. The transaction facilitated by you can be split from here. If you provide this value, the `amount_money` value in your additional_recipients must not be more than 90% of the `amount_money` value in the charge request. The `location_id` must be the valid location of the app owner merchant. This field requires the `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission. This field is currently not supported in sandbox. - * @var \SquareConnect\Model\AdditionalRecipient[] - */ - protected $additional_recipients; - /** - * $verification_token A token generated by SqPaymentForm's verifyBuyer() that represents customer's device info and 3ds challenge result. - * @var string - */ - protected $verification_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["card_nonce"])) { - $this->card_nonce = $data["card_nonce"]; - } else { - $this->card_nonce = null; - } - if (isset($data["customer_card_id"])) { - $this->customer_card_id = $data["customer_card_id"]; - } else { - $this->customer_card_id = null; - } - if (isset($data["delay_capture"])) { - $this->delay_capture = $data["delay_capture"]; - } else { - $this->delay_capture = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["customer_id"])) { - $this->customer_id = $data["customer_id"]; - } else { - $this->customer_id = null; - } - if (isset($data["billing_address"])) { - $this->billing_address = $data["billing_address"]; - } else { - $this->billing_address = null; - } - if (isset($data["shipping_address"])) { - $this->shipping_address = $data["shipping_address"]; - } else { - $this->shipping_address = null; - } - if (isset($data["buyer_email_address"])) { - $this->buyer_email_address = $data["buyer_email_address"]; - } else { - $this->buyer_email_address = null; - } - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["additional_recipients"])) { - $this->additional_recipients = $data["additional_recipients"]; - } else { - $this->additional_recipients = null; - } - if (isset($data["verification_token"])) { - $this->verification_token = $data["verification_token"]; - } else { - $this->verification_token = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A value you specify that uniquely identifies this transaction among transactions you've created. If you're unsure whether a particular transaction succeeded, you can reattempt it with the same idempotency key without worrying about double-charging the buyer. See [Idempotency keys](#idempotencykeys) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money to charge. Note that you specify the amount in the __smallest denomination of the applicable currency__. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The value of `currency` must match the currency associated with the business that is charging the card. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets card_nonce - * @return string - */ - public function getCardNonce() - { - return $this->card_nonce; - } - - /** - * Sets card_nonce - * @param string $card_nonce A nonce generated from the `SqPaymentForm` that represents the card to charge. The application that provides a nonce to this endpoint must be the _same application_ that generated the nonce with the `SqPaymentForm`. Otherwise, the nonce is invalid. Do not provide a value for this field if you provide a value for `customer_card_id`. - * @return $this - */ - public function setCardNonce($card_nonce) - { - $this->card_nonce = $card_nonce; - return $this; - } - /** - * Gets customer_card_id - * @return string - */ - public function getCustomerCardId() - { - return $this->customer_card_id; - } - - /** - * Sets customer_card_id - * @param string $customer_card_id The ID of the customer card on file to charge. Do not provide a value for this field if you provide a value for `card_nonce`. If you provide this value, you _must_ also provide a value for `customer_id`. - * @return $this - */ - public function setCustomerCardId($customer_card_id) - { - $this->customer_card_id = $customer_card_id; - return $this; - } - /** - * Gets delay_capture - * @return bool - */ - public function getDelayCapture() - { - return $this->delay_capture; - } - - /** - * Sets delay_capture - * @param bool $delay_capture If `true`, the request will only perform an Auth on the provided card. You can then later perform either a Capture (with the `CaptureTransaction` or a Void (with the `VoidTransaction`. Default value: `false` - * @return $this - */ - public function setDelayCapture($delay_capture) - { - $this->delay_capture = $delay_capture; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional ID you can associate with the transaction for your own purposes (such as to associate the transaction with an entity ID in your own database). This value cannot exceed 40 characters. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note An optional note to associate with the transaction. This value cannot exceed 60 characters. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets customer_id - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Sets customer_id - * @param string $customer_id The ID of the customer to associate this transaction with. This field is required if you provide a value for `customer_card_id`, and optional otherwise. - * @return $this - */ - public function setCustomerId($customer_id) - { - $this->customer_id = $customer_id; - return $this; - } - /** - * Gets billing_address - * @return \SquareConnect\Model\Address - */ - public function getBillingAddress() - { - return $this->billing_address; - } - - /** - * Sets billing_address - * @param \SquareConnect\Model\Address $billing_address The buyer's billing address. This value is optional, but this transaction is ineligible for chargeback protection if neither this parameter nor `shipping_address` is provided. - * @return $this - */ - public function setBillingAddress($billing_address) - { - $this->billing_address = $billing_address; - return $this; - } - /** - * Gets shipping_address - * @return \SquareConnect\Model\Address - */ - public function getShippingAddress() - { - return $this->shipping_address; - } - - /** - * Sets shipping_address - * @param \SquareConnect\Model\Address $shipping_address The buyer's shipping address, if available. This value is optional, but this transaction is ineligible for chargeback protection if neither this parameter nor `billing_address` is provided. - * @return $this - */ - public function setShippingAddress($shipping_address) - { - $this->shipping_address = $shipping_address; - return $this; - } - /** - * Gets buyer_email_address - * @return string - */ - public function getBuyerEmailAddress() - { - return $this->buyer_email_address; - } - - /** - * Sets buyer_email_address - * @param string $buyer_email_address The buyer's email address, if available. This value is optional, but this transaction is ineligible for chargeback protection if it is not provided. - * @return $this - */ - public function setBuyerEmailAddress($buyer_email_address) - { - $this->buyer_email_address = $buyer_email_address; - return $this; - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The ID of the order to associate with this transaction. If you provide this value, the `amount_money` value of your request must __exactly match__ the value of the order's `total_money` field. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets additional_recipients - * @return \SquareConnect\Model\AdditionalRecipient[] - */ - public function getAdditionalRecipients() - { - return $this->additional_recipients; - } - - /** - * Sets additional_recipients - * @param \SquareConnect\Model\AdditionalRecipient[] $additional_recipients The basic primitive of multi-party transaction. The value is optional. The transaction facilitated by you can be split from here. If you provide this value, the `amount_money` value in your additional_recipients must not be more than 90% of the `amount_money` value in the charge request. The `location_id` must be the valid location of the app owner merchant. This field requires the `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission. This field is currently not supported in sandbox. - * @return $this - */ - public function setAdditionalRecipients($additional_recipients) - { - $this->additional_recipients = $additional_recipients; - return $this; - } - /** - * Gets verification_token - * @return string - */ - public function getVerificationToken() - { - return $this->verification_token; - } - - /** - * Sets verification_token - * @param string $verification_token A token generated by SqPaymentForm's verifyBuyer() that represents customer's device info and 3ds challenge result. - * @return $this - */ - public function setVerificationToken($verification_token) - { - $this->verification_token = $verification_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ChargeRequestAdditionalRecipient.php b/includes/classes/vendors/square/connect/lib/Model/ChargeRequestAdditionalRecipient.php deleted file mode 100644 index cde24483ff..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ChargeRequestAdditionalRecipient.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'description' => 'string', - 'amount_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id', - 'description' => 'description', - 'amount_money' => 'amount_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId', - 'description' => 'setDescription', - 'amount_money' => 'setAmountMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId', - 'description' => 'getDescription', - 'amount_money' => 'getAmountMoney' - ); - - /** - * $location_id The location ID for a recipient (other than the merchant) receiving a portion of the tender. - * @var string - */ - protected $location_id; - /** - * $description The description of the additional recipient. - * @var string - */ - protected $description; - /** - * $amount_money The amount of money distributed to the recipient. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The location ID for a recipient (other than the merchant) receiving a portion of the tender. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description The description of the additional recipient. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money distributed to the recipient. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ChargeResponse.php b/includes/classes/vendors/square/connect/lib/Model/ChargeResponse.php deleted file mode 100644 index 6a9a774433..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ChargeResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'transaction' => '\SquareConnect\Model\Transaction' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'transaction' => 'transaction' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'transaction' => 'setTransaction' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'transaction' => 'getTransaction' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $transaction The created transaction. - * @var \SquareConnect\Model\Transaction - */ - protected $transaction; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["transaction"])) { - $this->transaction = $data["transaction"]; - } else { - $this->transaction = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets transaction - * @return \SquareConnect\Model\Transaction - */ - public function getTransaction() - { - return $this->transaction; - } - - /** - * Sets transaction - * @param \SquareConnect\Model\Transaction $transaction The created transaction. - * @return $this - */ - public function setTransaction($transaction) - { - $this->transaction = $transaction; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Checkout.php b/includes/classes/vendors/square/connect/lib/Model/Checkout.php deleted file mode 100644 index 65e9e3af05..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Checkout.php +++ /dev/null @@ -1,443 +0,0 @@ - 'string', - 'checkout_page_url' => 'string', - 'ask_for_shipping_address' => 'bool', - 'merchant_support_email' => 'string', - 'pre_populate_buyer_email' => 'string', - 'pre_populate_shipping_address' => '\SquareConnect\Model\Address', - 'redirect_url' => 'string', - 'order' => '\SquareConnect\Model\Order', - 'created_at' => 'string', - 'additional_recipients' => '\SquareConnect\Model\AdditionalRecipient[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'checkout_page_url' => 'checkout_page_url', - 'ask_for_shipping_address' => 'ask_for_shipping_address', - 'merchant_support_email' => 'merchant_support_email', - 'pre_populate_buyer_email' => 'pre_populate_buyer_email', - 'pre_populate_shipping_address' => 'pre_populate_shipping_address', - 'redirect_url' => 'redirect_url', - 'order' => 'order', - 'created_at' => 'created_at', - 'additional_recipients' => 'additional_recipients' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'checkout_page_url' => 'setCheckoutPageUrl', - 'ask_for_shipping_address' => 'setAskForShippingAddress', - 'merchant_support_email' => 'setMerchantSupportEmail', - 'pre_populate_buyer_email' => 'setPrePopulateBuyerEmail', - 'pre_populate_shipping_address' => 'setPrePopulateShippingAddress', - 'redirect_url' => 'setRedirectUrl', - 'order' => 'setOrder', - 'created_at' => 'setCreatedAt', - 'additional_recipients' => 'setAdditionalRecipients' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'checkout_page_url' => 'getCheckoutPageUrl', - 'ask_for_shipping_address' => 'getAskForShippingAddress', - 'merchant_support_email' => 'getMerchantSupportEmail', - 'pre_populate_buyer_email' => 'getPrePopulateBuyerEmail', - 'pre_populate_shipping_address' => 'getPrePopulateShippingAddress', - 'redirect_url' => 'getRedirectUrl', - 'order' => 'getOrder', - 'created_at' => 'getCreatedAt', - 'additional_recipients' => 'getAdditionalRecipients' - ); - - /** - * $id ID generated by Square Checkout when a new checkout is requested. - * @var string - */ - protected $id; - /** - * $checkout_page_url The URL that the buyer's browser should be redirected to after the checkout is completed. - * @var string - */ - protected $checkout_page_url; - /** - * $ask_for_shipping_address If `true`, Square Checkout will collect shipping information on your behalf and store that information with the transaction information in your Square Dashboard. Default: `false`. - * @var bool - */ - protected $ask_for_shipping_address; - /** - * $merchant_support_email The email address to display on the Square Checkout confirmation page and confirmation email that the buyer can use to contact the merchant. If this value is not set, the confirmation page and email will display the primary email address associated with the merchant's Square account. Default: none; only exists if explicitly set. - * @var string - */ - protected $merchant_support_email; - /** - * $pre_populate_buyer_email If provided, the buyer's email is pre-populated on the checkout page as an editable text field. Default: none; only exists if explicitly set. - * @var string - */ - protected $pre_populate_buyer_email; - /** - * $pre_populate_shipping_address If provided, the buyer's shipping info is pre-populated on the checkout page as editable text fields. Default: none; only exists if explicitly set. - * @var \SquareConnect\Model\Address - */ - protected $pre_populate_shipping_address; - /** - * $redirect_url The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow. - * @var string - */ - protected $redirect_url; - /** - * $order Order to be checked out. - * @var \SquareConnect\Model\Order - */ - protected $order; - /** - * $created_at The time when the checkout was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $additional_recipients Additional recipients (other than the merchant) receiving a portion of this checkout. For example, fees assessed on the purchase by a third party integration. - * @var \SquareConnect\Model\AdditionalRecipient[] - */ - protected $additional_recipients; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["checkout_page_url"])) { - $this->checkout_page_url = $data["checkout_page_url"]; - } else { - $this->checkout_page_url = null; - } - if (isset($data["ask_for_shipping_address"])) { - $this->ask_for_shipping_address = $data["ask_for_shipping_address"]; - } else { - $this->ask_for_shipping_address = null; - } - if (isset($data["merchant_support_email"])) { - $this->merchant_support_email = $data["merchant_support_email"]; - } else { - $this->merchant_support_email = null; - } - if (isset($data["pre_populate_buyer_email"])) { - $this->pre_populate_buyer_email = $data["pre_populate_buyer_email"]; - } else { - $this->pre_populate_buyer_email = null; - } - if (isset($data["pre_populate_shipping_address"])) { - $this->pre_populate_shipping_address = $data["pre_populate_shipping_address"]; - } else { - $this->pre_populate_shipping_address = null; - } - if (isset($data["redirect_url"])) { - $this->redirect_url = $data["redirect_url"]; - } else { - $this->redirect_url = null; - } - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["additional_recipients"])) { - $this->additional_recipients = $data["additional_recipients"]; - } else { - $this->additional_recipients = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id ID generated by Square Checkout when a new checkout is requested. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets checkout_page_url - * @return string - */ - public function getCheckoutPageUrl() - { - return $this->checkout_page_url; - } - - /** - * Sets checkout_page_url - * @param string $checkout_page_url The URL that the buyer's browser should be redirected to after the checkout is completed. - * @return $this - */ - public function setCheckoutPageUrl($checkout_page_url) - { - $this->checkout_page_url = $checkout_page_url; - return $this; - } - /** - * Gets ask_for_shipping_address - * @return bool - */ - public function getAskForShippingAddress() - { - return $this->ask_for_shipping_address; - } - - /** - * Sets ask_for_shipping_address - * @param bool $ask_for_shipping_address If `true`, Square Checkout will collect shipping information on your behalf and store that information with the transaction information in your Square Dashboard. Default: `false`. - * @return $this - */ - public function setAskForShippingAddress($ask_for_shipping_address) - { - $this->ask_for_shipping_address = $ask_for_shipping_address; - return $this; - } - /** - * Gets merchant_support_email - * @return string - */ - public function getMerchantSupportEmail() - { - return $this->merchant_support_email; - } - - /** - * Sets merchant_support_email - * @param string $merchant_support_email The email address to display on the Square Checkout confirmation page and confirmation email that the buyer can use to contact the merchant. If this value is not set, the confirmation page and email will display the primary email address associated with the merchant's Square account. Default: none; only exists if explicitly set. - * @return $this - */ - public function setMerchantSupportEmail($merchant_support_email) - { - $this->merchant_support_email = $merchant_support_email; - return $this; - } - /** - * Gets pre_populate_buyer_email - * @return string - */ - public function getPrePopulateBuyerEmail() - { - return $this->pre_populate_buyer_email; - } - - /** - * Sets pre_populate_buyer_email - * @param string $pre_populate_buyer_email If provided, the buyer's email is pre-populated on the checkout page as an editable text field. Default: none; only exists if explicitly set. - * @return $this - */ - public function setPrePopulateBuyerEmail($pre_populate_buyer_email) - { - $this->pre_populate_buyer_email = $pre_populate_buyer_email; - return $this; - } - /** - * Gets pre_populate_shipping_address - * @return \SquareConnect\Model\Address - */ - public function getPrePopulateShippingAddress() - { - return $this->pre_populate_shipping_address; - } - - /** - * Sets pre_populate_shipping_address - * @param \SquareConnect\Model\Address $pre_populate_shipping_address If provided, the buyer's shipping info is pre-populated on the checkout page as editable text fields. Default: none; only exists if explicitly set. - * @return $this - */ - public function setPrePopulateShippingAddress($pre_populate_shipping_address) - { - $this->pre_populate_shipping_address = $pre_populate_shipping_address; - return $this; - } - /** - * Gets redirect_url - * @return string - */ - public function getRedirectUrl() - { - return $this->redirect_url; - } - - /** - * Sets redirect_url - * @param string $redirect_url The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow. - * @return $this - */ - public function setRedirectUrl($redirect_url) - { - $this->redirect_url = $redirect_url; - return $this; - } - /** - * Gets order - * @return \SquareConnect\Model\Order - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\Order $order Order to be checked out. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the checkout was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets additional_recipients - * @return \SquareConnect\Model\AdditionalRecipient[] - */ - public function getAdditionalRecipients() - { - return $this->additional_recipients; - } - - /** - * Sets additional_recipients - * @param \SquareConnect\Model\AdditionalRecipient[] $additional_recipients Additional recipients (other than the merchant) receiving a portion of this checkout. For example, fees assessed on the purchase by a third party integration. - * @return $this - */ - public function setAdditionalRecipients($additional_recipients) - { - $this->additional_recipients = $additional_recipients; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CompletePaymentRequest.php b/includes/classes/vendors/square/connect/lib/Model/CompletePaymentRequest.php deleted file mode 100644 index 06108da8dd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CompletePaymentRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CompletePaymentResponse.php b/includes/classes/vendors/square/connect/lib/Model/CompletePaymentResponse.php deleted file mode 100644 index e3d37eec63..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CompletePaymentResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'payment' => '\SquareConnect\Model\Payment' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'payment' => 'payment' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'payment' => 'setPayment' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'payment' => 'getPayment' - ); - - /** - * $errors Information on errors encountered during the request - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $payment The successfully completed `Payment`. - * @var \SquareConnect\Model\Payment - */ - protected $payment; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["payment"])) { - $this->payment = $data["payment"]; - } else { - $this->payment = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets payment - * @return \SquareConnect\Model\Payment - */ - public function getPayment() - { - return $this->payment; - } - - /** - * Sets payment - * @param \SquareConnect\Model\Payment $payment The successfully completed `Payment`. - * @return $this - */ - public function setPayment($payment) - { - $this->payment = $payment; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Coordinates.php b/includes/classes/vendors/square/connect/lib/Model/Coordinates.php deleted file mode 100644 index 5d3c8a3850..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Coordinates.php +++ /dev/null @@ -1,179 +0,0 @@ - 'float', - 'longitude' => 'float' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'latitude' => 'latitude', - 'longitude' => 'longitude' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'latitude' => 'setLatitude', - 'longitude' => 'setLongitude' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'latitude' => 'getLatitude', - 'longitude' => 'getLongitude' - ); - - /** - * $latitude The latitude of the coordinate expressed in degrees. - * @var float - */ - protected $latitude; - /** - * $longitude The longitude of the coordinate expressed in degrees. - * @var float - */ - protected $longitude; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["latitude"])) { - $this->latitude = $data["latitude"]; - } else { - $this->latitude = null; - } - if (isset($data["longitude"])) { - $this->longitude = $data["longitude"]; - } else { - $this->longitude = null; - } - } - } - /** - * Gets latitude - * @return float - */ - public function getLatitude() - { - return $this->latitude; - } - - /** - * Sets latitude - * @param float $latitude The latitude of the coordinate expressed in degrees. - * @return $this - */ - public function setLatitude($latitude) - { - $this->latitude = $latitude; - return $this; - } - /** - * Gets longitude - * @return float - */ - public function getLongitude() - { - return $this->longitude; - } - - /** - * Sets longitude - * @param float $longitude The longitude of the coordinate expressed in degrees. - * @return $this - */ - public function setLongitude($longitude) - { - $this->longitude = $longitude; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Country.php b/includes/classes/vendors/square/connect/lib/Model/Country.php deleted file mode 100644 index 76ba85d621..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Country.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateBreakTypeRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateBreakTypeRequest.php deleted file mode 100644 index f016844125..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateBreakTypeRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'break_type' => '\SquareConnect\Model\BreakType' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'break_type' => 'break_type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'break_type' => 'setBreakType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'break_type' => 'getBreakType' - ); - - /** - * $idempotency_key Unique string value to insure idempotency of the operation - * @var string - */ - protected $idempotency_key; - /** - * $break_type The `BreakType` to be created. - * @var \SquareConnect\Model\BreakType - */ - protected $break_type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["break_type"])) { - $this->break_type = $data["break_type"]; - } else { - $this->break_type = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key Unique string value to insure idempotency of the operation - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets break_type - * @return \SquareConnect\Model\BreakType - */ - public function getBreakType() - { - return $this->break_type; - } - - /** - * Sets break_type - * @param \SquareConnect\Model\BreakType $break_type The `BreakType` to be created. - * @return $this - */ - public function setBreakType($break_type) - { - $this->break_type = $break_type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateBreakTypeResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateBreakTypeResponse.php deleted file mode 100644 index 8fbcf8e34a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateBreakTypeResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\BreakType', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'break_type' => 'break_type', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'break_type' => 'setBreakType', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'break_type' => 'getBreakType', - 'errors' => 'getErrors' - ); - - /** - * $break_type The `BreakType` that was created by the request. - * @var \SquareConnect\Model\BreakType - */ - protected $break_type; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["break_type"])) { - $this->break_type = $data["break_type"]; - } else { - $this->break_type = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets break_type - * @return \SquareConnect\Model\BreakType - */ - public function getBreakType() - { - return $this->break_type; - } - - /** - * Sets break_type - * @param \SquareConnect\Model\BreakType $break_type The `BreakType` that was created by the request. - * @return $this - */ - public function setBreakType($break_type) - { - $this->break_type = $break_type; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCatalogImageRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateCatalogImageRequest.php deleted file mode 100644 index cb9d23e820..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCatalogImageRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'object_id' => 'string', - 'image' => '\SquareConnect\Model\CatalogObject' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'object_id' => 'object_id', - 'image' => 'image' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'object_id' => 'setObjectId', - 'image' => 'setImage' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'object_id' => 'getObjectId', - 'image' => 'getImage' - ); - - /** - * $idempotency_key A unique string that identifies this CreateCatalogImage request. Keys can be any valid string but must be unique for every CreateCatalogImage request. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $object_id Unique ID of the `CatalogObject` to attach to this `CatalogImage`. Leave this field empty to create unattached images, for example if you are building an integration where these images can be attached to catalog items at a later time. - * @var string - */ - protected $object_id; - /** - * $image The new `IMAGE`-type `CatalogObject` to be attached to this `CatalogImage`. If the `CatalogObject` already has a `CatalogImage`, this call will overwrite it. - * @var \SquareConnect\Model\CatalogObject - */ - protected $image; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["object_id"])) { - $this->object_id = $data["object_id"]; - } else { - $this->object_id = null; - } - if (isset($data["image"])) { - $this->image = $data["image"]; - } else { - $this->image = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this CreateCatalogImage request. Keys can be any valid string but must be unique for every CreateCatalogImage request. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets object_id - * @return string - */ - public function getObjectId() - { - return $this->object_id; - } - - /** - * Sets object_id - * @param string $object_id Unique ID of the `CatalogObject` to attach to this `CatalogImage`. Leave this field empty to create unattached images, for example if you are building an integration where these images can be attached to catalog items at a later time. - * @return $this - */ - public function setObjectId($object_id) - { - $this->object_id = $object_id; - return $this; - } - /** - * Gets image - * @return \SquareConnect\Model\CatalogObject - */ - public function getImage() - { - return $this->image; - } - - /** - * Sets image - * @param \SquareConnect\Model\CatalogObject $image The new `IMAGE`-type `CatalogObject` to be attached to this `CatalogImage`. If the `CatalogObject` already has a `CatalogImage`, this call will overwrite it. - * @return $this - */ - public function setImage($image) - { - $this->image = $image; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCatalogImageResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateCatalogImageResponse.php deleted file mode 100644 index dd3fcc6f92..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCatalogImageResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'image' => '\SquareConnect\Model\CatalogObject' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'image' => 'image' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'image' => 'setImage' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'image' => 'getImage' - ); - - /** - * $errors Information on any errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $image The newly created `CatalogImage` including a Square-generated URL for each image. - * @var \SquareConnect\Model\CatalogObject - */ - protected $image; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["image"])) { - $this->image = $data["image"]; - } else { - $this->image = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets image - * @return \SquareConnect\Model\CatalogObject - */ - public function getImage() - { - return $this->image; - } - - /** - * Sets image - * @param \SquareConnect\Model\CatalogObject $image The newly created `CatalogImage` including a Square-generated URL for each image. - * @return $this - */ - public function setImage($image) - { - $this->image = $image; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCheckoutRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateCheckoutRequest.php deleted file mode 100644 index eeafcb538b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCheckoutRequest.php +++ /dev/null @@ -1,410 +0,0 @@ - 'string', - 'order' => '\SquareConnect\Model\CreateOrderRequest', - 'ask_for_shipping_address' => 'bool', - 'merchant_support_email' => 'string', - 'pre_populate_buyer_email' => 'string', - 'pre_populate_shipping_address' => '\SquareConnect\Model\Address', - 'redirect_url' => 'string', - 'additional_recipients' => '\SquareConnect\Model\ChargeRequestAdditionalRecipient[]', - 'note' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'order' => 'order', - 'ask_for_shipping_address' => 'ask_for_shipping_address', - 'merchant_support_email' => 'merchant_support_email', - 'pre_populate_buyer_email' => 'pre_populate_buyer_email', - 'pre_populate_shipping_address' => 'pre_populate_shipping_address', - 'redirect_url' => 'redirect_url', - 'additional_recipients' => 'additional_recipients', - 'note' => 'note' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'order' => 'setOrder', - 'ask_for_shipping_address' => 'setAskForShippingAddress', - 'merchant_support_email' => 'setMerchantSupportEmail', - 'pre_populate_buyer_email' => 'setPrePopulateBuyerEmail', - 'pre_populate_shipping_address' => 'setPrePopulateShippingAddress', - 'redirect_url' => 'setRedirectUrl', - 'additional_recipients' => 'setAdditionalRecipients', - 'note' => 'setNote' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'order' => 'getOrder', - 'ask_for_shipping_address' => 'getAskForShippingAddress', - 'merchant_support_email' => 'getMerchantSupportEmail', - 'pre_populate_buyer_email' => 'getPrePopulateBuyerEmail', - 'pre_populate_shipping_address' => 'getPrePopulateShippingAddress', - 'redirect_url' => 'getRedirectUrl', - 'additional_recipients' => 'getAdditionalRecipients', - 'note' => 'getNote' - ); - - /** - * $idempotency_key A unique string that identifies this checkout among others you've created. It can be any valid string but must be unique for every order sent to Square Checkout for a given location ID. The idempotency key is used to avoid processing the same order more than once. If you're unsure whether a particular checkout was created successfully, you can reattempt it with the same idempotency key and all the same other parameters without worrying about creating duplicates. We recommend using a random number/string generator native to the language you are working in to generate strings for your idempotency keys. See the [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) guide for more information. - * @var string - */ - protected $idempotency_key; - /** - * $order The order including line items to be checked out. - * @var \SquareConnect\Model\CreateOrderRequest - */ - protected $order; - /** - * $ask_for_shipping_address If `true`, Square Checkout will collect shipping information on your behalf and store that information with the transaction information in your Square Dashboard. Default: `false`. - * @var bool - */ - protected $ask_for_shipping_address; - /** - * $merchant_support_email The email address to display on the Square Checkout confirmation page and confirmation email that the buyer can use to contact the merchant. If this value is not set, the confirmation page and email will display the primary email address associated with the merchant's Square account. Default: none; only exists if explicitly set. - * @var string - */ - protected $merchant_support_email; - /** - * $pre_populate_buyer_email If provided, the buyer's email is pre-populated on the checkout page as an editable text field. Default: none; only exists if explicitly set. - * @var string - */ - protected $pre_populate_buyer_email; - /** - * $pre_populate_shipping_address If provided, the buyer's shipping info is pre-populated on the checkout page as editable text fields. Default: none; only exists if explicitly set. - * @var \SquareConnect\Model\Address - */ - protected $pre_populate_shipping_address; - /** - * $redirect_url The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow. Default: none; only exists if explicitly set. - * @var string - */ - protected $redirect_url; - /** - * $additional_recipients The basic primitive of multi-party transaction. The value is optional. The transaction facilitated by you can be split from here. If you provide this value, the `amount_money` value in your additional_recipients must not be more than 90% of the `total_money` calculated by Square for your order. The `location_id` must be the valid location of the app owner merchant. This field requires `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission. This field is currently not supported in sandbox. - * @var \SquareConnect\Model\ChargeRequestAdditionalRecipient[] - */ - protected $additional_recipients; - /** - * $note An optional note to associate with the checkout object. This value cannot exceed 60 characters. - * @var string - */ - protected $note; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["ask_for_shipping_address"])) { - $this->ask_for_shipping_address = $data["ask_for_shipping_address"]; - } else { - $this->ask_for_shipping_address = null; - } - if (isset($data["merchant_support_email"])) { - $this->merchant_support_email = $data["merchant_support_email"]; - } else { - $this->merchant_support_email = null; - } - if (isset($data["pre_populate_buyer_email"])) { - $this->pre_populate_buyer_email = $data["pre_populate_buyer_email"]; - } else { - $this->pre_populate_buyer_email = null; - } - if (isset($data["pre_populate_shipping_address"])) { - $this->pre_populate_shipping_address = $data["pre_populate_shipping_address"]; - } else { - $this->pre_populate_shipping_address = null; - } - if (isset($data["redirect_url"])) { - $this->redirect_url = $data["redirect_url"]; - } else { - $this->redirect_url = null; - } - if (isset($data["additional_recipients"])) { - $this->additional_recipients = $data["additional_recipients"]; - } else { - $this->additional_recipients = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this checkout among others you've created. It can be any valid string but must be unique for every order sent to Square Checkout for a given location ID. The idempotency key is used to avoid processing the same order more than once. If you're unsure whether a particular checkout was created successfully, you can reattempt it with the same idempotency key and all the same other parameters without worrying about creating duplicates. We recommend using a random number/string generator native to the language you are working in to generate strings for your idempotency keys. See the [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) guide for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets order - * @return \SquareConnect\Model\CreateOrderRequest - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\CreateOrderRequest $order The order including line items to be checked out. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets ask_for_shipping_address - * @return bool - */ - public function getAskForShippingAddress() - { - return $this->ask_for_shipping_address; - } - - /** - * Sets ask_for_shipping_address - * @param bool $ask_for_shipping_address If `true`, Square Checkout will collect shipping information on your behalf and store that information with the transaction information in your Square Dashboard. Default: `false`. - * @return $this - */ - public function setAskForShippingAddress($ask_for_shipping_address) - { - $this->ask_for_shipping_address = $ask_for_shipping_address; - return $this; - } - /** - * Gets merchant_support_email - * @return string - */ - public function getMerchantSupportEmail() - { - return $this->merchant_support_email; - } - - /** - * Sets merchant_support_email - * @param string $merchant_support_email The email address to display on the Square Checkout confirmation page and confirmation email that the buyer can use to contact the merchant. If this value is not set, the confirmation page and email will display the primary email address associated with the merchant's Square account. Default: none; only exists if explicitly set. - * @return $this - */ - public function setMerchantSupportEmail($merchant_support_email) - { - $this->merchant_support_email = $merchant_support_email; - return $this; - } - /** - * Gets pre_populate_buyer_email - * @return string - */ - public function getPrePopulateBuyerEmail() - { - return $this->pre_populate_buyer_email; - } - - /** - * Sets pre_populate_buyer_email - * @param string $pre_populate_buyer_email If provided, the buyer's email is pre-populated on the checkout page as an editable text field. Default: none; only exists if explicitly set. - * @return $this - */ - public function setPrePopulateBuyerEmail($pre_populate_buyer_email) - { - $this->pre_populate_buyer_email = $pre_populate_buyer_email; - return $this; - } - /** - * Gets pre_populate_shipping_address - * @return \SquareConnect\Model\Address - */ - public function getPrePopulateShippingAddress() - { - return $this->pre_populate_shipping_address; - } - - /** - * Sets pre_populate_shipping_address - * @param \SquareConnect\Model\Address $pre_populate_shipping_address If provided, the buyer's shipping info is pre-populated on the checkout page as editable text fields. Default: none; only exists if explicitly set. - * @return $this - */ - public function setPrePopulateShippingAddress($pre_populate_shipping_address) - { - $this->pre_populate_shipping_address = $pre_populate_shipping_address; - return $this; - } - /** - * Gets redirect_url - * @return string - */ - public function getRedirectUrl() - { - return $this->redirect_url; - } - - /** - * Sets redirect_url - * @param string $redirect_url The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow. Default: none; only exists if explicitly set. - * @return $this - */ - public function setRedirectUrl($redirect_url) - { - $this->redirect_url = $redirect_url; - return $this; - } - /** - * Gets additional_recipients - * @return \SquareConnect\Model\ChargeRequestAdditionalRecipient[] - */ - public function getAdditionalRecipients() - { - return $this->additional_recipients; - } - - /** - * Sets additional_recipients - * @param \SquareConnect\Model\ChargeRequestAdditionalRecipient[] $additional_recipients The basic primitive of multi-party transaction. The value is optional. The transaction facilitated by you can be split from here. If you provide this value, the `amount_money` value in your additional_recipients must not be more than 90% of the `total_money` calculated by Square for your order. The `location_id` must be the valid location of the app owner merchant. This field requires `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission. This field is currently not supported in sandbox. - * @return $this - */ - public function setAdditionalRecipients($additional_recipients) - { - $this->additional_recipients = $additional_recipients; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note An optional note to associate with the checkout object. This value cannot exceed 60 characters. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCheckoutResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateCheckoutResponse.php deleted file mode 100644 index 66013c44e2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCheckoutResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Checkout', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'checkout' => 'checkout', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'checkout' => 'setCheckout', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'checkout' => 'getCheckout', - 'errors' => 'getErrors' - ); - - /** - * $checkout The newly created checkout. If the same request was made with the same idempotency_key, this will be the checkout created with the idempotency_key. - * @var \SquareConnect\Model\Checkout - */ - protected $checkout; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["checkout"])) { - $this->checkout = $data["checkout"]; - } else { - $this->checkout = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets checkout - * @return \SquareConnect\Model\Checkout - */ - public function getCheckout() - { - return $this->checkout; - } - - /** - * Sets checkout - * @param \SquareConnect\Model\Checkout $checkout The newly created checkout. If the same request was made with the same idempotency_key, this will be the checkout created with the idempotency_key. - * @return $this - */ - public function setCheckout($checkout) - { - $this->checkout = $checkout; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerCardRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateCustomerCardRequest.php deleted file mode 100644 index d56d035f94..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerCardRequest.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'billing_address' => '\SquareConnect\Model\Address', - 'cardholder_name' => 'string', - 'verification_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'card_nonce' => 'card_nonce', - 'billing_address' => 'billing_address', - 'cardholder_name' => 'cardholder_name', - 'verification_token' => 'verification_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'card_nonce' => 'setCardNonce', - 'billing_address' => 'setBillingAddress', - 'cardholder_name' => 'setCardholderName', - 'verification_token' => 'setVerificationToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'card_nonce' => 'getCardNonce', - 'billing_address' => 'getBillingAddress', - 'cardholder_name' => 'getCardholderName', - 'verification_token' => 'getVerificationToken' - ); - - /** - * $card_nonce A card nonce representing the credit card to link to the customer. Card nonces are generated by the Square Payment Form when customers enter their card information. See [Embedding the payment form](https://developer.squareup.com/docs/payment-form/payment-form-walkthrough) for more information. __NOTE:__ Card nonces generated by digital wallets (e.g., Apple Pay) cannot be used to create a customer card. - * @var string - */ - protected $card_nonce; - /** - * $billing_address Address information for the card on file. Only the `postal_code` field is required for payments in the US and Canada. - * @var \SquareConnect\Model\Address - */ - protected $billing_address; - /** - * $cardholder_name The full name printed on the credit card. - * @var string - */ - protected $cardholder_name; - /** - * $verification_token An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. - * @var string - */ - protected $verification_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["card_nonce"])) { - $this->card_nonce = $data["card_nonce"]; - } else { - $this->card_nonce = null; - } - if (isset($data["billing_address"])) { - $this->billing_address = $data["billing_address"]; - } else { - $this->billing_address = null; - } - if (isset($data["cardholder_name"])) { - $this->cardholder_name = $data["cardholder_name"]; - } else { - $this->cardholder_name = null; - } - if (isset($data["verification_token"])) { - $this->verification_token = $data["verification_token"]; - } else { - $this->verification_token = null; - } - } - } - /** - * Gets card_nonce - * @return string - */ - public function getCardNonce() - { - return $this->card_nonce; - } - - /** - * Sets card_nonce - * @param string $card_nonce A card nonce representing the credit card to link to the customer. Card nonces are generated by the Square Payment Form when customers enter their card information. See [Embedding the payment form](https://developer.squareup.com/docs/payment-form/payment-form-walkthrough) for more information. __NOTE:__ Card nonces generated by digital wallets (e.g., Apple Pay) cannot be used to create a customer card. - * @return $this - */ - public function setCardNonce($card_nonce) - { - $this->card_nonce = $card_nonce; - return $this; - } - /** - * Gets billing_address - * @return \SquareConnect\Model\Address - */ - public function getBillingAddress() - { - return $this->billing_address; - } - - /** - * Sets billing_address - * @param \SquareConnect\Model\Address $billing_address Address information for the card on file. Only the `postal_code` field is required for payments in the US and Canada. - * @return $this - */ - public function setBillingAddress($billing_address) - { - $this->billing_address = $billing_address; - return $this; - } - /** - * Gets cardholder_name - * @return string - */ - public function getCardholderName() - { - return $this->cardholder_name; - } - - /** - * Sets cardholder_name - * @param string $cardholder_name The full name printed on the credit card. - * @return $this - */ - public function setCardholderName($cardholder_name) - { - $this->cardholder_name = $cardholder_name; - return $this; - } - /** - * Gets verification_token - * @return string - */ - public function getVerificationToken() - { - return $this->verification_token; - } - - /** - * Sets verification_token - * @param string $verification_token An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. - * @return $this - */ - public function setVerificationToken($verification_token) - { - $this->verification_token = $verification_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerCardResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateCustomerCardResponse.php deleted file mode 100644 index d2212175d7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerCardResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'card' => '\SquareConnect\Model\Card' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'card' => 'card' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'card' => 'setCard' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'card' => 'getCard' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $card The created card on file. - * @var \SquareConnect\Model\Card - */ - protected $card; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["card"])) { - $this->card = $data["card"]; - } else { - $this->card = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets card - * @return \SquareConnect\Model\Card - */ - public function getCard() - { - return $this->card; - } - - /** - * Sets card - * @param \SquareConnect\Model\Card $card The created card on file. - * @return $this - */ - public function setCard($card) - { - $this->card = $card; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerGroupRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateCustomerGroupRequest.php deleted file mode 100644 index 54194f4f07..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerGroupRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'group' => '\SquareConnect\Model\CustomerGroup' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'group' => 'group' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'group' => 'setGroup' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'group' => 'getGroup' - ); - - /** - * $idempotency_key The idempotency key for the request. See the [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) guide for more information. - * @var string - */ - protected $idempotency_key; - /** - * $group The customer group to create. - * @var \SquareConnect\Model\CustomerGroup - */ - protected $group; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["group"])) { - $this->group = $data["group"]; - } else { - $this->group = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key The idempotency key for the request. See the [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) guide for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets group - * @return \SquareConnect\Model\CustomerGroup - */ - public function getGroup() - { - return $this->group; - } - - /** - * Sets group - * @param \SquareConnect\Model\CustomerGroup $group The customer group to create. - * @return $this - */ - public function setGroup($group) - { - $this->group = $group; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerGroupResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateCustomerGroupResponse.php deleted file mode 100644 index fb6f76726d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerGroupResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'group' => '\SquareConnect\Model\CustomerGroup' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'group' => 'group' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'group' => 'setGroup' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'group' => 'getGroup' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $group The successfully created customer group. - * @var \SquareConnect\Model\CustomerGroup - */ - protected $group; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["group"])) { - $this->group = $data["group"]; - } else { - $this->group = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets group - * @return \SquareConnect\Model\CustomerGroup - */ - public function getGroup() - { - return $this->group; - } - - /** - * Sets group - * @param \SquareConnect\Model\CustomerGroup $group The successfully created customer group. - * @return $this - */ - public function setGroup($group) - { - $this->group = $group; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateCustomerRequest.php deleted file mode 100644 index 9f1895e36e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerRequest.php +++ /dev/null @@ -1,476 +0,0 @@ - 'string', - 'given_name' => 'string', - 'family_name' => 'string', - 'company_name' => 'string', - 'nickname' => 'string', - 'email_address' => 'string', - 'address' => '\SquareConnect\Model\Address', - 'phone_number' => 'string', - 'reference_id' => 'string', - 'note' => 'string', - 'birthday' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'given_name' => 'given_name', - 'family_name' => 'family_name', - 'company_name' => 'company_name', - 'nickname' => 'nickname', - 'email_address' => 'email_address', - 'address' => 'address', - 'phone_number' => 'phone_number', - 'reference_id' => 'reference_id', - 'note' => 'note', - 'birthday' => 'birthday' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'given_name' => 'setGivenName', - 'family_name' => 'setFamilyName', - 'company_name' => 'setCompanyName', - 'nickname' => 'setNickname', - 'email_address' => 'setEmailAddress', - 'address' => 'setAddress', - 'phone_number' => 'setPhoneNumber', - 'reference_id' => 'setReferenceId', - 'note' => 'setNote', - 'birthday' => 'setBirthday' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'given_name' => 'getGivenName', - 'family_name' => 'getFamilyName', - 'company_name' => 'getCompanyName', - 'nickname' => 'getNickname', - 'email_address' => 'getEmailAddress', - 'address' => 'getAddress', - 'phone_number' => 'getPhoneNumber', - 'reference_id' => 'getReferenceId', - 'note' => 'getNote', - 'birthday' => 'getBirthday' - ); - - /** - * $idempotency_key The idempotency key for the request. See the [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) guide for more information. - * @var string - */ - protected $idempotency_key; - /** - * $given_name The given (i.e., first) name associated with the customer profile. - * @var string - */ - protected $given_name; - /** - * $family_name The family (i.e., last) name associated with the customer profile. - * @var string - */ - protected $family_name; - /** - * $company_name A business name associated with the customer profile. - * @var string - */ - protected $company_name; - /** - * $nickname A nickname for the customer profile. - * @var string - */ - protected $nickname; - /** - * $email_address The email address associated with the customer profile. - * @var string - */ - protected $email_address; - /** - * $address The physical address associated with the customer profile. - * @var \SquareConnect\Model\Address - */ - protected $address; - /** - * $phone_number The 11-digit phone number associated with the customer profile. - * @var string - */ - protected $phone_number; - /** - * $reference_id An optional, second ID used to associate the customer profile with an entity in another system. - * @var string - */ - protected $reference_id; - /** - * $note A custom note associated with the customer profile. - * @var string - */ - protected $note; - /** - * $birthday The birthday associated with the customer profile, in RFC-3339 format. Year is optional, timezone and times are not allowed. For example: `0000-09-01T00:00:00-00:00` indicates a birthday on September 1st. `1998-09-01T00:00:00-00:00` indications a birthday on September 1st __1998__. - * @var string - */ - protected $birthday; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["given_name"])) { - $this->given_name = $data["given_name"]; - } else { - $this->given_name = null; - } - if (isset($data["family_name"])) { - $this->family_name = $data["family_name"]; - } else { - $this->family_name = null; - } - if (isset($data["company_name"])) { - $this->company_name = $data["company_name"]; - } else { - $this->company_name = null; - } - if (isset($data["nickname"])) { - $this->nickname = $data["nickname"]; - } else { - $this->nickname = null; - } - if (isset($data["email_address"])) { - $this->email_address = $data["email_address"]; - } else { - $this->email_address = null; - } - if (isset($data["address"])) { - $this->address = $data["address"]; - } else { - $this->address = null; - } - if (isset($data["phone_number"])) { - $this->phone_number = $data["phone_number"]; - } else { - $this->phone_number = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["birthday"])) { - $this->birthday = $data["birthday"]; - } else { - $this->birthday = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key The idempotency key for the request. See the [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) guide for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets given_name - * @return string - */ - public function getGivenName() - { - return $this->given_name; - } - - /** - * Sets given_name - * @param string $given_name The given (i.e., first) name associated with the customer profile. - * @return $this - */ - public function setGivenName($given_name) - { - $this->given_name = $given_name; - return $this; - } - /** - * Gets family_name - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * Sets family_name - * @param string $family_name The family (i.e., last) name associated with the customer profile. - * @return $this - */ - public function setFamilyName($family_name) - { - $this->family_name = $family_name; - return $this; - } - /** - * Gets company_name - * @return string - */ - public function getCompanyName() - { - return $this->company_name; - } - - /** - * Sets company_name - * @param string $company_name A business name associated with the customer profile. - * @return $this - */ - public function setCompanyName($company_name) - { - $this->company_name = $company_name; - return $this; - } - /** - * Gets nickname - * @return string - */ - public function getNickname() - { - return $this->nickname; - } - - /** - * Sets nickname - * @param string $nickname A nickname for the customer profile. - * @return $this - */ - public function setNickname($nickname) - { - $this->nickname = $nickname; - return $this; - } - /** - * Gets email_address - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Sets email_address - * @param string $email_address The email address associated with the customer profile. - * @return $this - */ - public function setEmailAddress($email_address) - { - $this->email_address = $email_address; - return $this; - } - /** - * Gets address - * @return \SquareConnect\Model\Address - */ - public function getAddress() - { - return $this->address; - } - - /** - * Sets address - * @param \SquareConnect\Model\Address $address The physical address associated with the customer profile. - * @return $this - */ - public function setAddress($address) - { - $this->address = $address; - return $this; - } - /** - * Gets phone_number - * @return string - */ - public function getPhoneNumber() - { - return $this->phone_number; - } - - /** - * Sets phone_number - * @param string $phone_number The 11-digit phone number associated with the customer profile. - * @return $this - */ - public function setPhoneNumber($phone_number) - { - $this->phone_number = $phone_number; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional, second ID used to associate the customer profile with an entity in another system. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note A custom note associated with the customer profile. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets birthday - * @return string - */ - public function getBirthday() - { - return $this->birthday; - } - - /** - * Sets birthday - * @param string $birthday The birthday associated with the customer profile, in RFC-3339 format. Year is optional, timezone and times are not allowed. For example: `0000-09-01T00:00:00-00:00` indicates a birthday on September 1st. `1998-09-01T00:00:00-00:00` indications a birthday on September 1st __1998__. - * @return $this - */ - public function setBirthday($birthday) - { - $this->birthday = $birthday; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateCustomerResponse.php deleted file mode 100644 index 9f390875cb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateCustomerResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'customer' => '\SquareConnect\Model\Customer' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'customer' => 'customer' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'customer' => 'setCustomer' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'customer' => 'getCustomer' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $customer The created customer. - * @var \SquareConnect\Model\Customer - */ - protected $customer; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["customer"])) { - $this->customer = $data["customer"]; - } else { - $this->customer = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets customer - * @return \SquareConnect\Model\Customer - */ - public function getCustomer() - { - return $this->customer; - } - - /** - * Sets customer - * @param \SquareConnect\Model\Customer $customer The created customer. - * @return $this - */ - public function setCustomer($customer) - { - $this->customer = $customer; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateDeviceCodeRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateDeviceCodeRequest.php deleted file mode 100644 index 23ce645c94..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateDeviceCodeRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'device_code' => '\SquareConnect\Model\DeviceCode' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'device_code' => 'device_code' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'device_code' => 'setDeviceCode' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'device_code' => 'getDeviceCode' - ); - - /** - * $idempotency_key A unique string that identifies this CreateCheckout request. Keys can be any valid string but must be unique for every CreateCheckout request. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $device_code The device code to create. - * @var \SquareConnect\Model\DeviceCode - */ - protected $device_code; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["device_code"])) { - $this->device_code = $data["device_code"]; - } else { - $this->device_code = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this CreateCheckout request. Keys can be any valid string but must be unique for every CreateCheckout request. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets device_code - * @return \SquareConnect\Model\DeviceCode - */ - public function getDeviceCode() - { - return $this->device_code; - } - - /** - * Sets device_code - * @param \SquareConnect\Model\DeviceCode $device_code The device code to create. - * @return $this - */ - public function setDeviceCode($device_code) - { - $this->device_code = $device_code; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateDeviceCodeResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateDeviceCodeResponse.php deleted file mode 100644 index 26252a607f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateDeviceCodeResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'device_code' => '\SquareConnect\Model\DeviceCode' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'device_code' => 'device_code' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'device_code' => 'setDeviceCode' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'device_code' => 'getDeviceCode' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $device_code The created DeviceCode object containing the device code string. - * @var \SquareConnect\Model\DeviceCode - */ - protected $device_code; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["device_code"])) { - $this->device_code = $data["device_code"]; - } else { - $this->device_code = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets device_code - * @return \SquareConnect\Model\DeviceCode - */ - public function getDeviceCode() - { - return $this->device_code; - } - - /** - * Sets device_code - * @param \SquareConnect\Model\DeviceCode $device_code The created DeviceCode object containing the device code string. - * @return $this - */ - public function setDeviceCode($device_code) - { - $this->device_code = $device_code; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceFileRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceFileRequest.php deleted file mode 100644 index d0814606f5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceFileRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'evidence_type' => 'string', - 'content_type' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'evidence_type' => 'evidence_type', - 'content_type' => 'content_type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'evidence_type' => 'setEvidenceType', - 'content_type' => 'setContentType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'evidence_type' => 'getEvidenceType', - 'content_type' => 'getContentType' - ); - - /** - * $idempotency_key Unique ID. For more information, see [Idempotency](https://developer.squareup.com/docs/docs/working-with-apis/idempotency). - * @var string - */ - protected $idempotency_key; - /** - * $evidence_type The type of evidence you are uploading. See [DisputeEvidenceType](#type-disputeevidencetype) for possible values - * @var string - */ - protected $evidence_type; - /** - * $content_type The MIME type of the uploaded file. One of image/heic, image/heif, image/jpeg, application/pdf, image/png, image/tiff. - * @var string - */ - protected $content_type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["evidence_type"])) { - $this->evidence_type = $data["evidence_type"]; - } else { - $this->evidence_type = null; - } - if (isset($data["content_type"])) { - $this->content_type = $data["content_type"]; - } else { - $this->content_type = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key Unique ID. For more information, see [Idempotency](https://developer.squareup.com/docs/docs/working-with-apis/idempotency). - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets evidence_type - * @return string - */ - public function getEvidenceType() - { - return $this->evidence_type; - } - - /** - * Sets evidence_type - * @param string $evidence_type The type of evidence you are uploading. See [DisputeEvidenceType](#type-disputeevidencetype) for possible values - * @return $this - */ - public function setEvidenceType($evidence_type) - { - $this->evidence_type = $evidence_type; - return $this; - } - /** - * Gets content_type - * @return string - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * Sets content_type - * @param string $content_type The MIME type of the uploaded file. One of image/heic, image/heif, image/jpeg, application/pdf, image/png, image/tiff. - * @return $this - */ - public function setContentType($content_type) - { - $this->content_type = $content_type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceFileResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceFileResponse.php deleted file mode 100644 index 2158290ddc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceFileResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'evidence' => '\SquareConnect\Model\DisputeEvidence' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'evidence' => 'evidence' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'evidence' => 'setEvidence' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'evidence' => 'getEvidence' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $evidence The metadata of the newly uploaded dispute evidence. - * @var \SquareConnect\Model\DisputeEvidence - */ - protected $evidence; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["evidence"])) { - $this->evidence = $data["evidence"]; - } else { - $this->evidence = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets evidence - * @return \SquareConnect\Model\DisputeEvidence - */ - public function getEvidence() - { - return $this->evidence; - } - - /** - * Sets evidence - * @param \SquareConnect\Model\DisputeEvidence $evidence The metadata of the newly uploaded dispute evidence. - * @return $this - */ - public function setEvidence($evidence) - { - $this->evidence = $evidence; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceTextRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceTextRequest.php deleted file mode 100644 index b1794c5224..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceTextRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'evidence_type' => 'string', - 'evidence_text' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'evidence_type' => 'evidence_type', - 'evidence_text' => 'evidence_text' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'evidence_type' => 'setEvidenceType', - 'evidence_text' => 'setEvidenceText' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'evidence_type' => 'getEvidenceType', - 'evidence_text' => 'getEvidenceText' - ); - - /** - * $idempotency_key Unique ID. For more information, see [Idempotency](https://developer.squareup.com/docs/docs/working-with-apis/idempotency). - * @var string - */ - protected $idempotency_key; - /** - * $evidence_type The type of evidence you are uploading. See [DisputeEvidenceType](#type-disputeevidencetype) for possible values - * @var string - */ - protected $evidence_type; - /** - * $evidence_text The evidence string. - * @var string - */ - protected $evidence_text; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["evidence_type"])) { - $this->evidence_type = $data["evidence_type"]; - } else { - $this->evidence_type = null; - } - if (isset($data["evidence_text"])) { - $this->evidence_text = $data["evidence_text"]; - } else { - $this->evidence_text = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key Unique ID. For more information, see [Idempotency](https://developer.squareup.com/docs/docs/working-with-apis/idempotency). - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets evidence_type - * @return string - */ - public function getEvidenceType() - { - return $this->evidence_type; - } - - /** - * Sets evidence_type - * @param string $evidence_type The type of evidence you are uploading. See [DisputeEvidenceType](#type-disputeevidencetype) for possible values - * @return $this - */ - public function setEvidenceType($evidence_type) - { - $this->evidence_type = $evidence_type; - return $this; - } - /** - * Gets evidence_text - * @return string - */ - public function getEvidenceText() - { - return $this->evidence_text; - } - - /** - * Sets evidence_text - * @param string $evidence_text The evidence string. - * @return $this - */ - public function setEvidenceText($evidence_text) - { - $this->evidence_text = $evidence_text; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceTextResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceTextResponse.php deleted file mode 100644 index 4f4c855bfe..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateDisputeEvidenceTextResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'evidence' => '\SquareConnect\Model\DisputeEvidence' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'evidence' => 'evidence' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'evidence' => 'setEvidence' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'evidence' => 'getEvidence' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $evidence The newly uploaded dispute evidence metadata. - * @var \SquareConnect\Model\DisputeEvidence - */ - protected $evidence; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["evidence"])) { - $this->evidence = $data["evidence"]; - } else { - $this->evidence = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets evidence - * @return \SquareConnect\Model\DisputeEvidence - */ - public function getEvidence() - { - return $this->evidence; - } - - /** - * Sets evidence - * @param \SquareConnect\Model\DisputeEvidence $evidence The newly uploaded dispute evidence metadata. - * @return $this - */ - public function setEvidence($evidence) - { - $this->evidence = $evidence; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateLocationRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateLocationRequest.php deleted file mode 100644 index 77a64d0d85..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateLocationRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Location' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location' => 'location' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location' => 'setLocation' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location' => 'getLocation' - ); - - /** - * $location The initial values of the location being created. The `name` field is required. All other fields are optional. Unspecified fields will be set to default values using existing location data. - * @var \SquareConnect\Model\Location - */ - protected $location; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location"])) { - $this->location = $data["location"]; - } else { - $this->location = null; - } - } - } - /** - * Gets location - * @return \SquareConnect\Model\Location - */ - public function getLocation() - { - return $this->location; - } - - /** - * Sets location - * @param \SquareConnect\Model\Location $location The initial values of the location being created. The `name` field is required. All other fields are optional. Unspecified fields will be set to default values using existing location data. - * @return $this - */ - public function setLocation($location) - { - $this->location = $location; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateLocationResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateLocationResponse.php deleted file mode 100644 index 737d65a942..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateLocationResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'location' => '\SquareConnect\Model\Location' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'location' => 'location' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'location' => 'setLocation' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'location' => 'getLocation' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $location The newly created `Location`. - * @var \SquareConnect\Model\Location - */ - protected $location; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["location"])) { - $this->location = $data["location"]; - } else { - $this->location = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets location - * @return \SquareConnect\Model\Location - */ - public function getLocation() - { - return $this->location; - } - - /** - * Sets location - * @param \SquareConnect\Model\Location $location The newly created `Location`. - * @return $this - */ - public function setLocation($location) - { - $this->location = $location; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyAccountRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyAccountRequest.php deleted file mode 100644 index 53fab44794..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyAccountRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\LoyaltyAccount', - 'idempotency_key' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_account' => 'loyalty_account', - 'idempotency_key' => 'idempotency_key' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_account' => 'setLoyaltyAccount', - 'idempotency_key' => 'setIdempotencyKey' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_account' => 'getLoyaltyAccount', - 'idempotency_key' => 'getIdempotencyKey' - ); - - /** - * $loyalty_account The loyalty account to create. - * @var \SquareConnect\Model\LoyaltyAccount - */ - protected $loyalty_account; - /** - * $idempotency_key A unique string that identifies this `CreateLoyaltyAccount` request. Keys can be any valid string, but must be unique for every request. - * @var string - */ - protected $idempotency_key; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_account"])) { - $this->loyalty_account = $data["loyalty_account"]; - } else { - $this->loyalty_account = null; - } - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - } - } - /** - * Gets loyalty_account - * @return \SquareConnect\Model\LoyaltyAccount - */ - public function getLoyaltyAccount() - { - return $this->loyalty_account; - } - - /** - * Sets loyalty_account - * @param \SquareConnect\Model\LoyaltyAccount $loyalty_account The loyalty account to create. - * @return $this - */ - public function setLoyaltyAccount($loyalty_account) - { - $this->loyalty_account = $loyalty_account; - return $this; - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this `CreateLoyaltyAccount` request. Keys can be any valid string, but must be unique for every request. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyAccountResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyAccountResponse.php deleted file mode 100644 index 2124a4a10d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyAccountResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'loyalty_account' => '\SquareConnect\Model\LoyaltyAccount' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'loyalty_account' => 'loyalty_account' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'loyalty_account' => 'setLoyaltyAccount' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'loyalty_account' => 'getLoyaltyAccount' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $loyalty_account The newly created loyalty account. - * @var \SquareConnect\Model\LoyaltyAccount - */ - protected $loyalty_account; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["loyalty_account"])) { - $this->loyalty_account = $data["loyalty_account"]; - } else { - $this->loyalty_account = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets loyalty_account - * @return \SquareConnect\Model\LoyaltyAccount - */ - public function getLoyaltyAccount() - { - return $this->loyalty_account; - } - - /** - * Sets loyalty_account - * @param \SquareConnect\Model\LoyaltyAccount $loyalty_account The newly created loyalty account. - * @return $this - */ - public function setLoyaltyAccount($loyalty_account) - { - $this->loyalty_account = $loyalty_account; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyRewardRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyRewardRequest.php deleted file mode 100644 index d89f80bed4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyRewardRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\LoyaltyReward', - 'idempotency_key' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'reward' => 'reward', - 'idempotency_key' => 'idempotency_key' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'reward' => 'setReward', - 'idempotency_key' => 'setIdempotencyKey' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'reward' => 'getReward', - 'idempotency_key' => 'getIdempotencyKey' - ); - - /** - * $reward The reward to create. - * @var \SquareConnect\Model\LoyaltyReward - */ - protected $reward; - /** - * $idempotency_key A unique string that identifies this `CreateLoyaltyReward` request. Keys can be any valid string, but must be unique for every request. - * @var string - */ - protected $idempotency_key; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["reward"])) { - $this->reward = $data["reward"]; - } else { - $this->reward = null; - } - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - } - } - /** - * Gets reward - * @return \SquareConnect\Model\LoyaltyReward - */ - public function getReward() - { - return $this->reward; - } - - /** - * Sets reward - * @param \SquareConnect\Model\LoyaltyReward $reward The reward to create. - * @return $this - */ - public function setReward($reward) - { - $this->reward = $reward; - return $this; - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this `CreateLoyaltyReward` request. Keys can be any valid string, but must be unique for every request. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyRewardResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyRewardResponse.php deleted file mode 100644 index 8deba640a4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateLoyaltyRewardResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'reward' => '\SquareConnect\Model\LoyaltyReward' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'reward' => 'reward' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'reward' => 'setReward' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'reward' => 'getReward' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $reward The loyalty reward created. - * @var \SquareConnect\Model\LoyaltyReward - */ - protected $reward; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["reward"])) { - $this->reward = $data["reward"]; - } else { - $this->reward = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets reward - * @return \SquareConnect\Model\LoyaltyReward - */ - public function getReward() - { - return $this->reward; - } - - /** - * Sets reward - * @param \SquareConnect\Model\LoyaltyReward $reward The loyalty reward created. - * @return $this - */ - public function setReward($reward) - { - $this->reward = $reward; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateMobileAuthorizationCodeRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateMobileAuthorizationCodeRequest.php deleted file mode 100644 index 6631e42b65..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateMobileAuthorizationCodeRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId' - ); - - /** - * $location_id The Square location ID the authorization code should be tied to. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The Square location ID the authorization code should be tied to. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateMobileAuthorizationCodeResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateMobileAuthorizationCodeResponse.php deleted file mode 100644 index 366795064e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateMobileAuthorizationCodeResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'expires_at' => 'string', - 'error' => '\SquareConnect\Model\Error' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'authorization_code' => 'authorization_code', - 'expires_at' => 'expires_at', - 'error' => 'error' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'authorization_code' => 'setAuthorizationCode', - 'expires_at' => 'setExpiresAt', - 'error' => 'setError' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'authorization_code' => 'getAuthorizationCode', - 'expires_at' => 'getExpiresAt', - 'error' => 'getError' - ); - - /** - * $authorization_code Generated authorization code that connects a mobile application instance to a Square account. - * @var string - */ - protected $authorization_code; - /** - * $expires_at The timestamp when `authorization_code` expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $expires_at; - /** - * $error An error object that provides details about how creation of authorization code failed. - * @var \SquareConnect\Model\Error - */ - protected $error; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["authorization_code"])) { - $this->authorization_code = $data["authorization_code"]; - } else { - $this->authorization_code = null; - } - if (isset($data["expires_at"])) { - $this->expires_at = $data["expires_at"]; - } else { - $this->expires_at = null; - } - if (isset($data["error"])) { - $this->error = $data["error"]; - } else { - $this->error = null; - } - } - } - /** - * Gets authorization_code - * @return string - */ - public function getAuthorizationCode() - { - return $this->authorization_code; - } - - /** - * Sets authorization_code - * @param string $authorization_code Generated authorization code that connects a mobile application instance to a Square account. - * @return $this - */ - public function setAuthorizationCode($authorization_code) - { - $this->authorization_code = $authorization_code; - return $this; - } - /** - * Gets expires_at - * @return string - */ - public function getExpiresAt() - { - return $this->expires_at; - } - - /** - * Sets expires_at - * @param string $expires_at The timestamp when `authorization_code` expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setExpiresAt($expires_at) - { - $this->expires_at = $expires_at; - return $this; - } - /** - * Gets error - * @return \SquareConnect\Model\Error - */ - public function getError() - { - return $this->error; - } - - /** - * Sets error - * @param \SquareConnect\Model\Error $error An error object that provides details about how creation of authorization code failed. - * @return $this - */ - public function setError($error) - { - $this->error = $error; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateOrderRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateOrderRequest.php deleted file mode 100644 index 577abed53c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateOrderRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Order', - 'idempotency_key' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'idempotency_key' => 'idempotency_key' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'idempotency_key' => 'setIdempotencyKey' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'idempotency_key' => 'getIdempotencyKey' - ); - - /** - * $order The order to create. If this field is set, then the only other top-level field that can be set is the idempotency_key. - * @var \SquareConnect\Model\Order - */ - protected $order; - /** - * $idempotency_key A value you specify that uniquely identifies this order among orders you've created. If you're unsure whether a particular order was created successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate orders. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - } - } - /** - * Gets order - * @return \SquareConnect\Model\Order - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\Order $order The order to create. If this field is set, then the only other top-level field that can be set is the idempotency_key. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A value you specify that uniquely identifies this order among orders you've created. If you're unsure whether a particular order was created successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate orders. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateOrderResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateOrderResponse.php deleted file mode 100644 index 927e4db983..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateOrderResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Order', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'errors' => 'getErrors' - ); - - /** - * $order The newly created order. - * @var \SquareConnect\Model\Order - */ - protected $order; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets order - * @return \SquareConnect\Model\Order - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\Order $order The newly created order. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreatePaymentRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreatePaymentRequest.php deleted file mode 100644 index ff0961e650..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreatePaymentRequest.php +++ /dev/null @@ -1,711 +0,0 @@ - 'string', - 'idempotency_key' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'tip_money' => '\SquareConnect\Model\Money', - 'app_fee_money' => '\SquareConnect\Model\Money', - 'delay_duration' => 'string', - 'autocomplete' => 'bool', - 'order_id' => 'string', - 'customer_id' => 'string', - 'location_id' => 'string', - 'reference_id' => 'string', - 'verification_token' => 'string', - 'accept_partial_authorization' => 'bool', - 'buyer_email_address' => 'string', - 'billing_address' => '\SquareConnect\Model\Address', - 'shipping_address' => '\SquareConnect\Model\Address', - 'note' => 'string', - 'statement_description_identifier' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'source_id' => 'source_id', - 'idempotency_key' => 'idempotency_key', - 'amount_money' => 'amount_money', - 'tip_money' => 'tip_money', - 'app_fee_money' => 'app_fee_money', - 'delay_duration' => 'delay_duration', - 'autocomplete' => 'autocomplete', - 'order_id' => 'order_id', - 'customer_id' => 'customer_id', - 'location_id' => 'location_id', - 'reference_id' => 'reference_id', - 'verification_token' => 'verification_token', - 'accept_partial_authorization' => 'accept_partial_authorization', - 'buyer_email_address' => 'buyer_email_address', - 'billing_address' => 'billing_address', - 'shipping_address' => 'shipping_address', - 'note' => 'note', - 'statement_description_identifier' => 'statement_description_identifier' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'source_id' => 'setSourceId', - 'idempotency_key' => 'setIdempotencyKey', - 'amount_money' => 'setAmountMoney', - 'tip_money' => 'setTipMoney', - 'app_fee_money' => 'setAppFeeMoney', - 'delay_duration' => 'setDelayDuration', - 'autocomplete' => 'setAutocomplete', - 'order_id' => 'setOrderId', - 'customer_id' => 'setCustomerId', - 'location_id' => 'setLocationId', - 'reference_id' => 'setReferenceId', - 'verification_token' => 'setVerificationToken', - 'accept_partial_authorization' => 'setAcceptPartialAuthorization', - 'buyer_email_address' => 'setBuyerEmailAddress', - 'billing_address' => 'setBillingAddress', - 'shipping_address' => 'setShippingAddress', - 'note' => 'setNote', - 'statement_description_identifier' => 'setStatementDescriptionIdentifier' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'source_id' => 'getSourceId', - 'idempotency_key' => 'getIdempotencyKey', - 'amount_money' => 'getAmountMoney', - 'tip_money' => 'getTipMoney', - 'app_fee_money' => 'getAppFeeMoney', - 'delay_duration' => 'getDelayDuration', - 'autocomplete' => 'getAutocomplete', - 'order_id' => 'getOrderId', - 'customer_id' => 'getCustomerId', - 'location_id' => 'getLocationId', - 'reference_id' => 'getReferenceId', - 'verification_token' => 'getVerificationToken', - 'accept_partial_authorization' => 'getAcceptPartialAuthorization', - 'buyer_email_address' => 'getBuyerEmailAddress', - 'billing_address' => 'getBillingAddress', - 'shipping_address' => 'getShippingAddress', - 'note' => 'getNote', - 'statement_description_identifier' => 'getStatementDescriptionIdentifier' - ); - - /** - * $source_id The ID for the source of funds for this payment. This can be a nonce generated by the Payment Form or a card on file made with the Customers API. - * @var string - */ - protected $source_id; - /** - * $idempotency_key A unique string that identifies this CreatePayment request. Keys can be any valid string but must be unique for every CreatePayment request. Max: 45 characters See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $amount_money The amount of money to accept for this payment, not including `tip_money`. Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The currency code must match the currency associated with the business that is accepting the payment. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $tip_money The amount designated as a tip, in addition to `amount_money` Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The currency code must match the currency associated with the business that is accepting the payment. - * @var \SquareConnect\Model\Money - */ - protected $tip_money; - /** - * $app_fee_money The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Cannot be more than 90% of the total amount of the Payment. Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The fee currency code must match the currency associated with the merchant that is accepting the payment. The application must be from a developer account in the same country, and using the same currency code, as the merchant. For more information about the application fee scenario, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). - * @var \SquareConnect\Model\Money - */ - protected $app_fee_money; - /** - * $delay_duration The duration of time after the payment's creation when Square automatically cancels the payment. This automatic cancellation applies only to payments that don't reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration` time period. This parameter should be specified as a time duration, in RFC 3339 format, with a minimum value of 1 minute. Notes: This feature is only supported for card payments. This parameter can only be set for a delayed capture payment (`autocomplete=false`). Default: - Card Present payments: \"PT36H\" (36 hours) from the creation time. - Card Not Present payments: \"P7D\" (7 days) from the creation time. - * @var string - */ - protected $delay_duration; - /** - * $autocomplete If set to `true`, this payment will be completed when possible. If set to `false`, this payment will be held in an approved state until either explicitly completed (captured) or canceled (voided). For more information, see [Delayed Payments](https://developer.squareup.com/docs/payments-api/take-payments#delayed-payments). Default: true - * @var bool - */ - protected $autocomplete; - /** - * $order_id Associate a previously created order with this payment - * @var string - */ - protected $order_id; - /** - * $customer_id The `Customer` ID of the customer associated with the payment. Required if the `source_id` refers to a card on file created using the Customers API. - * @var string - */ - protected $customer_id; - /** - * $location_id The location ID to associate with the payment. If not specified, the default location is used. - * @var string - */ - protected $location_id; - /** - * $reference_id A user-defined ID to associate with the payment. You can use this field to associate the payment to an entity in an external system. For example, you might specify an order ID that is generated by a third-party shopping cart. Limit 40 characters. - * @var string - */ - protected $reference_id; - /** - * $verification_token An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. See the [SCA Overview](https://developer.squareup.com/docs/sca-overview). - * @var string - */ - protected $verification_token; - /** - * $accept_partial_authorization If set to true and charging a Square Gift Card, a payment may be returned with amount_money equal to less than what was requested. Example, a request for $20 when charging a Square Gift Card with balance of $5 wil result in an APPROVED payment of $5. You may choose to prompt the buyer for an additional payment to cover the remainder, or cancel the gift card payment. Cannot be `true` when `autocomplete = true`. For more information, see [Partial amount with Square gift cards](https://developer.squareup.com/docs/payments-api/take-payments#partial-payment-gift-card). Default: false - * @var bool - */ - protected $accept_partial_authorization; - /** - * $buyer_email_address The buyer's e-mail address - * @var string - */ - protected $buyer_email_address; - /** - * $billing_address The buyer's billing address. - * @var \SquareConnect\Model\Address - */ - protected $billing_address; - /** - * $shipping_address The buyer's shipping address. - * @var \SquareConnect\Model\Address - */ - protected $shipping_address; - /** - * $note An optional note to be entered by the developer when creating a payment Limit 500 characters. - * @var string - */ - protected $note; - /** - * $statement_description_identifier Optional additional payment information to include on the customer's card statement as part of statement description. This can be, for example, an invoice number, ticket number, or short description that uniquely identifies the purchase. Note that the `statement_description_identifier` may get truncated on the statement description to fit the required information including the Square identifier (SQ *) and name of the merchant taking the payment. - * @var string - */ - protected $statement_description_identifier; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["source_id"])) { - $this->source_id = $data["source_id"]; - } else { - $this->source_id = null; - } - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["tip_money"])) { - $this->tip_money = $data["tip_money"]; - } else { - $this->tip_money = null; - } - if (isset($data["app_fee_money"])) { - $this->app_fee_money = $data["app_fee_money"]; - } else { - $this->app_fee_money = null; - } - if (isset($data["delay_duration"])) { - $this->delay_duration = $data["delay_duration"]; - } else { - $this->delay_duration = null; - } - if (isset($data["autocomplete"])) { - $this->autocomplete = $data["autocomplete"]; - } else { - $this->autocomplete = null; - } - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["customer_id"])) { - $this->customer_id = $data["customer_id"]; - } else { - $this->customer_id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["verification_token"])) { - $this->verification_token = $data["verification_token"]; - } else { - $this->verification_token = null; - } - if (isset($data["accept_partial_authorization"])) { - $this->accept_partial_authorization = $data["accept_partial_authorization"]; - } else { - $this->accept_partial_authorization = null; - } - if (isset($data["buyer_email_address"])) { - $this->buyer_email_address = $data["buyer_email_address"]; - } else { - $this->buyer_email_address = null; - } - if (isset($data["billing_address"])) { - $this->billing_address = $data["billing_address"]; - } else { - $this->billing_address = null; - } - if (isset($data["shipping_address"])) { - $this->shipping_address = $data["shipping_address"]; - } else { - $this->shipping_address = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["statement_description_identifier"])) { - $this->statement_description_identifier = $data["statement_description_identifier"]; - } else { - $this->statement_description_identifier = null; - } - } - } - /** - * Gets source_id - * @return string - */ - public function getSourceId() - { - return $this->source_id; - } - - /** - * Sets source_id - * @param string $source_id The ID for the source of funds for this payment. This can be a nonce generated by the Payment Form or a card on file made with the Customers API. - * @return $this - */ - public function setSourceId($source_id) - { - $this->source_id = $source_id; - return $this; - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this CreatePayment request. Keys can be any valid string but must be unique for every CreatePayment request. Max: 45 characters See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money to accept for this payment, not including `tip_money`. Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The currency code must match the currency associated with the business that is accepting the payment. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets tip_money - * @return \SquareConnect\Model\Money - */ - public function getTipMoney() - { - return $this->tip_money; - } - - /** - * Sets tip_money - * @param \SquareConnect\Model\Money $tip_money The amount designated as a tip, in addition to `amount_money` Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The currency code must match the currency associated with the business that is accepting the payment. - * @return $this - */ - public function setTipMoney($tip_money) - { - $this->tip_money = $tip_money; - return $this; - } - /** - * Gets app_fee_money - * @return \SquareConnect\Model\Money - */ - public function getAppFeeMoney() - { - return $this->app_fee_money; - } - - /** - * Sets app_fee_money - * @param \SquareConnect\Model\Money $app_fee_money The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Cannot be more than 90% of the total amount of the Payment. Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The fee currency code must match the currency associated with the merchant that is accepting the payment. The application must be from a developer account in the same country, and using the same currency code, as the merchant. For more information about the application fee scenario, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). - * @return $this - */ - public function setAppFeeMoney($app_fee_money) - { - $this->app_fee_money = $app_fee_money; - return $this; - } - /** - * Gets delay_duration - * @return string - */ - public function getDelayDuration() - { - return $this->delay_duration; - } - - /** - * Sets delay_duration - * @param string $delay_duration The duration of time after the payment's creation when Square automatically cancels the payment. This automatic cancellation applies only to payments that don't reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration` time period. This parameter should be specified as a time duration, in RFC 3339 format, with a minimum value of 1 minute. Notes: This feature is only supported for card payments. This parameter can only be set for a delayed capture payment (`autocomplete=false`). Default: - Card Present payments: \"PT36H\" (36 hours) from the creation time. - Card Not Present payments: \"P7D\" (7 days) from the creation time. - * @return $this - */ - public function setDelayDuration($delay_duration) - { - $this->delay_duration = $delay_duration; - return $this; - } - /** - * Gets autocomplete - * @return bool - */ - public function getAutocomplete() - { - return $this->autocomplete; - } - - /** - * Sets autocomplete - * @param bool $autocomplete If set to `true`, this payment will be completed when possible. If set to `false`, this payment will be held in an approved state until either explicitly completed (captured) or canceled (voided). For more information, see [Delayed Payments](https://developer.squareup.com/docs/payments-api/take-payments#delayed-payments). Default: true - * @return $this - */ - public function setAutocomplete($autocomplete) - { - $this->autocomplete = $autocomplete; - return $this; - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id Associate a previously created order with this payment - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets customer_id - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Sets customer_id - * @param string $customer_id The `Customer` ID of the customer associated with the payment. Required if the `source_id` refers to a card on file created using the Customers API. - * @return $this - */ - public function setCustomerId($customer_id) - { - $this->customer_id = $customer_id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The location ID to associate with the payment. If not specified, the default location is used. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id A user-defined ID to associate with the payment. You can use this field to associate the payment to an entity in an external system. For example, you might specify an order ID that is generated by a third-party shopping cart. Limit 40 characters. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets verification_token - * @return string - */ - public function getVerificationToken() - { - return $this->verification_token; - } - - /** - * Sets verification_token - * @param string $verification_token An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. See the [SCA Overview](https://developer.squareup.com/docs/sca-overview). - * @return $this - */ - public function setVerificationToken($verification_token) - { - $this->verification_token = $verification_token; - return $this; - } - /** - * Gets accept_partial_authorization - * @return bool - */ - public function getAcceptPartialAuthorization() - { - return $this->accept_partial_authorization; - } - - /** - * Sets accept_partial_authorization - * @param bool $accept_partial_authorization If set to true and charging a Square Gift Card, a payment may be returned with amount_money equal to less than what was requested. Example, a request for $20 when charging a Square Gift Card with balance of $5 wil result in an APPROVED payment of $5. You may choose to prompt the buyer for an additional payment to cover the remainder, or cancel the gift card payment. Cannot be `true` when `autocomplete = true`. For more information, see [Partial amount with Square gift cards](https://developer.squareup.com/docs/payments-api/take-payments#partial-payment-gift-card). Default: false - * @return $this - */ - public function setAcceptPartialAuthorization($accept_partial_authorization) - { - $this->accept_partial_authorization = $accept_partial_authorization; - return $this; - } - /** - * Gets buyer_email_address - * @return string - */ - public function getBuyerEmailAddress() - { - return $this->buyer_email_address; - } - - /** - * Sets buyer_email_address - * @param string $buyer_email_address The buyer's e-mail address - * @return $this - */ - public function setBuyerEmailAddress($buyer_email_address) - { - $this->buyer_email_address = $buyer_email_address; - return $this; - } - /** - * Gets billing_address - * @return \SquareConnect\Model\Address - */ - public function getBillingAddress() - { - return $this->billing_address; - } - - /** - * Sets billing_address - * @param \SquareConnect\Model\Address $billing_address The buyer's billing address. - * @return $this - */ - public function setBillingAddress($billing_address) - { - $this->billing_address = $billing_address; - return $this; - } - /** - * Gets shipping_address - * @return \SquareConnect\Model\Address - */ - public function getShippingAddress() - { - return $this->shipping_address; - } - - /** - * Sets shipping_address - * @param \SquareConnect\Model\Address $shipping_address The buyer's shipping address. - * @return $this - */ - public function setShippingAddress($shipping_address) - { - $this->shipping_address = $shipping_address; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note An optional note to be entered by the developer when creating a payment Limit 500 characters. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets statement_description_identifier - * @return string - */ - public function getStatementDescriptionIdentifier() - { - return $this->statement_description_identifier; - } - - /** - * Sets statement_description_identifier - * @param string $statement_description_identifier Optional additional payment information to include on the customer's card statement as part of statement description. This can be, for example, an invoice number, ticket number, or short description that uniquely identifies the purchase. Note that the `statement_description_identifier` may get truncated on the statement description to fit the required information including the Square identifier (SQ *) and name of the merchant taking the payment. - * @return $this - */ - public function setStatementDescriptionIdentifier($statement_description_identifier) - { - $this->statement_description_identifier = $statement_description_identifier; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - #[\ReturnTypeWillChange] - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - #[\ReturnTypeWillChange] - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - #[\ReturnTypeWillChange] - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreatePaymentResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreatePaymentResponse.php deleted file mode 100644 index c36b02b9a4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreatePaymentResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'payment' => '\SquareConnect\Model\Payment' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'payment' => 'payment' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'payment' => 'setPayment' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'payment' => 'getPayment' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $payment The newly created payment. - * @var \SquareConnect\Model\Payment - */ - protected $payment; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["payment"])) { - $this->payment = $data["payment"]; - } else { - $this->payment = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets payment - * @return \SquareConnect\Model\Payment - */ - public function getPayment() - { - return $this->payment; - } - - /** - * Sets payment - * @param \SquareConnect\Model\Payment $payment The newly created payment. - * @return $this - */ - public function setPayment($payment) - { - $this->payment = $payment; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateRefundRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateRefundRequest.php deleted file mode 100644 index cf5b5c6c80..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateRefundRequest.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'tender_id' => 'string', - 'reason' => 'string', - 'amount_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'tender_id' => 'tender_id', - 'reason' => 'reason', - 'amount_money' => 'amount_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'tender_id' => 'setTenderId', - 'reason' => 'setReason', - 'amount_money' => 'setAmountMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'tender_id' => 'getTenderId', - 'reason' => 'getReason', - 'amount_money' => 'getAmountMoney' - ); - - /** - * $idempotency_key A value you specify that uniquely identifies this refund among refunds you've created for the tender. If you're unsure whether a particular refund succeeded, you can reattempt it with the same idempotency key without worrying about duplicating the refund. See [Idempotency keys](#idempotencykeys) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $tender_id The ID of the tender to refund. A ``Transaction`` has one or more `tenders` (i.e., methods of payment) associated with it, and you refund each tender separately with the Connect API. - * @var string - */ - protected $tender_id; - /** - * $reason A description of the reason for the refund. Default value: `Refund via API` - * @var string - */ - protected $reason; - /** - * $amount_money The amount of money to refund. Note that you specify the amount in the __smallest denomination of the applicable currency__. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. This amount cannot exceed the amount that was originally charged to the tender that corresponds to `tender_id`. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["tender_id"])) { - $this->tender_id = $data["tender_id"]; - } else { - $this->tender_id = null; - } - if (isset($data["reason"])) { - $this->reason = $data["reason"]; - } else { - $this->reason = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A value you specify that uniquely identifies this refund among refunds you've created for the tender. If you're unsure whether a particular refund succeeded, you can reattempt it with the same idempotency key without worrying about duplicating the refund. See [Idempotency keys](#idempotencykeys) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets tender_id - * @return string - */ - public function getTenderId() - { - return $this->tender_id; - } - - /** - * Sets tender_id - * @param string $tender_id The ID of the tender to refund. A ``Transaction`` has one or more `tenders` (i.e., methods of payment) associated with it, and you refund each tender separately with the Connect API. - * @return $this - */ - public function setTenderId($tender_id) - { - $this->tender_id = $tender_id; - return $this; - } - /** - * Gets reason - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Sets reason - * @param string $reason A description of the reason for the refund. Default value: `Refund via API` - * @return $this - */ - public function setReason($reason) - { - $this->reason = $reason; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money to refund. Note that you specify the amount in the __smallest denomination of the applicable currency__. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. This amount cannot exceed the amount that was originally charged to the tender that corresponds to `tender_id`. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateRefundResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateRefundResponse.php deleted file mode 100644 index 203db83aac..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateRefundResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'refund' => '\SquareConnect\Model\Refund' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'refund' => 'refund' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'refund' => 'setRefund' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'refund' => 'getRefund' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $refund The created refund. - * @var \SquareConnect\Model\Refund - */ - protected $refund; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["refund"])) { - $this->refund = $data["refund"]; - } else { - $this->refund = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets refund - * @return \SquareConnect\Model\Refund - */ - public function getRefund() - { - return $this->refund; - } - - /** - * Sets refund - * @param \SquareConnect\Model\Refund $refund The created refund. - * @return $this - */ - public function setRefund($refund) - { - $this->refund = $refund; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateShiftRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateShiftRequest.php deleted file mode 100644 index 77e5577f65..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateShiftRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'shift' => '\SquareConnect\Model\Shift' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'shift' => 'shift' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'shift' => 'setShift' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'shift' => 'getShift' - ); - - /** - * $idempotency_key Unique string value to insure the idempotency of the operation. - * @var string - */ - protected $idempotency_key; - /** - * $shift The `Shift` to be created - * @var \SquareConnect\Model\Shift - */ - protected $shift; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["shift"])) { - $this->shift = $data["shift"]; - } else { - $this->shift = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key Unique string value to insure the idempotency of the operation. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets shift - * @return \SquareConnect\Model\Shift - */ - public function getShift() - { - return $this->shift; - } - - /** - * Sets shift - * @param \SquareConnect\Model\Shift $shift The `Shift` to be created - * @return $this - */ - public function setShift($shift) - { - $this->shift = $shift; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateShiftResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateShiftResponse.php deleted file mode 100644 index 3f08ac9605..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateShiftResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Shift', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'shift' => 'shift', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'shift' => 'setShift', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'shift' => 'getShift', - 'errors' => 'getErrors' - ); - - /** - * $shift The `Shift` that was created on the request. - * @var \SquareConnect\Model\Shift - */ - protected $shift; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["shift"])) { - $this->shift = $data["shift"]; - } else { - $this->shift = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets shift - * @return \SquareConnect\Model\Shift - */ - public function getShift() - { - return $this->shift; - } - - /** - * Sets shift - * @param \SquareConnect\Model\Shift $shift The `Shift` that was created on the request. - * @return $this - */ - public function setShift($shift) - { - $this->shift = $shift; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateTerminalCheckoutRequest.php b/includes/classes/vendors/square/connect/lib/Model/CreateTerminalCheckoutRequest.php deleted file mode 100644 index 3f6ba560fc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateTerminalCheckoutRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'checkout' => '\SquareConnect\Model\TerminalCheckout' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'checkout' => 'checkout' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'checkout' => 'setCheckout' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'checkout' => 'getCheckout' - ); - - /** - * $idempotency_key A unique string that identifies this CreateCheckout request. Keys can be any valid string but must be unique for every CreateCheckout request. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $checkout The checkout to create. - * @var \SquareConnect\Model\TerminalCheckout - */ - protected $checkout; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["checkout"])) { - $this->checkout = $data["checkout"]; - } else { - $this->checkout = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this CreateCheckout request. Keys can be any valid string but must be unique for every CreateCheckout request. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets checkout - * @return \SquareConnect\Model\TerminalCheckout - */ - public function getCheckout() - { - return $this->checkout; - } - - /** - * Sets checkout - * @param \SquareConnect\Model\TerminalCheckout $checkout The checkout to create. - * @return $this - */ - public function setCheckout($checkout) - { - $this->checkout = $checkout; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CreateTerminalCheckoutResponse.php b/includes/classes/vendors/square/connect/lib/Model/CreateTerminalCheckoutResponse.php deleted file mode 100644 index 01c6857768..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CreateTerminalCheckoutResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'checkout' => '\SquareConnect\Model\TerminalCheckout' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'checkout' => 'checkout' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'checkout' => 'setCheckout' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'checkout' => 'getCheckout' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $checkout The created `TerminalCheckout` - * @var \SquareConnect\Model\TerminalCheckout - */ - protected $checkout; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["checkout"])) { - $this->checkout = $data["checkout"]; - } else { - $this->checkout = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets checkout - * @return \SquareConnect\Model\TerminalCheckout - */ - public function getCheckout() - { - return $this->checkout; - } - - /** - * Sets checkout - * @param \SquareConnect\Model\TerminalCheckout $checkout The created `TerminalCheckout` - * @return $this - */ - public function setCheckout($checkout) - { - $this->checkout = $checkout; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Currency.php b/includes/classes/vendors/square/connect/lib/Model/Currency.php deleted file mode 100644 index dacb38ecd2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Currency.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Customer.php b/includes/classes/vendors/square/connect/lib/Model/Customer.php deleted file mode 100644 index b6319e7c09..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Customer.php +++ /dev/null @@ -1,740 +0,0 @@ - 'string', - 'created_at' => 'string', - 'updated_at' => 'string', - 'cards' => '\SquareConnect\Model\Card[]', - 'given_name' => 'string', - 'family_name' => 'string', - 'nickname' => 'string', - 'company_name' => 'string', - 'email_address' => 'string', - 'address' => '\SquareConnect\Model\Address', - 'phone_number' => 'string', - 'birthday' => 'string', - 'reference_id' => 'string', - 'note' => 'string', - 'preferences' => '\SquareConnect\Model\CustomerPreferences', - 'groups' => '\SquareConnect\Model\CustomerGroupInfo[]', - 'creation_source' => 'string', - 'group_ids' => 'string[]', - 'segment_ids' => 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'cards' => 'cards', - 'given_name' => 'given_name', - 'family_name' => 'family_name', - 'nickname' => 'nickname', - 'company_name' => 'company_name', - 'email_address' => 'email_address', - 'address' => 'address', - 'phone_number' => 'phone_number', - 'birthday' => 'birthday', - 'reference_id' => 'reference_id', - 'note' => 'note', - 'preferences' => 'preferences', - 'groups' => 'groups', - 'creation_source' => 'creation_source', - 'group_ids' => 'group_ids', - 'segment_ids' => 'segment_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'cards' => 'setCards', - 'given_name' => 'setGivenName', - 'family_name' => 'setFamilyName', - 'nickname' => 'setNickname', - 'company_name' => 'setCompanyName', - 'email_address' => 'setEmailAddress', - 'address' => 'setAddress', - 'phone_number' => 'setPhoneNumber', - 'birthday' => 'setBirthday', - 'reference_id' => 'setReferenceId', - 'note' => 'setNote', - 'preferences' => 'setPreferences', - 'groups' => 'setGroups', - 'creation_source' => 'setCreationSource', - 'group_ids' => 'setGroupIds', - 'segment_ids' => 'setSegmentIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'cards' => 'getCards', - 'given_name' => 'getGivenName', - 'family_name' => 'getFamilyName', - 'nickname' => 'getNickname', - 'company_name' => 'getCompanyName', - 'email_address' => 'getEmailAddress', - 'address' => 'getAddress', - 'phone_number' => 'getPhoneNumber', - 'birthday' => 'getBirthday', - 'reference_id' => 'getReferenceId', - 'note' => 'getNote', - 'preferences' => 'getPreferences', - 'groups' => 'getGroups', - 'creation_source' => 'getCreationSource', - 'group_ids' => 'getGroupIds', - 'segment_ids' => 'getSegmentIds' - ); - - /** - * $id A unique Square-assigned ID for the customer profile. - * @var string - */ - protected $id; - /** - * $created_at The timestamp when the customer profile was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The timestamp when the customer profile was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - /** - * $cards Payment details of cards stored on file for the customer profile. - * @var \SquareConnect\Model\Card[] - */ - protected $cards; - /** - * $given_name The given (i.e., first) name associated with the customer profile. - * @var string - */ - protected $given_name; - /** - * $family_name The family (i.e., last) name associated with the customer profile. - * @var string - */ - protected $family_name; - /** - * $nickname A nickname for the customer profile. - * @var string - */ - protected $nickname; - /** - * $company_name A business name associated with the customer profile. - * @var string - */ - protected $company_name; - /** - * $email_address The email address associated with the customer profile. - * @var string - */ - protected $email_address; - /** - * $address The physical address associated with the customer profile. - * @var \SquareConnect\Model\Address - */ - protected $address; - /** - * $phone_number The 11-digit phone number associated with the customer profile. - * @var string - */ - protected $phone_number; - /** - * $birthday The birthday associated with the customer profile, in RFC-3339 format. Year is optional, timezone and times are not allowed. For example: `0000-09-01T00:00:00-00:00` indicates a birthday on September 1st. `1998-09-01T00:00:00-00:00` indications a birthday on September 1st __1998__. - * @var string - */ - protected $birthday; - /** - * $reference_id An optional, second ID used to associate the customer profile with an entity in another system. - * @var string - */ - protected $reference_id; - /** - * $note A custom note associated with the customer profile. - * @var string - */ - protected $note; - /** - * $preferences Represents general customer preferences. - * @var \SquareConnect\Model\CustomerPreferences - */ - protected $preferences; - /** - * $groups The customer groups and segments the customer belongs to. This deprecated field has been replaced with the dedicated `group_ids` for customer groups and the dedicated `segment_ids` field for customer segments. You can retrieve information about a given customer group and segment respectively using the Customer Groups API and Customer Segments API. - * @var \SquareConnect\Model\CustomerGroupInfo[] - */ - protected $groups; - /** - * $creation_source A creation source represents the method used to create the customer profile. See [CustomerCreationSource](#type-customercreationsource) for possible values - * @var string - */ - protected $creation_source; - /** - * $group_ids The IDs of customer groups the customer belongs to. - * @var string[] - */ - protected $group_ids; - /** - * $segment_ids The IDs of segments the customer belongs to. - * @var string[] - */ - protected $segment_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["cards"])) { - $this->cards = $data["cards"]; - } else { - $this->cards = null; - } - if (isset($data["given_name"])) { - $this->given_name = $data["given_name"]; - } else { - $this->given_name = null; - } - if (isset($data["family_name"])) { - $this->family_name = $data["family_name"]; - } else { - $this->family_name = null; - } - if (isset($data["nickname"])) { - $this->nickname = $data["nickname"]; - } else { - $this->nickname = null; - } - if (isset($data["company_name"])) { - $this->company_name = $data["company_name"]; - } else { - $this->company_name = null; - } - if (isset($data["email_address"])) { - $this->email_address = $data["email_address"]; - } else { - $this->email_address = null; - } - if (isset($data["address"])) { - $this->address = $data["address"]; - } else { - $this->address = null; - } - if (isset($data["phone_number"])) { - $this->phone_number = $data["phone_number"]; - } else { - $this->phone_number = null; - } - if (isset($data["birthday"])) { - $this->birthday = $data["birthday"]; - } else { - $this->birthday = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["preferences"])) { - $this->preferences = $data["preferences"]; - } else { - $this->preferences = null; - } - if (isset($data["groups"])) { - $this->groups = $data["groups"]; - } else { - $this->groups = null; - } - if (isset($data["creation_source"])) { - $this->creation_source = $data["creation_source"]; - } else { - $this->creation_source = null; - } - if (isset($data["group_ids"])) { - $this->group_ids = $data["group_ids"]; - } else { - $this->group_ids = null; - } - if (isset($data["segment_ids"])) { - $this->segment_ids = $data["segment_ids"]; - } else { - $this->segment_ids = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id A unique Square-assigned ID for the customer profile. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the customer profile was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The timestamp when the customer profile was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets cards - * @return \SquareConnect\Model\Card[] - */ - public function getCards() - { - return $this->cards; - } - - /** - * Sets cards - * @param \SquareConnect\Model\Card[] $cards Payment details of cards stored on file for the customer profile. - * @return $this - */ - public function setCards($cards) - { - $this->cards = $cards; - return $this; - } - /** - * Gets given_name - * @return string - */ - public function getGivenName() - { - return $this->given_name; - } - - /** - * Sets given_name - * @param string $given_name The given (i.e., first) name associated with the customer profile. - * @return $this - */ - public function setGivenName($given_name) - { - $this->given_name = $given_name; - return $this; - } - /** - * Gets family_name - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * Sets family_name - * @param string $family_name The family (i.e., last) name associated with the customer profile. - * @return $this - */ - public function setFamilyName($family_name) - { - $this->family_name = $family_name; - return $this; - } - /** - * Gets nickname - * @return string - */ - public function getNickname() - { - return $this->nickname; - } - - /** - * Sets nickname - * @param string $nickname A nickname for the customer profile. - * @return $this - */ - public function setNickname($nickname) - { - $this->nickname = $nickname; - return $this; - } - /** - * Gets company_name - * @return string - */ - public function getCompanyName() - { - return $this->company_name; - } - - /** - * Sets company_name - * @param string $company_name A business name associated with the customer profile. - * @return $this - */ - public function setCompanyName($company_name) - { - $this->company_name = $company_name; - return $this; - } - /** - * Gets email_address - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Sets email_address - * @param string $email_address The email address associated with the customer profile. - * @return $this - */ - public function setEmailAddress($email_address) - { - $this->email_address = $email_address; - return $this; - } - /** - * Gets address - * @return \SquareConnect\Model\Address - */ - public function getAddress() - { - return $this->address; - } - - /** - * Sets address - * @param \SquareConnect\Model\Address $address The physical address associated with the customer profile. - * @return $this - */ - public function setAddress($address) - { - $this->address = $address; - return $this; - } - /** - * Gets phone_number - * @return string - */ - public function getPhoneNumber() - { - return $this->phone_number; - } - - /** - * Sets phone_number - * @param string $phone_number The 11-digit phone number associated with the customer profile. - * @return $this - */ - public function setPhoneNumber($phone_number) - { - $this->phone_number = $phone_number; - return $this; - } - /** - * Gets birthday - * @return string - */ - public function getBirthday() - { - return $this->birthday; - } - - /** - * Sets birthday - * @param string $birthday The birthday associated with the customer profile, in RFC-3339 format. Year is optional, timezone and times are not allowed. For example: `0000-09-01T00:00:00-00:00` indicates a birthday on September 1st. `1998-09-01T00:00:00-00:00` indications a birthday on September 1st __1998__. - * @return $this - */ - public function setBirthday($birthday) - { - $this->birthday = $birthday; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional, second ID used to associate the customer profile with an entity in another system. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note A custom note associated with the customer profile. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets preferences - * @return \SquareConnect\Model\CustomerPreferences - */ - public function getPreferences() - { - return $this->preferences; - } - - /** - * Sets preferences - * @param \SquareConnect\Model\CustomerPreferences $preferences Represents general customer preferences. - * @return $this - */ - public function setPreferences($preferences) - { - $this->preferences = $preferences; - return $this; - } - /** - * Gets groups - * @return \SquareConnect\Model\CustomerGroupInfo[] - */ - public function getGroups() - { - return $this->groups; - } - - /** - * Sets groups - * @param \SquareConnect\Model\CustomerGroupInfo[] $groups The customer groups and segments the customer belongs to. This deprecated field has been replaced with the dedicated `group_ids` for customer groups and the dedicated `segment_ids` field for customer segments. You can retrieve information about a given customer group and segment respectively using the Customer Groups API and Customer Segments API. - * @return $this - */ - public function setGroups($groups) - { - $this->groups = $groups; - return $this; - } - /** - * Gets creation_source - * @return string - */ - public function getCreationSource() - { - return $this->creation_source; - } - - /** - * Sets creation_source - * @param string $creation_source A creation source represents the method used to create the customer profile. See [CustomerCreationSource](#type-customercreationsource) for possible values - * @return $this - */ - public function setCreationSource($creation_source) - { - $this->creation_source = $creation_source; - return $this; - } - /** - * Gets group_ids - * @return string[] - */ - public function getGroupIds() - { - return $this->group_ids; - } - - /** - * Sets group_ids - * @param string[] $group_ids The IDs of customer groups the customer belongs to. - * @return $this - */ - public function setGroupIds($group_ids) - { - $this->group_ids = $group_ids; - return $this; - } - /** - * Gets segment_ids - * @return string[] - */ - public function getSegmentIds() - { - return $this->segment_ids; - } - - /** - * Sets segment_ids - * @param string[] $segment_ids The IDs of segments the customer belongs to. - * @return $this - */ - public function setSegmentIds($segment_ids) - { - $this->segment_ids = $segment_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerCreationSource.php b/includes/classes/vendors/square/connect/lib/Model/CustomerCreationSource.php deleted file mode 100644 index 4d02246cbb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerCreationSource.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerCreationSourceFilter.php b/includes/classes/vendors/square/connect/lib/Model/CustomerCreationSourceFilter.php deleted file mode 100644 index 7e7f6309de..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerCreationSourceFilter.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string[]', - 'rule' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'values' => 'values', - 'rule' => 'rule' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'values' => 'setValues', - 'rule' => 'setRule' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'values' => 'getValues', - 'rule' => 'getRule' - ); - - /** - * $values The list of creation sources used as filtering criteria. See [CustomerCreationSource](#type-customercreationsource) for possible values - * @var string[] - */ - protected $values; - /** - * $rule Indicates whether a customer profile matching the filter criteria should be included in the result or excluded from the result. Default: `INCLUDE`. See [CustomerInclusionExclusion](#type-customerinclusionexclusion) for possible values - * @var string - */ - protected $rule; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["values"])) { - $this->values = $data["values"]; - } else { - $this->values = null; - } - if (isset($data["rule"])) { - $this->rule = $data["rule"]; - } else { - $this->rule = null; - } - } - } - /** - * Gets values - * @return string[] - */ - public function getValues() - { - return $this->values; - } - - /** - * Sets values - * @param string[] $values The list of creation sources used as filtering criteria. See [CustomerCreationSource](#type-customercreationsource) for possible values - * @return $this - */ - public function setValues($values) - { - $this->values = $values; - return $this; - } - /** - * Gets rule - * @return string - */ - public function getRule() - { - return $this->rule; - } - - /** - * Sets rule - * @param string $rule Indicates whether a customer profile matching the filter criteria should be included in the result or excluded from the result. Default: `INCLUDE`. See [CustomerInclusionExclusion](#type-customerinclusionexclusion) for possible values - * @return $this - */ - public function setRule($rule) - { - $this->rule = $rule; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerFilter.php b/includes/classes/vendors/square/connect/lib/Model/CustomerFilter.php deleted file mode 100644 index 4792f42d7c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerFilter.php +++ /dev/null @@ -1,344 +0,0 @@ - '\SquareConnect\Model\CustomerCreationSourceFilter', - 'created_at' => '\SquareConnect\Model\TimeRange', - 'updated_at' => '\SquareConnect\Model\TimeRange', - 'email_address' => '\SquareConnect\Model\CustomerTextFilter', - 'phone_number' => '\SquareConnect\Model\CustomerTextFilter', - 'reference_id' => '\SquareConnect\Model\CustomerTextFilter', - 'group_ids' => '\SquareConnect\Model\FilterValue' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'creation_source' => 'creation_source', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'email_address' => 'email_address', - 'phone_number' => 'phone_number', - 'reference_id' => 'reference_id', - 'group_ids' => 'group_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'creation_source' => 'setCreationSource', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'email_address' => 'setEmailAddress', - 'phone_number' => 'setPhoneNumber', - 'reference_id' => 'setReferenceId', - 'group_ids' => 'setGroupIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'creation_source' => 'getCreationSource', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'email_address' => 'getEmailAddress', - 'phone_number' => 'getPhoneNumber', - 'reference_id' => 'getReferenceId', - 'group_ids' => 'getGroupIds' - ); - - /** - * $creation_source A filter to select customers based on their creation source. - * @var \SquareConnect\Model\CustomerCreationSourceFilter - */ - protected $creation_source; - /** - * $created_at A filter to select customers based on when they were created. - * @var \SquareConnect\Model\TimeRange - */ - protected $created_at; - /** - * $updated_at A filter to select customers based on when they were updated. - * @var \SquareConnect\Model\TimeRange - */ - protected $updated_at; - /** - * $email_address A filter to [select customers by email address](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#search-by-email-address) visible to the seller. This filter is case insensitive. For [exact matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#exact-search-by-email-address), this filter causes the search to return customer profiles whose `email_address` field value are identical to the email address provided in the query. For [fuzzy matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#fuzzy-search-by-email-address), this filter causes the search to return customer profiles whose `email_address` field value has a token-wise partial match against the filtering expression in the query. For example, with `Steven gmail` provided in a search query, the search returns customers whose email address can be `steven.johnson@gmail.com` or `mygmail@stevensbakery.com`. Email addresses are tokenized by replacing, by spaces, punctuations including periods (`.`), underscores (`_`), and the `@` symbols. A match is found if a tokenized email address contains all the tokens in the search query, irrespective of the token order. - * @var \SquareConnect\Model\CustomerTextFilter - */ - protected $email_address; - /** - * $phone_number A filter to [select customers by their phone numbers](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#search-by-phone-number) visible to the seller. This filter is case insensitive. For [exact matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#exact-search-by-phone-number), this filter causes the search to return customers whose phone number matches the specified query expression. The number in the query must be of an E.164-compliant form. In particular, it must include the leading `+` sign followed by a contry code and then a subscriber number. The standard E.614 form of a US phone number is `+12061112222` of the domestic version or `+0012061112222` of the international version. The E.164-compliant variations include `+1 (206) 111-2222` or `+001 (206) 111-2222`, respectively. To match the query expression, stored customers' phone numbers are converted to the standard E.164 form of the national and internationalized versions. For [fuzzy matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#fuzzy-search-by-phone-number), this filter causes the search to return customers whose phone number matches partially the token or tokens provided in the query expression. For example, if the search query contains `415-123-45`, the filter selects those customers with phone numbers of `415-123-4567` or `234-151-2345`. The search does not return customers with the phone number of `415-123-4678`. Similarly, if the search query contains `415` as part of the phone number, the search returns those customers with phone numbers of `(415)-123-4567`, `(123) 415-1567`, and `1 (415) 123-4567`. - * @var \SquareConnect\Model\CustomerTextFilter - */ - protected $phone_number; - /** - * $reference_id A filter to [select customers by their reference IDs](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#search-by-reference-id). This filter is case insensitive. [Exact matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#exact-search-by-reference-id) of a customer's reference ID against a query's reference ID is evaluated as exact match between two strings, character by character in the given order. [Fuzzy matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#fuzzy-search-by-reference-id) of stored reference IDs against queried reference IDs works exactly the same as fuzzy matching on email addresses. Non-alphanumeric characters are replaced by spaces to tokenize stored and queried reference IDs. A match is found if a tokenized stored reference ID contains all tokens specified in any order in the query. For example, a query of `NYC M` will match customer profiles with the `reference_id` value of `NYC_M_35_JOHNSON` and `NYC_27_MURRAY`. - * @var \SquareConnect\Model\CustomerTextFilter - */ - protected $reference_id; - /** - * $group_ids A filter to select customers based on their group membership. The `group_ids` is a JSON object of the following general format: ``` \"group_ids\": { \"any\": [\"{group_a_id}\", \"{group_b_id}\", ...], \"all\": [\"{group_1_id}\", \"{group_2_id}\", ...], 'none\": [\"{group_i_id}\", \"{group_ii_id}\", ...] } ``` You can use any combination of the above `group_ids` fields (also known as `FilterValue` properties) to specify how customers are selected based on their group membership. With the `any` option, the search returns customers in Groups `A` or `B` or ... of the list. With the `all` option, the search returns customers in Groups `1` and `2` and ... of the list. With the `none` option, the search returns customers not in Groups `i` and not in `ii` and not in ... of the list. If any of the search conditions are not met, including when an invalid or non-existent group ID is provided, the result is an empty list. You can use the `group_ids` search filter with other available filters. You cannot use the `group_ids` filter to select customers based on segment membership. - * @var \SquareConnect\Model\FilterValue - */ - protected $group_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["creation_source"])) { - $this->creation_source = $data["creation_source"]; - } else { - $this->creation_source = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["email_address"])) { - $this->email_address = $data["email_address"]; - } else { - $this->email_address = null; - } - if (isset($data["phone_number"])) { - $this->phone_number = $data["phone_number"]; - } else { - $this->phone_number = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["group_ids"])) { - $this->group_ids = $data["group_ids"]; - } else { - $this->group_ids = null; - } - } - } - /** - * Gets creation_source - * @return \SquareConnect\Model\CustomerCreationSourceFilter - */ - public function getCreationSource() - { - return $this->creation_source; - } - - /** - * Sets creation_source - * @param \SquareConnect\Model\CustomerCreationSourceFilter $creation_source A filter to select customers based on their creation source. - * @return $this - */ - public function setCreationSource($creation_source) - { - $this->creation_source = $creation_source; - return $this; - } - /** - * Gets created_at - * @return \SquareConnect\Model\TimeRange - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param \SquareConnect\Model\TimeRange $created_at A filter to select customers based on when they were created. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return \SquareConnect\Model\TimeRange - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param \SquareConnect\Model\TimeRange $updated_at A filter to select customers based on when they were updated. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets email_address - * @return \SquareConnect\Model\CustomerTextFilter - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Sets email_address - * @param \SquareConnect\Model\CustomerTextFilter $email_address A filter to [select customers by email address](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#search-by-email-address) visible to the seller. This filter is case insensitive. For [exact matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#exact-search-by-email-address), this filter causes the search to return customer profiles whose `email_address` field value are identical to the email address provided in the query. For [fuzzy matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#fuzzy-search-by-email-address), this filter causes the search to return customer profiles whose `email_address` field value has a token-wise partial match against the filtering expression in the query. For example, with `Steven gmail` provided in a search query, the search returns customers whose email address can be `steven.johnson@gmail.com` or `mygmail@stevensbakery.com`. Email addresses are tokenized by replacing, by spaces, punctuations including periods (`.`), underscores (`_`), and the `@` symbols. A match is found if a tokenized email address contains all the tokens in the search query, irrespective of the token order. - * @return $this - */ - public function setEmailAddress($email_address) - { - $this->email_address = $email_address; - return $this; - } - /** - * Gets phone_number - * @return \SquareConnect\Model\CustomerTextFilter - */ - public function getPhoneNumber() - { - return $this->phone_number; - } - - /** - * Sets phone_number - * @param \SquareConnect\Model\CustomerTextFilter $phone_number A filter to [select customers by their phone numbers](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#search-by-phone-number) visible to the seller. This filter is case insensitive. For [exact matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#exact-search-by-phone-number), this filter causes the search to return customers whose phone number matches the specified query expression. The number in the query must be of an E.164-compliant form. In particular, it must include the leading `+` sign followed by a contry code and then a subscriber number. The standard E.614 form of a US phone number is `+12061112222` of the domestic version or `+0012061112222` of the international version. The E.164-compliant variations include `+1 (206) 111-2222` or `+001 (206) 111-2222`, respectively. To match the query expression, stored customers' phone numbers are converted to the standard E.164 form of the national and internationalized versions. For [fuzzy matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#fuzzy-search-by-phone-number), this filter causes the search to return customers whose phone number matches partially the token or tokens provided in the query expression. For example, if the search query contains `415-123-45`, the filter selects those customers with phone numbers of `415-123-4567` or `234-151-2345`. The search does not return customers with the phone number of `415-123-4678`. Similarly, if the search query contains `415` as part of the phone number, the search returns those customers with phone numbers of `(415)-123-4567`, `(123) 415-1567`, and `1 (415) 123-4567`. - * @return $this - */ - public function setPhoneNumber($phone_number) - { - $this->phone_number = $phone_number; - return $this; - } - /** - * Gets reference_id - * @return \SquareConnect\Model\CustomerTextFilter - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param \SquareConnect\Model\CustomerTextFilter $reference_id A filter to [select customers by their reference IDs](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#search-by-reference-id). This filter is case insensitive. [Exact matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#exact-search-by-reference-id) of a customer's reference ID against a query's reference ID is evaluated as exact match between two strings, character by character in the given order. [Fuzzy matching](https://developer.squareup.com/docs/docs/customers-api/cookbook/search-customers#fuzzy-search-by-reference-id) of stored reference IDs against queried reference IDs works exactly the same as fuzzy matching on email addresses. Non-alphanumeric characters are replaced by spaces to tokenize stored and queried reference IDs. A match is found if a tokenized stored reference ID contains all tokens specified in any order in the query. For example, a query of `NYC M` will match customer profiles with the `reference_id` value of `NYC_M_35_JOHNSON` and `NYC_27_MURRAY`. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets group_ids - * @return \SquareConnect\Model\FilterValue - */ - public function getGroupIds() - { - return $this->group_ids; - } - - /** - * Sets group_ids - * @param \SquareConnect\Model\FilterValue $group_ids A filter to select customers based on their group membership. The `group_ids` is a JSON object of the following general format: ``` \"group_ids\": { \"any\": [\"{group_a_id}\", \"{group_b_id}\", ...], \"all\": [\"{group_1_id}\", \"{group_2_id}\", ...], 'none\": [\"{group_i_id}\", \"{group_ii_id}\", ...] } ``` You can use any combination of the above `group_ids` fields (also known as `FilterValue` properties) to specify how customers are selected based on their group membership. With the `any` option, the search returns customers in Groups `A` or `B` or ... of the list. With the `all` option, the search returns customers in Groups `1` and `2` and ... of the list. With the `none` option, the search returns customers not in Groups `i` and not in `ii` and not in ... of the list. If any of the search conditions are not met, including when an invalid or non-existent group ID is provided, the result is an empty list. You can use the `group_ids` search filter with other available filters. You cannot use the `group_ids` filter to select customers based on segment membership. - * @return $this - */ - public function setGroupIds($group_ids) - { - $this->group_ids = $group_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerGroup.php b/includes/classes/vendors/square/connect/lib/Model/CustomerGroup.php deleted file mode 100644 index d1519addca..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerGroup.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'name' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id Unique Square-generated ID for the customer group. - * @var string - */ - protected $id; - /** - * $name Name of the customer group. - * @var string - */ - protected $name; - /** - * $created_at The timestamp when the customer group was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The timesamp when the customer group was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id Unique Square-generated ID for the customer group. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name Name of the customer group. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the customer group was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The timesamp when the customer group was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerGroupInfo.php b/includes/classes/vendors/square/connect/lib/Model/CustomerGroupInfo.php deleted file mode 100644 index 48fdd37b0d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerGroupInfo.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'name' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName' - ); - - /** - * $id The ID of the Customer Group. - * @var string - */ - protected $id; - /** - * $name The name of the Customer Group. - * @var string - */ - protected $name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The ID of the Customer Group. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the Customer Group. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerInclusionExclusion.php b/includes/classes/vendors/square/connect/lib/Model/CustomerInclusionExclusion.php deleted file mode 100644 index 303525282e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerInclusionExclusion.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerPreferences.php b/includes/classes/vendors/square/connect/lib/Model/CustomerPreferences.php deleted file mode 100644 index 015ee56a8a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerPreferences.php +++ /dev/null @@ -1,146 +0,0 @@ - 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'email_unsubscribed' => 'email_unsubscribed' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'email_unsubscribed' => 'setEmailUnsubscribed' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'email_unsubscribed' => 'getEmailUnsubscribed' - ); - - /** - * $email_unsubscribed The customer has unsubscribed from receiving marketing campaign emails. - * @var bool - */ - protected $email_unsubscribed; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["email_unsubscribed"])) { - $this->email_unsubscribed = $data["email_unsubscribed"]; - } else { - $this->email_unsubscribed = null; - } - } - } - /** - * Gets email_unsubscribed - * @return bool - */ - public function getEmailUnsubscribed() - { - return $this->email_unsubscribed; - } - - /** - * Sets email_unsubscribed - * @param bool $email_unsubscribed The customer has unsubscribed from receiving marketing campaign emails. - * @return $this - */ - public function setEmailUnsubscribed($email_unsubscribed) - { - $this->email_unsubscribed = $email_unsubscribed; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerQuery.php b/includes/classes/vendors/square/connect/lib/Model/CustomerQuery.php deleted file mode 100644 index 9d4bfca457..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerQuery.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\CustomerFilter', - 'sort' => '\SquareConnect\Model\CustomerSort' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'filter' => 'filter', - 'sort' => 'sort' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'filter' => 'setFilter', - 'sort' => 'setSort' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'filter' => 'getFilter', - 'sort' => 'getSort' - ); - - /** - * $filter A list of filtering criteria. - * @var \SquareConnect\Model\CustomerFilter - */ - protected $filter; - /** - * $sort Sorting criteria for query results. The default behavior is to sort customers alphabetically by `given_name` and `family_name`. - * @var \SquareConnect\Model\CustomerSort - */ - protected $sort; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["filter"])) { - $this->filter = $data["filter"]; - } else { - $this->filter = null; - } - if (isset($data["sort"])) { - $this->sort = $data["sort"]; - } else { - $this->sort = null; - } - } - } - /** - * Gets filter - * @return \SquareConnect\Model\CustomerFilter - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Sets filter - * @param \SquareConnect\Model\CustomerFilter $filter A list of filtering criteria. - * @return $this - */ - public function setFilter($filter) - { - $this->filter = $filter; - return $this; - } - /** - * Gets sort - * @return \SquareConnect\Model\CustomerSort - */ - public function getSort() - { - return $this->sort; - } - - /** - * Sets sort - * @param \SquareConnect\Model\CustomerSort $sort Sorting criteria for query results. The default behavior is to sort customers alphabetically by `given_name` and `family_name`. - * @return $this - */ - public function setSort($sort) - { - $this->sort = $sort; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerSegment.php b/includes/classes/vendors/square/connect/lib/Model/CustomerSegment.php deleted file mode 100644 index 03cbed6a27..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerSegment.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'name' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id Unique Square-generated ID for the segment. - * @var string - */ - protected $id; - /** - * $name Name of the segment. - * @var string - */ - protected $name; - /** - * $created_at The timestamp when the segment was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The timestamp when the segment was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id Unique Square-generated ID for the segment. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name Name of the segment. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the segment was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The timestamp when the segment was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerSort.php b/includes/classes/vendors/square/connect/lib/Model/CustomerSort.php deleted file mode 100644 index 52b42e8f11..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerSort.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'order' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'field' => 'field', - 'order' => 'order' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'field' => 'setField', - 'order' => 'setOrder' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'field' => 'getField', - 'order' => 'getOrder' - ); - - /** - * $field Use one or more customer attributes as the sort key to sort searched customer profiles. For example, use creation date (`created_at`) of customers or default attributes as the sort key. Default: `DEFAULT`. See [CustomerSortField](#type-customersortfield) for possible values - * @var string - */ - protected $field; - /** - * $order Indicates the order in which results should be sorted based on the sort field value. Strings use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. Default: `ASC`. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["field"])) { - $this->field = $data["field"]; - } else { - $this->field = null; - } - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - } - } - /** - * Gets field - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Sets field - * @param string $field Use one or more customer attributes as the sort key to sort searched customer profiles. For example, use creation date (`created_at`) of customers or default attributes as the sort key. Default: `DEFAULT`. See [CustomerSortField](#type-customersortfield) for possible values - * @return $this - */ - public function setField($field) - { - $this->field = $field; - return $this; - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order Indicates the order in which results should be sorted based on the sort field value. Strings use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. Default: `ASC`. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerSortField.php b/includes/classes/vendors/square/connect/lib/Model/CustomerSortField.php deleted file mode 100644 index deda968d12..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerSortField.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/CustomerTextFilter.php b/includes/classes/vendors/square/connect/lib/Model/CustomerTextFilter.php deleted file mode 100644 index 4354b059fe..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/CustomerTextFilter.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'fuzzy' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'exact' => 'exact', - 'fuzzy' => 'fuzzy' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'exact' => 'setExact', - 'fuzzy' => 'setFuzzy' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'exact' => 'getExact', - 'fuzzy' => 'getFuzzy' - ); - - /** - * $exact Use the exact filter to select customers whose attributes match exactly the specified query. - * @var string - */ - protected $exact; - /** - * $fuzzy Use the fuzzy filter to select customers whose attributes match the specified query in a fuzzy manner. When the fuzzy option is used, search queries are tokenized, and then each query token must be matched somewhere in the searched attribute. For single token queries, this is effectively the same behavior as a partial match operation. - * @var string - */ - protected $fuzzy; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["exact"])) { - $this->exact = $data["exact"]; - } else { - $this->exact = null; - } - if (isset($data["fuzzy"])) { - $this->fuzzy = $data["fuzzy"]; - } else { - $this->fuzzy = null; - } - } - } - /** - * Gets exact - * @return string - */ - public function getExact() - { - return $this->exact; - } - - /** - * Sets exact - * @param string $exact Use the exact filter to select customers whose attributes match exactly the specified query. - * @return $this - */ - public function setExact($exact) - { - $this->exact = $exact; - return $this; - } - /** - * Gets fuzzy - * @return string - */ - public function getFuzzy() - { - return $this->fuzzy; - } - - /** - * Sets fuzzy - * @param string $fuzzy Use the fuzzy filter to select customers whose attributes match the specified query in a fuzzy manner. When the fuzzy option is used, search queries are tokenized, and then each query token must be matched somewhere in the searched attribute. For single token queries, this is effectively the same behavior as a partial match operation. - * @return $this - */ - public function setFuzzy($fuzzy) - { - $this->fuzzy = $fuzzy; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DateRange.php b/includes/classes/vendors/square/connect/lib/Model/DateRange.php deleted file mode 100644 index 0f57076d9e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DateRange.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'end_date' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'start_date' => 'start_date', - 'end_date' => 'end_date' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'start_date' => 'setStartDate', - 'end_date' => 'setEndDate' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'start_date' => 'getStartDate', - 'end_date' => 'getEndDate' - ); - - /** - * $start_date String in `YYYY-MM-DD` format, e.g. `2017-10-31` per the ISO 8601 extended format for calendar dates. The beginning of a date range (inclusive) - * @var string - */ - protected $start_date; - /** - * $end_date String in `YYYY-MM-DD` format, e.g. `2017-10-31` per the ISO 8601 extended format for calendar dates. The end of a date range (inclusive) - * @var string - */ - protected $end_date; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["start_date"])) { - $this->start_date = $data["start_date"]; - } else { - $this->start_date = null; - } - if (isset($data["end_date"])) { - $this->end_date = $data["end_date"]; - } else { - $this->end_date = null; - } - } - } - /** - * Gets start_date - * @return string - */ - public function getStartDate() - { - return $this->start_date; - } - - /** - * Sets start_date - * @param string $start_date String in `YYYY-MM-DD` format, e.g. `2017-10-31` per the ISO 8601 extended format for calendar dates. The beginning of a date range (inclusive) - * @return $this - */ - public function setStartDate($start_date) - { - $this->start_date = $start_date; - return $this; - } - /** - * Gets end_date - * @return string - */ - public function getEndDate() - { - return $this->end_date; - } - - /** - * Sets end_date - * @param string $end_date String in `YYYY-MM-DD` format, e.g. `2017-10-31` per the ISO 8601 extended format for calendar dates. The end of a date range (inclusive) - * @return $this - */ - public function setEndDate($end_date) - { - $this->end_date = $end_date; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DayOfWeek.php b/includes/classes/vendors/square/connect/lib/Model/DayOfWeek.php deleted file mode 100644 index 8d17f34a54..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DayOfWeek.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteBreakTypeRequest.php b/includes/classes/vendors/square/connect/lib/Model/DeleteBreakTypeRequest.php deleted file mode 100644 index 92d1f0de2a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteBreakTypeRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteBreakTypeResponse.php b/includes/classes/vendors/square/connect/lib/Model/DeleteBreakTypeResponse.php deleted file mode 100644 index f19a9e6603..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteBreakTypeResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteCatalogObjectRequest.php b/includes/classes/vendors/square/connect/lib/Model/DeleteCatalogObjectRequest.php deleted file mode 100644 index ffef35d23c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteCatalogObjectRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteCatalogObjectResponse.php b/includes/classes/vendors/square/connect/lib/Model/DeleteCatalogObjectResponse.php deleted file mode 100644 index 28f501d8e7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteCatalogObjectResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'deleted_object_ids' => 'string[]', - 'deleted_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'deleted_object_ids' => 'deleted_object_ids', - 'deleted_at' => 'deleted_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'deleted_object_ids' => 'setDeletedObjectIds', - 'deleted_at' => 'setDeletedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'deleted_object_ids' => 'getDeletedObjectIds', - 'deleted_at' => 'getDeletedAt' - ); - - /** - * $errors Information on any errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $deleted_object_ids The IDs of all catalog objects deleted by this request. Multiple IDs may be returned when associated objects are also deleted, for example a catalog item variation will be deleted (and its ID included in this field) when its parent catalog item is deleted. - * @var string[] - */ - protected $deleted_object_ids; - /** - * $deleted_at The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. - * @var string - */ - protected $deleted_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["deleted_object_ids"])) { - $this->deleted_object_ids = $data["deleted_object_ids"]; - } else { - $this->deleted_object_ids = null; - } - if (isset($data["deleted_at"])) { - $this->deleted_at = $data["deleted_at"]; - } else { - $this->deleted_at = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets deleted_object_ids - * @return string[] - */ - public function getDeletedObjectIds() - { - return $this->deleted_object_ids; - } - - /** - * Sets deleted_object_ids - * @param string[] $deleted_object_ids The IDs of all catalog objects deleted by this request. Multiple IDs may be returned when associated objects are also deleted, for example a catalog item variation will be deleted (and its ID included in this field) when its parent catalog item is deleted. - * @return $this - */ - public function setDeletedObjectIds($deleted_object_ids) - { - $this->deleted_object_ids = $deleted_object_ids; - return $this; - } - /** - * Gets deleted_at - * @return string - */ - public function getDeletedAt() - { - return $this->deleted_at; - } - - /** - * Sets deleted_at - * @param string $deleted_at The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. - * @return $this - */ - public function setDeletedAt($deleted_at) - { - $this->deleted_at = $deleted_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerCardRequest.php b/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerCardRequest.php deleted file mode 100644 index 12cdf26b21..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerCardRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerCardResponse.php b/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerCardResponse.php deleted file mode 100644 index 32c56945dc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerCardResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerGroupRequest.php b/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerGroupRequest.php deleted file mode 100644 index e4313306b7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerGroupRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerGroupResponse.php b/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerGroupResponse.php deleted file mode 100644 index f9bd3b6761..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerGroupResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerRequest.php b/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerRequest.php deleted file mode 100644 index b5eebb78b8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerResponse.php b/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerResponse.php deleted file mode 100644 index 1a19edbb03..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteCustomerResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteLoyaltyRewardRequest.php b/includes/classes/vendors/square/connect/lib/Model/DeleteLoyaltyRewardRequest.php deleted file mode 100644 index ea4d5aeb24..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteLoyaltyRewardRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteLoyaltyRewardResponse.php b/includes/classes/vendors/square/connect/lib/Model/DeleteLoyaltyRewardResponse.php deleted file mode 100644 index 8eb144549e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteLoyaltyRewardResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteShiftRequest.php b/includes/classes/vendors/square/connect/lib/Model/DeleteShiftRequest.php deleted file mode 100644 index 586d65bb4c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteShiftRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeleteShiftResponse.php b/includes/classes/vendors/square/connect/lib/Model/DeleteShiftResponse.php deleted file mode 100644 index 4ac374eb98..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeleteShiftResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Device.php b/includes/classes/vendors/square/connect/lib/Model/Device.php deleted file mode 100644 index 80500e90a9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Device.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'name' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName' - ); - - /** - * $id The device's Square-issued ID. - * @var string - */ - protected $id; - /** - * $name The device's merchant-specified name. - * @var string - */ - protected $name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The device's Square-issued ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The device's merchant-specified name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeviceCheckoutOptions.php b/includes/classes/vendors/square/connect/lib/Model/DeviceCheckoutOptions.php deleted file mode 100644 index 1aef8f1c0d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeviceCheckoutOptions.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'skip_receipt_screen' => 'bool', - 'tip_settings' => '\SquareConnect\Model\TipSettings' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'device_id' => 'device_id', - 'skip_receipt_screen' => 'skip_receipt_screen', - 'tip_settings' => 'tip_settings' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'device_id' => 'setDeviceId', - 'skip_receipt_screen' => 'setSkipReceiptScreen', - 'tip_settings' => 'setTipSettings' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'device_id' => 'getDeviceId', - 'skip_receipt_screen' => 'getSkipReceiptScreen', - 'tip_settings' => 'getTipSettings' - ); - - /** - * $device_id The unique Id of the device intended for this `TerminalCheckout`. The Id can be retrieved from /v2/devices api. - * @var string - */ - protected $device_id; - /** - * $skip_receipt_screen Instruct the device to skip the receipt screen. Defaults to false. - * @var bool - */ - protected $skip_receipt_screen; - /** - * $tip_settings Tip specific settings - * @var \SquareConnect\Model\TipSettings - */ - protected $tip_settings; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["device_id"])) { - $this->device_id = $data["device_id"]; - } else { - $this->device_id = null; - } - if (isset($data["skip_receipt_screen"])) { - $this->skip_receipt_screen = $data["skip_receipt_screen"]; - } else { - $this->skip_receipt_screen = null; - } - if (isset($data["tip_settings"])) { - $this->tip_settings = $data["tip_settings"]; - } else { - $this->tip_settings = null; - } - } - } - /** - * Gets device_id - * @return string - */ - public function getDeviceId() - { - return $this->device_id; - } - - /** - * Sets device_id - * @param string $device_id The unique Id of the device intended for this `TerminalCheckout`. The Id can be retrieved from /v2/devices api. - * @return $this - */ - public function setDeviceId($device_id) - { - $this->device_id = $device_id; - return $this; - } - /** - * Gets skip_receipt_screen - * @return bool - */ - public function getSkipReceiptScreen() - { - return $this->skip_receipt_screen; - } - - /** - * Sets skip_receipt_screen - * @param bool $skip_receipt_screen Instruct the device to skip the receipt screen. Defaults to false. - * @return $this - */ - public function setSkipReceiptScreen($skip_receipt_screen) - { - $this->skip_receipt_screen = $skip_receipt_screen; - return $this; - } - /** - * Gets tip_settings - * @return \SquareConnect\Model\TipSettings - */ - public function getTipSettings() - { - return $this->tip_settings; - } - - /** - * Sets tip_settings - * @param \SquareConnect\Model\TipSettings $tip_settings Tip specific settings - * @return $this - */ - public function setTipSettings($tip_settings) - { - $this->tip_settings = $tip_settings; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeviceCode.php b/includes/classes/vendors/square/connect/lib/Model/DeviceCode.php deleted file mode 100644 index 8998dfd05c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeviceCode.php +++ /dev/null @@ -1,477 +0,0 @@ - 'string', - 'name' => 'string', - 'code' => 'string', - 'device_id' => 'string', - 'product_type' => 'string', - 'location_id' => 'string', - 'status' => 'string', - 'pair_by' => 'string', - 'created_at' => 'string', - 'status_changed_at' => 'string', - 'paired_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'code' => 'code', - 'device_id' => 'device_id', - 'product_type' => 'product_type', - 'location_id' => 'location_id', - 'status' => 'status', - 'pair_by' => 'pair_by', - 'created_at' => 'created_at', - 'status_changed_at' => 'status_changed_at', - 'paired_at' => 'paired_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'code' => 'setCode', - 'device_id' => 'setDeviceId', - 'product_type' => 'setProductType', - 'location_id' => 'setLocationId', - 'status' => 'setStatus', - 'pair_by' => 'setPairBy', - 'created_at' => 'setCreatedAt', - 'status_changed_at' => 'setStatusChangedAt', - 'paired_at' => 'setPairedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'code' => 'getCode', - 'device_id' => 'getDeviceId', - 'product_type' => 'getProductType', - 'location_id' => 'getLocationId', - 'status' => 'getStatus', - 'pair_by' => 'getPairBy', - 'created_at' => 'getCreatedAt', - 'status_changed_at' => 'getStatusChangedAt', - 'paired_at' => 'getPairedAt' - ); - - /** - * $id The unique id for this device code. - * @var string - */ - protected $id; - /** - * $name An optional user-defined name for the device code. - * @var string - */ - protected $name; - /** - * $code The unique code that can be used to login. - * @var string - */ - protected $code; - /** - * $device_id The unique id of the device that used this code. Populated when the device is paired up. - * @var string - */ - protected $device_id; - /** - * $product_type The targeting product type of the device code. See [ProductType](#type-producttype) for possible values - * @var string - */ - protected $product_type; - /** - * $location_id The location assigned to this code. - * @var string - */ - protected $location_id; - /** - * $status The pairing status of the device code. See [DeviceCodeStatus](#type-devicecodestatus) for possible values - * @var string - */ - protected $status; - /** - * $pair_by When this DeviceCode will expire and no longer login. Timestamp in RFC 3339 format. - * @var string - */ - protected $pair_by; - /** - * $created_at When this DeviceCode was created. Timestamp in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $status_changed_at When this DeviceCode's status was last changed. Timestamp in RFC 3339 format. - * @var string - */ - protected $status_changed_at; - /** - * $paired_at When this DeviceCode was paired. Timestamp in RFC 3339 format. - * @var string - */ - protected $paired_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["code"])) { - $this->code = $data["code"]; - } else { - $this->code = null; - } - if (isset($data["device_id"])) { - $this->device_id = $data["device_id"]; - } else { - $this->device_id = null; - } - if (isset($data["product_type"])) { - $this->product_type = $data["product_type"]; - } else { - $this->product_type = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["pair_by"])) { - $this->pair_by = $data["pair_by"]; - } else { - $this->pair_by = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["status_changed_at"])) { - $this->status_changed_at = $data["status_changed_at"]; - } else { - $this->status_changed_at = null; - } - if (isset($data["paired_at"])) { - $this->paired_at = $data["paired_at"]; - } else { - $this->paired_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The unique id for this device code. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name An optional user-defined name for the device code. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets code - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * Sets code - * @param string $code The unique code that can be used to login. - * @return $this - */ - public function setCode($code) - { - $this->code = $code; - return $this; - } - /** - * Gets device_id - * @return string - */ - public function getDeviceId() - { - return $this->device_id; - } - - /** - * Sets device_id - * @param string $device_id The unique id of the device that used this code. Populated when the device is paired up. - * @return $this - */ - public function setDeviceId($device_id) - { - $this->device_id = $device_id; - return $this; - } - /** - * Gets product_type - * @return string - */ - public function getProductType() - { - return $this->product_type; - } - - /** - * Sets product_type - * @param string $product_type The targeting product type of the device code. See [ProductType](#type-producttype) for possible values - * @return $this - */ - public function setProductType($product_type) - { - $this->product_type = $product_type; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The location assigned to this code. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The pairing status of the device code. See [DeviceCodeStatus](#type-devicecodestatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets pair_by - * @return string - */ - public function getPairBy() - { - return $this->pair_by; - } - - /** - * Sets pair_by - * @param string $pair_by When this DeviceCode will expire and no longer login. Timestamp in RFC 3339 format. - * @return $this - */ - public function setPairBy($pair_by) - { - $this->pair_by = $pair_by; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at When this DeviceCode was created. Timestamp in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets status_changed_at - * @return string - */ - public function getStatusChangedAt() - { - return $this->status_changed_at; - } - - /** - * Sets status_changed_at - * @param string $status_changed_at When this DeviceCode's status was last changed. Timestamp in RFC 3339 format. - * @return $this - */ - public function setStatusChangedAt($status_changed_at) - { - $this->status_changed_at = $status_changed_at; - return $this; - } - /** - * Gets paired_at - * @return string - */ - public function getPairedAt() - { - return $this->paired_at; - } - - /** - * Sets paired_at - * @param string $paired_at When this DeviceCode was paired. Timestamp in RFC 3339 format. - * @return $this - */ - public function setPairedAt($paired_at) - { - $this->paired_at = $paired_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeviceCodeStatus.php b/includes/classes/vendors/square/connect/lib/Model/DeviceCodeStatus.php deleted file mode 100644 index a1ba72b5f9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeviceCodeStatus.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DeviceDetails.php b/includes/classes/vendors/square/connect/lib/Model/DeviceDetails.php deleted file mode 100644 index cb261db6d0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DeviceDetails.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'device_name' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'device_id' => 'device_id', - 'device_name' => 'device_name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'device_id' => 'setDeviceId', - 'device_name' => 'setDeviceName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'device_id' => 'getDeviceId', - 'device_name' => 'getDeviceName' - ); - - /** - * $device_id Square-issued ID of the device. - * @var string - */ - protected $device_id; - /** - * $device_name The name of the device set by the merchant. - * @var string - */ - protected $device_name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["device_id"])) { - $this->device_id = $data["device_id"]; - } else { - $this->device_id = null; - } - if (isset($data["device_name"])) { - $this->device_name = $data["device_name"]; - } else { - $this->device_name = null; - } - } - } - /** - * Gets device_id - * @return string - */ - public function getDeviceId() - { - return $this->device_id; - } - - /** - * Sets device_id - * @param string $device_id Square-issued ID of the device. - * @return $this - */ - public function setDeviceId($device_id) - { - $this->device_id = $device_id; - return $this; - } - /** - * Gets device_name - * @return string - */ - public function getDeviceName() - { - return $this->device_name; - } - - /** - * Sets device_name - * @param string $device_name The name of the device set by the merchant. - * @return $this - */ - public function setDeviceName($device_name) - { - $this->device_name = $device_name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Dispute.php b/includes/classes/vendors/square/connect/lib/Model/Dispute.php deleted file mode 100644 index 02f4332572..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Dispute.php +++ /dev/null @@ -1,576 +0,0 @@ - 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'reason' => 'string', - 'state' => 'string', - 'due_at' => 'string', - 'disputed_payment' => '\SquareConnect\Model\DisputedPayment', - 'evidence_ids' => 'string[]', - 'card_brand' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string', - 'brand_dispute_id' => 'string', - 'reported_date' => 'string', - 'version' => 'int', - 'location_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'dispute_id' => 'dispute_id', - 'amount_money' => 'amount_money', - 'reason' => 'reason', - 'state' => 'state', - 'due_at' => 'due_at', - 'disputed_payment' => 'disputed_payment', - 'evidence_ids' => 'evidence_ids', - 'card_brand' => 'card_brand', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'brand_dispute_id' => 'brand_dispute_id', - 'reported_date' => 'reported_date', - 'version' => 'version', - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'dispute_id' => 'setDisputeId', - 'amount_money' => 'setAmountMoney', - 'reason' => 'setReason', - 'state' => 'setState', - 'due_at' => 'setDueAt', - 'disputed_payment' => 'setDisputedPayment', - 'evidence_ids' => 'setEvidenceIds', - 'card_brand' => 'setCardBrand', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'brand_dispute_id' => 'setBrandDisputeId', - 'reported_date' => 'setReportedDate', - 'version' => 'setVersion', - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'dispute_id' => 'getDisputeId', - 'amount_money' => 'getAmountMoney', - 'reason' => 'getReason', - 'state' => 'getState', - 'due_at' => 'getDueAt', - 'disputed_payment' => 'getDisputedPayment', - 'evidence_ids' => 'getEvidenceIds', - 'card_brand' => 'getCardBrand', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'brand_dispute_id' => 'getBrandDisputeId', - 'reported_date' => 'getReportedDate', - 'version' => 'getVersion', - 'location_id' => 'getLocationId' - ); - - /** - * $dispute_id Unique ID for this `Dispute`, generated by Square. - * @var string - */ - protected $dispute_id; - /** - * $amount_money The disputed amount. The amount can be less than the entire transaction amount. For example, a cardholder purchased multiple items, however initiated dispute only for some of the items. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $reason The dispute reason why cardholder initiated dispute with their bank. See [DisputeReason](#type-disputereason) for possible values - * @var string - */ - protected $reason; - /** - * $state The current state of this dispute. See [DisputeState](#type-disputestate) for possible values - * @var string - */ - protected $state; - /** - * $due_at The time when the next action is due, in RFC 3339 format. - * @var string - */ - protected $due_at; - /** - * $disputed_payment The payment challenged in this dispute. - * @var \SquareConnect\Model\DisputedPayment - */ - protected $disputed_payment; - /** - * $evidence_ids The IDs of the evidence associated with the dispute. - * @var string[] - */ - protected $evidence_ids; - /** - * $card_brand The card brand used in the disputed payment. See [CardBrand](#type-cardbrand) for possible values - * @var string - */ - protected $card_brand; - /** - * $created_at Timestamp when the dispute was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at Timestamp when dispute was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - /** - * $brand_dispute_id ID of the dispute in the card brand system, generated by the card brand. - * @var string - */ - protected $brand_dispute_id; - /** - * $reported_date Timestamp when the dispute was reported, in RFC 3339 format. - * @var string - */ - protected $reported_date; - /** - * $version The current version of the `Dispute`. - * @var int - */ - protected $version; - /** - * $location_id The ID of location where dispute originated. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["dispute_id"])) { - $this->dispute_id = $data["dispute_id"]; - } else { - $this->dispute_id = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["reason"])) { - $this->reason = $data["reason"]; - } else { - $this->reason = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["due_at"])) { - $this->due_at = $data["due_at"]; - } else { - $this->due_at = null; - } - if (isset($data["disputed_payment"])) { - $this->disputed_payment = $data["disputed_payment"]; - } else { - $this->disputed_payment = null; - } - if (isset($data["evidence_ids"])) { - $this->evidence_ids = $data["evidence_ids"]; - } else { - $this->evidence_ids = null; - } - if (isset($data["card_brand"])) { - $this->card_brand = $data["card_brand"]; - } else { - $this->card_brand = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["brand_dispute_id"])) { - $this->brand_dispute_id = $data["brand_dispute_id"]; - } else { - $this->brand_dispute_id = null; - } - if (isset($data["reported_date"])) { - $this->reported_date = $data["reported_date"]; - } else { - $this->reported_date = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets dispute_id - * @return string - */ - public function getDisputeId() - { - return $this->dispute_id; - } - - /** - * Sets dispute_id - * @param string $dispute_id Unique ID for this `Dispute`, generated by Square. - * @return $this - */ - public function setDisputeId($dispute_id) - { - $this->dispute_id = $dispute_id; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The disputed amount. The amount can be less than the entire transaction amount. For example, a cardholder purchased multiple items, however initiated dispute only for some of the items. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets reason - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Sets reason - * @param string $reason The dispute reason why cardholder initiated dispute with their bank. See [DisputeReason](#type-disputereason) for possible values - * @return $this - */ - public function setReason($reason) - { - $this->reason = $reason; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The current state of this dispute. See [DisputeState](#type-disputestate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets due_at - * @return string - */ - public function getDueAt() - { - return $this->due_at; - } - - /** - * Sets due_at - * @param string $due_at The time when the next action is due, in RFC 3339 format. - * @return $this - */ - public function setDueAt($due_at) - { - $this->due_at = $due_at; - return $this; - } - /** - * Gets disputed_payment - * @return \SquareConnect\Model\DisputedPayment - */ - public function getDisputedPayment() - { - return $this->disputed_payment; - } - - /** - * Sets disputed_payment - * @param \SquareConnect\Model\DisputedPayment $disputed_payment The payment challenged in this dispute. - * @return $this - */ - public function setDisputedPayment($disputed_payment) - { - $this->disputed_payment = $disputed_payment; - return $this; - } - /** - * Gets evidence_ids - * @return string[] - */ - public function getEvidenceIds() - { - return $this->evidence_ids; - } - - /** - * Sets evidence_ids - * @param string[] $evidence_ids The IDs of the evidence associated with the dispute. - * @return $this - */ - public function setEvidenceIds($evidence_ids) - { - $this->evidence_ids = $evidence_ids; - return $this; - } - /** - * Gets card_brand - * @return string - */ - public function getCardBrand() - { - return $this->card_brand; - } - - /** - * Sets card_brand - * @param string $card_brand The card brand used in the disputed payment. See [CardBrand](#type-cardbrand) for possible values - * @return $this - */ - public function setCardBrand($card_brand) - { - $this->card_brand = $card_brand; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at Timestamp when the dispute was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at Timestamp when dispute was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets brand_dispute_id - * @return string - */ - public function getBrandDisputeId() - { - return $this->brand_dispute_id; - } - - /** - * Sets brand_dispute_id - * @param string $brand_dispute_id ID of the dispute in the card brand system, generated by the card brand. - * @return $this - */ - public function setBrandDisputeId($brand_dispute_id) - { - $this->brand_dispute_id = $brand_dispute_id; - return $this; - } - /** - * Gets reported_date - * @return string - */ - public function getReportedDate() - { - return $this->reported_date; - } - - /** - * Sets reported_date - * @param string $reported_date Timestamp when the dispute was reported, in RFC 3339 format. - * @return $this - */ - public function setReportedDate($reported_date) - { - $this->reported_date = $reported_date; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version The current version of the `Dispute`. - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of location where dispute originated. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DisputeEvidence.php b/includes/classes/vendors/square/connect/lib/Model/DisputeEvidence.php deleted file mode 100644 index 789d4b41c7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DisputeEvidence.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'dispute_id' => 'string', - 'uploaded_at' => 'string', - 'evidence_type' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'evidence_id' => 'evidence_id', - 'dispute_id' => 'dispute_id', - 'uploaded_at' => 'uploaded_at', - 'evidence_type' => 'evidence_type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'evidence_id' => 'setEvidenceId', - 'dispute_id' => 'setDisputeId', - 'uploaded_at' => 'setUploadedAt', - 'evidence_type' => 'setEvidenceType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'evidence_id' => 'getEvidenceId', - 'dispute_id' => 'getDisputeId', - 'uploaded_at' => 'getUploadedAt', - 'evidence_type' => 'getEvidenceType' - ); - - /** - * $evidence_id The Square-generated ID of the evidence. - * @var string - */ - protected $evidence_id; - /** - * $dispute_id The ID of the dispute the evidence is associated with. - * @var string - */ - protected $dispute_id; - /** - * $uploaded_at The time when the next action is due, in RFC 3339 format. - * @var string - */ - protected $uploaded_at; - /** - * $evidence_type The type of the evidence. See [DisputeEvidenceType](#type-disputeevidencetype) for possible values - * @var string - */ - protected $evidence_type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["evidence_id"])) { - $this->evidence_id = $data["evidence_id"]; - } else { - $this->evidence_id = null; - } - if (isset($data["dispute_id"])) { - $this->dispute_id = $data["dispute_id"]; - } else { - $this->dispute_id = null; - } - if (isset($data["uploaded_at"])) { - $this->uploaded_at = $data["uploaded_at"]; - } else { - $this->uploaded_at = null; - } - if (isset($data["evidence_type"])) { - $this->evidence_type = $data["evidence_type"]; - } else { - $this->evidence_type = null; - } - } - } - /** - * Gets evidence_id - * @return string - */ - public function getEvidenceId() - { - return $this->evidence_id; - } - - /** - * Sets evidence_id - * @param string $evidence_id The Square-generated ID of the evidence. - * @return $this - */ - public function setEvidenceId($evidence_id) - { - $this->evidence_id = $evidence_id; - return $this; - } - /** - * Gets dispute_id - * @return string - */ - public function getDisputeId() - { - return $this->dispute_id; - } - - /** - * Sets dispute_id - * @param string $dispute_id The ID of the dispute the evidence is associated with. - * @return $this - */ - public function setDisputeId($dispute_id) - { - $this->dispute_id = $dispute_id; - return $this; - } - /** - * Gets uploaded_at - * @return string - */ - public function getUploadedAt() - { - return $this->uploaded_at; - } - - /** - * Sets uploaded_at - * @param string $uploaded_at The time when the next action is due, in RFC 3339 format. - * @return $this - */ - public function setUploadedAt($uploaded_at) - { - $this->uploaded_at = $uploaded_at; - return $this; - } - /** - * Gets evidence_type - * @return string - */ - public function getEvidenceType() - { - return $this->evidence_type; - } - - /** - * Sets evidence_type - * @param string $evidence_type The type of the evidence. See [DisputeEvidenceType](#type-disputeevidencetype) for possible values - * @return $this - */ - public function setEvidenceType($evidence_type) - { - $this->evidence_type = $evidence_type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DisputeEvidenceFile.php b/includes/classes/vendors/square/connect/lib/Model/DisputeEvidenceFile.php deleted file mode 100644 index ef2db706e8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DisputeEvidenceFile.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'filetype' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'filename' => 'filename', - 'filetype' => 'filetype' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'filename' => 'setFilename', - 'filetype' => 'setFiletype' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'filename' => 'getFilename', - 'filetype' => 'getFiletype' - ); - - /** - * $filename The file name including the file extension. For example: \"receipt.tiff\". - * @var string - */ - protected $filename; - /** - * $filetype Dispute evidence files must one of application/pdf, image/heic, image/heif, image/jpeg, image/png, image/tiff formats. - * @var string - */ - protected $filetype; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["filename"])) { - $this->filename = $data["filename"]; - } else { - $this->filename = null; - } - if (isset($data["filetype"])) { - $this->filetype = $data["filetype"]; - } else { - $this->filetype = null; - } - } - } - /** - * Gets filename - * @return string - */ - public function getFilename() - { - return $this->filename; - } - - /** - * Sets filename - * @param string $filename The file name including the file extension. For example: \"receipt.tiff\". - * @return $this - */ - public function setFilename($filename) - { - $this->filename = $filename; - return $this; - } - /** - * Gets filetype - * @return string - */ - public function getFiletype() - { - return $this->filetype; - } - - /** - * Sets filetype - * @param string $filetype Dispute evidence files must one of application/pdf, image/heic, image/heif, image/jpeg, image/png, image/tiff formats. - * @return $this - */ - public function setFiletype($filetype) - { - $this->filetype = $filetype; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DisputeEvidenceType.php b/includes/classes/vendors/square/connect/lib/Model/DisputeEvidenceType.php deleted file mode 100644 index 3282363cbb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DisputeEvidenceType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DisputeReason.php b/includes/classes/vendors/square/connect/lib/Model/DisputeReason.php deleted file mode 100644 index 8304b124ba..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DisputeReason.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DisputeState.php b/includes/classes/vendors/square/connect/lib/Model/DisputeState.php deleted file mode 100644 index b95e8606eb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DisputeState.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/DisputedPayment.php b/includes/classes/vendors/square/connect/lib/Model/DisputedPayment.php deleted file mode 100644 index 38aac6e776..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/DisputedPayment.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'payment_id' => 'payment_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'payment_id' => 'setPaymentId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'payment_id' => 'getPaymentId' - ); - - /** - * $payment_id Square-generated unique ID of the payment being disputed. - * @var string - */ - protected $payment_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["payment_id"])) { - $this->payment_id = $data["payment_id"]; - } else { - $this->payment_id = null; - } - } - } - /** - * Gets payment_id - * @return string - */ - public function getPaymentId() - { - return $this->payment_id; - } - - /** - * Sets payment_id - * @param string $payment_id Square-generated unique ID of the payment being disputed. - * @return $this - */ - public function setPaymentId($payment_id) - { - $this->payment_id = $payment_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/EcomVisibility.php b/includes/classes/vendors/square/connect/lib/Model/EcomVisibility.php deleted file mode 100644 index 12ea688400..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/EcomVisibility.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Employee.php b/includes/classes/vendors/square/connect/lib/Model/Employee.php deleted file mode 100644 index c164c208a2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Employee.php +++ /dev/null @@ -1,443 +0,0 @@ - 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'email' => 'string', - 'phone_number' => 'string', - 'location_ids' => 'string[]', - 'status' => 'string', - 'is_owner' => 'bool', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'first_name' => 'first_name', - 'last_name' => 'last_name', - 'email' => 'email', - 'phone_number' => 'phone_number', - 'location_ids' => 'location_ids', - 'status' => 'status', - 'is_owner' => 'is_owner', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'email' => 'setEmail', - 'phone_number' => 'setPhoneNumber', - 'location_ids' => 'setLocationIds', - 'status' => 'setStatus', - 'is_owner' => 'setIsOwner', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'email' => 'getEmail', - 'phone_number' => 'getPhoneNumber', - 'location_ids' => 'getLocationIds', - 'status' => 'getStatus', - 'is_owner' => 'getIsOwner', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id UUID for this object. - * @var string - */ - protected $id; - /** - * $first_name The employee's first name. - * @var string - */ - protected $first_name; - /** - * $last_name The employee's last name. - * @var string - */ - protected $last_name; - /** - * $email The employee's email address - * @var string - */ - protected $email; - /** - * $phone_number The employee's phone number in E.164 format, i.e. \"+12125554250\" - * @var string - */ - protected $phone_number; - /** - * $location_ids A list of location IDs where this employee has access to. - * @var string[] - */ - protected $location_ids; - /** - * $status Specifies the status of the employees being fetched. See [EmployeeStatus](#type-employeestatus) for possible values - * @var string - */ - protected $status; - /** - * $is_owner Whether this employee is the owner of the merchant. Each merchant has one owner employee, and that employee has full authority over the account. - * @var bool - */ - protected $is_owner; - /** - * $created_at A read-only timestamp in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at A read-only timestamp in RFC 3339 format. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["first_name"])) { - $this->first_name = $data["first_name"]; - } else { - $this->first_name = null; - } - if (isset($data["last_name"])) { - $this->last_name = $data["last_name"]; - } else { - $this->last_name = null; - } - if (isset($data["email"])) { - $this->email = $data["email"]; - } else { - $this->email = null; - } - if (isset($data["phone_number"])) { - $this->phone_number = $data["phone_number"]; - } else { - $this->phone_number = null; - } - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["is_owner"])) { - $this->is_owner = $data["is_owner"]; - } else { - $this->is_owner = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id UUID for this object. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets first_name - * @return string - */ - public function getFirstName() - { - return $this->first_name; - } - - /** - * Sets first_name - * @param string $first_name The employee's first name. - * @return $this - */ - public function setFirstName($first_name) - { - $this->first_name = $first_name; - return $this; - } - /** - * Gets last_name - * @return string - */ - public function getLastName() - { - return $this->last_name; - } - - /** - * Sets last_name - * @param string $last_name The employee's last name. - * @return $this - */ - public function setLastName($last_name) - { - $this->last_name = $last_name; - return $this; - } - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Sets email - * @param string $email The employee's email address - * @return $this - */ - public function setEmail($email) - { - $this->email = $email; - return $this; - } - /** - * Gets phone_number - * @return string - */ - public function getPhoneNumber() - { - return $this->phone_number; - } - - /** - * Sets phone_number - * @param string $phone_number The employee's phone number in E.164 format, i.e. \"+12125554250\" - * @return $this - */ - public function setPhoneNumber($phone_number) - { - $this->phone_number = $phone_number; - return $this; - } - /** - * Gets location_ids - * @return string[] - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string[] $location_ids A list of location IDs where this employee has access to. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Specifies the status of the employees being fetched. See [EmployeeStatus](#type-employeestatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets is_owner - * @return bool - */ - public function getIsOwner() - { - return $this->is_owner; - } - - /** - * Sets is_owner - * @param bool $is_owner Whether this employee is the owner of the merchant. Each merchant has one owner employee, and that employee has full authority over the account. - * @return $this - */ - public function setIsOwner($is_owner) - { - $this->is_owner = $is_owner; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at A read-only timestamp in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at A read-only timestamp in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/EmployeeStatus.php b/includes/classes/vendors/square/connect/lib/Model/EmployeeStatus.php deleted file mode 100644 index 22dc82b85c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/EmployeeStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/EmployeeWage.php b/includes/classes/vendors/square/connect/lib/Model/EmployeeWage.php deleted file mode 100644 index 156dfe68d4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/EmployeeWage.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'employee_id' => 'string', - 'title' => 'string', - 'hourly_rate' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'employee_id' => 'employee_id', - 'title' => 'title', - 'hourly_rate' => 'hourly_rate' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'employee_id' => 'setEmployeeId', - 'title' => 'setTitle', - 'hourly_rate' => 'setHourlyRate' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'employee_id' => 'getEmployeeId', - 'title' => 'getTitle', - 'hourly_rate' => 'getHourlyRate' - ); - - /** - * $id UUID for this object. - * @var string - */ - protected $id; - /** - * $employee_id The `Employee` that this wage is assigned to. - * @var string - */ - protected $employee_id; - /** - * $title The job title that this wage relates to. - * @var string - */ - protected $title; - /** - * $hourly_rate Can be a custom-set hourly wage or the calculated effective hourly wage based on annual wage and hours worked per week. - * @var \SquareConnect\Model\Money - */ - protected $hourly_rate; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["title"])) { - $this->title = $data["title"]; - } else { - $this->title = null; - } - if (isset($data["hourly_rate"])) { - $this->hourly_rate = $data["hourly_rate"]; - } else { - $this->hourly_rate = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id UUID for this object. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The `Employee` that this wage is assigned to. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets title - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Sets title - * @param string $title The job title that this wage relates to. - * @return $this - */ - public function setTitle($title) - { - $this->title = $title; - return $this; - } - /** - * Gets hourly_rate - * @return \SquareConnect\Model\Money - */ - public function getHourlyRate() - { - return $this->hourly_rate; - } - - /** - * Sets hourly_rate - * @param \SquareConnect\Model\Money $hourly_rate Can be a custom-set hourly wage or the calculated effective hourly wage based on annual wage and hours worked per week. - * @return $this - */ - public function setHourlyRate($hourly_rate) - { - $this->hourly_rate = $hourly_rate; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Error.php b/includes/classes/vendors/square/connect/lib/Model/Error.php deleted file mode 100644 index 352b6f117b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Error.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'code' => 'string', - 'detail' => 'string', - 'field' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'category' => 'category', - 'code' => 'code', - 'detail' => 'detail', - 'field' => 'field' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'category' => 'setCategory', - 'code' => 'setCode', - 'detail' => 'setDetail', - 'field' => 'setField' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'category' => 'getCategory', - 'code' => 'getCode', - 'detail' => 'getDetail', - 'field' => 'getField' - ); - - /** - * $category The high-level category for the error. See `ErrorCategory` for possible values. See [ErrorCategory](#type-errorcategory) for possible values - * @var string - */ - protected $category; - /** - * $code The specific code of the error. See `ErrorCode` for possible values See [ErrorCode](#type-errorcode) for possible values - * @var string - */ - protected $code; - /** - * $detail A human-readable description of the error for debugging purposes. - * @var string - */ - protected $detail; - /** - * $field The name of the field provided in the original request (if any) that the error pertains to. - * @var string - */ - protected $field; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["category"])) { - $this->category = $data["category"]; - } else { - $this->category = null; - } - if (isset($data["code"])) { - $this->code = $data["code"]; - } else { - $this->code = null; - } - if (isset($data["detail"])) { - $this->detail = $data["detail"]; - } else { - $this->detail = null; - } - if (isset($data["field"])) { - $this->field = $data["field"]; - } else { - $this->field = null; - } - } - } - /** - * Gets category - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Sets category - * @param string $category The high-level category for the error. See `ErrorCategory` for possible values. See [ErrorCategory](#type-errorcategory) for possible values - * @return $this - */ - public function setCategory($category) - { - $this->category = $category; - return $this; - } - /** - * Gets code - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * Sets code - * @param string $code The specific code of the error. See `ErrorCode` for possible values See [ErrorCode](#type-errorcode) for possible values - * @return $this - */ - public function setCode($code) - { - $this->code = $code; - return $this; - } - /** - * Gets detail - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * Sets detail - * @param string $detail A human-readable description of the error for debugging purposes. - * @return $this - */ - public function setDetail($detail) - { - $this->detail = $detail; - return $this; - } - /** - * Gets field - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Sets field - * @param string $field The name of the field provided in the original request (if any) that the error pertains to. - * @return $this - */ - public function setField($field) - { - $this->field = $field; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ErrorCategory.php b/includes/classes/vendors/square/connect/lib/Model/ErrorCategory.php deleted file mode 100644 index e17377f4a2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ErrorCategory.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ErrorCode.php b/includes/classes/vendors/square/connect/lib/Model/ErrorCode.php deleted file mode 100644 index 4dfc1e72fc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ErrorCode.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ExcludeStrategy.php b/includes/classes/vendors/square/connect/lib/Model/ExcludeStrategy.php deleted file mode 100644 index 4041d7387d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ExcludeStrategy.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/FilterValue.php b/includes/classes/vendors/square/connect/lib/Model/FilterValue.php deleted file mode 100644 index 2c560da74d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/FilterValue.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string[]', - 'any' => 'string[]', - 'none' => 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'all' => 'all', - 'any' => 'any', - 'none' => 'none' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'all' => 'setAll', - 'any' => 'setAny', - 'none' => 'setNone' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'all' => 'getAll', - 'any' => 'getAny', - 'none' => 'getNone' - ); - - /** - * $all A list of terms that must be present on the field of the resource. - * @var string[] - */ - protected $all; - /** - * $any A list of terms where at least one of them must be present on the field of the resource. - * @var string[] - */ - protected $any; - /** - * $none A list of terms that must not be present on the field the resource - * @var string[] - */ - protected $none; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["all"])) { - $this->all = $data["all"]; - } else { - $this->all = null; - } - if (isset($data["any"])) { - $this->any = $data["any"]; - } else { - $this->any = null; - } - if (isset($data["none"])) { - $this->none = $data["none"]; - } else { - $this->none = null; - } - } - } - /** - * Gets all - * @return string[] - */ - public function getAll() - { - return $this->all; - } - - /** - * Sets all - * @param string[] $all A list of terms that must be present on the field of the resource. - * @return $this - */ - public function setAll($all) - { - $this->all = $all; - return $this; - } - /** - * Gets any - * @return string[] - */ - public function getAny() - { - return $this->any; - } - - /** - * Sets any - * @param string[] $any A list of terms where at least one of them must be present on the field of the resource. - * @return $this - */ - public function setAny($any) - { - $this->any = $any; - return $this; - } - /** - * Gets none - * @return string[] - */ - public function getNone() - { - return $this->none; - } - - /** - * Sets none - * @param string[] $none A list of terms that must not be present on the field the resource - * @return $this - */ - public function setNone($none) - { - $this->none = $none; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetBankAccountByV1IdRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetBankAccountByV1IdRequest.php deleted file mode 100644 index 258919396b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetBankAccountByV1IdRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetBankAccountByV1IdResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetBankAccountByV1IdResponse.php deleted file mode 100644 index 15a54b4abc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetBankAccountByV1IdResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'bank_account' => '\SquareConnect\Model\BankAccount' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'bank_account' => 'bank_account' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'bank_account' => 'setBankAccount' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'bank_account' => 'getBankAccount' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $bank_account The requested `BankAccount` object. - * @var \SquareConnect\Model\BankAccount - */ - protected $bank_account; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["bank_account"])) { - $this->bank_account = $data["bank_account"]; - } else { - $this->bank_account = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets bank_account - * @return \SquareConnect\Model\BankAccount - */ - public function getBankAccount() - { - return $this->bank_account; - } - - /** - * Sets bank_account - * @param \SquareConnect\Model\BankAccount $bank_account The requested `BankAccount` object. - * @return $this - */ - public function setBankAccount($bank_account) - { - $this->bank_account = $bank_account; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetBankAccountRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetBankAccountRequest.php deleted file mode 100644 index 311bd5e7a7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetBankAccountRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetBankAccountResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetBankAccountResponse.php deleted file mode 100644 index 01c0f0c214..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetBankAccountResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'bank_account' => '\SquareConnect\Model\BankAccount' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'bank_account' => 'bank_account' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'bank_account' => 'setBankAccount' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'bank_account' => 'getBankAccount' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $bank_account The requested `BankAccount` object. - * @var \SquareConnect\Model\BankAccount - */ - protected $bank_account; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["bank_account"])) { - $this->bank_account = $data["bank_account"]; - } else { - $this->bank_account = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets bank_account - * @return \SquareConnect\Model\BankAccount - */ - public function getBankAccount() - { - return $this->bank_account; - } - - /** - * Sets bank_account - * @param \SquareConnect\Model\BankAccount $bank_account The requested `BankAccount` object. - * @return $this - */ - public function setBankAccount($bank_account) - { - $this->bank_account = $bank_account; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetBreakTypeRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetBreakTypeRequest.php deleted file mode 100644 index f5e329f364..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetBreakTypeRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetBreakTypeResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetBreakTypeResponse.php deleted file mode 100644 index ce805e6a93..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetBreakTypeResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\BreakType', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'break_type' => 'break_type', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'break_type' => 'setBreakType', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'break_type' => 'getBreakType', - 'errors' => 'getErrors' - ); - - /** - * $break_type The response object. - * @var \SquareConnect\Model\BreakType - */ - protected $break_type; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["break_type"])) { - $this->break_type = $data["break_type"]; - } else { - $this->break_type = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets break_type - * @return \SquareConnect\Model\BreakType - */ - public function getBreakType() - { - return $this->break_type; - } - - /** - * Sets break_type - * @param \SquareConnect\Model\BreakType $break_type The response object. - * @return $this - */ - public function setBreakType($break_type) - { - $this->break_type = $break_type; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetDeviceCodeRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetDeviceCodeRequest.php deleted file mode 100644 index ba672c2774..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetDeviceCodeRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetDeviceCodeResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetDeviceCodeResponse.php deleted file mode 100644 index 50be52acba..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetDeviceCodeResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'device_code' => '\SquareConnect\Model\DeviceCode' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'device_code' => 'device_code' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'device_code' => 'setDeviceCode' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'device_code' => 'getDeviceCode' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $device_code The queried DeviceCode. - * @var \SquareConnect\Model\DeviceCode - */ - protected $device_code; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["device_code"])) { - $this->device_code = $data["device_code"]; - } else { - $this->device_code = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets device_code - * @return \SquareConnect\Model\DeviceCode - */ - public function getDeviceCode() - { - return $this->device_code; - } - - /** - * Sets device_code - * @param \SquareConnect\Model\DeviceCode $device_code The queried DeviceCode. - * @return $this - */ - public function setDeviceCode($device_code) - { - $this->device_code = $device_code; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetEmployeeWageRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetEmployeeWageRequest.php deleted file mode 100644 index f3ca3fca2c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetEmployeeWageRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetEmployeeWageResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetEmployeeWageResponse.php deleted file mode 100644 index 9808e99a62..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetEmployeeWageResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\EmployeeWage', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'employee_wage' => 'employee_wage', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'employee_wage' => 'setEmployeeWage', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'employee_wage' => 'getEmployeeWage', - 'errors' => 'getErrors' - ); - - /** - * $employee_wage The requested `EmployeeWage` object. - * @var \SquareConnect\Model\EmployeeWage - */ - protected $employee_wage; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["employee_wage"])) { - $this->employee_wage = $data["employee_wage"]; - } else { - $this->employee_wage = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets employee_wage - * @return \SquareConnect\Model\EmployeeWage - */ - public function getEmployeeWage() - { - return $this->employee_wage; - } - - /** - * Sets employee_wage - * @param \SquareConnect\Model\EmployeeWage $employee_wage The requested `EmployeeWage` object. - * @return $this - */ - public function setEmployeeWage($employee_wage) - { - $this->employee_wage = $employee_wage; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetPaymentRefundRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetPaymentRefundRequest.php deleted file mode 100644 index 09d5ee5f95..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetPaymentRefundRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetPaymentRefundResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetPaymentRefundResponse.php deleted file mode 100644 index cf6908d273..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetPaymentRefundResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'refund' => '\SquareConnect\Model\PaymentRefund' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'refund' => 'refund' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'refund' => 'setRefund' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'refund' => 'getRefund' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $refund The requested `PaymentRefund`. - * @var \SquareConnect\Model\PaymentRefund - */ - protected $refund; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["refund"])) { - $this->refund = $data["refund"]; - } else { - $this->refund = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets refund - * @return \SquareConnect\Model\PaymentRefund - */ - public function getRefund() - { - return $this->refund; - } - - /** - * Sets refund - * @param \SquareConnect\Model\PaymentRefund $refund The requested `PaymentRefund`. - * @return $this - */ - public function setRefund($refund) - { - $this->refund = $refund; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetPaymentRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetPaymentRequest.php deleted file mode 100644 index 4dca668af1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetPaymentRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetPaymentResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetPaymentResponse.php deleted file mode 100644 index a403b8382c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetPaymentResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'payment' => '\SquareConnect\Model\Payment' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'payment' => 'payment' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'payment' => 'setPayment' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'payment' => 'getPayment' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $payment The requested `Payment`. - * @var \SquareConnect\Model\Payment - */ - protected $payment; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["payment"])) { - $this->payment = $data["payment"]; - } else { - $this->payment = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets payment - * @return \SquareConnect\Model\Payment - */ - public function getPayment() - { - return $this->payment; - } - - /** - * Sets payment - * @param \SquareConnect\Model\Payment $payment The requested `Payment`. - * @return $this - */ - public function setPayment($payment) - { - $this->payment = $payment; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetShiftRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetShiftRequest.php deleted file mode 100644 index 8b82313fe3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetShiftRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetShiftResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetShiftResponse.php deleted file mode 100644 index 15da2b878c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetShiftResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Shift', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'shift' => 'shift', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'shift' => 'setShift', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'shift' => 'getShift', - 'errors' => 'getErrors' - ); - - /** - * $shift The requested `Shift`. - * @var \SquareConnect\Model\Shift - */ - protected $shift; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["shift"])) { - $this->shift = $data["shift"]; - } else { - $this->shift = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets shift - * @return \SquareConnect\Model\Shift - */ - public function getShift() - { - return $this->shift; - } - - /** - * Sets shift - * @param \SquareConnect\Model\Shift $shift The requested `Shift`. - * @return $this - */ - public function setShift($shift) - { - $this->shift = $shift; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetTerminalCheckoutRequest.php b/includes/classes/vendors/square/connect/lib/Model/GetTerminalCheckoutRequest.php deleted file mode 100644 index 17233b82de..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetTerminalCheckoutRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/GetTerminalCheckoutResponse.php b/includes/classes/vendors/square/connect/lib/Model/GetTerminalCheckoutResponse.php deleted file mode 100644 index c7af543d71..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/GetTerminalCheckoutResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'checkout' => '\SquareConnect\Model\TerminalCheckout' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'checkout' => 'checkout' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'checkout' => 'setCheckout' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'checkout' => 'getCheckout' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $checkout The requested `Checkout` - * @var \SquareConnect\Model\TerminalCheckout - */ - protected $checkout; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["checkout"])) { - $this->checkout = $data["checkout"]; - } else { - $this->checkout = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets checkout - * @return \SquareConnect\Model\TerminalCheckout - */ - public function getCheckout() - { - return $this->checkout; - } - - /** - * Sets checkout - * @param \SquareConnect\Model\TerminalCheckout $checkout The requested `Checkout` - * @return $this - */ - public function setCheckout($checkout) - { - $this->checkout = $checkout; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/InventoryAdjustment.php b/includes/classes/vendors/square/connect/lib/Model/InventoryAdjustment.php deleted file mode 100644 index eb2e5f6ef8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/InventoryAdjustment.php +++ /dev/null @@ -1,674 +0,0 @@ - 'string', - 'reference_id' => 'string', - 'from_state' => 'string', - 'to_state' => 'string', - 'location_id' => 'string', - 'catalog_object_id' => 'string', - 'catalog_object_type' => 'string', - 'quantity' => 'string', - 'total_price_money' => '\SquareConnect\Model\Money', - 'occurred_at' => 'string', - 'created_at' => 'string', - 'source' => '\SquareConnect\Model\SourceApplication', - 'employee_id' => 'string', - 'transaction_id' => 'string', - 'refund_id' => 'string', - 'purchase_order_id' => 'string', - 'goods_receipt_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'reference_id' => 'reference_id', - 'from_state' => 'from_state', - 'to_state' => 'to_state', - 'location_id' => 'location_id', - 'catalog_object_id' => 'catalog_object_id', - 'catalog_object_type' => 'catalog_object_type', - 'quantity' => 'quantity', - 'total_price_money' => 'total_price_money', - 'occurred_at' => 'occurred_at', - 'created_at' => 'created_at', - 'source' => 'source', - 'employee_id' => 'employee_id', - 'transaction_id' => 'transaction_id', - 'refund_id' => 'refund_id', - 'purchase_order_id' => 'purchase_order_id', - 'goods_receipt_id' => 'goods_receipt_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'reference_id' => 'setReferenceId', - 'from_state' => 'setFromState', - 'to_state' => 'setToState', - 'location_id' => 'setLocationId', - 'catalog_object_id' => 'setCatalogObjectId', - 'catalog_object_type' => 'setCatalogObjectType', - 'quantity' => 'setQuantity', - 'total_price_money' => 'setTotalPriceMoney', - 'occurred_at' => 'setOccurredAt', - 'created_at' => 'setCreatedAt', - 'source' => 'setSource', - 'employee_id' => 'setEmployeeId', - 'transaction_id' => 'setTransactionId', - 'refund_id' => 'setRefundId', - 'purchase_order_id' => 'setPurchaseOrderId', - 'goods_receipt_id' => 'setGoodsReceiptId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'reference_id' => 'getReferenceId', - 'from_state' => 'getFromState', - 'to_state' => 'getToState', - 'location_id' => 'getLocationId', - 'catalog_object_id' => 'getCatalogObjectId', - 'catalog_object_type' => 'getCatalogObjectType', - 'quantity' => 'getQuantity', - 'total_price_money' => 'getTotalPriceMoney', - 'occurred_at' => 'getOccurredAt', - 'created_at' => 'getCreatedAt', - 'source' => 'getSource', - 'employee_id' => 'getEmployeeId', - 'transaction_id' => 'getTransactionId', - 'refund_id' => 'getRefundId', - 'purchase_order_id' => 'getPurchaseOrderId', - 'goods_receipt_id' => 'getGoodsReceiptId' - ); - - /** - * $id A unique ID generated by Square for the `InventoryAdjustment`. - * @var string - */ - protected $id; - /** - * $reference_id An optional ID provided by the application to tie the `InventoryAdjustment` to an external system. - * @var string - */ - protected $reference_id; - /** - * $from_state The `InventoryState` of the related quantity of items before the adjustment. See [InventoryState](#type-inventorystate) for possible values - * @var string - */ - protected $from_state; - /** - * $to_state The `InventoryState` of the related quantity of items after the adjustment. See [InventoryState](#type-inventorystate) for possible values - * @var string - */ - protected $to_state; - /** - * $location_id The Square ID of the `Location` where the related quantity of items are being tracked. - * @var string - */ - protected $location_id; - /** - * $catalog_object_id The Square generated ID of the `CatalogObject` being tracked. - * @var string - */ - protected $catalog_object_id; - /** - * $catalog_object_type The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type. - * @var string - */ - protected $catalog_object_type; - /** - * $quantity The number of items affected by the adjustment as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information. - * @var string - */ - protected $quantity; - /** - * $total_price_money The read-only total price paid for goods associated with the adjustment. Present if and only if `to_state` is `SOLD`. Always non-negative. - * @var \SquareConnect\Model\Money - */ - protected $total_price_money; - /** - * $occurred_at A client-generated timestamp in RFC 3339 format that indicates when the adjustment took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. - * @var string - */ - protected $occurred_at; - /** - * $created_at A read-only timestamp in RFC 3339 format that indicates when Square received the adjustment. - * @var string - */ - protected $created_at; - /** - * $source Read-only information about the application that caused the inventory adjustment. - * @var \SquareConnect\Model\SourceApplication - */ - protected $source; - /** - * $employee_id The Square ID of the `Employee` responsible for the inventory adjustment. - * @var string - */ - protected $employee_id; - /** - * $transaction_id The read-only Square ID of the [Transaction][#type-transaction] that caused the adjustment. Only relevant for payment-related state transitions. - * @var string - */ - protected $transaction_id; - /** - * $refund_id The read-only Square ID of the [Refund][#type-refund] that caused the adjustment. Only relevant for refund-related state transitions. - * @var string - */ - protected $refund_id; - /** - * $purchase_order_id The read-only Square ID of the purchase order that caused the adjustment. Only relevant for state transitions from the Square for Retail app. - * @var string - */ - protected $purchase_order_id; - /** - * $goods_receipt_id The read-only Square ID of the Square goods receipt that caused the adjustment. Only relevant for state transitions from the Square for Retail app. - * @var string - */ - protected $goods_receipt_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["from_state"])) { - $this->from_state = $data["from_state"]; - } else { - $this->from_state = null; - } - if (isset($data["to_state"])) { - $this->to_state = $data["to_state"]; - } else { - $this->to_state = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["catalog_object_type"])) { - $this->catalog_object_type = $data["catalog_object_type"]; - } else { - $this->catalog_object_type = null; - } - if (isset($data["quantity"])) { - $this->quantity = $data["quantity"]; - } else { - $this->quantity = null; - } - if (isset($data["total_price_money"])) { - $this->total_price_money = $data["total_price_money"]; - } else { - $this->total_price_money = null; - } - if (isset($data["occurred_at"])) { - $this->occurred_at = $data["occurred_at"]; - } else { - $this->occurred_at = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["source"])) { - $this->source = $data["source"]; - } else { - $this->source = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["transaction_id"])) { - $this->transaction_id = $data["transaction_id"]; - } else { - $this->transaction_id = null; - } - if (isset($data["refund_id"])) { - $this->refund_id = $data["refund_id"]; - } else { - $this->refund_id = null; - } - if (isset($data["purchase_order_id"])) { - $this->purchase_order_id = $data["purchase_order_id"]; - } else { - $this->purchase_order_id = null; - } - if (isset($data["goods_receipt_id"])) { - $this->goods_receipt_id = $data["goods_receipt_id"]; - } else { - $this->goods_receipt_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id A unique ID generated by Square for the `InventoryAdjustment`. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional ID provided by the application to tie the `InventoryAdjustment` to an external system. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets from_state - * @return string - */ - public function getFromState() - { - return $this->from_state; - } - - /** - * Sets from_state - * @param string $from_state The `InventoryState` of the related quantity of items before the adjustment. See [InventoryState](#type-inventorystate) for possible values - * @return $this - */ - public function setFromState($from_state) - { - $this->from_state = $from_state; - return $this; - } - /** - * Gets to_state - * @return string - */ - public function getToState() - { - return $this->to_state; - } - - /** - * Sets to_state - * @param string $to_state The `InventoryState` of the related quantity of items after the adjustment. See [InventoryState](#type-inventorystate) for possible values - * @return $this - */ - public function setToState($to_state) - { - $this->to_state = $to_state; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The Square ID of the `Location` where the related quantity of items are being tracked. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The Square generated ID of the `CatalogObject` being tracked. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets catalog_object_type - * @return string - */ - public function getCatalogObjectType() - { - return $this->catalog_object_type; - } - - /** - * Sets catalog_object_type - * @param string $catalog_object_type The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type. - * @return $this - */ - public function setCatalogObjectType($catalog_object_type) - { - $this->catalog_object_type = $catalog_object_type; - return $this; - } - /** - * Gets quantity - * @return string - */ - public function getQuantity() - { - return $this->quantity; - } - - /** - * Sets quantity - * @param string $quantity The number of items affected by the adjustment as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information. - * @return $this - */ - public function setQuantity($quantity) - { - $this->quantity = $quantity; - return $this; - } - /** - * Gets total_price_money - * @return \SquareConnect\Model\Money - */ - public function getTotalPriceMoney() - { - return $this->total_price_money; - } - - /** - * Sets total_price_money - * @param \SquareConnect\Model\Money $total_price_money The read-only total price paid for goods associated with the adjustment. Present if and only if `to_state` is `SOLD`. Always non-negative. - * @return $this - */ - public function setTotalPriceMoney($total_price_money) - { - $this->total_price_money = $total_price_money; - return $this; - } - /** - * Gets occurred_at - * @return string - */ - public function getOccurredAt() - { - return $this->occurred_at; - } - - /** - * Sets occurred_at - * @param string $occurred_at A client-generated timestamp in RFC 3339 format that indicates when the adjustment took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. - * @return $this - */ - public function setOccurredAt($occurred_at) - { - $this->occurred_at = $occurred_at; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at A read-only timestamp in RFC 3339 format that indicates when Square received the adjustment. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets source - * @return \SquareConnect\Model\SourceApplication - */ - public function getSource() - { - return $this->source; - } - - /** - * Sets source - * @param \SquareConnect\Model\SourceApplication $source Read-only information about the application that caused the inventory adjustment. - * @return $this - */ - public function setSource($source) - { - $this->source = $source; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The Square ID of the `Employee` responsible for the inventory adjustment. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets transaction_id - * @return string - */ - public function getTransactionId() - { - return $this->transaction_id; - } - - /** - * Sets transaction_id - * @param string $transaction_id The read-only Square ID of the [Transaction][#type-transaction] that caused the adjustment. Only relevant for payment-related state transitions. - * @return $this - */ - public function setTransactionId($transaction_id) - { - $this->transaction_id = $transaction_id; - return $this; - } - /** - * Gets refund_id - * @return string - */ - public function getRefundId() - { - return $this->refund_id; - } - - /** - * Sets refund_id - * @param string $refund_id The read-only Square ID of the [Refund][#type-refund] that caused the adjustment. Only relevant for refund-related state transitions. - * @return $this - */ - public function setRefundId($refund_id) - { - $this->refund_id = $refund_id; - return $this; - } - /** - * Gets purchase_order_id - * @return string - */ - public function getPurchaseOrderId() - { - return $this->purchase_order_id; - } - - /** - * Sets purchase_order_id - * @param string $purchase_order_id The read-only Square ID of the purchase order that caused the adjustment. Only relevant for state transitions from the Square for Retail app. - * @return $this - */ - public function setPurchaseOrderId($purchase_order_id) - { - $this->purchase_order_id = $purchase_order_id; - return $this; - } - /** - * Gets goods_receipt_id - * @return string - */ - public function getGoodsReceiptId() - { - return $this->goods_receipt_id; - } - - /** - * Sets goods_receipt_id - * @param string $goods_receipt_id The read-only Square ID of the Square goods receipt that caused the adjustment. Only relevant for state transitions from the Square for Retail app. - * @return $this - */ - public function setGoodsReceiptId($goods_receipt_id) - { - $this->goods_receipt_id = $goods_receipt_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/InventoryAlertType.php b/includes/classes/vendors/square/connect/lib/Model/InventoryAlertType.php deleted file mode 100644 index ef00188ad7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/InventoryAlertType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/InventoryChange.php b/includes/classes/vendors/square/connect/lib/Model/InventoryChange.php deleted file mode 100644 index d65dbe0c53..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/InventoryChange.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'physical_count' => '\SquareConnect\Model\InventoryPhysicalCount', - 'adjustment' => '\SquareConnect\Model\InventoryAdjustment', - 'transfer' => '\SquareConnect\Model\InventoryTransfer' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'type' => 'type', - 'physical_count' => 'physical_count', - 'adjustment' => 'adjustment', - 'transfer' => 'transfer' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'type' => 'setType', - 'physical_count' => 'setPhysicalCount', - 'adjustment' => 'setAdjustment', - 'transfer' => 'setTransfer' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'type' => 'getType', - 'physical_count' => 'getPhysicalCount', - 'adjustment' => 'getAdjustment', - 'transfer' => 'getTransfer' - ); - - /** - * $type Indicates how the inventory change was applied. See `InventoryChangeType` for all possible values. See [InventoryChangeType](#type-inventorychangetype) for possible values - * @var string - */ - protected $type; - /** - * $physical_count Contains details about the physical count when `type` is `PHYSICAL_COUNT` and unset for all other types. - * @var \SquareConnect\Model\InventoryPhysicalCount - */ - protected $physical_count; - /** - * $adjustment Contains details about the inventory adjustment when `type` is `ADJUSTMENT` and unset for all other types. - * @var \SquareConnect\Model\InventoryAdjustment - */ - protected $adjustment; - /** - * $transfer Contains details about the inventory transfer when `type` is `TRANSFER` and unset for all other types. - * @var \SquareConnect\Model\InventoryTransfer - */ - protected $transfer; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["physical_count"])) { - $this->physical_count = $data["physical_count"]; - } else { - $this->physical_count = null; - } - if (isset($data["adjustment"])) { - $this->adjustment = $data["adjustment"]; - } else { - $this->adjustment = null; - } - if (isset($data["transfer"])) { - $this->transfer = $data["transfer"]; - } else { - $this->transfer = null; - } - } - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type Indicates how the inventory change was applied. See `InventoryChangeType` for all possible values. See [InventoryChangeType](#type-inventorychangetype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets physical_count - * @return \SquareConnect\Model\InventoryPhysicalCount - */ - public function getPhysicalCount() - { - return $this->physical_count; - } - - /** - * Sets physical_count - * @param \SquareConnect\Model\InventoryPhysicalCount $physical_count Contains details about the physical count when `type` is `PHYSICAL_COUNT` and unset for all other types. - * @return $this - */ - public function setPhysicalCount($physical_count) - { - $this->physical_count = $physical_count; - return $this; - } - /** - * Gets adjustment - * @return \SquareConnect\Model\InventoryAdjustment - */ - public function getAdjustment() - { - return $this->adjustment; - } - - /** - * Sets adjustment - * @param \SquareConnect\Model\InventoryAdjustment $adjustment Contains details about the inventory adjustment when `type` is `ADJUSTMENT` and unset for all other types. - * @return $this - */ - public function setAdjustment($adjustment) - { - $this->adjustment = $adjustment; - return $this; - } - /** - * Gets transfer - * @return \SquareConnect\Model\InventoryTransfer - */ - public function getTransfer() - { - return $this->transfer; - } - - /** - * Sets transfer - * @param \SquareConnect\Model\InventoryTransfer $transfer Contains details about the inventory transfer when `type` is `TRANSFER` and unset for all other types. - * @return $this - */ - public function setTransfer($transfer) - { - $this->transfer = $transfer; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/InventoryChangeType.php b/includes/classes/vendors/square/connect/lib/Model/InventoryChangeType.php deleted file mode 100644 index 2708a844f5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/InventoryChangeType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/InventoryCount.php b/includes/classes/vendors/square/connect/lib/Model/InventoryCount.php deleted file mode 100644 index 86bdef5bc1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/InventoryCount.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'catalog_object_type' => 'string', - 'state' => 'string', - 'location_id' => 'string', - 'quantity' => 'string', - 'calculated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'catalog_object_id' => 'catalog_object_id', - 'catalog_object_type' => 'catalog_object_type', - 'state' => 'state', - 'location_id' => 'location_id', - 'quantity' => 'quantity', - 'calculated_at' => 'calculated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'catalog_object_id' => 'setCatalogObjectId', - 'catalog_object_type' => 'setCatalogObjectType', - 'state' => 'setState', - 'location_id' => 'setLocationId', - 'quantity' => 'setQuantity', - 'calculated_at' => 'setCalculatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'catalog_object_id' => 'getCatalogObjectId', - 'catalog_object_type' => 'getCatalogObjectType', - 'state' => 'getState', - 'location_id' => 'getLocationId', - 'quantity' => 'getQuantity', - 'calculated_at' => 'getCalculatedAt' - ); - - /** - * $catalog_object_id The Square generated ID of the `CatalogObject` being tracked. - * @var string - */ - protected $catalog_object_id; - /** - * $catalog_object_type The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type. - * @var string - */ - protected $catalog_object_type; - /** - * $state The current `InventoryState` for the related quantity of items. See [InventoryState](#type-inventorystate) for possible values - * @var string - */ - protected $state; - /** - * $location_id The Square ID of the `Location` where the related quantity of items are being tracked. - * @var string - */ - protected $location_id; - /** - * $quantity The number of items affected by the estimated count as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information. - * @var string - */ - protected $quantity; - /** - * $calculated_at A read-only timestamp in RFC 3339 format that indicates when Square received the most recent physical count or adjustment that had an affect on the estimated count. - * @var string - */ - protected $calculated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["catalog_object_type"])) { - $this->catalog_object_type = $data["catalog_object_type"]; - } else { - $this->catalog_object_type = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["quantity"])) { - $this->quantity = $data["quantity"]; - } else { - $this->quantity = null; - } - if (isset($data["calculated_at"])) { - $this->calculated_at = $data["calculated_at"]; - } else { - $this->calculated_at = null; - } - } - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The Square generated ID of the `CatalogObject` being tracked. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets catalog_object_type - * @return string - */ - public function getCatalogObjectType() - { - return $this->catalog_object_type; - } - - /** - * Sets catalog_object_type - * @param string $catalog_object_type The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type. - * @return $this - */ - public function setCatalogObjectType($catalog_object_type) - { - $this->catalog_object_type = $catalog_object_type; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The current `InventoryState` for the related quantity of items. See [InventoryState](#type-inventorystate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The Square ID of the `Location` where the related quantity of items are being tracked. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets quantity - * @return string - */ - public function getQuantity() - { - return $this->quantity; - } - - /** - * Sets quantity - * @param string $quantity The number of items affected by the estimated count as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information. - * @return $this - */ - public function setQuantity($quantity) - { - $this->quantity = $quantity; - return $this; - } - /** - * Gets calculated_at - * @return string - */ - public function getCalculatedAt() - { - return $this->calculated_at; - } - - /** - * Sets calculated_at - * @param string $calculated_at A read-only timestamp in RFC 3339 format that indicates when Square received the most recent physical count or adjustment that had an affect on the estimated count. - * @return $this - */ - public function setCalculatedAt($calculated_at) - { - $this->calculated_at = $calculated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/InventoryPhysicalCount.php b/includes/classes/vendors/square/connect/lib/Model/InventoryPhysicalCount.php deleted file mode 100644 index a80d125248..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/InventoryPhysicalCount.php +++ /dev/null @@ -1,476 +0,0 @@ - 'string', - 'reference_id' => 'string', - 'catalog_object_id' => 'string', - 'catalog_object_type' => 'string', - 'state' => 'string', - 'location_id' => 'string', - 'quantity' => 'string', - 'source' => '\SquareConnect\Model\SourceApplication', - 'employee_id' => 'string', - 'occurred_at' => 'string', - 'created_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'reference_id' => 'reference_id', - 'catalog_object_id' => 'catalog_object_id', - 'catalog_object_type' => 'catalog_object_type', - 'state' => 'state', - 'location_id' => 'location_id', - 'quantity' => 'quantity', - 'source' => 'source', - 'employee_id' => 'employee_id', - 'occurred_at' => 'occurred_at', - 'created_at' => 'created_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'reference_id' => 'setReferenceId', - 'catalog_object_id' => 'setCatalogObjectId', - 'catalog_object_type' => 'setCatalogObjectType', - 'state' => 'setState', - 'location_id' => 'setLocationId', - 'quantity' => 'setQuantity', - 'source' => 'setSource', - 'employee_id' => 'setEmployeeId', - 'occurred_at' => 'setOccurredAt', - 'created_at' => 'setCreatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'reference_id' => 'getReferenceId', - 'catalog_object_id' => 'getCatalogObjectId', - 'catalog_object_type' => 'getCatalogObjectType', - 'state' => 'getState', - 'location_id' => 'getLocationId', - 'quantity' => 'getQuantity', - 'source' => 'getSource', - 'employee_id' => 'getEmployeeId', - 'occurred_at' => 'getOccurredAt', - 'created_at' => 'getCreatedAt' - ); - - /** - * $id A unique ID generated by Square for the `InventoryPhysicalCount`. - * @var string - */ - protected $id; - /** - * $reference_id An optional ID provided by the application to tie the `InventoryPhysicalCount` to an external system. - * @var string - */ - protected $reference_id; - /** - * $catalog_object_id The Square generated ID of the `CatalogObject` being tracked. - * @var string - */ - protected $catalog_object_id; - /** - * $catalog_object_type The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type. - * @var string - */ - protected $catalog_object_type; - /** - * $state The current `InventoryState` for the related quantity of items. See [InventoryState](#type-inventorystate) for possible values - * @var string - */ - protected $state; - /** - * $location_id The Square ID of the `Location` where the related quantity of items are being tracked. - * @var string - */ - protected $location_id; - /** - * $quantity The number of items affected by the physical count as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information. - * @var string - */ - protected $quantity; - /** - * $source Read-only information about the application that submitted the physical count. - * @var \SquareConnect\Model\SourceApplication - */ - protected $source; - /** - * $employee_id The Square ID of the `Employee` responsible for the physical count. - * @var string - */ - protected $employee_id; - /** - * $occurred_at A client-generated timestamp in RFC 3339 format that indicates when the physical count took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. - * @var string - */ - protected $occurred_at; - /** - * $created_at A read-only timestamp in RFC 3339 format that indicates when Square received the physical count. - * @var string - */ - protected $created_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["catalog_object_type"])) { - $this->catalog_object_type = $data["catalog_object_type"]; - } else { - $this->catalog_object_type = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["quantity"])) { - $this->quantity = $data["quantity"]; - } else { - $this->quantity = null; - } - if (isset($data["source"])) { - $this->source = $data["source"]; - } else { - $this->source = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["occurred_at"])) { - $this->occurred_at = $data["occurred_at"]; - } else { - $this->occurred_at = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id A unique ID generated by Square for the `InventoryPhysicalCount`. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional ID provided by the application to tie the `InventoryPhysicalCount` to an external system. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The Square generated ID of the `CatalogObject` being tracked. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets catalog_object_type - * @return string - */ - public function getCatalogObjectType() - { - return $this->catalog_object_type; - } - - /** - * Sets catalog_object_type - * @param string $catalog_object_type The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type. - * @return $this - */ - public function setCatalogObjectType($catalog_object_type) - { - $this->catalog_object_type = $catalog_object_type; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The current `InventoryState` for the related quantity of items. See [InventoryState](#type-inventorystate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The Square ID of the `Location` where the related quantity of items are being tracked. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets quantity - * @return string - */ - public function getQuantity() - { - return $this->quantity; - } - - /** - * Sets quantity - * @param string $quantity The number of items affected by the physical count as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information. - * @return $this - */ - public function setQuantity($quantity) - { - $this->quantity = $quantity; - return $this; - } - /** - * Gets source - * @return \SquareConnect\Model\SourceApplication - */ - public function getSource() - { - return $this->source; - } - - /** - * Sets source - * @param \SquareConnect\Model\SourceApplication $source Read-only information about the application that submitted the physical count. - * @return $this - */ - public function setSource($source) - { - $this->source = $source; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The Square ID of the `Employee` responsible for the physical count. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets occurred_at - * @return string - */ - public function getOccurredAt() - { - return $this->occurred_at; - } - - /** - * Sets occurred_at - * @param string $occurred_at A client-generated timestamp in RFC 3339 format that indicates when the physical count took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. - * @return $this - */ - public function setOccurredAt($occurred_at) - { - $this->occurred_at = $occurred_at; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at A read-only timestamp in RFC 3339 format that indicates when Square received the physical count. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/InventoryState.php b/includes/classes/vendors/square/connect/lib/Model/InventoryState.php deleted file mode 100644 index 538298784d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/InventoryState.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/InventoryTransfer.php b/includes/classes/vendors/square/connect/lib/Model/InventoryTransfer.php deleted file mode 100644 index 7bb890074a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/InventoryTransfer.php +++ /dev/null @@ -1,509 +0,0 @@ - 'string', - 'reference_id' => 'string', - 'state' => 'string', - 'from_location_id' => 'string', - 'to_location_id' => 'string', - 'catalog_object_id' => 'string', - 'catalog_object_type' => 'string', - 'quantity' => 'string', - 'occurred_at' => 'string', - 'created_at' => 'string', - 'source' => '\SquareConnect\Model\SourceApplication', - 'employee_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'reference_id' => 'reference_id', - 'state' => 'state', - 'from_location_id' => 'from_location_id', - 'to_location_id' => 'to_location_id', - 'catalog_object_id' => 'catalog_object_id', - 'catalog_object_type' => 'catalog_object_type', - 'quantity' => 'quantity', - 'occurred_at' => 'occurred_at', - 'created_at' => 'created_at', - 'source' => 'source', - 'employee_id' => 'employee_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'reference_id' => 'setReferenceId', - 'state' => 'setState', - 'from_location_id' => 'setFromLocationId', - 'to_location_id' => 'setToLocationId', - 'catalog_object_id' => 'setCatalogObjectId', - 'catalog_object_type' => 'setCatalogObjectType', - 'quantity' => 'setQuantity', - 'occurred_at' => 'setOccurredAt', - 'created_at' => 'setCreatedAt', - 'source' => 'setSource', - 'employee_id' => 'setEmployeeId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'reference_id' => 'getReferenceId', - 'state' => 'getState', - 'from_location_id' => 'getFromLocationId', - 'to_location_id' => 'getToLocationId', - 'catalog_object_id' => 'getCatalogObjectId', - 'catalog_object_type' => 'getCatalogObjectType', - 'quantity' => 'getQuantity', - 'occurred_at' => 'getOccurredAt', - 'created_at' => 'getCreatedAt', - 'source' => 'getSource', - 'employee_id' => 'getEmployeeId' - ); - - /** - * $id A unique ID generated by Square for the `InventoryTransfer`. - * @var string - */ - protected $id; - /** - * $reference_id An optional ID provided by the application to tie the `InventoryTransfer` to an external system. - * @var string - */ - protected $reference_id; - /** - * $state The `InventoryState` for the quantity of items being transfered. See [InventoryState](#type-inventorystate) for possible values - * @var string - */ - protected $state; - /** - * $from_location_id The Square ID of the `Location` where the related quantity of items were tracked before the transfer. - * @var string - */ - protected $from_location_id; - /** - * $to_location_id The Square ID of the `Location` where the related quantity of items were tracked after the transfer. - * @var string - */ - protected $to_location_id; - /** - * $catalog_object_id The Square generated ID of the `CatalogObject` being tracked. - * @var string - */ - protected $catalog_object_id; - /** - * $catalog_object_type The `CatalogObjectType` of the `CatalogObject` being tracked.Tracking is only supported for the `ITEM_VARIATION` type. - * @var string - */ - protected $catalog_object_type; - /** - * $quantity The number of items affected by the transfer as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information. - * @var string - */ - protected $quantity; - /** - * $occurred_at A client-generated timestamp in RFC 3339 format that indicates when the transfer took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. - * @var string - */ - protected $occurred_at; - /** - * $created_at A read-only timestamp in RFC 3339 format that indicates when Square received the transfer request. - * @var string - */ - protected $created_at; - /** - * $source Read-only information about the application that initiated the inventory transfer. - * @var \SquareConnect\Model\SourceApplication - */ - protected $source; - /** - * $employee_id The Square ID of the `Employee` responsible for the inventory transfer. - * @var string - */ - protected $employee_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["from_location_id"])) { - $this->from_location_id = $data["from_location_id"]; - } else { - $this->from_location_id = null; - } - if (isset($data["to_location_id"])) { - $this->to_location_id = $data["to_location_id"]; - } else { - $this->to_location_id = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["catalog_object_type"])) { - $this->catalog_object_type = $data["catalog_object_type"]; - } else { - $this->catalog_object_type = null; - } - if (isset($data["quantity"])) { - $this->quantity = $data["quantity"]; - } else { - $this->quantity = null; - } - if (isset($data["occurred_at"])) { - $this->occurred_at = $data["occurred_at"]; - } else { - $this->occurred_at = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["source"])) { - $this->source = $data["source"]; - } else { - $this->source = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id A unique ID generated by Square for the `InventoryTransfer`. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional ID provided by the application to tie the `InventoryTransfer` to an external system. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The `InventoryState` for the quantity of items being transfered. See [InventoryState](#type-inventorystate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets from_location_id - * @return string - */ - public function getFromLocationId() - { - return $this->from_location_id; - } - - /** - * Sets from_location_id - * @param string $from_location_id The Square ID of the `Location` where the related quantity of items were tracked before the transfer. - * @return $this - */ - public function setFromLocationId($from_location_id) - { - $this->from_location_id = $from_location_id; - return $this; - } - /** - * Gets to_location_id - * @return string - */ - public function getToLocationId() - { - return $this->to_location_id; - } - - /** - * Sets to_location_id - * @param string $to_location_id The Square ID of the `Location` where the related quantity of items were tracked after the transfer. - * @return $this - */ - public function setToLocationId($to_location_id) - { - $this->to_location_id = $to_location_id; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The Square generated ID of the `CatalogObject` being tracked. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets catalog_object_type - * @return string - */ - public function getCatalogObjectType() - { - return $this->catalog_object_type; - } - - /** - * Sets catalog_object_type - * @param string $catalog_object_type The `CatalogObjectType` of the `CatalogObject` being tracked.Tracking is only supported for the `ITEM_VARIATION` type. - * @return $this - */ - public function setCatalogObjectType($catalog_object_type) - { - $this->catalog_object_type = $catalog_object_type; - return $this; - } - /** - * Gets quantity - * @return string - */ - public function getQuantity() - { - return $this->quantity; - } - - /** - * Sets quantity - * @param string $quantity The number of items affected by the transfer as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information. - * @return $this - */ - public function setQuantity($quantity) - { - $this->quantity = $quantity; - return $this; - } - /** - * Gets occurred_at - * @return string - */ - public function getOccurredAt() - { - return $this->occurred_at; - } - - /** - * Sets occurred_at - * @param string $occurred_at A client-generated timestamp in RFC 3339 format that indicates when the transfer took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. - * @return $this - */ - public function setOccurredAt($occurred_at) - { - $this->occurred_at = $occurred_at; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at A read-only timestamp in RFC 3339 format that indicates when Square received the transfer request. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets source - * @return \SquareConnect\Model\SourceApplication - */ - public function getSource() - { - return $this->source; - } - - /** - * Sets source - * @param \SquareConnect\Model\SourceApplication $source Read-only information about the application that initiated the inventory transfer. - * @return $this - */ - public function setSource($source) - { - $this->source = $source; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The Square ID of the `Employee` responsible for the inventory transfer. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ItemVariationLocationOverrides.php b/includes/classes/vendors/square/connect/lib/Model/ItemVariationLocationOverrides.php deleted file mode 100644 index ec0e050b53..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ItemVariationLocationOverrides.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'price_money' => '\SquareConnect\Model\Money', - 'pricing_type' => 'string', - 'track_inventory' => 'bool', - 'inventory_alert_type' => 'string', - 'inventory_alert_threshold' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id', - 'price_money' => 'price_money', - 'pricing_type' => 'pricing_type', - 'track_inventory' => 'track_inventory', - 'inventory_alert_type' => 'inventory_alert_type', - 'inventory_alert_threshold' => 'inventory_alert_threshold' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId', - 'price_money' => 'setPriceMoney', - 'pricing_type' => 'setPricingType', - 'track_inventory' => 'setTrackInventory', - 'inventory_alert_type' => 'setInventoryAlertType', - 'inventory_alert_threshold' => 'setInventoryAlertThreshold' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId', - 'price_money' => 'getPriceMoney', - 'pricing_type' => 'getPricingType', - 'track_inventory' => 'getTrackInventory', - 'inventory_alert_type' => 'getInventoryAlertType', - 'inventory_alert_threshold' => 'getInventoryAlertThreshold' - ); - - /** - * $location_id The ID of the `Location`. - * @var string - */ - protected $location_id; - /** - * $price_money The price of the `CatalogItemVariation` at the given `Location`, or blank for variable pricing. - * @var \SquareConnect\Model\Money - */ - protected $price_money; - /** - * $pricing_type The pricing type (fixed or variable) for the `CatalogItemVariation` at the given `Location`. See [CatalogPricingType](#type-catalogpricingtype) for possible values - * @var string - */ - protected $pricing_type; - /** - * $track_inventory If `true`, inventory tracking is active for the `CatalogItemVariation` at this `Location`. - * @var bool - */ - protected $track_inventory; - /** - * $inventory_alert_type Indicates whether the `CatalogItemVariation` displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values - * @var string - */ - protected $inventory_alert_type; - /** - * $inventory_alert_threshold If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. - * @var int - */ - protected $inventory_alert_threshold; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["price_money"])) { - $this->price_money = $data["price_money"]; - } else { - $this->price_money = null; - } - if (isset($data["pricing_type"])) { - $this->pricing_type = $data["pricing_type"]; - } else { - $this->pricing_type = null; - } - if (isset($data["track_inventory"])) { - $this->track_inventory = $data["track_inventory"]; - } else { - $this->track_inventory = null; - } - if (isset($data["inventory_alert_type"])) { - $this->inventory_alert_type = $data["inventory_alert_type"]; - } else { - $this->inventory_alert_type = null; - } - if (isset($data["inventory_alert_threshold"])) { - $this->inventory_alert_threshold = $data["inventory_alert_threshold"]; - } else { - $this->inventory_alert_threshold = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the `Location`. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets price_money - * @return \SquareConnect\Model\Money - */ - public function getPriceMoney() - { - return $this->price_money; - } - - /** - * Sets price_money - * @param \SquareConnect\Model\Money $price_money The price of the `CatalogItemVariation` at the given `Location`, or blank for variable pricing. - * @return $this - */ - public function setPriceMoney($price_money) - { - $this->price_money = $price_money; - return $this; - } - /** - * Gets pricing_type - * @return string - */ - public function getPricingType() - { - return $this->pricing_type; - } - - /** - * Sets pricing_type - * @param string $pricing_type The pricing type (fixed or variable) for the `CatalogItemVariation` at the given `Location`. See [CatalogPricingType](#type-catalogpricingtype) for possible values - * @return $this - */ - public function setPricingType($pricing_type) - { - $this->pricing_type = $pricing_type; - return $this; - } - /** - * Gets track_inventory - * @return bool - */ - public function getTrackInventory() - { - return $this->track_inventory; - } - - /** - * Sets track_inventory - * @param bool $track_inventory If `true`, inventory tracking is active for the `CatalogItemVariation` at this `Location`. - * @return $this - */ - public function setTrackInventory($track_inventory) - { - $this->track_inventory = $track_inventory; - return $this; - } - /** - * Gets inventory_alert_type - * @return string - */ - public function getInventoryAlertType() - { - return $this->inventory_alert_type; - } - - /** - * Sets inventory_alert_type - * @param string $inventory_alert_type Indicates whether the `CatalogItemVariation` displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values - * @return $this - */ - public function setInventoryAlertType($inventory_alert_type) - { - $this->inventory_alert_type = $inventory_alert_type; - return $this; - } - /** - * Gets inventory_alert_threshold - * @return int - */ - public function getInventoryAlertThreshold() - { - return $this->inventory_alert_threshold; - } - - /** - * Sets inventory_alert_threshold - * @param int $inventory_alert_threshold If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. - * @return $this - */ - public function setInventoryAlertThreshold($inventory_alert_threshold) - { - $this->inventory_alert_threshold = $inventory_alert_threshold; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivableRefundsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivableRefundsRequest.php deleted file mode 100644 index 6d1cd73e7b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivableRefundsRequest.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'end_time' => 'string', - 'sort_order' => 'string', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'sort_order' => 'sort_order', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'sort_order' => 'setSortOrder', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'sort_order' => 'getSortOrder', - 'cursor' => 'getCursor' - ); - - /** - * $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. - * @var string - */ - protected $end_time; - /** - * $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivableRefundsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivableRefundsResponse.php deleted file mode 100644 index 434b2d22c8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivableRefundsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'receivable_refunds' => '\SquareConnect\Model\AdditionalRecipientReceivableRefund[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'receivable_refunds' => 'receivable_refunds', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'receivable_refunds' => 'setReceivableRefunds', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'receivable_refunds' => 'getReceivableRefunds', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $receivable_refunds An array of AdditionalRecipientReceivableRefunds that match your query. - * @var \SquareConnect\Model\AdditionalRecipientReceivableRefund[] - */ - protected $receivable_refunds; - /** - * $cursor A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["receivable_refunds"])) { - $this->receivable_refunds = $data["receivable_refunds"]; - } else { - $this->receivable_refunds = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets receivable_refunds - * @return \SquareConnect\Model\AdditionalRecipientReceivableRefund[] - */ - public function getReceivableRefunds() - { - return $this->receivable_refunds; - } - - /** - * Sets receivable_refunds - * @param \SquareConnect\Model\AdditionalRecipientReceivableRefund[] $receivable_refunds An array of AdditionalRecipientReceivableRefunds that match your query. - * @return $this - */ - public function setReceivableRefunds($receivable_refunds) - { - $this->receivable_refunds = $receivable_refunds; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivablesRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivablesRequest.php deleted file mode 100644 index 24c2df1ddd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivablesRequest.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'end_time' => 'string', - 'sort_order' => 'string', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'sort_order' => 'sort_order', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'sort_order' => 'setSortOrder', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'sort_order' => 'getSortOrder', - 'cursor' => 'getCursor' - ); - - /** - * $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. - * @var string - */ - protected $end_time; - /** - * $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivablesResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivablesResponse.php deleted file mode 100644 index 1465e1dac3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListAdditionalRecipientReceivablesResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'receivables' => '\SquareConnect\Model\AdditionalRecipientReceivable[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'receivables' => 'receivables', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'receivables' => 'setReceivables', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'receivables' => 'getReceivables', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $receivables An array of AdditionalRecipientReceivables that match your query. - * @var \SquareConnect\Model\AdditionalRecipientReceivable[] - */ - protected $receivables; - /** - * $cursor A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["receivables"])) { - $this->receivables = $data["receivables"]; - } else { - $this->receivables = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets receivables - * @return \SquareConnect\Model\AdditionalRecipientReceivable[] - */ - public function getReceivables() - { - return $this->receivables; - } - - /** - * Sets receivables - * @param \SquareConnect\Model\AdditionalRecipientReceivable[] $receivables An array of AdditionalRecipientReceivables that match your query. - * @return $this - */ - public function setReceivables($receivables) - { - $this->receivables = $receivables; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListBankAccountsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListBankAccountsRequest.php deleted file mode 100644 index 375d0c92fe..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListBankAccountsRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'limit' => 'int', - 'location_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor', - 'limit' => 'limit', - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor', - 'limit' => 'setLimit', - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor', - 'limit' => 'getLimit', - 'location_id' => 'getLocationId' - ); - - /** - * $cursor The pagination cursor returned by a previous call to this endpoint. Use it in the next `ListBankAccounts` request to retrieve the next set of results. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - /** - * $limit Upper limit on the number of bank accounts to return in the response. Currently, 1000 is the largest supported limit. You can specify a limit of up to 1000 bank accounts. This is also the default limit. - * @var int - */ - protected $limit; - /** - * $location_id Location ID. You can specify this optional filter to retrieve only the linked bank accounts belonging to a specific location. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor returned by a previous call to this endpoint. Use it in the next `ListBankAccounts` request to retrieve the next set of results. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit Upper limit on the number of bank accounts to return in the response. Currently, 1000 is the largest supported limit. You can specify a limit of up to 1000 bank accounts. This is also the default limit. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id Location ID. You can specify this optional filter to retrieve only the linked bank accounts belonging to a specific location. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListBankAccountsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListBankAccountsResponse.php deleted file mode 100644 index a0853b336b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListBankAccountsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'bank_accounts' => '\SquareConnect\Model\BankAccount[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'bank_accounts' => 'bank_accounts', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'bank_accounts' => 'setBankAccounts', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'bank_accounts' => 'getBankAccounts', - 'cursor' => 'getCursor' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $bank_accounts List of BankAccounts associated with this account. - * @var \SquareConnect\Model\BankAccount[] - */ - protected $bank_accounts; - /** - * $cursor When a response is truncated, it includes a cursor that you can use in a subsequent request to fetch next set of bank accounts. If empty, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination). - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["bank_accounts"])) { - $this->bank_accounts = $data["bank_accounts"]; - } else { - $this->bank_accounts = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets bank_accounts - * @return \SquareConnect\Model\BankAccount[] - */ - public function getBankAccounts() - { - return $this->bank_accounts; - } - - /** - * Sets bank_accounts - * @param \SquareConnect\Model\BankAccount[] $bank_accounts List of BankAccounts associated with this account. - * @return $this - */ - public function setBankAccounts($bank_accounts) - { - $this->bank_accounts = $bank_accounts; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor When a response is truncated, it includes a cursor that you can use in a subsequent request to fetch next set of bank accounts. If empty, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination). - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListBreakTypesRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListBreakTypesRequest.php deleted file mode 100644 index 86b798dfed..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListBreakTypesRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $location_id Filter Break Types returned to only those that are associated with the specified location. - * @var string - */ - protected $location_id; - /** - * $limit Maximum number of Break Types to return per page. Can range between 1 and 200. The default is the maximum at 200. - * @var int - */ - protected $limit; - /** - * $cursor Pointer to the next page of Break Type results to fetch. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id Filter Break Types returned to only those that are associated with the specified location. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit Maximum number of Break Types to return per page. Can range between 1 and 200. The default is the maximum at 200. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Pointer to the next page of Break Type results to fetch. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListBreakTypesResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListBreakTypesResponse.php deleted file mode 100644 index c59e960c58..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListBreakTypesResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\BreakType[]', - 'cursor' => 'string', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'break_types' => 'break_types', - 'cursor' => 'cursor', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'break_types' => 'setBreakTypes', - 'cursor' => 'setCursor', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'break_types' => 'getBreakTypes', - 'cursor' => 'getCursor', - 'errors' => 'getErrors' - ); - - /** - * $break_types A page of `BreakType` results. - * @var \SquareConnect\Model\BreakType[] - */ - protected $break_types; - /** - * $cursor Value supplied in the subsequent request to fetch the next next page of Break Type results. - * @var string - */ - protected $cursor; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["break_types"])) { - $this->break_types = $data["break_types"]; - } else { - $this->break_types = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets break_types - * @return \SquareConnect\Model\BreakType[] - */ - public function getBreakTypes() - { - return $this->break_types; - } - - /** - * Sets break_types - * @param \SquareConnect\Model\BreakType[] $break_types A page of `BreakType` results. - * @return $this - */ - public function setBreakTypes($break_types) - { - $this->break_types = $break_types; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Value supplied in the subsequent request to fetch the next next page of Break Type results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftEventsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftEventsRequest.php deleted file mode 100644 index e6325e2769..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftEventsRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $location_id The ID of the location to list cash drawer shifts for. - * @var string - */ - protected $location_id; - /** - * $limit Number of resources to be returned in a page of results (200 by default, 1000 max). - * @var int - */ - protected $limit; - /** - * $cursor Opaque cursor for fetching the next page of results. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the location to list cash drawer shifts for. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit Number of resources to be returned in a page of results (200 by default, 1000 max). - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Opaque cursor for fetching the next page of results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftEventsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftEventsResponse.php deleted file mode 100644 index 4419bbf068..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftEventsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\CashDrawerShiftEvent[]', - 'cursor' => 'string', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'events' => 'events', - 'cursor' => 'cursor', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'events' => 'setEvents', - 'cursor' => 'setCursor', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'events' => 'getEvents', - 'cursor' => 'getCursor', - 'errors' => 'getErrors' - ); - - /** - * $events All of the events (payments, refunds, etc.) for a cash drawer during the shift. - * @var \SquareConnect\Model\CashDrawerShiftEvent[] - */ - protected $events; - /** - * $cursor Opaque cursor for fetching the next page. Cursor is not present in the last page of results. - * @var string - */ - protected $cursor; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["events"])) { - $this->events = $data["events"]; - } else { - $this->events = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets events - * @return \SquareConnect\Model\CashDrawerShiftEvent[] - */ - public function getEvents() - { - return $this->events; - } - - /** - * Sets events - * @param \SquareConnect\Model\CashDrawerShiftEvent[] $events All of the events (payments, refunds, etc.) for a cash drawer during the shift. - * @return $this - */ - public function setEvents($events) - { - $this->events = $events; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Opaque cursor for fetching the next page. Cursor is not present in the last page of results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftsRequest.php deleted file mode 100644 index 8c7f2075bb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftsRequest.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'sort_order' => 'string', - 'begin_time' => 'string', - 'end_time' => 'string', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id', - 'sort_order' => 'sort_order', - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId', - 'sort_order' => 'setSortOrder', - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId', - 'sort_order' => 'getSortOrder', - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $location_id The ID of the location to query for a list of cash drawer shifts. - * @var string - */ - protected $location_id; - /** - * $sort_order The order in which cash drawer shifts are listed in the response, based on their opened_at field. Default value: ASC See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - /** - * $begin_time The inclusive start time of the query on opened_at, in ISO 8601 format. - * @var string - */ - protected $begin_time; - /** - * $end_time The exclusive end date of the query on opened_at, in ISO 8601 format. - * @var string - */ - protected $end_time; - /** - * $limit Number of cash drawer shift events in a page of results (200 by default, 1000 max). - * @var int - */ - protected $limit; - /** - * $cursor Opaque cursor for fetching the next page of results. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the location to query for a list of cash drawer shifts. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The order in which cash drawer shifts are listed in the response, based on their opened_at field. Default value: ASC See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The inclusive start time of the query on opened_at, in ISO 8601 format. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The exclusive end date of the query on opened_at, in ISO 8601 format. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit Number of cash drawer shift events in a page of results (200 by default, 1000 max). - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Opaque cursor for fetching the next page of results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftsResponse.php deleted file mode 100644 index 5302ab8c68..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCashDrawerShiftsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\CashDrawerShiftSummary[]', - 'cursor' => 'string', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items', - 'cursor' => 'cursor', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems', - 'cursor' => 'setCursor', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems', - 'cursor' => 'getCursor', - 'errors' => 'getErrors' - ); - - /** - * $items A collection of CashDrawerShiftSummary objects for shifts that match the query. - * @var \SquareConnect\Model\CashDrawerShiftSummary[] - */ - protected $items; - /** - * $cursor Opaque cursor for fetching the next page of results. Cursor is not present in the last page of results. - * @var string - */ - protected $cursor; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\CashDrawerShiftSummary[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\CashDrawerShiftSummary[] $items A collection of CashDrawerShiftSummary objects for shifts that match the query. - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Opaque cursor for fetching the next page of results. Cursor is not present in the last page of results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCatalogRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListCatalogRequest.php deleted file mode 100644 index 11d177b011..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCatalogRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'types' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor', - 'types' => 'types' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor', - 'types' => 'setTypes' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor', - 'types' => 'getTypes' - ); - - /** - * $cursor The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $types An optional case-insensitive, comma-separated list of object types to retrieve, for example `ITEM,ITEM_VARIATION,CATEGORY,IMAGE`. The legal values are taken from the CatalogObjectType enum: `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`, `MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. - * @var string - */ - protected $types; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["types"])) { - $this->types = $data["types"]; - } else { - $this->types = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets types - * @return string - */ - public function getTypes() - { - return $this->types; - } - - /** - * Sets types - * @param string $types An optional case-insensitive, comma-separated list of object types to retrieve, for example `ITEM,ITEM_VARIATION,CATEGORY,IMAGE`. The legal values are taken from the CatalogObjectType enum: `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`, `MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. - * @return $this - */ - public function setTypes($types) - { - $this->types = $types; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCatalogResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListCatalogResponse.php deleted file mode 100644 index 8a5fd6844a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCatalogResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'cursor' => 'string', - 'objects' => '\SquareConnect\Model\CatalogObject[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'cursor' => 'cursor', - 'objects' => 'objects' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'cursor' => 'setCursor', - 'objects' => 'setObjects' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'cursor' => 'getCursor', - 'objects' => 'getObjects' - ); - - /** - * $errors Information on any errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $objects The CatalogObjects returned. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $objects; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["objects"])) { - $this->objects = $data["objects"]; - } else { - $this->objects = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets objects - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getObjects() - { - return $this->objects; - } - - /** - * Sets objects - * @param \SquareConnect\Model\CatalogObject[] $objects The CatalogObjects returned. - * @return $this - */ - public function setObjects($objects) - { - $this->objects = $objects; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCustomerGroupsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListCustomerGroupsRequest.php deleted file mode 100644 index e02dad965e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCustomerGroupsRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor' - ); - - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCustomerGroupsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListCustomerGroupsResponse.php deleted file mode 100644 index b5b2a6c836..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCustomerGroupsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'groups' => '\SquareConnect\Model\CustomerGroup[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'groups' => 'groups', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'groups' => 'setGroups', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'groups' => 'getGroups', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $groups A list of customer groups belonging to the current merchant. - * @var \SquareConnect\Model\CustomerGroup[] - */ - protected $groups; - /** - * $cursor A pagination cursor to retrieve the next set of results for your original query to the endpoint. This value is present only if the request succeeded and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["groups"])) { - $this->groups = $data["groups"]; - } else { - $this->groups = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets groups - * @return \SquareConnect\Model\CustomerGroup[] - */ - public function getGroups() - { - return $this->groups; - } - - /** - * Sets groups - * @param \SquareConnect\Model\CustomerGroup[] $groups A list of customer groups belonging to the current merchant. - * @return $this - */ - public function setGroups($groups) - { - $this->groups = $groups; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor to retrieve the next set of results for your original query to the endpoint. This value is present only if the request succeeded and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCustomerSegmentsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListCustomerSegmentsRequest.php deleted file mode 100644 index 9f9b61b656..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCustomerSegmentsRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor' - ); - - /** - * $cursor A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by previous calls to __ListCustomerSegments__. Used to retrieve the next set of query results. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCustomerSegmentsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListCustomerSegmentsResponse.php deleted file mode 100644 index 7660184bb8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCustomerSegmentsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'segments' => '\SquareConnect\Model\CustomerSegment[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'segments' => 'segments', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'segments' => 'setSegments', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'segments' => 'getSegments', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $segments The list of customer segments belonging to the associated Square account. - * @var \SquareConnect\Model\CustomerSegment[] - */ - protected $segments; - /** - * $cursor A pagination cursor to be used in subsequent calls to __ListCustomerSegments__ to retrieve the next set of query results. Only present only if the request succeeded and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["segments"])) { - $this->segments = $data["segments"]; - } else { - $this->segments = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets segments - * @return \SquareConnect\Model\CustomerSegment[] - */ - public function getSegments() - { - return $this->segments; - } - - /** - * Sets segments - * @param \SquareConnect\Model\CustomerSegment[] $segments The list of customer segments belonging to the associated Square account. - * @return $this - */ - public function setSegments($segments) - { - $this->segments = $segments; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor to be used in subsequent calls to __ListCustomerSegments__ to retrieve the next set of query results. Only present only if the request succeeded and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/docs/working-with-apis/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCustomersRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListCustomersRequest.php deleted file mode 100644 index 6a0c752c2d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCustomersRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'sort_field' => 'string', - 'sort_order' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor', - 'sort_field' => 'sort_field', - 'sort_order' => 'sort_order' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor', - 'sort_field' => 'setSortField', - 'sort_order' => 'setSortOrder' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor', - 'sort_field' => 'getSortField', - 'sort_order' => 'getSortOrder' - ); - - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $sort_field Indicates how Customers should be sorted. Default: `DEFAULT`. See [CustomerSortField](#type-customersortfield) for possible values - * @var string - */ - protected $sort_field; - /** - * $sort_order Indicates whether Customers should be sorted in ascending (`ASC`) or descending (`DESC`) order. Default: `ASC`. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["sort_field"])) { - $this->sort_field = $data["sort_field"]; - } else { - $this->sort_field = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets sort_field - * @return string - */ - public function getSortField() - { - return $this->sort_field; - } - - /** - * Sets sort_field - * @param string $sort_field Indicates how Customers should be sorted. Default: `DEFAULT`. See [CustomerSortField](#type-customersortfield) for possible values - * @return $this - */ - public function setSortField($sort_field) - { - $this->sort_field = $sort_field; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order Indicates whether Customers should be sorted in ascending (`ASC`) or descending (`DESC`) order. Default: `ASC`. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListCustomersResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListCustomersResponse.php deleted file mode 100644 index 65a00af101..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListCustomersResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'customers' => '\SquareConnect\Model\Customer[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'customers' => 'customers', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'customers' => 'setCustomers', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'customers' => 'getCustomers', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $customers An array of `Customer` objects that match the provided query. - * @var \SquareConnect\Model\Customer[] - */ - protected $customers; - /** - * $cursor A pagination cursor to retrieve the next set of results for the original query. Only present if the request succeeded and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["customers"])) { - $this->customers = $data["customers"]; - } else { - $this->customers = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets customers - * @return \SquareConnect\Model\Customer[] - */ - public function getCustomers() - { - return $this->customers; - } - - /** - * Sets customers - * @param \SquareConnect\Model\Customer[] $customers An array of `Customer` objects that match the provided query. - * @return $this - */ - public function setCustomers($customers) - { - $this->customers = $customers; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor to retrieve the next set of results for the original query. Only present if the request succeeded and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListDeviceCodesRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListDeviceCodesRequest.php deleted file mode 100644 index 4d18e92404..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListDeviceCodesRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'location_id' => 'string', - 'product_type' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor', - 'location_id' => 'location_id', - 'product_type' => 'product_type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor', - 'location_id' => 'setLocationId', - 'product_type' => 'setProductType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor', - 'location_id' => 'getLocationId', - 'product_type' => 'getProductType' - ); - - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - /** - * $location_id If specified, only returns DeviceCodes of the specified location. Returns DeviceCodes of all locations if empty. - * @var string - */ - protected $location_id; - /** - * $product_type If specified, only returns DeviceCodes targeting the specified product type. Returns DeviceCodes of all product types if empty. See [ProductType](#type-producttype) for possible values - * @var string - */ - protected $product_type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["product_type"])) { - $this->product_type = $data["product_type"]; - } else { - $this->product_type = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id If specified, only returns DeviceCodes of the specified location. Returns DeviceCodes of all locations if empty. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets product_type - * @return string - */ - public function getProductType() - { - return $this->product_type; - } - - /** - * Sets product_type - * @param string $product_type If specified, only returns DeviceCodes targeting the specified product type. Returns DeviceCodes of all product types if empty. See [ProductType](#type-producttype) for possible values - * @return $this - */ - public function setProductType($product_type) - { - $this->product_type = $product_type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListDeviceCodesResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListDeviceCodesResponse.php deleted file mode 100644 index eb2c5ca05b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListDeviceCodesResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'device_codes' => '\SquareConnect\Model\DeviceCode[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'device_codes' => 'device_codes', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'device_codes' => 'setDeviceCodes', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'device_codes' => 'getDeviceCodes', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $device_codes The queried DeviceCode. - * @var \SquareConnect\Model\DeviceCode[] - */ - protected $device_codes; - /** - * $cursor A pagination cursor to retrieve the next set of results for your original query to the endpoint. This value is present only if the request succeeded and additional results are available. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["device_codes"])) { - $this->device_codes = $data["device_codes"]; - } else { - $this->device_codes = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets device_codes - * @return \SquareConnect\Model\DeviceCode[] - */ - public function getDeviceCodes() - { - return $this->device_codes; - } - - /** - * Sets device_codes - * @param \SquareConnect\Model\DeviceCode[] $device_codes The queried DeviceCode. - * @return $this - */ - public function setDeviceCodes($device_codes) - { - $this->device_codes = $device_codes; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor to retrieve the next set of results for your original query to the endpoint. This value is present only if the request succeeded and additional results are available. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListDisputeEvidenceRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListDisputeEvidenceRequest.php deleted file mode 100644 index 036285e0c9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListDisputeEvidenceRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListDisputeEvidenceResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListDisputeEvidenceResponse.php deleted file mode 100644 index 54c068a48b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListDisputeEvidenceResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\DisputeEvidence[]', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'evidence' => 'evidence', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'evidence' => 'setEvidence', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'evidence' => 'getEvidence', - 'errors' => 'getErrors' - ); - - /** - * $evidence The list of evidence previously uploaded to the specified dispute. - * @var \SquareConnect\Model\DisputeEvidence[] - */ - protected $evidence; - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["evidence"])) { - $this->evidence = $data["evidence"]; - } else { - $this->evidence = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets evidence - * @return \SquareConnect\Model\DisputeEvidence[] - */ - public function getEvidence() - { - return $this->evidence; - } - - /** - * Sets evidence - * @param \SquareConnect\Model\DisputeEvidence[] $evidence The list of evidence previously uploaded to the specified dispute. - * @return $this - */ - public function setEvidence($evidence) - { - $this->evidence = $evidence; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListDisputesRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListDisputesRequest.php deleted file mode 100644 index 7e6197c6ea..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListDisputesRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'states' => 'string[]', - 'location_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor', - 'states' => 'states', - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor', - 'states' => 'setStates', - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor', - 'states' => 'getStates', - 'location_id' => 'getLocationId' - ); - - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. For more information, see [Paginating](https://developer.squareup.com/docs/basics/api101/pagination). - * @var string - */ - protected $cursor; - /** - * $states The dispute states to filter the result. If not specified, the endpoint returns all open disputes (dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`). See [DisputeState](#type-disputestate) for possible values - * @var string[] - */ - protected $states; - /** - * $location_id The ID of the location for which to return a list of disputes. If not specified, the endpoint returns all open disputes (dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`) associated with all locations. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["states"])) { - $this->states = $data["states"]; - } else { - $this->states = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. For more information, see [Paginating](https://developer.squareup.com/docs/basics/api101/pagination). - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets states - * @return string[] - */ - public function getStates() - { - return $this->states; - } - - /** - * Sets states - * @param string[] $states The dispute states to filter the result. If not specified, the endpoint returns all open disputes (dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`). See [DisputeState](#type-disputestate) for possible values - * @return $this - */ - public function setStates($states) - { - $this->states = $states; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the location for which to return a list of disputes. If not specified, the endpoint returns all open disputes (dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`) associated with all locations. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListDisputesResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListDisputesResponse.php deleted file mode 100644 index c79beeb639..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListDisputesResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'disputes' => '\SquareConnect\Model\Dispute[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'disputes' => 'disputes', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'disputes' => 'setDisputes', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'disputes' => 'getDisputes', - 'cursor' => 'getCursor' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $disputes The list of Disputes. - * @var \SquareConnect\Model\Dispute[] - */ - protected $disputes; - /** - * $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. For more information, see [Paginating](https://developer.squareup.com/docs/basics/api101/pagination). - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["disputes"])) { - $this->disputes = $data["disputes"]; - } else { - $this->disputes = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets disputes - * @return \SquareConnect\Model\Dispute[] - */ - public function getDisputes() - { - return $this->disputes; - } - - /** - * Sets disputes - * @param \SquareConnect\Model\Dispute[] $disputes The list of Disputes. - * @return $this - */ - public function setDisputes($disputes) - { - $this->disputes = $disputes; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. For more information, see [Paginating](https://developer.squareup.com/docs/basics/api101/pagination). - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListEmployeeWagesRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListEmployeeWagesRequest.php deleted file mode 100644 index 61b3aedd9d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListEmployeeWagesRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'employee_id' => 'employee_id', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'employee_id' => 'setEmployeeId', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'employee_id' => 'getEmployeeId', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $employee_id Filter wages returned to only those that are associated with the specified employee. - * @var string - */ - protected $employee_id; - /** - * $limit Maximum number of Employee Wages to return per page. Can range between 1 and 200. The default is the maximum at 200. - * @var int - */ - protected $limit; - /** - * $cursor Pointer to the next page of Employee Wage results to fetch. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id Filter wages returned to only those that are associated with the specified employee. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit Maximum number of Employee Wages to return per page. Can range between 1 and 200. The default is the maximum at 200. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Pointer to the next page of Employee Wage results to fetch. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListEmployeeWagesResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListEmployeeWagesResponse.php deleted file mode 100644 index 51eb4eb860..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListEmployeeWagesResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\EmployeeWage[]', - 'cursor' => 'string', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'employee_wages' => 'employee_wages', - 'cursor' => 'cursor', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'employee_wages' => 'setEmployeeWages', - 'cursor' => 'setCursor', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'employee_wages' => 'getEmployeeWages', - 'cursor' => 'getCursor', - 'errors' => 'getErrors' - ); - - /** - * $employee_wages A page of Employee Wage results. - * @var \SquareConnect\Model\EmployeeWage[] - */ - protected $employee_wages; - /** - * $cursor Value supplied in the subsequent request to fetch the next next page of Employee Wage results. - * @var string - */ - protected $cursor; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["employee_wages"])) { - $this->employee_wages = $data["employee_wages"]; - } else { - $this->employee_wages = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets employee_wages - * @return \SquareConnect\Model\EmployeeWage[] - */ - public function getEmployeeWages() - { - return $this->employee_wages; - } - - /** - * Sets employee_wages - * @param \SquareConnect\Model\EmployeeWage[] $employee_wages A page of Employee Wage results. - * @return $this - */ - public function setEmployeeWages($employee_wages) - { - $this->employee_wages = $employee_wages; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Value supplied in the subsequent request to fetch the next next page of Employee Wage results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListEmployeesRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListEmployeesRequest.php deleted file mode 100644 index f9f1389687..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListEmployeesRequest.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'status' => 'string', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id', - 'status' => 'status', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId', - 'status' => 'setStatus', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId', - 'status' => 'getStatus', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $location_id Filter employees returned to only those that are associated with the specified location. - * @var string - */ - protected $location_id; - /** - * $status Specifies the EmployeeStatus to filter the employee by. See [EmployeeStatus](#type-employeestatus) for possible values - * @var string - */ - protected $status; - /** - * $limit The number of employees to be returned on each page. - * @var int - */ - protected $limit; - /** - * $cursor The token required to retrieve the specified page of results. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id Filter employees returned to only those that are associated with the specified location. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Specifies the EmployeeStatus to filter the employee by. See [EmployeeStatus](#type-employeestatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The number of employees to be returned on each page. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The token required to retrieve the specified page of results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListEmployeesResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListEmployeesResponse.php deleted file mode 100644 index 644345154d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListEmployeesResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Employee[]', - 'cursor' => 'string', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'employees' => 'employees', - 'cursor' => 'cursor', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'employees' => 'setEmployees', - 'cursor' => 'setCursor', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'employees' => 'getEmployees', - 'cursor' => 'getCursor', - 'errors' => 'getErrors' - ); - - /** - * $employees List of employees returned from the request. - * @var \SquareConnect\Model\Employee[] - */ - protected $employees; - /** - * $cursor The token to be used to retrieve the next page of results. - * @var string - */ - protected $cursor; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["employees"])) { - $this->employees = $data["employees"]; - } else { - $this->employees = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets employees - * @return \SquareConnect\Model\Employee[] - */ - public function getEmployees() - { - return $this->employees; - } - - /** - * Sets employees - * @param \SquareConnect\Model\Employee[] $employees List of employees returned from the request. - * @return $this - */ - public function setEmployees($employees) - { - $this->employees = $employees; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The token to be used to retrieve the next page of results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListLocationsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListLocationsRequest.php deleted file mode 100644 index 9426e31966..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListLocationsRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListLocationsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListLocationsResponse.php deleted file mode 100644 index 2ee9569995..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListLocationsResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'locations' => '\SquareConnect\Model\Location[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'locations' => 'locations' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'locations' => 'setLocations' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'locations' => 'getLocations' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $locations The business locations. - * @var \SquareConnect\Model\Location[] - */ - protected $locations; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["locations"])) { - $this->locations = $data["locations"]; - } else { - $this->locations = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets locations - * @return \SquareConnect\Model\Location[] - */ - public function getLocations() - { - return $this->locations; - } - - /** - * Sets locations - * @param \SquareConnect\Model\Location[] $locations The business locations. - * @return $this - */ - public function setLocations($locations) - { - $this->locations = $locations; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListLoyaltyProgramsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListLoyaltyProgramsRequest.php deleted file mode 100644 index 720e5f7078..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListLoyaltyProgramsRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListLoyaltyProgramsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListLoyaltyProgramsResponse.php deleted file mode 100644 index 14c4583a9e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListLoyaltyProgramsResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'programs' => '\SquareConnect\Model\LoyaltyProgram[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'programs' => 'programs' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'programs' => 'setPrograms' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'programs' => 'getPrograms' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $programs A list of `LoyaltyProgram` for the merchant. - * @var \SquareConnect\Model\LoyaltyProgram[] - */ - protected $programs; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["programs"])) { - $this->programs = $data["programs"]; - } else { - $this->programs = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets programs - * @return \SquareConnect\Model\LoyaltyProgram[] - */ - public function getPrograms() - { - return $this->programs; - } - - /** - * Sets programs - * @param \SquareConnect\Model\LoyaltyProgram[] $programs A list of `LoyaltyProgram` for the merchant. - * @return $this - */ - public function setPrograms($programs) - { - $this->programs = $programs; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListMerchantsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListMerchantsRequest.php deleted file mode 100644 index 2a2bd8b827..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListMerchantsRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor' - ); - - /** - * $cursor The cursor generated by the previous response. - * @var int - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets cursor - * @return int - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param int $cursor The cursor generated by the previous response. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListMerchantsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListMerchantsResponse.php deleted file mode 100644 index 6e6c033656..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListMerchantsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'merchant' => '\SquareConnect\Model\Merchant[]', - 'cursor' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'merchant' => 'merchant', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'merchant' => 'setMerchant', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'merchant' => 'getMerchant', - 'cursor' => 'getCursor' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $merchant The requested `Merchant` entities. - * @var \SquareConnect\Model\Merchant[] - */ - protected $merchant; - /** - * $cursor If the response is truncated, the cursor to use in next request to fetch next set of objects. - * @var int - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["merchant"])) { - $this->merchant = $data["merchant"]; - } else { - $this->merchant = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets merchant - * @return \SquareConnect\Model\Merchant[] - */ - public function getMerchant() - { - return $this->merchant; - } - - /** - * Sets merchant - * @param \SquareConnect\Model\Merchant[] $merchant The requested `Merchant` entities. - * @return $this - */ - public function setMerchant($merchant) - { - $this->merchant = $merchant; - return $this; - } - /** - * Gets cursor - * @return int - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param int $cursor If the response is truncated, the cursor to use in next request to fetch next set of objects. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListPaymentRefundsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListPaymentRefundsRequest.php deleted file mode 100644 index 19f4ec7aa0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListPaymentRefundsRequest.php +++ /dev/null @@ -1,344 +0,0 @@ - 'string', - 'end_time' => 'string', - 'sort_order' => 'string', - 'cursor' => 'string', - 'location_id' => 'string', - 'status' => 'string', - 'source_type' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'sort_order' => 'sort_order', - 'cursor' => 'cursor', - 'location_id' => 'location_id', - 'status' => 'status', - 'source_type' => 'source_type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'sort_order' => 'setSortOrder', - 'cursor' => 'setCursor', - 'location_id' => 'setLocationId', - 'status' => 'setStatus', - 'source_type' => 'setSourceType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'sort_order' => 'getSortOrder', - 'cursor' => 'getCursor', - 'location_id' => 'getLocationId', - 'status' => 'getStatus', - 'source_type' => 'getSourceType' - ); - - /** - * $begin_time Timestamp for the beginning of the requested reporting period, in RFC 3339 format. Default: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. - * @var string - */ - protected $end_time; - /** - * $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). - * @var string - */ - protected $sort_order; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $location_id ID of location associated with payment. - * @var string - */ - protected $location_id; - /** - * $status If provided, only refunds with the given status are returned. For a list of refund status values, see `PaymentRefund`. Default: If omitted refunds are returned regardless of status. - * @var string - */ - protected $status; - /** - * $source_type If provided, only refunds with the given source type are returned. - `CARD` - List refunds only for payments where card was specified as payment source. Default: If omitted refunds are returned regardless of source type. - * @var string - */ - protected $source_type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["source_type"])) { - $this->source_type = $data["source_type"]; - } else { - $this->source_type = null; - } - } - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time Timestamp for the beginning of the requested reporting period, in RFC 3339 format. Default: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id ID of location associated with payment. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status If provided, only refunds with the given status are returned. For a list of refund status values, see `PaymentRefund`. Default: If omitted refunds are returned regardless of status. - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets source_type - * @return string - */ - public function getSourceType() - { - return $this->source_type; - } - - /** - * Sets source_type - * @param string $source_type If provided, only refunds with the given source type are returned. - `CARD` - List refunds only for payments where card was specified as payment source. Default: If omitted refunds are returned regardless of source type. - * @return $this - */ - public function setSourceType($source_type) - { - $this->source_type = $source_type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListPaymentRefundsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListPaymentRefundsResponse.php deleted file mode 100644 index 69d461cfe1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListPaymentRefundsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'refunds' => '\SquareConnect\Model\PaymentRefund[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'refunds' => 'refunds', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'refunds' => 'setRefunds', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'refunds' => 'getRefunds', - 'cursor' => 'getCursor' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $refunds The list of requested refunds. - * @var \SquareConnect\Model\PaymentRefund[] - */ - protected $refunds; - /** - * $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["refunds"])) { - $this->refunds = $data["refunds"]; - } else { - $this->refunds = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets refunds - * @return \SquareConnect\Model\PaymentRefund[] - */ - public function getRefunds() - { - return $this->refunds; - } - - /** - * Sets refunds - * @param \SquareConnect\Model\PaymentRefund[] $refunds The list of requested refunds. - * @return $this - */ - public function setRefunds($refunds) - { - $this->refunds = $refunds; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListPaymentsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListPaymentsRequest.php deleted file mode 100644 index 62fd9b8453..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListPaymentsRequest.php +++ /dev/null @@ -1,377 +0,0 @@ - 'string', - 'end_time' => 'string', - 'sort_order' => 'string', - 'cursor' => 'string', - 'location_id' => 'string', - 'total' => 'int', - 'last_4' => 'string', - 'card_brand' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'sort_order' => 'sort_order', - 'cursor' => 'cursor', - 'location_id' => 'location_id', - 'total' => 'total', - 'last_4' => 'last_4', - 'card_brand' => 'card_brand' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'sort_order' => 'setSortOrder', - 'cursor' => 'setCursor', - 'location_id' => 'setLocationId', - 'total' => 'setTotal', - 'last_4' => 'setLast4', - 'card_brand' => 'setCardBrand' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'sort_order' => 'getSortOrder', - 'cursor' => 'getCursor', - 'location_id' => 'getLocationId', - 'total' => 'getTotal', - 'last_4' => 'getLast4', - 'card_brand' => 'getCardBrand' - ); - - /** - * $begin_time Timestamp for the beginning of the reporting period, in RFC 3339 format. Inclusive. Default: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. - * @var string - */ - protected $end_time; - /** - * $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). - * @var string - */ - protected $sort_order; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $location_id Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. - * @var string - */ - protected $location_id; - /** - * $total The exact amount in the total_money for a `Payment`. - * @var int - */ - protected $total; - /** - * $last_4 The last 4 digits of `Payment` card. - * @var string - */ - protected $last_4; - /** - * $card_brand The brand of `Payment` card. For example, `VISA` - * @var string - */ - protected $card_brand; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["total"])) { - $this->total = $data["total"]; - } else { - $this->total = null; - } - if (isset($data["last_4"])) { - $this->last_4 = $data["last_4"]; - } else { - $this->last_4 = null; - } - if (isset($data["card_brand"])) { - $this->card_brand = $data["card_brand"]; - } else { - $this->card_brand = null; - } - } - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time Timestamp for the beginning of the reporting period, in RFC 3339 format. Inclusive. Default: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets total - * @return int - */ - public function getTotal() - { - return $this->total; - } - - /** - * Sets total - * @param int $total The exact amount in the total_money for a `Payment`. - * @return $this - */ - public function setTotal($total) - { - $this->total = $total; - return $this; - } - /** - * Gets last_4 - * @return string - */ - public function getLast4() - { - return $this->last_4; - } - - /** - * Sets last_4 - * @param string $last_4 The last 4 digits of `Payment` card. - * @return $this - */ - public function setLast4($last_4) - { - $this->last_4 = $last_4; - return $this; - } - /** - * Gets card_brand - * @return string - */ - public function getCardBrand() - { - return $this->card_brand; - } - - /** - * Sets card_brand - * @param string $card_brand The brand of `Payment` card. For example, `VISA` - * @return $this - */ - public function setCardBrand($card_brand) - { - $this->card_brand = $card_brand; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListPaymentsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListPaymentsResponse.php deleted file mode 100644 index cbd3142242..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListPaymentsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'payments' => '\SquareConnect\Model\Payment[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'payments' => 'payments', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'payments' => 'setPayments', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'payments' => 'getPayments', - 'cursor' => 'getCursor' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $payments The requested list of `Payment`s. - * @var \SquareConnect\Model\Payment[] - */ - protected $payments; - /** - * $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["payments"])) { - $this->payments = $data["payments"]; - } else { - $this->payments = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets payments - * @return \SquareConnect\Model\Payment[] - */ - public function getPayments() - { - return $this->payments; - } - - /** - * Sets payments - * @param \SquareConnect\Model\Payment[] $payments The requested list of `Payment`s. - * @return $this - */ - public function setPayments($payments) - { - $this->payments = $payments; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListRefundsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListRefundsRequest.php deleted file mode 100644 index 389bd6ffd2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListRefundsRequest.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'end_time' => 'string', - 'sort_order' => 'string', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'sort_order' => 'sort_order', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'sort_order' => 'setSortOrder', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'sort_order' => 'getSortOrder', - 'cursor' => 'getCursor' - ); - - /** - * $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. - * @var string - */ - protected $end_time; - /** - * $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListRefundsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListRefundsResponse.php deleted file mode 100644 index 9b7b5aaf96..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListRefundsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'refunds' => '\SquareConnect\Model\Refund[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'refunds' => 'refunds', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'refunds' => 'setRefunds', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'refunds' => 'getRefunds', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $refunds An array of refunds that match your query. - * @var \SquareConnect\Model\Refund[] - */ - protected $refunds; - /** - * $cursor A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["refunds"])) { - $this->refunds = $data["refunds"]; - } else { - $this->refunds = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets refunds - * @return \SquareConnect\Model\Refund[] - */ - public function getRefunds() - { - return $this->refunds; - } - - /** - * Sets refunds - * @param \SquareConnect\Model\Refund[] $refunds An array of refunds that match your query. - * @return $this - */ - public function setRefunds($refunds) - { - $this->refunds = $refunds; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListTransactionsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListTransactionsRequest.php deleted file mode 100644 index 309d04e5c7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListTransactionsRequest.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'end_time' => 'string', - 'sort_order' => 'string', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'sort_order' => 'sort_order', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'sort_order' => 'setSortOrder', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'sort_order' => 'getSortOrder', - 'cursor' => 'getCursor' - ); - - /** - * $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. - * @var string - */ - protected $end_time; - /** - * $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListTransactionsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListTransactionsResponse.php deleted file mode 100644 index e3a0d780bf..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListTransactionsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'transactions' => '\SquareConnect\Model\Transaction[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'transactions' => 'transactions', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'transactions' => 'setTransactions', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'transactions' => 'getTransactions', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $transactions An array of transactions that match your query. - * @var \SquareConnect\Model\Transaction[] - */ - protected $transactions; - /** - * $cursor A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["transactions"])) { - $this->transactions = $data["transactions"]; - } else { - $this->transactions = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets transactions - * @return \SquareConnect\Model\Transaction[] - */ - public function getTransactions() - { - return $this->transactions; - } - - /** - * Sets transactions - * @param \SquareConnect\Model\Transaction[] $transactions An array of transactions that match your query. - * @return $this - */ - public function setTransactions($transactions) - { - $this->transactions = $transactions; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListWorkweekConfigsRequest.php b/includes/classes/vendors/square/connect/lib/Model/ListWorkweekConfigsRequest.php deleted file mode 100644 index f3c8113dcd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListWorkweekConfigsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $limit Maximum number of Workweek Configs to return per page. - * @var int - */ - protected $limit; - /** - * $cursor Pointer to the next page of Workweek Config results to fetch. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit Maximum number of Workweek Configs to return per page. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Pointer to the next page of Workweek Config results to fetch. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ListWorkweekConfigsResponse.php b/includes/classes/vendors/square/connect/lib/Model/ListWorkweekConfigsResponse.php deleted file mode 100644 index 3bfb5c7ec2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ListWorkweekConfigsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\WorkweekConfig[]', - 'cursor' => 'string', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'workweek_configs' => 'workweek_configs', - 'cursor' => 'cursor', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'workweek_configs' => 'setWorkweekConfigs', - 'cursor' => 'setCursor', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'workweek_configs' => 'getWorkweekConfigs', - 'cursor' => 'getCursor', - 'errors' => 'getErrors' - ); - - /** - * $workweek_configs A page of Employee Wage results. - * @var \SquareConnect\Model\WorkweekConfig[] - */ - protected $workweek_configs; - /** - * $cursor Value supplied in the subsequent request to fetch the next page of Employee Wage results. - * @var string - */ - protected $cursor; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["workweek_configs"])) { - $this->workweek_configs = $data["workweek_configs"]; - } else { - $this->workweek_configs = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets workweek_configs - * @return \SquareConnect\Model\WorkweekConfig[] - */ - public function getWorkweekConfigs() - { - return $this->workweek_configs; - } - - /** - * Sets workweek_configs - * @param \SquareConnect\Model\WorkweekConfig[] $workweek_configs A page of Employee Wage results. - * @return $this - */ - public function setWorkweekConfigs($workweek_configs) - { - $this->workweek_configs = $workweek_configs; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Value supplied in the subsequent request to fetch the next page of Employee Wage results. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Location.php b/includes/classes/vendors/square/connect/lib/Model/Location.php deleted file mode 100644 index 89d2231e59..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Location.php +++ /dev/null @@ -1,938 +0,0 @@ - 'string', - 'name' => 'string', - 'address' => '\SquareConnect\Model\Address', - 'timezone' => 'string', - 'capabilities' => 'string[]', - 'status' => 'string', - 'created_at' => 'string', - 'merchant_id' => 'string', - 'country' => 'string', - 'language_code' => 'string', - 'currency' => 'string', - 'phone_number' => 'string', - 'business_name' => 'string', - 'type' => 'string', - 'website_url' => 'string', - 'business_hours' => '\SquareConnect\Model\BusinessHours', - 'business_email' => 'string', - 'description' => 'string', - 'twitter_username' => 'string', - 'instagram_username' => 'string', - 'facebook_url' => 'string', - 'coordinates' => '\SquareConnect\Model\Coordinates', - 'logo_url' => 'string', - 'pos_background_url' => 'string', - 'mcc' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'address' => 'address', - 'timezone' => 'timezone', - 'capabilities' => 'capabilities', - 'status' => 'status', - 'created_at' => 'created_at', - 'merchant_id' => 'merchant_id', - 'country' => 'country', - 'language_code' => 'language_code', - 'currency' => 'currency', - 'phone_number' => 'phone_number', - 'business_name' => 'business_name', - 'type' => 'type', - 'website_url' => 'website_url', - 'business_hours' => 'business_hours', - 'business_email' => 'business_email', - 'description' => 'description', - 'twitter_username' => 'twitter_username', - 'instagram_username' => 'instagram_username', - 'facebook_url' => 'facebook_url', - 'coordinates' => 'coordinates', - 'logo_url' => 'logo_url', - 'pos_background_url' => 'pos_background_url', - 'mcc' => 'mcc' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'address' => 'setAddress', - 'timezone' => 'setTimezone', - 'capabilities' => 'setCapabilities', - 'status' => 'setStatus', - 'created_at' => 'setCreatedAt', - 'merchant_id' => 'setMerchantId', - 'country' => 'setCountry', - 'language_code' => 'setLanguageCode', - 'currency' => 'setCurrency', - 'phone_number' => 'setPhoneNumber', - 'business_name' => 'setBusinessName', - 'type' => 'setType', - 'website_url' => 'setWebsiteUrl', - 'business_hours' => 'setBusinessHours', - 'business_email' => 'setBusinessEmail', - 'description' => 'setDescription', - 'twitter_username' => 'setTwitterUsername', - 'instagram_username' => 'setInstagramUsername', - 'facebook_url' => 'setFacebookUrl', - 'coordinates' => 'setCoordinates', - 'logo_url' => 'setLogoUrl', - 'pos_background_url' => 'setPosBackgroundUrl', - 'mcc' => 'setMcc' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'address' => 'getAddress', - 'timezone' => 'getTimezone', - 'capabilities' => 'getCapabilities', - 'status' => 'getStatus', - 'created_at' => 'getCreatedAt', - 'merchant_id' => 'getMerchantId', - 'country' => 'getCountry', - 'language_code' => 'getLanguageCode', - 'currency' => 'getCurrency', - 'phone_number' => 'getPhoneNumber', - 'business_name' => 'getBusinessName', - 'type' => 'getType', - 'website_url' => 'getWebsiteUrl', - 'business_hours' => 'getBusinessHours', - 'business_email' => 'getBusinessEmail', - 'description' => 'getDescription', - 'twitter_username' => 'getTwitterUsername', - 'instagram_username' => 'getInstagramUsername', - 'facebook_url' => 'getFacebookUrl', - 'coordinates' => 'getCoordinates', - 'logo_url' => 'getLogoUrl', - 'pos_background_url' => 'getPosBackgroundUrl', - 'mcc' => 'getMcc' - ); - - /** - * $id The Square-issued ID of the location. - * @var string - */ - protected $id; - /** - * $name The name of the location. This information appears in the dashboard as the nickname. - * @var string - */ - protected $name; - /** - * $address The physical address of the location. - * @var \SquareConnect\Model\Address - */ - protected $address; - /** - * $timezone The [IANA Timezone](https://www.iana.org/time-zones) identifier for the timezone of the location. - * @var string - */ - protected $timezone; - /** - * $capabilities The Square features that are enabled for the location. See `LocationCapability` for possible values. See [LocationCapability](#type-locationcapability) for possible values - * @var string[] - */ - protected $capabilities; - /** - * $status The status of the location, either active or inactive. See [LocationStatus](#type-locationstatus) for possible values - * @var string - */ - protected $status; - /** - * $created_at The time when the location was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $merchant_id The ID of the merchant that owns the location. - * @var string - */ - protected $merchant_id; - /** - * $country The country of the location, in ISO 3166-1-alpha-2 format. See `Country` for possible values. See [Country](#type-country) for possible values - * @var string - */ - protected $country; - /** - * $language_code The language associated with the location, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A). - * @var string - */ - protected $language_code; - /** - * $currency The currency used for all transactions at this location, in ISO 4217 format. See `Currency` for possible values. See [Currency](#type-currency) for possible values - * @var string - */ - protected $currency; - /** - * $phone_number The phone number of the location in human readable format. - * @var string - */ - protected $phone_number; - /** - * $business_name The business name of the location This is the name visible to the customers of the location. For example, this name appears on customer receipts. - * @var string - */ - protected $business_name; - /** - * $type The type of the location, either physical or mobile. See [LocationType](#type-locationtype) for possible values - * @var string - */ - protected $type; - /** - * $website_url The website URL of the location. - * @var string - */ - protected $website_url; - /** - * $business_hours Represents the hours of operation for the location. - * @var \SquareConnect\Model\BusinessHours - */ - protected $business_hours; - /** - * $business_email The email of the location. This email is visible to the customers of the location. For example, the email appears on customer receipts. - * @var string - */ - protected $business_email; - /** - * $description The description of the location. - * @var string - */ - protected $description; - /** - * $twitter_username The Twitter username of the location without the '@' symbol. - * @var string - */ - protected $twitter_username; - /** - * $instagram_username The Instagram username of the location without the '@' symbol. - * @var string - */ - protected $instagram_username; - /** - * $facebook_url The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. - * @var string - */ - protected $facebook_url; - /** - * $coordinates The physical coordinates (latitude and longitude) of the location. - * @var \SquareConnect\Model\Coordinates - */ - protected $coordinates; - /** - * $logo_url The URL of the logo image for the location. - * @var string - */ - protected $logo_url; - /** - * $pos_background_url The URL of the Point of Sale background image for the location. - * @var string - */ - protected $pos_background_url; - /** - * $mcc The merchant category code (MCC) of the location, as standardized by ISO 18245. The MCC describes the kind of goods or services sold at the location. - * @var string - */ - protected $mcc; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["address"])) { - $this->address = $data["address"]; - } else { - $this->address = null; - } - if (isset($data["timezone"])) { - $this->timezone = $data["timezone"]; - } else { - $this->timezone = null; - } - if (isset($data["capabilities"])) { - $this->capabilities = $data["capabilities"]; - } else { - $this->capabilities = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["merchant_id"])) { - $this->merchant_id = $data["merchant_id"]; - } else { - $this->merchant_id = null; - } - if (isset($data["country"])) { - $this->country = $data["country"]; - } else { - $this->country = null; - } - if (isset($data["language_code"])) { - $this->language_code = $data["language_code"]; - } else { - $this->language_code = null; - } - if (isset($data["currency"])) { - $this->currency = $data["currency"]; - } else { - $this->currency = null; - } - if (isset($data["phone_number"])) { - $this->phone_number = $data["phone_number"]; - } else { - $this->phone_number = null; - } - if (isset($data["business_name"])) { - $this->business_name = $data["business_name"]; - } else { - $this->business_name = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["website_url"])) { - $this->website_url = $data["website_url"]; - } else { - $this->website_url = null; - } - if (isset($data["business_hours"])) { - $this->business_hours = $data["business_hours"]; - } else { - $this->business_hours = null; - } - if (isset($data["business_email"])) { - $this->business_email = $data["business_email"]; - } else { - $this->business_email = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["twitter_username"])) { - $this->twitter_username = $data["twitter_username"]; - } else { - $this->twitter_username = null; - } - if (isset($data["instagram_username"])) { - $this->instagram_username = $data["instagram_username"]; - } else { - $this->instagram_username = null; - } - if (isset($data["facebook_url"])) { - $this->facebook_url = $data["facebook_url"]; - } else { - $this->facebook_url = null; - } - if (isset($data["coordinates"])) { - $this->coordinates = $data["coordinates"]; - } else { - $this->coordinates = null; - } - if (isset($data["logo_url"])) { - $this->logo_url = $data["logo_url"]; - } else { - $this->logo_url = null; - } - if (isset($data["pos_background_url"])) { - $this->pos_background_url = $data["pos_background_url"]; - } else { - $this->pos_background_url = null; - } - if (isset($data["mcc"])) { - $this->mcc = $data["mcc"]; - } else { - $this->mcc = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The Square-issued ID of the location. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the location. This information appears in the dashboard as the nickname. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets address - * @return \SquareConnect\Model\Address - */ - public function getAddress() - { - return $this->address; - } - - /** - * Sets address - * @param \SquareConnect\Model\Address $address The physical address of the location. - * @return $this - */ - public function setAddress($address) - { - $this->address = $address; - return $this; - } - /** - * Gets timezone - * @return string - */ - public function getTimezone() - { - return $this->timezone; - } - - /** - * Sets timezone - * @param string $timezone The [IANA Timezone](https://www.iana.org/time-zones) identifier for the timezone of the location. - * @return $this - */ - public function setTimezone($timezone) - { - $this->timezone = $timezone; - return $this; - } - /** - * Gets capabilities - * @return string[] - */ - public function getCapabilities() - { - return $this->capabilities; - } - - /** - * Sets capabilities - * @param string[] $capabilities The Square features that are enabled for the location. See `LocationCapability` for possible values. See [LocationCapability](#type-locationcapability) for possible values - * @return $this - */ - public function setCapabilities($capabilities) - { - $this->capabilities = $capabilities; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The status of the location, either active or inactive. See [LocationStatus](#type-locationstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the location was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets merchant_id - * @return string - */ - public function getMerchantId() - { - return $this->merchant_id; - } - - /** - * Sets merchant_id - * @param string $merchant_id The ID of the merchant that owns the location. - * @return $this - */ - public function setMerchantId($merchant_id) - { - $this->merchant_id = $merchant_id; - return $this; - } - /** - * Gets country - * @return string - */ - public function getCountry() - { - return $this->country; - } - - /** - * Sets country - * @param string $country The country of the location, in ISO 3166-1-alpha-2 format. See `Country` for possible values. See [Country](#type-country) for possible values - * @return $this - */ - public function setCountry($country) - { - $this->country = $country; - return $this; - } - /** - * Gets language_code - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Sets language_code - * @param string $language_code The language associated with the location, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A). - * @return $this - */ - public function setLanguageCode($language_code) - { - $this->language_code = $language_code; - return $this; - } - /** - * Gets currency - * @return string - */ - public function getCurrency() - { - return $this->currency; - } - - /** - * Sets currency - * @param string $currency The currency used for all transactions at this location, in ISO 4217 format. See `Currency` for possible values. See [Currency](#type-currency) for possible values - * @return $this - */ - public function setCurrency($currency) - { - $this->currency = $currency; - return $this; - } - /** - * Gets phone_number - * @return string - */ - public function getPhoneNumber() - { - return $this->phone_number; - } - - /** - * Sets phone_number - * @param string $phone_number The phone number of the location in human readable format. - * @return $this - */ - public function setPhoneNumber($phone_number) - { - $this->phone_number = $phone_number; - return $this; - } - /** - * Gets business_name - * @return string - */ - public function getBusinessName() - { - return $this->business_name; - } - - /** - * Sets business_name - * @param string $business_name The business name of the location This is the name visible to the customers of the location. For example, this name appears on customer receipts. - * @return $this - */ - public function setBusinessName($business_name) - { - $this->business_name = $business_name; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of the location, either physical or mobile. See [LocationType](#type-locationtype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets website_url - * @return string - */ - public function getWebsiteUrl() - { - return $this->website_url; - } - - /** - * Sets website_url - * @param string $website_url The website URL of the location. - * @return $this - */ - public function setWebsiteUrl($website_url) - { - $this->website_url = $website_url; - return $this; - } - /** - * Gets business_hours - * @return \SquareConnect\Model\BusinessHours - */ - public function getBusinessHours() - { - return $this->business_hours; - } - - /** - * Sets business_hours - * @param \SquareConnect\Model\BusinessHours $business_hours Represents the hours of operation for the location. - * @return $this - */ - public function setBusinessHours($business_hours) - { - $this->business_hours = $business_hours; - return $this; - } - /** - * Gets business_email - * @return string - */ - public function getBusinessEmail() - { - return $this->business_email; - } - - /** - * Sets business_email - * @param string $business_email The email of the location. This email is visible to the customers of the location. For example, the email appears on customer receipts. - * @return $this - */ - public function setBusinessEmail($business_email) - { - $this->business_email = $business_email; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description The description of the location. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets twitter_username - * @return string - */ - public function getTwitterUsername() - { - return $this->twitter_username; - } - - /** - * Sets twitter_username - * @param string $twitter_username The Twitter username of the location without the '@' symbol. - * @return $this - */ - public function setTwitterUsername($twitter_username) - { - $this->twitter_username = $twitter_username; - return $this; - } - /** - * Gets instagram_username - * @return string - */ - public function getInstagramUsername() - { - return $this->instagram_username; - } - - /** - * Sets instagram_username - * @param string $instagram_username The Instagram username of the location without the '@' symbol. - * @return $this - */ - public function setInstagramUsername($instagram_username) - { - $this->instagram_username = $instagram_username; - return $this; - } - /** - * Gets facebook_url - * @return string - */ - public function getFacebookUrl() - { - return $this->facebook_url; - } - - /** - * Sets facebook_url - * @param string $facebook_url The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. - * @return $this - */ - public function setFacebookUrl($facebook_url) - { - $this->facebook_url = $facebook_url; - return $this; - } - /** - * Gets coordinates - * @return \SquareConnect\Model\Coordinates - */ - public function getCoordinates() - { - return $this->coordinates; - } - - /** - * Sets coordinates - * @param \SquareConnect\Model\Coordinates $coordinates The physical coordinates (latitude and longitude) of the location. - * @return $this - */ - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - return $this; - } - /** - * Gets logo_url - * @return string - */ - public function getLogoUrl() - { - return $this->logo_url; - } - - /** - * Sets logo_url - * @param string $logo_url The URL of the logo image for the location. - * @return $this - */ - public function setLogoUrl($logo_url) - { - $this->logo_url = $logo_url; - return $this; - } - /** - * Gets pos_background_url - * @return string - */ - public function getPosBackgroundUrl() - { - return $this->pos_background_url; - } - - /** - * Sets pos_background_url - * @param string $pos_background_url The URL of the Point of Sale background image for the location. - * @return $this - */ - public function setPosBackgroundUrl($pos_background_url) - { - $this->pos_background_url = $pos_background_url; - return $this; - } - /** - * Gets mcc - * @return string - */ - public function getMcc() - { - return $this->mcc; - } - - /** - * Sets mcc - * @param string $mcc The merchant category code (MCC) of the location, as standardized by ISO 18245. The MCC describes the kind of goods or services sold at the location. - * @return $this - */ - public function setMcc($mcc) - { - $this->mcc = $mcc; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LocationCapability.php b/includes/classes/vendors/square/connect/lib/Model/LocationCapability.php deleted file mode 100644 index a64a7b5d6e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LocationCapability.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LocationStatus.php b/includes/classes/vendors/square/connect/lib/Model/LocationStatus.php deleted file mode 100644 index 7db6f2f76b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LocationStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LocationType.php b/includes/classes/vendors/square/connect/lib/Model/LocationType.php deleted file mode 100644 index 0aa6f4166f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LocationType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccount.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccount.php deleted file mode 100644 index c7e54bef2b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccount.php +++ /dev/null @@ -1,411 +0,0 @@ - 'string', - 'mappings' => '\SquareConnect\Model\LoyaltyAccountMapping[]', - 'program_id' => 'string', - 'balance' => 'int', - 'lifetime_points' => 'int', - 'customer_id' => 'string', - 'enrolled_at' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'mappings' => 'mappings', - 'program_id' => 'program_id', - 'balance' => 'balance', - 'lifetime_points' => 'lifetime_points', - 'customer_id' => 'customer_id', - 'enrolled_at' => 'enrolled_at', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'mappings' => 'setMappings', - 'program_id' => 'setProgramId', - 'balance' => 'setBalance', - 'lifetime_points' => 'setLifetimePoints', - 'customer_id' => 'setCustomerId', - 'enrolled_at' => 'setEnrolledAt', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'mappings' => 'getMappings', - 'program_id' => 'getProgramId', - 'balance' => 'getBalance', - 'lifetime_points' => 'getLifetimePoints', - 'customer_id' => 'getCustomerId', - 'enrolled_at' => 'getEnrolledAt', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id The Square-assigned ID of the loyalty account. - * @var string - */ - protected $id; - /** - * $mappings The list of mappings that the account is associated with. Currently, a buyer can only be mapped to a loyalty account using a phone number. Therefore, the list can only have one mapping. - * @var \SquareConnect\Model\LoyaltyAccountMapping[] - */ - protected $mappings; - /** - * $program_id The Square-assigned ID of the `loyalty program` to which the account belongs. - * @var string - */ - protected $program_id; - /** - * $balance The available point balance in the loyalty account. - * @var int - */ - protected $balance; - /** - * $lifetime_points The total points accrued during the lifetime of the account. - * @var int - */ - protected $lifetime_points; - /** - * $customer_id The Square-assigned ID of the `customer` that is associated with the account. - * @var string - */ - protected $customer_id; - /** - * $enrolled_at The timestamp when enrollment occurred, in RFC 3339 format. - * @var string - */ - protected $enrolled_at; - /** - * $created_at The timestamp when the loyalty account was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The timestamp when the loyalty account was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["mappings"])) { - $this->mappings = $data["mappings"]; - } else { - $this->mappings = null; - } - if (isset($data["program_id"])) { - $this->program_id = $data["program_id"]; - } else { - $this->program_id = null; - } - if (isset($data["balance"])) { - $this->balance = $data["balance"]; - } else { - $this->balance = null; - } - if (isset($data["lifetime_points"])) { - $this->lifetime_points = $data["lifetime_points"]; - } else { - $this->lifetime_points = null; - } - if (isset($data["customer_id"])) { - $this->customer_id = $data["customer_id"]; - } else { - $this->customer_id = null; - } - if (isset($data["enrolled_at"])) { - $this->enrolled_at = $data["enrolled_at"]; - } else { - $this->enrolled_at = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The Square-assigned ID of the loyalty account. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets mappings - * @return \SquareConnect\Model\LoyaltyAccountMapping[] - */ - public function getMappings() - { - return $this->mappings; - } - - /** - * Sets mappings - * @param \SquareConnect\Model\LoyaltyAccountMapping[] $mappings The list of mappings that the account is associated with. Currently, a buyer can only be mapped to a loyalty account using a phone number. Therefore, the list can only have one mapping. - * @return $this - */ - public function setMappings($mappings) - { - $this->mappings = $mappings; - return $this; - } - /** - * Gets program_id - * @return string - */ - public function getProgramId() - { - return $this->program_id; - } - - /** - * Sets program_id - * @param string $program_id The Square-assigned ID of the `loyalty program` to which the account belongs. - * @return $this - */ - public function setProgramId($program_id) - { - $this->program_id = $program_id; - return $this; - } - /** - * Gets balance - * @return int - */ - public function getBalance() - { - return $this->balance; - } - - /** - * Sets balance - * @param int $balance The available point balance in the loyalty account. - * @return $this - */ - public function setBalance($balance) - { - $this->balance = $balance; - return $this; - } - /** - * Gets lifetime_points - * @return int - */ - public function getLifetimePoints() - { - return $this->lifetime_points; - } - - /** - * Sets lifetime_points - * @param int $lifetime_points The total points accrued during the lifetime of the account. - * @return $this - */ - public function setLifetimePoints($lifetime_points) - { - $this->lifetime_points = $lifetime_points; - return $this; - } - /** - * Gets customer_id - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Sets customer_id - * @param string $customer_id The Square-assigned ID of the `customer` that is associated with the account. - * @return $this - */ - public function setCustomerId($customer_id) - { - $this->customer_id = $customer_id; - return $this; - } - /** - * Gets enrolled_at - * @return string - */ - public function getEnrolledAt() - { - return $this->enrolled_at; - } - - /** - * Sets enrolled_at - * @param string $enrolled_at The timestamp when enrollment occurred, in RFC 3339 format. - * @return $this - */ - public function setEnrolledAt($enrolled_at) - { - $this->enrolled_at = $enrolled_at; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the loyalty account was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The timestamp when the loyalty account was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccountMapping.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccountMapping.php deleted file mode 100644 index 1949f936c7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccountMapping.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'type' => 'string', - 'value' => 'string', - 'created_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'type' => 'type', - 'value' => 'value', - 'created_at' => 'created_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'type' => 'setType', - 'value' => 'setValue', - 'created_at' => 'setCreatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'type' => 'getType', - 'value' => 'getValue', - 'created_at' => 'getCreatedAt' - ); - - /** - * $id The Square-assigned ID of the mapping. - * @var string - */ - protected $id; - /** - * $type The type of mapping. See [LoyaltyAccountMappingType](#type-loyaltyaccountmappingtype) for possible values - * @var string - */ - protected $type; - /** - * $value The phone number, in E.164 format. For example, \"+14155551111\". - * @var string - */ - protected $value; - /** - * $created_at The timestamp when the mapping was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["value"])) { - $this->value = $data["value"]; - } else { - $this->value = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The Square-assigned ID of the mapping. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of mapping. See [LoyaltyAccountMappingType](#type-loyaltyaccountmappingtype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets value - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Sets value - * @param string $value The phone number, in E.164 format. For example, \"+14155551111\". - * @return $this - */ - public function setValue($value) - { - $this->value = $value; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the mapping was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccountMappingType.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccountMappingType.php deleted file mode 100644 index bb228ea496..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyAccountMappingType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEvent.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEvent.php deleted file mode 100644 index b9582c1ce4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEvent.php +++ /dev/null @@ -1,543 +0,0 @@ - 'string', - 'type' => 'string', - 'created_at' => 'string', - 'accumulate_points' => '\SquareConnect\Model\LoyaltyEventAccumulatePoints', - 'create_reward' => '\SquareConnect\Model\LoyaltyEventCreateReward', - 'redeem_reward' => '\SquareConnect\Model\LoyaltyEventRedeemReward', - 'delete_reward' => '\SquareConnect\Model\LoyaltyEventDeleteReward', - 'adjust_points' => '\SquareConnect\Model\LoyaltyEventAdjustPoints', - 'loyalty_account_id' => 'string', - 'location_id' => 'string', - 'source' => 'string', - 'expire_points' => '\SquareConnect\Model\LoyaltyEventExpirePoints', - 'other_event' => '\SquareConnect\Model\LoyaltyEventOther' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'type' => 'type', - 'created_at' => 'created_at', - 'accumulate_points' => 'accumulate_points', - 'create_reward' => 'create_reward', - 'redeem_reward' => 'redeem_reward', - 'delete_reward' => 'delete_reward', - 'adjust_points' => 'adjust_points', - 'loyalty_account_id' => 'loyalty_account_id', - 'location_id' => 'location_id', - 'source' => 'source', - 'expire_points' => 'expire_points', - 'other_event' => 'other_event' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'type' => 'setType', - 'created_at' => 'setCreatedAt', - 'accumulate_points' => 'setAccumulatePoints', - 'create_reward' => 'setCreateReward', - 'redeem_reward' => 'setRedeemReward', - 'delete_reward' => 'setDeleteReward', - 'adjust_points' => 'setAdjustPoints', - 'loyalty_account_id' => 'setLoyaltyAccountId', - 'location_id' => 'setLocationId', - 'source' => 'setSource', - 'expire_points' => 'setExpirePoints', - 'other_event' => 'setOtherEvent' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'type' => 'getType', - 'created_at' => 'getCreatedAt', - 'accumulate_points' => 'getAccumulatePoints', - 'create_reward' => 'getCreateReward', - 'redeem_reward' => 'getRedeemReward', - 'delete_reward' => 'getDeleteReward', - 'adjust_points' => 'getAdjustPoints', - 'loyalty_account_id' => 'getLoyaltyAccountId', - 'location_id' => 'getLocationId', - 'source' => 'getSource', - 'expire_points' => 'getExpirePoints', - 'other_event' => 'getOtherEvent' - ); - - /** - * $id The Square-assigned ID of the loyalty event. - * @var string - */ - protected $id; - /** - * $type The type of the loyalty event. See [LoyaltyEventType](#type-loyaltyeventtype) for possible values - * @var string - */ - protected $type; - /** - * $created_at The timestamp when the event was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $accumulate_points Provides metadata when the event `type` is `ACCUMULATE_POINTS`. - * @var \SquareConnect\Model\LoyaltyEventAccumulatePoints - */ - protected $accumulate_points; - /** - * $create_reward Provides metadata when the event `type` is `CREATE_REWARD`. - * @var \SquareConnect\Model\LoyaltyEventCreateReward - */ - protected $create_reward; - /** - * $redeem_reward Provides metadata when the event `type` is `REDEEM_REWARD`. - * @var \SquareConnect\Model\LoyaltyEventRedeemReward - */ - protected $redeem_reward; - /** - * $delete_reward Provides metadata when the event `type` is `DELETE_REWARD`. - * @var \SquareConnect\Model\LoyaltyEventDeleteReward - */ - protected $delete_reward; - /** - * $adjust_points Provides metadata when the event `type` is `ADJUST_POINTS`. - * @var \SquareConnect\Model\LoyaltyEventAdjustPoints - */ - protected $adjust_points; - /** - * $loyalty_account_id The ID of the `loyalty account` in which the event occurred. - * @var string - */ - protected $loyalty_account_id; - /** - * $location_id The ID of the `location` where the event occurred. - * @var string - */ - protected $location_id; - /** - * $source Defines whether the event was generated by the Square Point of Sale. See [LoyaltyEventSource](#type-loyaltyeventsource) for possible values - * @var string - */ - protected $source; - /** - * $expire_points Provides metadata when the event `type` is `EXPIRE_POINTS`. - * @var \SquareConnect\Model\LoyaltyEventExpirePoints - */ - protected $expire_points; - /** - * $other_event Provides metadata when the event `type` is `OTHER`. - * @var \SquareConnect\Model\LoyaltyEventOther - */ - protected $other_event; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["accumulate_points"])) { - $this->accumulate_points = $data["accumulate_points"]; - } else { - $this->accumulate_points = null; - } - if (isset($data["create_reward"])) { - $this->create_reward = $data["create_reward"]; - } else { - $this->create_reward = null; - } - if (isset($data["redeem_reward"])) { - $this->redeem_reward = $data["redeem_reward"]; - } else { - $this->redeem_reward = null; - } - if (isset($data["delete_reward"])) { - $this->delete_reward = $data["delete_reward"]; - } else { - $this->delete_reward = null; - } - if (isset($data["adjust_points"])) { - $this->adjust_points = $data["adjust_points"]; - } else { - $this->adjust_points = null; - } - if (isset($data["loyalty_account_id"])) { - $this->loyalty_account_id = $data["loyalty_account_id"]; - } else { - $this->loyalty_account_id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["source"])) { - $this->source = $data["source"]; - } else { - $this->source = null; - } - if (isset($data["expire_points"])) { - $this->expire_points = $data["expire_points"]; - } else { - $this->expire_points = null; - } - if (isset($data["other_event"])) { - $this->other_event = $data["other_event"]; - } else { - $this->other_event = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The Square-assigned ID of the loyalty event. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of the loyalty event. See [LoyaltyEventType](#type-loyaltyeventtype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the event was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets accumulate_points - * @return \SquareConnect\Model\LoyaltyEventAccumulatePoints - */ - public function getAccumulatePoints() - { - return $this->accumulate_points; - } - - /** - * Sets accumulate_points - * @param \SquareConnect\Model\LoyaltyEventAccumulatePoints $accumulate_points Provides metadata when the event `type` is `ACCUMULATE_POINTS`. - * @return $this - */ - public function setAccumulatePoints($accumulate_points) - { - $this->accumulate_points = $accumulate_points; - return $this; - } - /** - * Gets create_reward - * @return \SquareConnect\Model\LoyaltyEventCreateReward - */ - public function getCreateReward() - { - return $this->create_reward; - } - - /** - * Sets create_reward - * @param \SquareConnect\Model\LoyaltyEventCreateReward $create_reward Provides metadata when the event `type` is `CREATE_REWARD`. - * @return $this - */ - public function setCreateReward($create_reward) - { - $this->create_reward = $create_reward; - return $this; - } - /** - * Gets redeem_reward - * @return \SquareConnect\Model\LoyaltyEventRedeemReward - */ - public function getRedeemReward() - { - return $this->redeem_reward; - } - - /** - * Sets redeem_reward - * @param \SquareConnect\Model\LoyaltyEventRedeemReward $redeem_reward Provides metadata when the event `type` is `REDEEM_REWARD`. - * @return $this - */ - public function setRedeemReward($redeem_reward) - { - $this->redeem_reward = $redeem_reward; - return $this; - } - /** - * Gets delete_reward - * @return \SquareConnect\Model\LoyaltyEventDeleteReward - */ - public function getDeleteReward() - { - return $this->delete_reward; - } - - /** - * Sets delete_reward - * @param \SquareConnect\Model\LoyaltyEventDeleteReward $delete_reward Provides metadata when the event `type` is `DELETE_REWARD`. - * @return $this - */ - public function setDeleteReward($delete_reward) - { - $this->delete_reward = $delete_reward; - return $this; - } - /** - * Gets adjust_points - * @return \SquareConnect\Model\LoyaltyEventAdjustPoints - */ - public function getAdjustPoints() - { - return $this->adjust_points; - } - - /** - * Sets adjust_points - * @param \SquareConnect\Model\LoyaltyEventAdjustPoints $adjust_points Provides metadata when the event `type` is `ADJUST_POINTS`. - * @return $this - */ - public function setAdjustPoints($adjust_points) - { - $this->adjust_points = $adjust_points; - return $this; - } - /** - * Gets loyalty_account_id - * @return string - */ - public function getLoyaltyAccountId() - { - return $this->loyalty_account_id; - } - - /** - * Sets loyalty_account_id - * @param string $loyalty_account_id The ID of the `loyalty account` in which the event occurred. - * @return $this - */ - public function setLoyaltyAccountId($loyalty_account_id) - { - $this->loyalty_account_id = $loyalty_account_id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the `location` where the event occurred. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets source - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * Sets source - * @param string $source Defines whether the event was generated by the Square Point of Sale. See [LoyaltyEventSource](#type-loyaltyeventsource) for possible values - * @return $this - */ - public function setSource($source) - { - $this->source = $source; - return $this; - } - /** - * Gets expire_points - * @return \SquareConnect\Model\LoyaltyEventExpirePoints - */ - public function getExpirePoints() - { - return $this->expire_points; - } - - /** - * Sets expire_points - * @param \SquareConnect\Model\LoyaltyEventExpirePoints $expire_points Provides metadata when the event `type` is `EXPIRE_POINTS`. - * @return $this - */ - public function setExpirePoints($expire_points) - { - $this->expire_points = $expire_points; - return $this; - } - /** - * Gets other_event - * @return \SquareConnect\Model\LoyaltyEventOther - */ - public function getOtherEvent() - { - return $this->other_event; - } - - /** - * Sets other_event - * @param \SquareConnect\Model\LoyaltyEventOther $other_event Provides metadata when the event `type` is `OTHER`. - * @return $this - */ - public function setOtherEvent($other_event) - { - $this->other_event = $other_event; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventAccumulatePoints.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventAccumulatePoints.php deleted file mode 100644 index e112c0cc37..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventAccumulatePoints.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'points' => 'int', - 'order_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_program_id' => 'loyalty_program_id', - 'points' => 'points', - 'order_id' => 'order_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_program_id' => 'setLoyaltyProgramId', - 'points' => 'setPoints', - 'order_id' => 'setOrderId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_program_id' => 'getLoyaltyProgramId', - 'points' => 'getPoints', - 'order_id' => 'getOrderId' - ); - - /** - * $loyalty_program_id The ID of the `loyalty program`. - * @var string - */ - protected $loyalty_program_id; - /** - * $points The number of points accumulated by the event. - * @var int - */ - protected $points; - /** - * $order_id The ID of the `order` for which the buyer accumulated the points. This field is returned only if the Orders API is used to process orders. - * @var string - */ - protected $order_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_program_id"])) { - $this->loyalty_program_id = $data["loyalty_program_id"]; - } else { - $this->loyalty_program_id = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - } - } - /** - * Gets loyalty_program_id - * @return string - */ - public function getLoyaltyProgramId() - { - return $this->loyalty_program_id; - } - - /** - * Sets loyalty_program_id - * @param string $loyalty_program_id The ID of the `loyalty program`. - * @return $this - */ - public function setLoyaltyProgramId($loyalty_program_id) - { - $this->loyalty_program_id = $loyalty_program_id; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The number of points accumulated by the event. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The ID of the `order` for which the buyer accumulated the points. This field is returned only if the Orders API is used to process orders. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventAdjustPoints.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventAdjustPoints.php deleted file mode 100644 index 6b0bfd769a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventAdjustPoints.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'points' => 'int', - 'reason' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_program_id' => 'loyalty_program_id', - 'points' => 'points', - 'reason' => 'reason' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_program_id' => 'setLoyaltyProgramId', - 'points' => 'setPoints', - 'reason' => 'setReason' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_program_id' => 'getLoyaltyProgramId', - 'points' => 'getPoints', - 'reason' => 'getReason' - ); - - /** - * $loyalty_program_id The Square-assigned ID of the `loyalty program`. - * @var string - */ - protected $loyalty_program_id; - /** - * $points The number of points added or removed. - * @var int - */ - protected $points; - /** - * $reason The reason for the adjustment of points. - * @var string - */ - protected $reason; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_program_id"])) { - $this->loyalty_program_id = $data["loyalty_program_id"]; - } else { - $this->loyalty_program_id = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - if (isset($data["reason"])) { - $this->reason = $data["reason"]; - } else { - $this->reason = null; - } - } - } - /** - * Gets loyalty_program_id - * @return string - */ - public function getLoyaltyProgramId() - { - return $this->loyalty_program_id; - } - - /** - * Sets loyalty_program_id - * @param string $loyalty_program_id The Square-assigned ID of the `loyalty program`. - * @return $this - */ - public function setLoyaltyProgramId($loyalty_program_id) - { - $this->loyalty_program_id = $loyalty_program_id; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The number of points added or removed. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Gets reason - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Sets reason - * @param string $reason The reason for the adjustment of points. - * @return $this - */ - public function setReason($reason) - { - $this->reason = $reason; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventCreateReward.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventCreateReward.php deleted file mode 100644 index 6196dacfe2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventCreateReward.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'reward_id' => 'string', - 'points' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_program_id' => 'loyalty_program_id', - 'reward_id' => 'reward_id', - 'points' => 'points' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_program_id' => 'setLoyaltyProgramId', - 'reward_id' => 'setRewardId', - 'points' => 'setPoints' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_program_id' => 'getLoyaltyProgramId', - 'reward_id' => 'getRewardId', - 'points' => 'getPoints' - ); - - /** - * $loyalty_program_id The ID of the `loyalty program`. - * @var string - */ - protected $loyalty_program_id; - /** - * $reward_id The Square-assigned ID of the created `loyalty reward`. This field is returned only if the event source is `LOYALTY_API`. - * @var string - */ - protected $reward_id; - /** - * $points The loyalty points used to create the reward. - * @var int - */ - protected $points; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_program_id"])) { - $this->loyalty_program_id = $data["loyalty_program_id"]; - } else { - $this->loyalty_program_id = null; - } - if (isset($data["reward_id"])) { - $this->reward_id = $data["reward_id"]; - } else { - $this->reward_id = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - } - } - /** - * Gets loyalty_program_id - * @return string - */ - public function getLoyaltyProgramId() - { - return $this->loyalty_program_id; - } - - /** - * Sets loyalty_program_id - * @param string $loyalty_program_id The ID of the `loyalty program`. - * @return $this - */ - public function setLoyaltyProgramId($loyalty_program_id) - { - $this->loyalty_program_id = $loyalty_program_id; - return $this; - } - /** - * Gets reward_id - * @return string - */ - public function getRewardId() - { - return $this->reward_id; - } - - /** - * Sets reward_id - * @param string $reward_id The Square-assigned ID of the created `loyalty reward`. This field is returned only if the event source is `LOYALTY_API`. - * @return $this - */ - public function setRewardId($reward_id) - { - $this->reward_id = $reward_id; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The loyalty points used to create the reward. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventDateTimeFilter.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventDateTimeFilter.php deleted file mode 100644 index 9ae00f2c47..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventDateTimeFilter.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\TimeRange' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'created_at' => 'created_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'created_at' => 'setCreatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'created_at' => 'getCreatedAt' - ); - - /** - * $created_at The `created_at` date time range used to filter the result. - * @var \SquareConnect\Model\TimeRange - */ - protected $created_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - } - } - /** - * Gets created_at - * @return \SquareConnect\Model\TimeRange - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param \SquareConnect\Model\TimeRange $created_at The `created_at` date time range used to filter the result. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventDeleteReward.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventDeleteReward.php deleted file mode 100644 index 505b234f1a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventDeleteReward.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'reward_id' => 'string', - 'points' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_program_id' => 'loyalty_program_id', - 'reward_id' => 'reward_id', - 'points' => 'points' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_program_id' => 'setLoyaltyProgramId', - 'reward_id' => 'setRewardId', - 'points' => 'setPoints' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_program_id' => 'getLoyaltyProgramId', - 'reward_id' => 'getRewardId', - 'points' => 'getPoints' - ); - - /** - * $loyalty_program_id The ID of the `loyalty program`. - * @var string - */ - protected $loyalty_program_id; - /** - * $reward_id The ID of the deleted `loyalty reward`. This field is returned only if the event source is `LOYALTY_API`. - * @var string - */ - protected $reward_id; - /** - * $points The number of points returned to the loyalty account. - * @var int - */ - protected $points; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_program_id"])) { - $this->loyalty_program_id = $data["loyalty_program_id"]; - } else { - $this->loyalty_program_id = null; - } - if (isset($data["reward_id"])) { - $this->reward_id = $data["reward_id"]; - } else { - $this->reward_id = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - } - } - /** - * Gets loyalty_program_id - * @return string - */ - public function getLoyaltyProgramId() - { - return $this->loyalty_program_id; - } - - /** - * Sets loyalty_program_id - * @param string $loyalty_program_id The ID of the `loyalty program`. - * @return $this - */ - public function setLoyaltyProgramId($loyalty_program_id) - { - $this->loyalty_program_id = $loyalty_program_id; - return $this; - } - /** - * Gets reward_id - * @return string - */ - public function getRewardId() - { - return $this->reward_id; - } - - /** - * Sets reward_id - * @param string $reward_id The ID of the deleted `loyalty reward`. This field is returned only if the event source is `LOYALTY_API`. - * @return $this - */ - public function setRewardId($reward_id) - { - $this->reward_id = $reward_id; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The number of points returned to the loyalty account. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventExpirePoints.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventExpirePoints.php deleted file mode 100644 index 25506e0c63..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventExpirePoints.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'points' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_program_id' => 'loyalty_program_id', - 'points' => 'points' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_program_id' => 'setLoyaltyProgramId', - 'points' => 'setPoints' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_program_id' => 'getLoyaltyProgramId', - 'points' => 'getPoints' - ); - - /** - * $loyalty_program_id The Square-assigned ID of the `loyalty program`. - * @var string - */ - protected $loyalty_program_id; - /** - * $points The number of points expired. - * @var int - */ - protected $points; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_program_id"])) { - $this->loyalty_program_id = $data["loyalty_program_id"]; - } else { - $this->loyalty_program_id = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - } - } - /** - * Gets loyalty_program_id - * @return string - */ - public function getLoyaltyProgramId() - { - return $this->loyalty_program_id; - } - - /** - * Sets loyalty_program_id - * @param string $loyalty_program_id The Square-assigned ID of the `loyalty program`. - * @return $this - */ - public function setLoyaltyProgramId($loyalty_program_id) - { - $this->loyalty_program_id = $loyalty_program_id; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The number of points expired. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventFilter.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventFilter.php deleted file mode 100644 index 31503e8d2b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventFilter.php +++ /dev/null @@ -1,279 +0,0 @@ - '\SquareConnect\Model\LoyaltyEventLoyaltyAccountFilter', - 'type_filter' => '\SquareConnect\Model\LoyaltyEventTypeFilter', - 'date_time_filter' => '\SquareConnect\Model\LoyaltyEventDateTimeFilter', - 'location_filter' => '\SquareConnect\Model\LoyaltyEventLocationFilter', - 'order_filter' => '\SquareConnect\Model\LoyaltyEventOrderFilter' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_account_filter' => 'loyalty_account_filter', - 'type_filter' => 'type_filter', - 'date_time_filter' => 'date_time_filter', - 'location_filter' => 'location_filter', - 'order_filter' => 'order_filter' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_account_filter' => 'setLoyaltyAccountFilter', - 'type_filter' => 'setTypeFilter', - 'date_time_filter' => 'setDateTimeFilter', - 'location_filter' => 'setLocationFilter', - 'order_filter' => 'setOrderFilter' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_account_filter' => 'getLoyaltyAccountFilter', - 'type_filter' => 'getTypeFilter', - 'date_time_filter' => 'getDateTimeFilter', - 'location_filter' => 'getLocationFilter', - 'order_filter' => 'getOrderFilter' - ); - - /** - * $loyalty_account_filter Filter events by loyalty account. - * @var \SquareConnect\Model\LoyaltyEventLoyaltyAccountFilter - */ - protected $loyalty_account_filter; - /** - * $type_filter Filter events by event type. - * @var \SquareConnect\Model\LoyaltyEventTypeFilter - */ - protected $type_filter; - /** - * $date_time_filter Filter events by date time range. For each range, the start time is inclusive and the end time is exclusive. - * @var \SquareConnect\Model\LoyaltyEventDateTimeFilter - */ - protected $date_time_filter; - /** - * $location_filter Filter events by location. - * @var \SquareConnect\Model\LoyaltyEventLocationFilter - */ - protected $location_filter; - /** - * $order_filter Filter events by the order associated with the event. - * @var \SquareConnect\Model\LoyaltyEventOrderFilter - */ - protected $order_filter; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_account_filter"])) { - $this->loyalty_account_filter = $data["loyalty_account_filter"]; - } else { - $this->loyalty_account_filter = null; - } - if (isset($data["type_filter"])) { - $this->type_filter = $data["type_filter"]; - } else { - $this->type_filter = null; - } - if (isset($data["date_time_filter"])) { - $this->date_time_filter = $data["date_time_filter"]; - } else { - $this->date_time_filter = null; - } - if (isset($data["location_filter"])) { - $this->location_filter = $data["location_filter"]; - } else { - $this->location_filter = null; - } - if (isset($data["order_filter"])) { - $this->order_filter = $data["order_filter"]; - } else { - $this->order_filter = null; - } - } - } - /** - * Gets loyalty_account_filter - * @return \SquareConnect\Model\LoyaltyEventLoyaltyAccountFilter - */ - public function getLoyaltyAccountFilter() - { - return $this->loyalty_account_filter; - } - - /** - * Sets loyalty_account_filter - * @param \SquareConnect\Model\LoyaltyEventLoyaltyAccountFilter $loyalty_account_filter Filter events by loyalty account. - * @return $this - */ - public function setLoyaltyAccountFilter($loyalty_account_filter) - { - $this->loyalty_account_filter = $loyalty_account_filter; - return $this; - } - /** - * Gets type_filter - * @return \SquareConnect\Model\LoyaltyEventTypeFilter - */ - public function getTypeFilter() - { - return $this->type_filter; - } - - /** - * Sets type_filter - * @param \SquareConnect\Model\LoyaltyEventTypeFilter $type_filter Filter events by event type. - * @return $this - */ - public function setTypeFilter($type_filter) - { - $this->type_filter = $type_filter; - return $this; - } - /** - * Gets date_time_filter - * @return \SquareConnect\Model\LoyaltyEventDateTimeFilter - */ - public function getDateTimeFilter() - { - return $this->date_time_filter; - } - - /** - * Sets date_time_filter - * @param \SquareConnect\Model\LoyaltyEventDateTimeFilter $date_time_filter Filter events by date time range. For each range, the start time is inclusive and the end time is exclusive. - * @return $this - */ - public function setDateTimeFilter($date_time_filter) - { - $this->date_time_filter = $date_time_filter; - return $this; - } - /** - * Gets location_filter - * @return \SquareConnect\Model\LoyaltyEventLocationFilter - */ - public function getLocationFilter() - { - return $this->location_filter; - } - - /** - * Sets location_filter - * @param \SquareConnect\Model\LoyaltyEventLocationFilter $location_filter Filter events by location. - * @return $this - */ - public function setLocationFilter($location_filter) - { - $this->location_filter = $location_filter; - return $this; - } - /** - * Gets order_filter - * @return \SquareConnect\Model\LoyaltyEventOrderFilter - */ - public function getOrderFilter() - { - return $this->order_filter; - } - - /** - * Sets order_filter - * @param \SquareConnect\Model\LoyaltyEventOrderFilter $order_filter Filter events by the order associated with the event. - * @return $this - */ - public function setOrderFilter($order_filter) - { - $this->order_filter = $order_filter; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventLocationFilter.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventLocationFilter.php deleted file mode 100644 index 79b3bb0d03..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventLocationFilter.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_ids' => 'location_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_ids' => 'setLocationIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_ids' => 'getLocationIds' - ); - - /** - * $location_ids The `location` IDs for loyalty events to query. If multiple values are specified, the endpoint uses a logical OR to combine them. - * @var string[] - */ - protected $location_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - } - } - /** - * Gets location_ids - * @return string[] - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string[] $location_ids The `location` IDs for loyalty events to query. If multiple values are specified, the endpoint uses a logical OR to combine them. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventLoyaltyAccountFilter.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventLoyaltyAccountFilter.php deleted file mode 100644 index 0d7dc7bfa4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventLoyaltyAccountFilter.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_account_id' => 'loyalty_account_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_account_id' => 'setLoyaltyAccountId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_account_id' => 'getLoyaltyAccountId' - ); - - /** - * $loyalty_account_id The ID of the `loyalty account` associated with loyalty events. - * @var string - */ - protected $loyalty_account_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_account_id"])) { - $this->loyalty_account_id = $data["loyalty_account_id"]; - } else { - $this->loyalty_account_id = null; - } - } - } - /** - * Gets loyalty_account_id - * @return string - */ - public function getLoyaltyAccountId() - { - return $this->loyalty_account_id; - } - - /** - * Sets loyalty_account_id - * @param string $loyalty_account_id The ID of the `loyalty account` associated with loyalty events. - * @return $this - */ - public function setLoyaltyAccountId($loyalty_account_id) - { - $this->loyalty_account_id = $loyalty_account_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventOrderFilter.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventOrderFilter.php deleted file mode 100644 index a1c1180632..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventOrderFilter.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_id' => 'order_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_id' => 'setOrderId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_id' => 'getOrderId' - ); - - /** - * $order_id The ID of the `order` associated with the event. - * @var string - */ - protected $order_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - } - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The ID of the `order` associated with the event. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventOther.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventOther.php deleted file mode 100644 index b6c353b9c8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventOther.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'points' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_program_id' => 'loyalty_program_id', - 'points' => 'points' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_program_id' => 'setLoyaltyProgramId', - 'points' => 'setPoints' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_program_id' => 'getLoyaltyProgramId', - 'points' => 'getPoints' - ); - - /** - * $loyalty_program_id The Square-assigned ID of the `loyalty program`. - * @var string - */ - protected $loyalty_program_id; - /** - * $points The number of points added or removed. - * @var int - */ - protected $points; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_program_id"])) { - $this->loyalty_program_id = $data["loyalty_program_id"]; - } else { - $this->loyalty_program_id = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - } - } - /** - * Gets loyalty_program_id - * @return string - */ - public function getLoyaltyProgramId() - { - return $this->loyalty_program_id; - } - - /** - * Sets loyalty_program_id - * @param string $loyalty_program_id The Square-assigned ID of the `loyalty program`. - * @return $this - */ - public function setLoyaltyProgramId($loyalty_program_id) - { - $this->loyalty_program_id = $loyalty_program_id; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The number of points added or removed. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventQuery.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventQuery.php deleted file mode 100644 index e86eba1c9f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventQuery.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\LoyaltyEventFilter' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'filter' => 'filter' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'filter' => 'setFilter' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'filter' => 'getFilter' - ); - - /** - * $filter The query filter criteria. - * @var \SquareConnect\Model\LoyaltyEventFilter - */ - protected $filter; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["filter"])) { - $this->filter = $data["filter"]; - } else { - $this->filter = null; - } - } - } - /** - * Gets filter - * @return \SquareConnect\Model\LoyaltyEventFilter - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Sets filter - * @param \SquareConnect\Model\LoyaltyEventFilter $filter The query filter criteria. - * @return $this - */ - public function setFilter($filter) - { - $this->filter = $filter; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventRedeemReward.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventRedeemReward.php deleted file mode 100644 index 17b25e1aae..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventRedeemReward.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'reward_id' => 'string', - 'order_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_program_id' => 'loyalty_program_id', - 'reward_id' => 'reward_id', - 'order_id' => 'order_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_program_id' => 'setLoyaltyProgramId', - 'reward_id' => 'setRewardId', - 'order_id' => 'setOrderId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_program_id' => 'getLoyaltyProgramId', - 'reward_id' => 'getRewardId', - 'order_id' => 'getOrderId' - ); - - /** - * $loyalty_program_id The ID of the `loyalty program`. - * @var string - */ - protected $loyalty_program_id; - /** - * $reward_id The ID of the redeemed `loyalty reward`. This field is returned only if the event source is `LOYALTY_API`. - * @var string - */ - protected $reward_id; - /** - * $order_id The ID of the `order` that redeemed the reward. This field is returned only if the Orders API is used to process orders. - * @var string - */ - protected $order_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_program_id"])) { - $this->loyalty_program_id = $data["loyalty_program_id"]; - } else { - $this->loyalty_program_id = null; - } - if (isset($data["reward_id"])) { - $this->reward_id = $data["reward_id"]; - } else { - $this->reward_id = null; - } - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - } - } - /** - * Gets loyalty_program_id - * @return string - */ - public function getLoyaltyProgramId() - { - return $this->loyalty_program_id; - } - - /** - * Sets loyalty_program_id - * @param string $loyalty_program_id The ID of the `loyalty program`. - * @return $this - */ - public function setLoyaltyProgramId($loyalty_program_id) - { - $this->loyalty_program_id = $loyalty_program_id; - return $this; - } - /** - * Gets reward_id - * @return string - */ - public function getRewardId() - { - return $this->reward_id; - } - - /** - * Sets reward_id - * @param string $reward_id The ID of the redeemed `loyalty reward`. This field is returned only if the event source is `LOYALTY_API`. - * @return $this - */ - public function setRewardId($reward_id) - { - $this->reward_id = $reward_id; - return $this; - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The ID of the `order` that redeemed the reward. This field is returned only if the Orders API is used to process orders. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventSource.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventSource.php deleted file mode 100644 index be0504d221..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventSource.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventType.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventType.php deleted file mode 100644 index 136ca69885..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventTypeFilter.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventTypeFilter.php deleted file mode 100644 index 1c4bf89ea0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyEventTypeFilter.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'types' => 'types' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'types' => 'setTypes' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'types' => 'getTypes' - ); - - /** - * $types The loyalty event types used to filter the result. If multiple values are specified, the endpoint uses a logical OR to combine them. See [LoyaltyEventType](#type-loyaltyeventtype) for possible values - * @var string[] - */ - protected $types; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["types"])) { - $this->types = $data["types"]; - } else { - $this->types = null; - } - } - } - /** - * Gets types - * @return string[] - */ - public function getTypes() - { - return $this->types; - } - - /** - * Sets types - * @param string[] $types The loyalty event types used to filter the result. If multiple values are specified, the endpoint uses a logical OR to combine them. See [LoyaltyEventType](#type-loyaltyeventtype) for possible values - * @return $this - */ - public function setTypes($types) - { - $this->types = $types; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgram.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgram.php deleted file mode 100644 index b066e2ea3b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgram.php +++ /dev/null @@ -1,411 +0,0 @@ - 'string', - 'status' => 'string', - 'reward_tiers' => '\SquareConnect\Model\LoyaltyProgramRewardTier[]', - 'expiration_policy' => '\SquareConnect\Model\LoyaltyProgramExpirationPolicy', - 'terminology' => '\SquareConnect\Model\LoyaltyProgramTerminology', - 'location_ids' => 'string[]', - 'created_at' => 'string', - 'updated_at' => 'string', - 'accrual_rules' => '\SquareConnect\Model\LoyaltyProgramAccrualRule[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'status' => 'status', - 'reward_tiers' => 'reward_tiers', - 'expiration_policy' => 'expiration_policy', - 'terminology' => 'terminology', - 'location_ids' => 'location_ids', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'accrual_rules' => 'accrual_rules' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'status' => 'setStatus', - 'reward_tiers' => 'setRewardTiers', - 'expiration_policy' => 'setExpirationPolicy', - 'terminology' => 'setTerminology', - 'location_ids' => 'setLocationIds', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'accrual_rules' => 'setAccrualRules' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'status' => 'getStatus', - 'reward_tiers' => 'getRewardTiers', - 'expiration_policy' => 'getExpirationPolicy', - 'terminology' => 'getTerminology', - 'location_ids' => 'getLocationIds', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'accrual_rules' => 'getAccrualRules' - ); - - /** - * $id The Square-assigned ID of the loyalty program. Updates to the loyalty program do not modify the identifier. - * @var string - */ - protected $id; - /** - * $status Whether the program is currently active. See [LoyaltyProgramStatus](#type-loyaltyprogramstatus) for possible values - * @var string - */ - protected $status; - /** - * $reward_tiers The list of rewards for buyers, sorted by ascending points. - * @var \SquareConnect\Model\LoyaltyProgramRewardTier[] - */ - protected $reward_tiers; - /** - * $expiration_policy If present, details for how points expire. - * @var \SquareConnect\Model\LoyaltyProgramExpirationPolicy - */ - protected $expiration_policy; - /** - * $terminology A cosmetic name for the “points” currency. - * @var \SquareConnect\Model\LoyaltyProgramTerminology - */ - protected $terminology; - /** - * $location_ids The `locations` at which the program is active. - * @var string[] - */ - protected $location_ids; - /** - * $created_at The timestamp when the program was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The timestamp when the reward was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - /** - * $accrual_rules Defines how buyers can earn loyalty points. - * @var \SquareConnect\Model\LoyaltyProgramAccrualRule[] - */ - protected $accrual_rules; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["reward_tiers"])) { - $this->reward_tiers = $data["reward_tiers"]; - } else { - $this->reward_tiers = null; - } - if (isset($data["expiration_policy"])) { - $this->expiration_policy = $data["expiration_policy"]; - } else { - $this->expiration_policy = null; - } - if (isset($data["terminology"])) { - $this->terminology = $data["terminology"]; - } else { - $this->terminology = null; - } - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["accrual_rules"])) { - $this->accrual_rules = $data["accrual_rules"]; - } else { - $this->accrual_rules = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The Square-assigned ID of the loyalty program. Updates to the loyalty program do not modify the identifier. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Whether the program is currently active. See [LoyaltyProgramStatus](#type-loyaltyprogramstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets reward_tiers - * @return \SquareConnect\Model\LoyaltyProgramRewardTier[] - */ - public function getRewardTiers() - { - return $this->reward_tiers; - } - - /** - * Sets reward_tiers - * @param \SquareConnect\Model\LoyaltyProgramRewardTier[] $reward_tiers The list of rewards for buyers, sorted by ascending points. - * @return $this - */ - public function setRewardTiers($reward_tiers) - { - $this->reward_tiers = $reward_tiers; - return $this; - } - /** - * Gets expiration_policy - * @return \SquareConnect\Model\LoyaltyProgramExpirationPolicy - */ - public function getExpirationPolicy() - { - return $this->expiration_policy; - } - - /** - * Sets expiration_policy - * @param \SquareConnect\Model\LoyaltyProgramExpirationPolicy $expiration_policy If present, details for how points expire. - * @return $this - */ - public function setExpirationPolicy($expiration_policy) - { - $this->expiration_policy = $expiration_policy; - return $this; - } - /** - * Gets terminology - * @return \SquareConnect\Model\LoyaltyProgramTerminology - */ - public function getTerminology() - { - return $this->terminology; - } - - /** - * Sets terminology - * @param \SquareConnect\Model\LoyaltyProgramTerminology $terminology A cosmetic name for the “points” currency. - * @return $this - */ - public function setTerminology($terminology) - { - $this->terminology = $terminology; - return $this; - } - /** - * Gets location_ids - * @return string[] - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string[] $location_ids The `locations` at which the program is active. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the program was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The timestamp when the reward was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets accrual_rules - * @return \SquareConnect\Model\LoyaltyProgramAccrualRule[] - */ - public function getAccrualRules() - { - return $this->accrual_rules; - } - - /** - * Sets accrual_rules - * @param \SquareConnect\Model\LoyaltyProgramAccrualRule[] $accrual_rules Defines how buyers can earn loyalty points. - * @return $this - */ - public function setAccrualRules($accrual_rules) - { - $this->accrual_rules = $accrual_rules; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramAccrualRule.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramAccrualRule.php deleted file mode 100644 index cfb2643bc7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramAccrualRule.php +++ /dev/null @@ -1,279 +0,0 @@ - 'string', - 'points' => 'int', - 'visit_minimum_amount_money' => '\SquareConnect\Model\Money', - 'spend_amount_money' => '\SquareConnect\Model\Money', - 'catalog_object_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'accrual_type' => 'accrual_type', - 'points' => 'points', - 'visit_minimum_amount_money' => 'visit_minimum_amount_money', - 'spend_amount_money' => 'spend_amount_money', - 'catalog_object_id' => 'catalog_object_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'accrual_type' => 'setAccrualType', - 'points' => 'setPoints', - 'visit_minimum_amount_money' => 'setVisitMinimumAmountMoney', - 'spend_amount_money' => 'setSpendAmountMoney', - 'catalog_object_id' => 'setCatalogObjectId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'accrual_type' => 'getAccrualType', - 'points' => 'getPoints', - 'visit_minimum_amount_money' => 'getVisitMinimumAmountMoney', - 'spend_amount_money' => 'getSpendAmountMoney', - 'catalog_object_id' => 'getCatalogObjectId' - ); - - /** - * $accrual_type The type of the accrual rule that defines how buyers can earn points. See [LoyaltyProgramAccrualRuleType](#type-loyaltyprogramaccrualruletype) for possible values - * @var string - */ - protected $accrual_type; - /** - * $points The number of points that buyers earn based on the `accrual_type`. - * @var int - */ - protected $points; - /** - * $visit_minimum_amount_money When the accrual rule is visit-based (`accrual_type` is `VISIT`), this field indicates the minimum purchase required during the visit to quality for the reward. - * @var \SquareConnect\Model\Money - */ - protected $visit_minimum_amount_money; - /** - * $spend_amount_money When the accrual rule is spend-based (`accrual_type` is `SPEND`), this field indicates the amount that a buyer must spend to earn the points. For example, suppose the accrual rule is \"earn 1 point for every $10 you spend\". Then, buyer earns a point for every $10 they spend. If buyer spends $105, the buyer earns 10 points. - * @var \SquareConnect\Model\Money - */ - protected $spend_amount_money; - /** - * $catalog_object_id The ID of the `catalog object` to purchase to earn the number of points defined by the rule. This is either an item variation or a category, depending on the type. This is defined on `ITEM_VARIATION` rules and `CATEGORY` rules. - * @var string - */ - protected $catalog_object_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["accrual_type"])) { - $this->accrual_type = $data["accrual_type"]; - } else { - $this->accrual_type = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - if (isset($data["visit_minimum_amount_money"])) { - $this->visit_minimum_amount_money = $data["visit_minimum_amount_money"]; - } else { - $this->visit_minimum_amount_money = null; - } - if (isset($data["spend_amount_money"])) { - $this->spend_amount_money = $data["spend_amount_money"]; - } else { - $this->spend_amount_money = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - } - } - /** - * Gets accrual_type - * @return string - */ - public function getAccrualType() - { - return $this->accrual_type; - } - - /** - * Sets accrual_type - * @param string $accrual_type The type of the accrual rule that defines how buyers can earn points. See [LoyaltyProgramAccrualRuleType](#type-loyaltyprogramaccrualruletype) for possible values - * @return $this - */ - public function setAccrualType($accrual_type) - { - $this->accrual_type = $accrual_type; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The number of points that buyers earn based on the `accrual_type`. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Gets visit_minimum_amount_money - * @return \SquareConnect\Model\Money - */ - public function getVisitMinimumAmountMoney() - { - return $this->visit_minimum_amount_money; - } - - /** - * Sets visit_minimum_amount_money - * @param \SquareConnect\Model\Money $visit_minimum_amount_money When the accrual rule is visit-based (`accrual_type` is `VISIT`), this field indicates the minimum purchase required during the visit to quality for the reward. - * @return $this - */ - public function setVisitMinimumAmountMoney($visit_minimum_amount_money) - { - $this->visit_minimum_amount_money = $visit_minimum_amount_money; - return $this; - } - /** - * Gets spend_amount_money - * @return \SquareConnect\Model\Money - */ - public function getSpendAmountMoney() - { - return $this->spend_amount_money; - } - - /** - * Sets spend_amount_money - * @param \SquareConnect\Model\Money $spend_amount_money When the accrual rule is spend-based (`accrual_type` is `SPEND`), this field indicates the amount that a buyer must spend to earn the points. For example, suppose the accrual rule is \"earn 1 point for every $10 you spend\". Then, buyer earns a point for every $10 they spend. If buyer spends $105, the buyer earns 10 points. - * @return $this - */ - public function setSpendAmountMoney($spend_amount_money) - { - $this->spend_amount_money = $spend_amount_money; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The ID of the `catalog object` to purchase to earn the number of points defined by the rule. This is either an item variation or a category, depending on the type. This is defined on `ITEM_VARIATION` rules and `CATEGORY` rules. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramAccrualRuleType.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramAccrualRuleType.php deleted file mode 100644 index f8a2bc4550..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramAccrualRuleType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramExpirationPolicy.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramExpirationPolicy.php deleted file mode 100644 index 357a5f2de3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramExpirationPolicy.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'expiration_duration' => 'expiration_duration' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'expiration_duration' => 'setExpirationDuration' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'expiration_duration' => 'getExpirationDuration' - ); - - /** - * $expiration_duration The duration of time before points expire, in RFC 3339 format. - * @var string - */ - protected $expiration_duration; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["expiration_duration"])) { - $this->expiration_duration = $data["expiration_duration"]; - } else { - $this->expiration_duration = null; - } - } - } - /** - * Gets expiration_duration - * @return string - */ - public function getExpirationDuration() - { - return $this->expiration_duration; - } - - /** - * Sets expiration_duration - * @param string $expiration_duration The duration of time before points expire, in RFC 3339 format. - * @return $this - */ - public function setExpirationDuration($expiration_duration) - { - $this->expiration_duration = $expiration_duration; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinition.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinition.php deleted file mode 100644 index aff3cdfc60..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinition.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'discount_type' => 'string', - 'percentage_discount' => 'string', - 'catalog_object_ids' => 'string[]', - 'fixed_discount_money' => '\SquareConnect\Model\Money', - 'max_discount_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'scope' => 'scope', - 'discount_type' => 'discount_type', - 'percentage_discount' => 'percentage_discount', - 'catalog_object_ids' => 'catalog_object_ids', - 'fixed_discount_money' => 'fixed_discount_money', - 'max_discount_money' => 'max_discount_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'scope' => 'setScope', - 'discount_type' => 'setDiscountType', - 'percentage_discount' => 'setPercentageDiscount', - 'catalog_object_ids' => 'setCatalogObjectIds', - 'fixed_discount_money' => 'setFixedDiscountMoney', - 'max_discount_money' => 'setMaxDiscountMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'scope' => 'getScope', - 'discount_type' => 'getDiscountType', - 'percentage_discount' => 'getPercentageDiscount', - 'catalog_object_ids' => 'getCatalogObjectIds', - 'fixed_discount_money' => 'getFixedDiscountMoney', - 'max_discount_money' => 'getMaxDiscountMoney' - ); - - /** - * $scope Indicates the scope of the reward tier. See [LoyaltyProgramRewardDefinitionScope](#type-loyaltyprogramrewarddefinitionscope) for possible values - * @var string - */ - protected $scope; - /** - * $discount_type The type of discount the reward tier offers. See [LoyaltyProgramRewardDefinitionType](#type-loyaltyprogramrewarddefinitiontype) for possible values - * @var string - */ - protected $discount_type; - /** - * $percentage_discount Present if `discount_type` is `FIXED_PERCENTAGE`. For example, a 7.25% off discount will be represented as \"7.25\". - * @var string - */ - protected $percentage_discount; - /** - * $catalog_object_ids A list of `catalog object` ids to which this reward can be applied. They are either all item-variation ids or category ids, depending on the `type` field. - * @var string[] - */ - protected $catalog_object_ids; - /** - * $fixed_discount_money Present if `discount_type` is `FIXED_AMOUNT`. For example, $5 off. - * @var \SquareConnect\Model\Money - */ - protected $fixed_discount_money; - /** - * $max_discount_money When `discount_type` is `FIXED_PERCENTAGE`, the maximum discount amount that can be applied. - * @var \SquareConnect\Model\Money - */ - protected $max_discount_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["scope"])) { - $this->scope = $data["scope"]; - } else { - $this->scope = null; - } - if (isset($data["discount_type"])) { - $this->discount_type = $data["discount_type"]; - } else { - $this->discount_type = null; - } - if (isset($data["percentage_discount"])) { - $this->percentage_discount = $data["percentage_discount"]; - } else { - $this->percentage_discount = null; - } - if (isset($data["catalog_object_ids"])) { - $this->catalog_object_ids = $data["catalog_object_ids"]; - } else { - $this->catalog_object_ids = null; - } - if (isset($data["fixed_discount_money"])) { - $this->fixed_discount_money = $data["fixed_discount_money"]; - } else { - $this->fixed_discount_money = null; - } - if (isset($data["max_discount_money"])) { - $this->max_discount_money = $data["max_discount_money"]; - } else { - $this->max_discount_money = null; - } - } - } - /** - * Gets scope - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Sets scope - * @param string $scope Indicates the scope of the reward tier. See [LoyaltyProgramRewardDefinitionScope](#type-loyaltyprogramrewarddefinitionscope) for possible values - * @return $this - */ - public function setScope($scope) - { - $this->scope = $scope; - return $this; - } - /** - * Gets discount_type - * @return string - */ - public function getDiscountType() - { - return $this->discount_type; - } - - /** - * Sets discount_type - * @param string $discount_type The type of discount the reward tier offers. See [LoyaltyProgramRewardDefinitionType](#type-loyaltyprogramrewarddefinitiontype) for possible values - * @return $this - */ - public function setDiscountType($discount_type) - { - $this->discount_type = $discount_type; - return $this; - } - /** - * Gets percentage_discount - * @return string - */ - public function getPercentageDiscount() - { - return $this->percentage_discount; - } - - /** - * Sets percentage_discount - * @param string $percentage_discount Present if `discount_type` is `FIXED_PERCENTAGE`. For example, a 7.25% off discount will be represented as \"7.25\". - * @return $this - */ - public function setPercentageDiscount($percentage_discount) - { - $this->percentage_discount = $percentage_discount; - return $this; - } - /** - * Gets catalog_object_ids - * @return string[] - */ - public function getCatalogObjectIds() - { - return $this->catalog_object_ids; - } - - /** - * Sets catalog_object_ids - * @param string[] $catalog_object_ids A list of `catalog object` ids to which this reward can be applied. They are either all item-variation ids or category ids, depending on the `type` field. - * @return $this - */ - public function setCatalogObjectIds($catalog_object_ids) - { - $this->catalog_object_ids = $catalog_object_ids; - return $this; - } - /** - * Gets fixed_discount_money - * @return \SquareConnect\Model\Money - */ - public function getFixedDiscountMoney() - { - return $this->fixed_discount_money; - } - - /** - * Sets fixed_discount_money - * @param \SquareConnect\Model\Money $fixed_discount_money Present if `discount_type` is `FIXED_AMOUNT`. For example, $5 off. - * @return $this - */ - public function setFixedDiscountMoney($fixed_discount_money) - { - $this->fixed_discount_money = $fixed_discount_money; - return $this; - } - /** - * Gets max_discount_money - * @return \SquareConnect\Model\Money - */ - public function getMaxDiscountMoney() - { - return $this->max_discount_money; - } - - /** - * Sets max_discount_money - * @param \SquareConnect\Model\Money $max_discount_money When `discount_type` is `FIXED_PERCENTAGE`, the maximum discount amount that can be applied. - * @return $this - */ - public function setMaxDiscountMoney($max_discount_money) - { - $this->max_discount_money = $max_discount_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinitionScope.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinitionScope.php deleted file mode 100644 index 8285923da1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinitionScope.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinitionType.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinitionType.php deleted file mode 100644 index bb43b4cd6d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardDefinitionType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardTier.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardTier.php deleted file mode 100644 index f7e08c7b80..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramRewardTier.php +++ /dev/null @@ -1,279 +0,0 @@ - 'string', - 'points' => 'int', - 'name' => 'string', - 'definition' => '\SquareConnect\Model\LoyaltyProgramRewardDefinition', - 'created_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'points' => 'points', - 'name' => 'name', - 'definition' => 'definition', - 'created_at' => 'created_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'points' => 'setPoints', - 'name' => 'setName', - 'definition' => 'setDefinition', - 'created_at' => 'setCreatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'points' => 'getPoints', - 'name' => 'getName', - 'definition' => 'getDefinition', - 'created_at' => 'getCreatedAt' - ); - - /** - * $id The Square-assigned ID of the reward tier. - * @var string - */ - protected $id; - /** - * $points The points exchanged for the reward tier. - * @var int - */ - protected $points; - /** - * $name The name of the reward tier. - * @var string - */ - protected $name; - /** - * $definition Provides details about the reward tier definition. - * @var \SquareConnect\Model\LoyaltyProgramRewardDefinition - */ - protected $definition; - /** - * $created_at The timestamp when the reward tier was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["definition"])) { - $this->definition = $data["definition"]; - } else { - $this->definition = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The Square-assigned ID of the reward tier. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The points exchanged for the reward tier. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the reward tier. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets definition - * @return \SquareConnect\Model\LoyaltyProgramRewardDefinition - */ - public function getDefinition() - { - return $this->definition; - } - - /** - * Sets definition - * @param \SquareConnect\Model\LoyaltyProgramRewardDefinition $definition Provides details about the reward tier definition. - * @return $this - */ - public function setDefinition($definition) - { - $this->definition = $definition; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the reward tier was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramStatus.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramStatus.php deleted file mode 100644 index d6b2248fa4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramStatus.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramTerminology.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramTerminology.php deleted file mode 100644 index 56b06d2b20..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyProgramTerminology.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'other' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'one' => 'one', - 'other' => 'other' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'one' => 'setOne', - 'other' => 'setOther' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'one' => 'getOne', - 'other' => 'getOther' - ); - - /** - * $one A singular unit for a point (for example, 1 point is called 1 star). - * @var string - */ - protected $one; - /** - * $other A plural unit for point (for example, 10 points is called 10 stars). - * @var string - */ - protected $other; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["one"])) { - $this->one = $data["one"]; - } else { - $this->one = null; - } - if (isset($data["other"])) { - $this->other = $data["other"]; - } else { - $this->other = null; - } - } - } - /** - * Gets one - * @return string - */ - public function getOne() - { - return $this->one; - } - - /** - * Sets one - * @param string $one A singular unit for a point (for example, 1 point is called 1 star). - * @return $this - */ - public function setOne($one) - { - $this->one = $one; - return $this; - } - /** - * Gets other - * @return string - */ - public function getOther() - { - return $this->other; - } - - /** - * Sets other - * @param string $other A plural unit for point (for example, 10 points is called 10 stars). - * @return $this - */ - public function setOther($other) - { - $this->other = $other; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyReward.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyReward.php deleted file mode 100644 index 7d0a652f14..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyReward.php +++ /dev/null @@ -1,411 +0,0 @@ - 'string', - 'status' => 'string', - 'loyalty_account_id' => 'string', - 'reward_tier_id' => 'string', - 'points' => 'int', - 'order_id' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string', - 'redeemed_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'status' => 'status', - 'loyalty_account_id' => 'loyalty_account_id', - 'reward_tier_id' => 'reward_tier_id', - 'points' => 'points', - 'order_id' => 'order_id', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'redeemed_at' => 'redeemed_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'status' => 'setStatus', - 'loyalty_account_id' => 'setLoyaltyAccountId', - 'reward_tier_id' => 'setRewardTierId', - 'points' => 'setPoints', - 'order_id' => 'setOrderId', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'redeemed_at' => 'setRedeemedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'status' => 'getStatus', - 'loyalty_account_id' => 'getLoyaltyAccountId', - 'reward_tier_id' => 'getRewardTierId', - 'points' => 'getPoints', - 'order_id' => 'getOrderId', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'redeemed_at' => 'getRedeemedAt' - ); - - /** - * $id The Square-assigned ID of the loyalty reward. - * @var string - */ - protected $id; - /** - * $status The status of a loyalty reward. See [LoyaltyRewardStatus](#type-loyaltyrewardstatus) for possible values - * @var string - */ - protected $status; - /** - * $loyalty_account_id The Square-assigned ID of the `loyalty account` to which the reward belongs. - * @var string - */ - protected $loyalty_account_id; - /** - * $reward_tier_id The Square-assigned ID of the `reward tier` used to create the reward. - * @var string - */ - protected $reward_tier_id; - /** - * $points The number of loyalty points used for the reward. - * @var int - */ - protected $points; - /** - * $order_id The Square-assigned ID of the `order` to which the reward is attached. - * @var string - */ - protected $order_id; - /** - * $created_at The timestamp when the reward was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The timestamp when the reward was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - /** - * $redeemed_at The timestamp when the reward was redeemed, in RFC 3339 format. - * @var string - */ - protected $redeemed_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["loyalty_account_id"])) { - $this->loyalty_account_id = $data["loyalty_account_id"]; - } else { - $this->loyalty_account_id = null; - } - if (isset($data["reward_tier_id"])) { - $this->reward_tier_id = $data["reward_tier_id"]; - } else { - $this->reward_tier_id = null; - } - if (isset($data["points"])) { - $this->points = $data["points"]; - } else { - $this->points = null; - } - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["redeemed_at"])) { - $this->redeemed_at = $data["redeemed_at"]; - } else { - $this->redeemed_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The Square-assigned ID of the loyalty reward. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The status of a loyalty reward. See [LoyaltyRewardStatus](#type-loyaltyrewardstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets loyalty_account_id - * @return string - */ - public function getLoyaltyAccountId() - { - return $this->loyalty_account_id; - } - - /** - * Sets loyalty_account_id - * @param string $loyalty_account_id The Square-assigned ID of the `loyalty account` to which the reward belongs. - * @return $this - */ - public function setLoyaltyAccountId($loyalty_account_id) - { - $this->loyalty_account_id = $loyalty_account_id; - return $this; - } - /** - * Gets reward_tier_id - * @return string - */ - public function getRewardTierId() - { - return $this->reward_tier_id; - } - - /** - * Sets reward_tier_id - * @param string $reward_tier_id The Square-assigned ID of the `reward tier` used to create the reward. - * @return $this - */ - public function setRewardTierId($reward_tier_id) - { - $this->reward_tier_id = $reward_tier_id; - return $this; - } - /** - * Gets points - * @return int - */ - public function getPoints() - { - return $this->points; - } - - /** - * Sets points - * @param int $points The number of loyalty points used for the reward. - * @return $this - */ - public function setPoints($points) - { - $this->points = $points; - return $this; - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The Square-assigned ID of the `order` to which the reward is attached. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The timestamp when the reward was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The timestamp when the reward was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets redeemed_at - * @return string - */ - public function getRedeemedAt() - { - return $this->redeemed_at; - } - - /** - * Sets redeemed_at - * @param string $redeemed_at The timestamp when the reward was redeemed, in RFC 3339 format. - * @return $this - */ - public function setRedeemedAt($redeemed_at) - { - $this->redeemed_at = $redeemed_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/LoyaltyRewardStatus.php b/includes/classes/vendors/square/connect/lib/Model/LoyaltyRewardStatus.php deleted file mode 100644 index 38a8697e12..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/LoyaltyRewardStatus.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnit.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnit.php deleted file mode 100644 index 0fda930356..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnit.php +++ /dev/null @@ -1,378 +0,0 @@ - '\SquareConnect\Model\MeasurementUnitCustom', - 'area_unit' => 'string', - 'length_unit' => 'string', - 'volume_unit' => 'string', - 'weight_unit' => 'string', - 'generic_unit' => 'string', - 'time_unit' => 'string', - 'type' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'custom_unit' => 'custom_unit', - 'area_unit' => 'area_unit', - 'length_unit' => 'length_unit', - 'volume_unit' => 'volume_unit', - 'weight_unit' => 'weight_unit', - 'generic_unit' => 'generic_unit', - 'time_unit' => 'time_unit', - 'type' => 'type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'custom_unit' => 'setCustomUnit', - 'area_unit' => 'setAreaUnit', - 'length_unit' => 'setLengthUnit', - 'volume_unit' => 'setVolumeUnit', - 'weight_unit' => 'setWeightUnit', - 'generic_unit' => 'setGenericUnit', - 'time_unit' => 'setTimeUnit', - 'type' => 'setType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'custom_unit' => 'getCustomUnit', - 'area_unit' => 'getAreaUnit', - 'length_unit' => 'getLengthUnit', - 'volume_unit' => 'getVolumeUnit', - 'weight_unit' => 'getWeightUnit', - 'generic_unit' => 'getGenericUnit', - 'time_unit' => 'getTimeUnit', - 'type' => 'getType' - ); - - /** - * $custom_unit A custom unit of measurement defined by the seller using the Point of Sale app or ad-hoc as an order line item. - * @var \SquareConnect\Model\MeasurementUnitCustom - */ - protected $custom_unit; - /** - * $area_unit Represents a standard area unit. See [MeasurementUnitArea](#type-measurementunitarea) for possible values - * @var string - */ - protected $area_unit; - /** - * $length_unit Represents a standard length unit. See [MeasurementUnitLength](#type-measurementunitlength) for possible values - * @var string - */ - protected $length_unit; - /** - * $volume_unit Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values - * @var string - */ - protected $volume_unit; - /** - * $weight_unit Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values - * @var string - */ - protected $weight_unit; - /** - * $generic_unit Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values - * @var string - */ - protected $generic_unit; - /** - * $time_unit Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values - * @var string - */ - protected $time_unit; - /** - * $type Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values - * @var string - */ - protected $type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["custom_unit"])) { - $this->custom_unit = $data["custom_unit"]; - } else { - $this->custom_unit = null; - } - if (isset($data["area_unit"])) { - $this->area_unit = $data["area_unit"]; - } else { - $this->area_unit = null; - } - if (isset($data["length_unit"])) { - $this->length_unit = $data["length_unit"]; - } else { - $this->length_unit = null; - } - if (isset($data["volume_unit"])) { - $this->volume_unit = $data["volume_unit"]; - } else { - $this->volume_unit = null; - } - if (isset($data["weight_unit"])) { - $this->weight_unit = $data["weight_unit"]; - } else { - $this->weight_unit = null; - } - if (isset($data["generic_unit"])) { - $this->generic_unit = $data["generic_unit"]; - } else { - $this->generic_unit = null; - } - if (isset($data["time_unit"])) { - $this->time_unit = $data["time_unit"]; - } else { - $this->time_unit = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - } - } - /** - * Gets custom_unit - * @return \SquareConnect\Model\MeasurementUnitCustom - */ - public function getCustomUnit() - { - return $this->custom_unit; - } - - /** - * Sets custom_unit - * @param \SquareConnect\Model\MeasurementUnitCustom $custom_unit A custom unit of measurement defined by the seller using the Point of Sale app or ad-hoc as an order line item. - * @return $this - */ - public function setCustomUnit($custom_unit) - { - $this->custom_unit = $custom_unit; - return $this; - } - /** - * Gets area_unit - * @return string - */ - public function getAreaUnit() - { - return $this->area_unit; - } - - /** - * Sets area_unit - * @param string $area_unit Represents a standard area unit. See [MeasurementUnitArea](#type-measurementunitarea) for possible values - * @return $this - */ - public function setAreaUnit($area_unit) - { - $this->area_unit = $area_unit; - return $this; - } - /** - * Gets length_unit - * @return string - */ - public function getLengthUnit() - { - return $this->length_unit; - } - - /** - * Sets length_unit - * @param string $length_unit Represents a standard length unit. See [MeasurementUnitLength](#type-measurementunitlength) for possible values - * @return $this - */ - public function setLengthUnit($length_unit) - { - $this->length_unit = $length_unit; - return $this; - } - /** - * Gets volume_unit - * @return string - */ - public function getVolumeUnit() - { - return $this->volume_unit; - } - - /** - * Sets volume_unit - * @param string $volume_unit Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values - * @return $this - */ - public function setVolumeUnit($volume_unit) - { - $this->volume_unit = $volume_unit; - return $this; - } - /** - * Gets weight_unit - * @return string - */ - public function getWeightUnit() - { - return $this->weight_unit; - } - - /** - * Sets weight_unit - * @param string $weight_unit Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values - * @return $this - */ - public function setWeightUnit($weight_unit) - { - $this->weight_unit = $weight_unit; - return $this; - } - /** - * Gets generic_unit - * @return string - */ - public function getGenericUnit() - { - return $this->generic_unit; - } - - /** - * Sets generic_unit - * @param string $generic_unit Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values - * @return $this - */ - public function setGenericUnit($generic_unit) - { - $this->generic_unit = $generic_unit; - return $this; - } - /** - * Gets time_unit - * @return string - */ - public function getTimeUnit() - { - return $this->time_unit; - } - - /** - * Sets time_unit - * @param string $time_unit Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values - * @return $this - */ - public function setTimeUnit($time_unit) - { - $this->time_unit = $time_unit; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitArea.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitArea.php deleted file mode 100644 index 0c08243ee8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitArea.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitCustom.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitCustom.php deleted file mode 100644 index 8096e196d7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitCustom.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'abbreviation' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'abbreviation' => 'abbreviation' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'abbreviation' => 'setAbbreviation' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'abbreviation' => 'getAbbreviation' - ); - - /** - * $name The name of the custom unit, for example \"bushel\". - * @var string - */ - protected $name; - /** - * $abbreviation The abbreviation of the custom unit, such as \"bsh\" (bushel). This appears in the cart for the Point of Sale app, and in reports. - * @var string - */ - protected $abbreviation; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["abbreviation"])) { - $this->abbreviation = $data["abbreviation"]; - } else { - $this->abbreviation = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the custom unit, for example \"bushel\". - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets abbreviation - * @return string - */ - public function getAbbreviation() - { - return $this->abbreviation; - } - - /** - * Sets abbreviation - * @param string $abbreviation The abbreviation of the custom unit, such as \"bsh\" (bushel). This appears in the cart for the Point of Sale app, and in reports. - * @return $this - */ - public function setAbbreviation($abbreviation) - { - $this->abbreviation = $abbreviation; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitGeneric.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitGeneric.php deleted file mode 100644 index e5dd9ac6fb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitGeneric.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitLength.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitLength.php deleted file mode 100644 index 4d9fd21728..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitLength.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitTime.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitTime.php deleted file mode 100644 index 95c521e893..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitTime.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitUnitType.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitUnitType.php deleted file mode 100644 index 6b55cb3306..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitUnitType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitVolume.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitVolume.php deleted file mode 100644 index a77057cfbf..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitVolume.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitWeight.php b/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitWeight.php deleted file mode 100644 index 2b21e620f1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MeasurementUnitWeight.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Merchant.php b/includes/classes/vendors/square/connect/lib/Model/Merchant.php deleted file mode 100644 index c17bff01b9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Merchant.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'business_name' => 'string', - 'country' => 'string', - 'language_code' => 'string', - 'currency' => 'string', - 'status' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'business_name' => 'business_name', - 'country' => 'country', - 'language_code' => 'language_code', - 'currency' => 'currency', - 'status' => 'status' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'business_name' => 'setBusinessName', - 'country' => 'setCountry', - 'language_code' => 'setLanguageCode', - 'currency' => 'setCurrency', - 'status' => 'setStatus' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'business_name' => 'getBusinessName', - 'country' => 'getCountry', - 'language_code' => 'getLanguageCode', - 'currency' => 'getCurrency', - 'status' => 'getStatus' - ); - - /** - * $id The Square-issued ID of the merchant. - * @var string - */ - protected $id; - /** - * $business_name The business name of the merchant. - * @var string - */ - protected $business_name; - /** - * $country The country code associated with the merchant account, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values - * @var string - */ - protected $country; - /** - * $language_code The language code associated with the merchant account, in BCP 47 format. - * @var string - */ - protected $language_code; - /** - * $currency The currency associated with the merchant account, in ISO 4217 format. See [Currency](#type-currency) for possible values - * @var string - */ - protected $currency; - /** - * $status The merchant status, active or inactive. See [MerchantStatus](#type-merchantstatus) for possible values - * @var string - */ - protected $status; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["business_name"])) { - $this->business_name = $data["business_name"]; - } else { - $this->business_name = null; - } - if (isset($data["country"])) { - $this->country = $data["country"]; - } else { - $this->country = null; - } - if (isset($data["language_code"])) { - $this->language_code = $data["language_code"]; - } else { - $this->language_code = null; - } - if (isset($data["currency"])) { - $this->currency = $data["currency"]; - } else { - $this->currency = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The Square-issued ID of the merchant. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets business_name - * @return string - */ - public function getBusinessName() - { - return $this->business_name; - } - - /** - * Sets business_name - * @param string $business_name The business name of the merchant. - * @return $this - */ - public function setBusinessName($business_name) - { - $this->business_name = $business_name; - return $this; - } - /** - * Gets country - * @return string - */ - public function getCountry() - { - return $this->country; - } - - /** - * Sets country - * @param string $country The country code associated with the merchant account, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values - * @return $this - */ - public function setCountry($country) - { - $this->country = $country; - return $this; - } - /** - * Gets language_code - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Sets language_code - * @param string $language_code The language code associated with the merchant account, in BCP 47 format. - * @return $this - */ - public function setLanguageCode($language_code) - { - $this->language_code = $language_code; - return $this; - } - /** - * Gets currency - * @return string - */ - public function getCurrency() - { - return $this->currency; - } - - /** - * Sets currency - * @param string $currency The currency associated with the merchant account, in ISO 4217 format. See [Currency](#type-currency) for possible values - * @return $this - */ - public function setCurrency($currency) - { - $this->currency = $currency; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The merchant status, active or inactive. See [MerchantStatus](#type-merchantstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MerchantStatus.php b/includes/classes/vendors/square/connect/lib/Model/MerchantStatus.php deleted file mode 100644 index 88478cb326..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MerchantStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/MethodErrorCodes.php b/includes/classes/vendors/square/connect/lib/Model/MethodErrorCodes.php deleted file mode 100644 index 49c288d06b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/MethodErrorCodes.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'value' => 'value' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'value' => 'setValue' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'value' => 'getValue' - ); - - /** - * $value See [ErrorCode](#type-errorcode) for possible values - * @var string[] - */ - protected $value; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["value"])) { - $this->value = $data["value"]; - } else { - $this->value = null; - } - } - } - /** - * Gets value - * @return string[] - */ - public function getValue() - { - return $this->value; - } - - /** - * Sets value - * @param string[] $value See [ErrorCode](#type-errorcode) for possible values - * @return $this - */ - public function setValue($value) - { - $this->value = $value; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ModelBreak.php b/includes/classes/vendors/square/connect/lib/Model/ModelBreak.php deleted file mode 100644 index 6289914066..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ModelBreak.php +++ /dev/null @@ -1,344 +0,0 @@ - 'string', - 'start_at' => 'string', - 'end_at' => 'string', - 'break_type_id' => 'string', - 'name' => 'string', - 'expected_duration' => 'string', - 'is_paid' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'start_at' => 'start_at', - 'end_at' => 'end_at', - 'break_type_id' => 'break_type_id', - 'name' => 'name', - 'expected_duration' => 'expected_duration', - 'is_paid' => 'is_paid' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'start_at' => 'setStartAt', - 'end_at' => 'setEndAt', - 'break_type_id' => 'setBreakTypeId', - 'name' => 'setName', - 'expected_duration' => 'setExpectedDuration', - 'is_paid' => 'setIsPaid' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'start_at' => 'getStartAt', - 'end_at' => 'getEndAt', - 'break_type_id' => 'getBreakTypeId', - 'name' => 'getName', - 'expected_duration' => 'getExpectedDuration', - 'is_paid' => 'getIsPaid' - ); - - /** - * $id UUID for this object - * @var string - */ - protected $id; - /** - * $start_at RFC 3339; follows same timezone info as `Shift`. Precision up to the minute is respected; seconds are truncated. - * @var string - */ - protected $start_at; - /** - * $end_at RFC 3339; follows same timezone info as `Shift`. Precision up to the minute is respected; seconds are truncated. The `end_at` minute is not counted when the break length is calculated. For example, a break from `00:00` to `00:11` is considered a 10 minute break (midnight to 10 minutes after midnight). - * @var string - */ - protected $end_at; - /** - * $break_type_id The `BreakType` this `Break` was templated on. - * @var string - */ - protected $break_type_id; - /** - * $name A human-readable name. - * @var string - */ - protected $name; - /** - * $expected_duration Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of the break. - * @var string - */ - protected $expected_duration; - /** - * $is_paid Whether this break counts towards time worked for compensation purposes. - * @var bool - */ - protected $is_paid; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["start_at"])) { - $this->start_at = $data["start_at"]; - } else { - $this->start_at = null; - } - if (isset($data["end_at"])) { - $this->end_at = $data["end_at"]; - } else { - $this->end_at = null; - } - if (isset($data["break_type_id"])) { - $this->break_type_id = $data["break_type_id"]; - } else { - $this->break_type_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["expected_duration"])) { - $this->expected_duration = $data["expected_duration"]; - } else { - $this->expected_duration = null; - } - if (isset($data["is_paid"])) { - $this->is_paid = $data["is_paid"]; - } else { - $this->is_paid = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id UUID for this object - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets start_at - * @return string - */ - public function getStartAt() - { - return $this->start_at; - } - - /** - * Sets start_at - * @param string $start_at RFC 3339; follows same timezone info as `Shift`. Precision up to the minute is respected; seconds are truncated. - * @return $this - */ - public function setStartAt($start_at) - { - $this->start_at = $start_at; - return $this; - } - /** - * Gets end_at - * @return string - */ - public function getEndAt() - { - return $this->end_at; - } - - /** - * Sets end_at - * @param string $end_at RFC 3339; follows same timezone info as `Shift`. Precision up to the minute is respected; seconds are truncated. The `end_at` minute is not counted when the break length is calculated. For example, a break from `00:00` to `00:11` is considered a 10 minute break (midnight to 10 minutes after midnight). - * @return $this - */ - public function setEndAt($end_at) - { - $this->end_at = $end_at; - return $this; - } - /** - * Gets break_type_id - * @return string - */ - public function getBreakTypeId() - { - return $this->break_type_id; - } - - /** - * Sets break_type_id - * @param string $break_type_id The `BreakType` this `Break` was templated on. - * @return $this - */ - public function setBreakTypeId($break_type_id) - { - $this->break_type_id = $break_type_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name A human-readable name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets expected_duration - * @return string - */ - public function getExpectedDuration() - { - return $this->expected_duration; - } - - /** - * Sets expected_duration - * @param string $expected_duration Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of the break. - * @return $this - */ - public function setExpectedDuration($expected_duration) - { - $this->expected_duration = $expected_duration; - return $this; - } - /** - * Gets is_paid - * @return bool - */ - public function getIsPaid() - { - return $this->is_paid; - } - - /** - * Sets is_paid - * @param bool $is_paid Whether this break counts towards time worked for compensation purposes. - * @return $this - */ - public function setIsPaid($is_paid) - { - $this->is_paid = $is_paid; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Money.php b/includes/classes/vendors/square/connect/lib/Model/Money.php deleted file mode 100644 index 2ec7904c67..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Money.php +++ /dev/null @@ -1,179 +0,0 @@ - 'int', - 'currency' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'amount' => 'amount', - 'currency' => 'currency' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'amount' => 'setAmount', - 'currency' => 'setCurrency' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'amount' => 'getAmount', - 'currency' => 'getCurrency' - ); - - /** - * $amount The amount of money, in the smallest denomination of the currency indicated by `currency`. For example, when `currency` is `USD`, `amount` is in cents. Monetary amounts can be positive or negative. See the specific field description to determine the meaning of the sign in a particular case. - * @var int - */ - protected $amount; - /** - * $currency The type of currency, in __ISO 4217 format__. For example, the currency code for US dollars is `USD`. See `Currency` for possible values. See [Currency](#type-currency) for possible values - * @var string - */ - protected $currency; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["amount"])) { - $this->amount = $data["amount"]; - } else { - $this->amount = null; - } - if (isset($data["currency"])) { - $this->currency = $data["currency"]; - } else { - $this->currency = null; - } - } - } - /** - * Gets amount - * @return int - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Sets amount - * @param int $amount The amount of money, in the smallest denomination of the currency indicated by `currency`. For example, when `currency` is `USD`, `amount` is in cents. Monetary amounts can be positive or negative. See the specific field description to determine the meaning of the sign in a particular case. - * @return $this - */ - public function setAmount($amount) - { - $this->amount = $amount; - return $this; - } - /** - * Gets currency - * @return string - */ - public function getCurrency() - { - return $this->currency; - } - - /** - * Sets currency - * @param string $currency The type of currency, in __ISO 4217 format__. For example, the currency code for US dollars is `USD`. See `Currency` for possible values. See [Currency](#type-currency) for possible values - * @return $this - */ - public function setCurrency($currency) - { - $this->currency = $currency; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ObtainTokenRequest.php b/includes/classes/vendors/square/connect/lib/Model/ObtainTokenRequest.php deleted file mode 100644 index 9eb2076b40..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ObtainTokenRequest.php +++ /dev/null @@ -1,344 +0,0 @@ - 'string', - 'client_secret' => 'string', - 'code' => 'string', - 'redirect_uri' => 'string', - 'grant_type' => 'string', - 'refresh_token' => 'string', - 'migration_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'client_id' => 'client_id', - 'client_secret' => 'client_secret', - 'code' => 'code', - 'redirect_uri' => 'redirect_uri', - 'grant_type' => 'grant_type', - 'refresh_token' => 'refresh_token', - 'migration_token' => 'migration_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'client_id' => 'setClientId', - 'client_secret' => 'setClientSecret', - 'code' => 'setCode', - 'redirect_uri' => 'setRedirectUri', - 'grant_type' => 'setGrantType', - 'refresh_token' => 'setRefreshToken', - 'migration_token' => 'setMigrationToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'client_id' => 'getClientId', - 'client_secret' => 'getClientSecret', - 'code' => 'getCode', - 'redirect_uri' => 'getRedirectUri', - 'grant_type' => 'getGrantType', - 'refresh_token' => 'getRefreshToken', - 'migration_token' => 'getMigrationToken' - ); - - /** - * $client_id The Square-issued ID of your application, available from the [application dashboard](https://connect.squareup.com/apps). - * @var string - */ - protected $client_id; - /** - * $client_secret The Square-issued application secret for your application, available from the [application dashboard](https://connect.squareup.com/apps). - * @var string - */ - protected $client_secret; - /** - * $code The authorization code to exchange. This is required if `grant_type` is set to `authorization_code`, to indicate that the application wants to exchange an authorization code for an OAuth access token. - * @var string - */ - protected $code; - /** - * $redirect_uri The redirect URL assigned in the [application dashboard](https://connect.squareup.com/apps). - * @var string - */ - protected $redirect_uri; - /** - * $grant_type Specifies the method to request an OAuth access token. Valid values are: `authorization_code`, `refresh_token`, and `migration_token` - * @var string - */ - protected $grant_type; - /** - * $refresh_token A valid refresh token for generating a new OAuth access token. A valid refresh token is required if `grant_type` is set to `refresh_token` , to indicate the application wants a replacement for an expired OAuth access token. - * @var string - */ - protected $refresh_token; - /** - * $migration_token Legacy OAuth access token obtained using a Connect API version prior to 2019-03-13. This parameter is required if `grant_type` is set to `migration_token` to indicate that the application wants to get a replacement OAuth access token. The response also returns a refresh token. For more information, see [Migrate to Using Refresh Tokens](https://developer.squareup.com/docs/authz/oauth/migration). - * @var string - */ - protected $migration_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["client_id"])) { - $this->client_id = $data["client_id"]; - } else { - $this->client_id = null; - } - if (isset($data["client_secret"])) { - $this->client_secret = $data["client_secret"]; - } else { - $this->client_secret = null; - } - if (isset($data["code"])) { - $this->code = $data["code"]; - } else { - $this->code = null; - } - if (isset($data["redirect_uri"])) { - $this->redirect_uri = $data["redirect_uri"]; - } else { - $this->redirect_uri = null; - } - if (isset($data["grant_type"])) { - $this->grant_type = $data["grant_type"]; - } else { - $this->grant_type = null; - } - if (isset($data["refresh_token"])) { - $this->refresh_token = $data["refresh_token"]; - } else { - $this->refresh_token = null; - } - if (isset($data["migration_token"])) { - $this->migration_token = $data["migration_token"]; - } else { - $this->migration_token = null; - } - } - } - /** - * Gets client_id - * @return string - */ - public function getClientId() - { - return $this->client_id; - } - - /** - * Sets client_id - * @param string $client_id The Square-issued ID of your application, available from the [application dashboard](https://connect.squareup.com/apps). - * @return $this - */ - public function setClientId($client_id) - { - $this->client_id = $client_id; - return $this; - } - /** - * Gets client_secret - * @return string - */ - public function getClientSecret() - { - return $this->client_secret; - } - - /** - * Sets client_secret - * @param string $client_secret The Square-issued application secret for your application, available from the [application dashboard](https://connect.squareup.com/apps). - * @return $this - */ - public function setClientSecret($client_secret) - { - $this->client_secret = $client_secret; - return $this; - } - /** - * Gets code - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * Sets code - * @param string $code The authorization code to exchange. This is required if `grant_type` is set to `authorization_code`, to indicate that the application wants to exchange an authorization code for an OAuth access token. - * @return $this - */ - public function setCode($code) - { - $this->code = $code; - return $this; - } - /** - * Gets redirect_uri - * @return string - */ - public function getRedirectUri() - { - return $this->redirect_uri; - } - - /** - * Sets redirect_uri - * @param string $redirect_uri The redirect URL assigned in the [application dashboard](https://connect.squareup.com/apps). - * @return $this - */ - public function setRedirectUri($redirect_uri) - { - $this->redirect_uri = $redirect_uri; - return $this; - } - /** - * Gets grant_type - * @return string - */ - public function getGrantType() - { - return $this->grant_type; - } - - /** - * Sets grant_type - * @param string $grant_type Specifies the method to request an OAuth access token. Valid values are: `authorization_code`, `refresh_token`, and `migration_token` - * @return $this - */ - public function setGrantType($grant_type) - { - $this->grant_type = $grant_type; - return $this; - } - /** - * Gets refresh_token - * @return string - */ - public function getRefreshToken() - { - return $this->refresh_token; - } - - /** - * Sets refresh_token - * @param string $refresh_token A valid refresh token for generating a new OAuth access token. A valid refresh token is required if `grant_type` is set to `refresh_token` , to indicate the application wants a replacement for an expired OAuth access token. - * @return $this - */ - public function setRefreshToken($refresh_token) - { - $this->refresh_token = $refresh_token; - return $this; - } - /** - * Gets migration_token - * @return string - */ - public function getMigrationToken() - { - return $this->migration_token; - } - - /** - * Sets migration_token - * @param string $migration_token Legacy OAuth access token obtained using a Connect API version prior to 2019-03-13. This parameter is required if `grant_type` is set to `migration_token` to indicate that the application wants to get a replacement OAuth access token. The response also returns a refresh token. For more information, see [Migrate to Using Refresh Tokens](https://developer.squareup.com/docs/authz/oauth/migration). - * @return $this - */ - public function setMigrationToken($migration_token) - { - $this->migration_token = $migration_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ObtainTokenResponse.php b/includes/classes/vendors/square/connect/lib/Model/ObtainTokenResponse.php deleted file mode 100644 index f91662046d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ObtainTokenResponse.php +++ /dev/null @@ -1,377 +0,0 @@ - 'string', - 'token_type' => 'string', - 'expires_at' => 'string', - 'merchant_id' => 'string', - 'subscription_id' => 'string', - 'plan_id' => 'string', - 'id_token' => 'string', - 'refresh_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'access_token' => 'access_token', - 'token_type' => 'token_type', - 'expires_at' => 'expires_at', - 'merchant_id' => 'merchant_id', - 'subscription_id' => 'subscription_id', - 'plan_id' => 'plan_id', - 'id_token' => 'id_token', - 'refresh_token' => 'refresh_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'access_token' => 'setAccessToken', - 'token_type' => 'setTokenType', - 'expires_at' => 'setExpiresAt', - 'merchant_id' => 'setMerchantId', - 'subscription_id' => 'setSubscriptionId', - 'plan_id' => 'setPlanId', - 'id_token' => 'setIdToken', - 'refresh_token' => 'setRefreshToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'access_token' => 'getAccessToken', - 'token_type' => 'getTokenType', - 'expires_at' => 'getExpiresAt', - 'merchant_id' => 'getMerchantId', - 'subscription_id' => 'getSubscriptionId', - 'plan_id' => 'getPlanId', - 'id_token' => 'getIdToken', - 'refresh_token' => 'getRefreshToken' - ); - - /** - * $access_token A valid OAuth access token. OAuth access tokens are 64 bytes long. Provide the access token in a header with every request to Connect API endpoints. See the [Build with OAuth](https://developer.squareup.com/docs/authz/oauth/build-with-the-api) guide for more information. - * @var string - */ - protected $access_token; - /** - * $token_type This value is always _bearer_. - * @var string - */ - protected $token_type; - /** - * $expires_at The date when access_token expires, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format. - * @var string - */ - protected $expires_at; - /** - * $merchant_id The ID of the authorizing merchant's business. - * @var string - */ - protected $merchant_id; - /** - * $subscription_id __LEGACY FIELD__. The ID of a subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. - * @var string - */ - protected $subscription_id; - /** - * $plan_id T__LEGACY FIELD__. The ID of the subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. - * @var string - */ - protected $plan_id; - /** - * $id_token Then OpenID token belonging to this this person. Only present if the OPENID scope is included in the authorize request. - * @var string - */ - protected $id_token; - /** - * $refresh_token A refresh token. OAuth refresh tokens are 64 bytes long. For more information, see [OAuth access token management](https://developer.squareup.com/docs/authz/oauth/how-it-works#oauth-access-token-management). - * @var string - */ - protected $refresh_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["access_token"])) { - $this->access_token = $data["access_token"]; - } else { - $this->access_token = null; - } - if (isset($data["token_type"])) { - $this->token_type = $data["token_type"]; - } else { - $this->token_type = null; - } - if (isset($data["expires_at"])) { - $this->expires_at = $data["expires_at"]; - } else { - $this->expires_at = null; - } - if (isset($data["merchant_id"])) { - $this->merchant_id = $data["merchant_id"]; - } else { - $this->merchant_id = null; - } - if (isset($data["subscription_id"])) { - $this->subscription_id = $data["subscription_id"]; - } else { - $this->subscription_id = null; - } - if (isset($data["plan_id"])) { - $this->plan_id = $data["plan_id"]; - } else { - $this->plan_id = null; - } - if (isset($data["id_token"])) { - $this->id_token = $data["id_token"]; - } else { - $this->id_token = null; - } - if (isset($data["refresh_token"])) { - $this->refresh_token = $data["refresh_token"]; - } else { - $this->refresh_token = null; - } - } - } - /** - * Gets access_token - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Sets access_token - * @param string $access_token A valid OAuth access token. OAuth access tokens are 64 bytes long. Provide the access token in a header with every request to Connect API endpoints. See the [Build with OAuth](https://developer.squareup.com/docs/authz/oauth/build-with-the-api) guide for more information. - * @return $this - */ - public function setAccessToken($access_token) - { - $this->access_token = $access_token; - return $this; - } - /** - * Gets token_type - * @return string - */ - public function getTokenType() - { - return $this->token_type; - } - - /** - * Sets token_type - * @param string $token_type This value is always _bearer_. - * @return $this - */ - public function setTokenType($token_type) - { - $this->token_type = $token_type; - return $this; - } - /** - * Gets expires_at - * @return string - */ - public function getExpiresAt() - { - return $this->expires_at; - } - - /** - * Sets expires_at - * @param string $expires_at The date when access_token expires, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format. - * @return $this - */ - public function setExpiresAt($expires_at) - { - $this->expires_at = $expires_at; - return $this; - } - /** - * Gets merchant_id - * @return string - */ - public function getMerchantId() - { - return $this->merchant_id; - } - - /** - * Sets merchant_id - * @param string $merchant_id The ID of the authorizing merchant's business. - * @return $this - */ - public function setMerchantId($merchant_id) - { - $this->merchant_id = $merchant_id; - return $this; - } - /** - * Gets subscription_id - * @return string - */ - public function getSubscriptionId() - { - return $this->subscription_id; - } - - /** - * Sets subscription_id - * @param string $subscription_id __LEGACY FIELD__. The ID of a subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. - * @return $this - */ - public function setSubscriptionId($subscription_id) - { - $this->subscription_id = $subscription_id; - return $this; - } - /** - * Gets plan_id - * @return string - */ - public function getPlanId() - { - return $this->plan_id; - } - - /** - * Sets plan_id - * @param string $plan_id T__LEGACY FIELD__. The ID of the subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. - * @return $this - */ - public function setPlanId($plan_id) - { - $this->plan_id = $plan_id; - return $this; - } - /** - * Gets id_token - * @return string - */ - public function getIdToken() - { - return $this->id_token; - } - - /** - * Sets id_token - * @param string $id_token Then OpenID token belonging to this this person. Only present if the OPENID scope is included in the authorize request. - * @return $this - */ - public function setIdToken($id_token) - { - $this->id_token = $id_token; - return $this; - } - /** - * Gets refresh_token - * @return string - */ - public function getRefreshToken() - { - return $this->refresh_token; - } - - /** - * Sets refresh_token - * @param string $refresh_token A refresh token. OAuth refresh tokens are 64 bytes long. For more information, see [OAuth access token management](https://developer.squareup.com/docs/authz/oauth/how-it-works#oauth-access-token-management). - * @return $this - */ - public function setRefreshToken($refresh_token) - { - $this->refresh_token = $refresh_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Order.php b/includes/classes/vendors/square/connect/lib/Model/Order.php deleted file mode 100644 index c8f851e149..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Order.php +++ /dev/null @@ -1,1004 +0,0 @@ - 'string', - 'location_id' => 'string', - 'reference_id' => 'string', - 'source' => '\SquareConnect\Model\OrderSource', - 'customer_id' => 'string', - 'line_items' => '\SquareConnect\Model\OrderLineItem[]', - 'taxes' => '\SquareConnect\Model\OrderLineItemTax[]', - 'discounts' => '\SquareConnect\Model\OrderLineItemDiscount[]', - 'service_charges' => '\SquareConnect\Model\OrderServiceCharge[]', - 'fulfillments' => '\SquareConnect\Model\OrderFulfillment[]', - 'returns' => '\SquareConnect\Model\OrderReturn[]', - 'return_amounts' => '\SquareConnect\Model\OrderMoneyAmounts', - 'net_amounts' => '\SquareConnect\Model\OrderMoneyAmounts', - 'rounding_adjustment' => '\SquareConnect\Model\OrderRoundingAdjustment', - 'tenders' => '\SquareConnect\Model\Tender[]', - 'refunds' => '\SquareConnect\Model\Refund[]', - 'metadata' => 'map[string,string]', - 'created_at' => 'string', - 'updated_at' => 'string', - 'closed_at' => 'string', - 'state' => 'string', - 'version' => 'int', - 'total_money' => '\SquareConnect\Model\Money', - 'total_tax_money' => '\SquareConnect\Model\Money', - 'total_discount_money' => '\SquareConnect\Model\Money', - 'total_service_charge_money' => '\SquareConnect\Model\Money', - 'rewards' => '\SquareConnect\Model\OrderReward[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'location_id' => 'location_id', - 'reference_id' => 'reference_id', - 'source' => 'source', - 'customer_id' => 'customer_id', - 'line_items' => 'line_items', - 'taxes' => 'taxes', - 'discounts' => 'discounts', - 'service_charges' => 'service_charges', - 'fulfillments' => 'fulfillments', - 'returns' => 'returns', - 'return_amounts' => 'return_amounts', - 'net_amounts' => 'net_amounts', - 'rounding_adjustment' => 'rounding_adjustment', - 'tenders' => 'tenders', - 'refunds' => 'refunds', - 'metadata' => 'metadata', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'closed_at' => 'closed_at', - 'state' => 'state', - 'version' => 'version', - 'total_money' => 'total_money', - 'total_tax_money' => 'total_tax_money', - 'total_discount_money' => 'total_discount_money', - 'total_service_charge_money' => 'total_service_charge_money', - 'rewards' => 'rewards' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'location_id' => 'setLocationId', - 'reference_id' => 'setReferenceId', - 'source' => 'setSource', - 'customer_id' => 'setCustomerId', - 'line_items' => 'setLineItems', - 'taxes' => 'setTaxes', - 'discounts' => 'setDiscounts', - 'service_charges' => 'setServiceCharges', - 'fulfillments' => 'setFulfillments', - 'returns' => 'setReturns', - 'return_amounts' => 'setReturnAmounts', - 'net_amounts' => 'setNetAmounts', - 'rounding_adjustment' => 'setRoundingAdjustment', - 'tenders' => 'setTenders', - 'refunds' => 'setRefunds', - 'metadata' => 'setMetadata', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'closed_at' => 'setClosedAt', - 'state' => 'setState', - 'version' => 'setVersion', - 'total_money' => 'setTotalMoney', - 'total_tax_money' => 'setTotalTaxMoney', - 'total_discount_money' => 'setTotalDiscountMoney', - 'total_service_charge_money' => 'setTotalServiceChargeMoney', - 'rewards' => 'setRewards' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'location_id' => 'getLocationId', - 'reference_id' => 'getReferenceId', - 'source' => 'getSource', - 'customer_id' => 'getCustomerId', - 'line_items' => 'getLineItems', - 'taxes' => 'getTaxes', - 'discounts' => 'getDiscounts', - 'service_charges' => 'getServiceCharges', - 'fulfillments' => 'getFulfillments', - 'returns' => 'getReturns', - 'return_amounts' => 'getReturnAmounts', - 'net_amounts' => 'getNetAmounts', - 'rounding_adjustment' => 'getRoundingAdjustment', - 'tenders' => 'getTenders', - 'refunds' => 'getRefunds', - 'metadata' => 'getMetadata', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'closed_at' => 'getClosedAt', - 'state' => 'getState', - 'version' => 'getVersion', - 'total_money' => 'getTotalMoney', - 'total_tax_money' => 'getTotalTaxMoney', - 'total_discount_money' => 'getTotalDiscountMoney', - 'total_service_charge_money' => 'getTotalServiceChargeMoney', - 'rewards' => 'getRewards' - ); - - /** - * $id The order's unique ID. - * @var string - */ - protected $id; - /** - * $location_id The ID of the merchant location this order is associated with. - * @var string - */ - protected $location_id; - /** - * $reference_id A client specified identifier to associate an entity in another system with this order. - * @var string - */ - protected $reference_id; - /** - * $source The origination details of the order. - * @var \SquareConnect\Model\OrderSource - */ - protected $source; - /** - * $customer_id The `Customer` ID of the customer associated with the order. - * @var string - */ - protected $customer_id; - /** - * $line_items The line items included in the order. - * @var \SquareConnect\Model\OrderLineItem[] - */ - protected $line_items; - /** - * $taxes The list of all taxes associated with the order. Taxes can be scoped to either `ORDER` or `LINE_ITEM`. For taxes with `LINE_ITEM` scope, an `OrderLineItemAppliedTax` must be added to each line item that the tax applies to. For taxes with `ORDER` scope, the server will generate an `OrderLineItemAppliedTax` for every line item. On reads, each tax in the list will include the total amount of that tax applied to the order. __IMPORTANT__: If `LINE_ITEM` scope is set on any taxes in this field, usage of the deprecated `line_items.taxes` field will result in an error. Please use `line_items.applied_taxes` instead. - * @var \SquareConnect\Model\OrderLineItemTax[] - */ - protected $taxes; - /** - * $discounts The list of all discounts associated with the order. Discounts can be scoped to either `ORDER` or `LINE_ITEM`. For discounts scoped to `LINE_ITEM`, an `OrderLineItemAppliedDiscount` must be added to each line item that the discount applies to. For discounts with `ORDER` scope, the server will generate an `OrderLineItemAppliedDiscount` for every line item. __IMPORTANT__: If `LINE_ITEM` scope is set on any discounts in this field, usage of the deprecated `line_items.discounts` field will result in an error. Please use `line_items.applied_discounts` instead. - * @var \SquareConnect\Model\OrderLineItemDiscount[] - */ - protected $discounts; - /** - * $service_charges A list of service charges applied to the order. - * @var \SquareConnect\Model\OrderServiceCharge[] - */ - protected $service_charges; - /** - * $fulfillments Details on order fulfillment. Orders can only be created with at most one fulfillment. However, orders returned by the API may contain multiple fulfillments. - * @var \SquareConnect\Model\OrderFulfillment[] - */ - protected $fulfillments; - /** - * $returns Collection of items from sale Orders being returned in this one. Normally part of an Itemized Return or Exchange. There will be exactly one `Return` object per sale Order being referenced. - * @var \SquareConnect\Model\OrderReturn[] - */ - protected $returns; - /** - * $return_amounts Rollup of returned money amounts. - * @var \SquareConnect\Model\OrderMoneyAmounts - */ - protected $return_amounts; - /** - * $net_amounts Net money amounts (sale money - return money). - * @var \SquareConnect\Model\OrderMoneyAmounts - */ - protected $net_amounts; - /** - * $rounding_adjustment A positive or negative rounding adjustment to the total of the order, commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. - * @var \SquareConnect\Model\OrderRoundingAdjustment - */ - protected $rounding_adjustment; - /** - * $tenders The Tenders which were used to pay for the Order. - * @var \SquareConnect\Model\Tender[] - */ - protected $tenders; - /** - * $refunds The Refunds that are part of this Order. - * @var \SquareConnect\Model\Refund[] - */ - protected $refunds; - /** - * $metadata Application-defined data attached to this order. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @var map[string,string] - */ - protected $metadata; - /** - * $created_at Timestamp for when the order was created. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $created_at; - /** - * $updated_at Timestamp for when the order was last updated. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $updated_at; - /** - * $closed_at Timestamp for when the order reached a terminal [state](#property-state). In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $closed_at; - /** - * $state The current state of the order. `OPEN`,`COMPLETED`,`CANCELED` See [OrderState](#type-orderstate) for possible values - * @var string - */ - protected $state; - /** - * $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/orders-api/manage-orders#update-orders). - * @var int - */ - protected $version; - /** - * $total_money The total amount of money to collect for the order. - * @var \SquareConnect\Model\Money - */ - protected $total_money; - /** - * $total_tax_money The total tax amount of money to collect for the order. - * @var \SquareConnect\Model\Money - */ - protected $total_tax_money; - /** - * $total_discount_money The total discount amount of money to collect for the order. - * @var \SquareConnect\Model\Money - */ - protected $total_discount_money; - /** - * $total_service_charge_money The total amount of money collected in service charges for the order. Note: `total_service_charge_money` is the sum of `applied_money` fields for each individual service charge. Therefore, `total_service_charge_money` will only include inclusive tax amounts, not additive tax amounts. - * @var \SquareConnect\Model\Money - */ - protected $total_service_charge_money; - /** - * $rewards A set-like list of rewards that have been added to the order. - * @var \SquareConnect\Model\OrderReward[] - */ - protected $rewards; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["source"])) { - $this->source = $data["source"]; - } else { - $this->source = null; - } - if (isset($data["customer_id"])) { - $this->customer_id = $data["customer_id"]; - } else { - $this->customer_id = null; - } - if (isset($data["line_items"])) { - $this->line_items = $data["line_items"]; - } else { - $this->line_items = null; - } - if (isset($data["taxes"])) { - $this->taxes = $data["taxes"]; - } else { - $this->taxes = null; - } - if (isset($data["discounts"])) { - $this->discounts = $data["discounts"]; - } else { - $this->discounts = null; - } - if (isset($data["service_charges"])) { - $this->service_charges = $data["service_charges"]; - } else { - $this->service_charges = null; - } - if (isset($data["fulfillments"])) { - $this->fulfillments = $data["fulfillments"]; - } else { - $this->fulfillments = null; - } - if (isset($data["returns"])) { - $this->returns = $data["returns"]; - } else { - $this->returns = null; - } - if (isset($data["return_amounts"])) { - $this->return_amounts = $data["return_amounts"]; - } else { - $this->return_amounts = null; - } - if (isset($data["net_amounts"])) { - $this->net_amounts = $data["net_amounts"]; - } else { - $this->net_amounts = null; - } - if (isset($data["rounding_adjustment"])) { - $this->rounding_adjustment = $data["rounding_adjustment"]; - } else { - $this->rounding_adjustment = null; - } - if (isset($data["tenders"])) { - $this->tenders = $data["tenders"]; - } else { - $this->tenders = null; - } - if (isset($data["refunds"])) { - $this->refunds = $data["refunds"]; - } else { - $this->refunds = null; - } - if (isset($data["metadata"])) { - $this->metadata = $data["metadata"]; - } else { - $this->metadata = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["closed_at"])) { - $this->closed_at = $data["closed_at"]; - } else { - $this->closed_at = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - if (isset($data["total_tax_money"])) { - $this->total_tax_money = $data["total_tax_money"]; - } else { - $this->total_tax_money = null; - } - if (isset($data["total_discount_money"])) { - $this->total_discount_money = $data["total_discount_money"]; - } else { - $this->total_discount_money = null; - } - if (isset($data["total_service_charge_money"])) { - $this->total_service_charge_money = $data["total_service_charge_money"]; - } else { - $this->total_service_charge_money = null; - } - if (isset($data["rewards"])) { - $this->rewards = $data["rewards"]; - } else { - $this->rewards = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The order's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the merchant location this order is associated with. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id A client specified identifier to associate an entity in another system with this order. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets source - * @return \SquareConnect\Model\OrderSource - */ - public function getSource() - { - return $this->source; - } - - /** - * Sets source - * @param \SquareConnect\Model\OrderSource $source The origination details of the order. - * @return $this - */ - public function setSource($source) - { - $this->source = $source; - return $this; - } - /** - * Gets customer_id - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Sets customer_id - * @param string $customer_id The `Customer` ID of the customer associated with the order. - * @return $this - */ - public function setCustomerId($customer_id) - { - $this->customer_id = $customer_id; - return $this; - } - /** - * Gets line_items - * @return \SquareConnect\Model\OrderLineItem[] - */ - public function getLineItems() - { - return $this->line_items; - } - - /** - * Sets line_items - * @param \SquareConnect\Model\OrderLineItem[] $line_items The line items included in the order. - * @return $this - */ - public function setLineItems($line_items) - { - $this->line_items = $line_items; - return $this; - } - /** - * Gets taxes - * @return \SquareConnect\Model\OrderLineItemTax[] - */ - public function getTaxes() - { - return $this->taxes; - } - - /** - * Sets taxes - * @param \SquareConnect\Model\OrderLineItemTax[] $taxes The list of all taxes associated with the order. Taxes can be scoped to either `ORDER` or `LINE_ITEM`. For taxes with `LINE_ITEM` scope, an `OrderLineItemAppliedTax` must be added to each line item that the tax applies to. For taxes with `ORDER` scope, the server will generate an `OrderLineItemAppliedTax` for every line item. On reads, each tax in the list will include the total amount of that tax applied to the order. __IMPORTANT__: If `LINE_ITEM` scope is set on any taxes in this field, usage of the deprecated `line_items.taxes` field will result in an error. Please use `line_items.applied_taxes` instead. - * @return $this - */ - public function setTaxes($taxes) - { - $this->taxes = $taxes; - return $this; - } - /** - * Gets discounts - * @return \SquareConnect\Model\OrderLineItemDiscount[] - */ - public function getDiscounts() - { - return $this->discounts; - } - - /** - * Sets discounts - * @param \SquareConnect\Model\OrderLineItemDiscount[] $discounts The list of all discounts associated with the order. Discounts can be scoped to either `ORDER` or `LINE_ITEM`. For discounts scoped to `LINE_ITEM`, an `OrderLineItemAppliedDiscount` must be added to each line item that the discount applies to. For discounts with `ORDER` scope, the server will generate an `OrderLineItemAppliedDiscount` for every line item. __IMPORTANT__: If `LINE_ITEM` scope is set on any discounts in this field, usage of the deprecated `line_items.discounts` field will result in an error. Please use `line_items.applied_discounts` instead. - * @return $this - */ - public function setDiscounts($discounts) - { - $this->discounts = $discounts; - return $this; - } - /** - * Gets service_charges - * @return \SquareConnect\Model\OrderServiceCharge[] - */ - public function getServiceCharges() - { - return $this->service_charges; - } - - /** - * Sets service_charges - * @param \SquareConnect\Model\OrderServiceCharge[] $service_charges A list of service charges applied to the order. - * @return $this - */ - public function setServiceCharges($service_charges) - { - $this->service_charges = $service_charges; - return $this; - } - /** - * Gets fulfillments - * @return \SquareConnect\Model\OrderFulfillment[] - */ - public function getFulfillments() - { - return $this->fulfillments; - } - - /** - * Sets fulfillments - * @param \SquareConnect\Model\OrderFulfillment[] $fulfillments Details on order fulfillment. Orders can only be created with at most one fulfillment. However, orders returned by the API may contain multiple fulfillments. - * @return $this - */ - public function setFulfillments($fulfillments) - { - $this->fulfillments = $fulfillments; - return $this; - } - /** - * Gets returns - * @return \SquareConnect\Model\OrderReturn[] - */ - public function getReturns() - { - return $this->returns; - } - - /** - * Sets returns - * @param \SquareConnect\Model\OrderReturn[] $returns Collection of items from sale Orders being returned in this one. Normally part of an Itemized Return or Exchange. There will be exactly one `Return` object per sale Order being referenced. - * @return $this - */ - public function setReturns($returns) - { - $this->returns = $returns; - return $this; - } - /** - * Gets return_amounts - * @return \SquareConnect\Model\OrderMoneyAmounts - */ - public function getReturnAmounts() - { - return $this->return_amounts; - } - - /** - * Sets return_amounts - * @param \SquareConnect\Model\OrderMoneyAmounts $return_amounts Rollup of returned money amounts. - * @return $this - */ - public function setReturnAmounts($return_amounts) - { - $this->return_amounts = $return_amounts; - return $this; - } - /** - * Gets net_amounts - * @return \SquareConnect\Model\OrderMoneyAmounts - */ - public function getNetAmounts() - { - return $this->net_amounts; - } - - /** - * Sets net_amounts - * @param \SquareConnect\Model\OrderMoneyAmounts $net_amounts Net money amounts (sale money - return money). - * @return $this - */ - public function setNetAmounts($net_amounts) - { - $this->net_amounts = $net_amounts; - return $this; - } - /** - * Gets rounding_adjustment - * @return \SquareConnect\Model\OrderRoundingAdjustment - */ - public function getRoundingAdjustment() - { - return $this->rounding_adjustment; - } - - /** - * Sets rounding_adjustment - * @param \SquareConnect\Model\OrderRoundingAdjustment $rounding_adjustment A positive or negative rounding adjustment to the total of the order, commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. - * @return $this - */ - public function setRoundingAdjustment($rounding_adjustment) - { - $this->rounding_adjustment = $rounding_adjustment; - return $this; - } - /** - * Gets tenders - * @return \SquareConnect\Model\Tender[] - */ - public function getTenders() - { - return $this->tenders; - } - - /** - * Sets tenders - * @param \SquareConnect\Model\Tender[] $tenders The Tenders which were used to pay for the Order. - * @return $this - */ - public function setTenders($tenders) - { - $this->tenders = $tenders; - return $this; - } - /** - * Gets refunds - * @return \SquareConnect\Model\Refund[] - */ - public function getRefunds() - { - return $this->refunds; - } - - /** - * Sets refunds - * @param \SquareConnect\Model\Refund[] $refunds The Refunds that are part of this Order. - * @return $this - */ - public function setRefunds($refunds) - { - $this->refunds = $refunds; - return $this; - } - /** - * Gets metadata - * @return map[string,string] - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Sets metadata - * @param map[string,string] $metadata Application-defined data attached to this order. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @return $this - */ - public function setMetadata($metadata) - { - $this->metadata = $metadata; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at Timestamp for when the order was created. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at Timestamp for when the order was last updated. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets closed_at - * @return string - */ - public function getClosedAt() - { - return $this->closed_at; - } - - /** - * Sets closed_at - * @param string $closed_at Timestamp for when the order reached a terminal [state](#property-state). In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setClosedAt($closed_at) - { - $this->closed_at = $closed_at; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The current state of the order. `OPEN`,`COMPLETED`,`CANCELED` See [OrderState](#type-orderstate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/orders-api/manage-orders#update-orders). - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\Money $total_money The total amount of money to collect for the order. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Gets total_tax_money - * @return \SquareConnect\Model\Money - */ - public function getTotalTaxMoney() - { - return $this->total_tax_money; - } - - /** - * Sets total_tax_money - * @param \SquareConnect\Model\Money $total_tax_money The total tax amount of money to collect for the order. - * @return $this - */ - public function setTotalTaxMoney($total_tax_money) - { - $this->total_tax_money = $total_tax_money; - return $this; - } - /** - * Gets total_discount_money - * @return \SquareConnect\Model\Money - */ - public function getTotalDiscountMoney() - { - return $this->total_discount_money; - } - - /** - * Sets total_discount_money - * @param \SquareConnect\Model\Money $total_discount_money The total discount amount of money to collect for the order. - * @return $this - */ - public function setTotalDiscountMoney($total_discount_money) - { - $this->total_discount_money = $total_discount_money; - return $this; - } - /** - * Gets total_service_charge_money - * @return \SquareConnect\Model\Money - */ - public function getTotalServiceChargeMoney() - { - return $this->total_service_charge_money; - } - - /** - * Sets total_service_charge_money - * @param \SquareConnect\Model\Money $total_service_charge_money The total amount of money collected in service charges for the order. Note: `total_service_charge_money` is the sum of `applied_money` fields for each individual service charge. Therefore, `total_service_charge_money` will only include inclusive tax amounts, not additive tax amounts. - * @return $this - */ - public function setTotalServiceChargeMoney($total_service_charge_money) - { - $this->total_service_charge_money = $total_service_charge_money; - return $this; - } - /** - * Gets rewards - * @return \SquareConnect\Model\OrderReward[] - */ - public function getRewards() - { - return $this->rewards; - } - - /** - * Sets rewards - * @param \SquareConnect\Model\OrderReward[] $rewards A set-like list of rewards that have been added to the order. - * @return $this - */ - public function setRewards($rewards) - { - $this->rewards = $rewards; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderCreated.php b/includes/classes/vendors/square/connect/lib/Model/OrderCreated.php deleted file mode 100644 index a7280a2c7a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderCreated.php +++ /dev/null @@ -1,279 +0,0 @@ - 'string', - 'version' => 'int', - 'location_id' => 'string', - 'state' => 'string', - 'created_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_id' => 'order_id', - 'version' => 'version', - 'location_id' => 'location_id', - 'state' => 'state', - 'created_at' => 'created_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_id' => 'setOrderId', - 'version' => 'setVersion', - 'location_id' => 'setLocationId', - 'state' => 'setState', - 'created_at' => 'setCreatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_id' => 'getOrderId', - 'version' => 'getVersion', - 'location_id' => 'getLocationId', - 'state' => 'getState', - 'created_at' => 'getCreatedAt' - ); - - /** - * $order_id The order's unique ID. - * @var string - */ - protected $order_id; - /** - * $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/docs/orders-api/manage-orders#update-orders) - * @var int - */ - protected $version; - /** - * $location_id The ID of the merchant location this order is associated with. - * @var string - */ - protected $location_id; - /** - * $state The state of the order. See [OrderState](#type-orderstate) for possible values - * @var string - */ - protected $state; - /** - * $created_at Timestamp for when the order was created in RFC 3339 format. - * @var string - */ - protected $created_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - } - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The order's unique ID. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/docs/orders-api/manage-orders#update-orders) - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the merchant location this order is associated with. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The state of the order. See [OrderState](#type-orderstate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at Timestamp for when the order was created in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderCreatedObject.php b/includes/classes/vendors/square/connect/lib/Model/OrderCreatedObject.php deleted file mode 100644 index 071853d719..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderCreatedObject.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\OrderCreated' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_created' => 'order_created' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_created' => 'setOrderCreated' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_created' => 'getOrderCreated' - ); - - /** - * $order_created Information about the created order. - * @var \SquareConnect\Model\OrderCreated - */ - protected $order_created; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_created"])) { - $this->order_created = $data["order_created"]; - } else { - $this->order_created = null; - } - } - } - /** - * Gets order_created - * @return \SquareConnect\Model\OrderCreated - */ - public function getOrderCreated() - { - return $this->order_created; - } - - /** - * Sets order_created - * @param \SquareConnect\Model\OrderCreated $order_created Information about the created order. - * @return $this - */ - public function setOrderCreated($order_created) - { - $this->order_created = $order_created; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderEntry.php b/includes/classes/vendors/square/connect/lib/Model/OrderEntry.php deleted file mode 100644 index 4b21715fd7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderEntry.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'version' => 'int', - 'location_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_id' => 'order_id', - 'version' => 'version', - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_id' => 'setOrderId', - 'version' => 'setVersion', - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_id' => 'getOrderId', - 'version' => 'getVersion', - 'location_id' => 'getLocationId' - ); - - /** - * $order_id The id of the Order - * @var string - */ - protected $order_id; - /** - * $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/orders-api/manage-orders#update-orders). - * @var int - */ - protected $version; - /** - * $location_id The location id the Order belongs to. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The id of the Order - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/orders-api/manage-orders#update-orders). - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The location id the Order belongs to. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillment.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillment.php deleted file mode 100644 index f4153dae9e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillment.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'type' => 'string', - 'state' => 'string', - 'metadata' => 'map[string,string]', - 'pickup_details' => '\SquareConnect\Model\OrderFulfillmentPickupDetails', - 'shipment_details' => '\SquareConnect\Model\OrderFulfillmentShipmentDetails' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'type' => 'type', - 'state' => 'state', - 'metadata' => 'metadata', - 'pickup_details' => 'pickup_details', - 'shipment_details' => 'shipment_details' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'type' => 'setType', - 'state' => 'setState', - 'metadata' => 'setMetadata', - 'pickup_details' => 'setPickupDetails', - 'shipment_details' => 'setShipmentDetails' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'type' => 'getType', - 'state' => 'getState', - 'metadata' => 'getMetadata', - 'pickup_details' => 'getPickupDetails', - 'shipment_details' => 'getShipmentDetails' - ); - - /** - * $uid Unique ID that identifies the fulfillment only within this order. - * @var string - */ - protected $uid; - /** - * $type The type of the fulfillment. See [OrderFulfillmentType](#type-orderfulfillmenttype) for possible values - * @var string - */ - protected $type; - /** - * $state The state of the fulfillment. See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values - * @var string - */ - protected $state; - /** - * $metadata Application-defined data attached to this fulfillment. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @var map[string,string] - */ - protected $metadata; - /** - * $pickup_details Contains details for a pickup fulfillment. Required when fulfillment type is `PICKUP`. - * @var \SquareConnect\Model\OrderFulfillmentPickupDetails - */ - protected $pickup_details; - /** - * $shipment_details Contains details for a shipment fulfillment. Required when fulfillment type is `SHIPMENT`. A shipment fulfillment's relationship to fulfillment `state`: `PROPOSED`: A shipment is requested. `RESERVED`: Fulfillment accepted. Shipment processing. `PREPARED`: Shipment packaged. Shipping label created. `COMPLETED`: Package has been shipped. `CANCELED`: Shipment has been canceled. `FAILED`: Shipment has failed. - * @var \SquareConnect\Model\OrderFulfillmentShipmentDetails - */ - protected $shipment_details; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["metadata"])) { - $this->metadata = $data["metadata"]; - } else { - $this->metadata = null; - } - if (isset($data["pickup_details"])) { - $this->pickup_details = $data["pickup_details"]; - } else { - $this->pickup_details = null; - } - if (isset($data["shipment_details"])) { - $this->shipment_details = $data["shipment_details"]; - } else { - $this->shipment_details = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the fulfillment only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of the fulfillment. See [OrderFulfillmentType](#type-orderfulfillmenttype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The state of the fulfillment. See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets metadata - * @return map[string,string] - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Sets metadata - * @param map[string,string] $metadata Application-defined data attached to this fulfillment. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @return $this - */ - public function setMetadata($metadata) - { - $this->metadata = $metadata; - return $this; - } - /** - * Gets pickup_details - * @return \SquareConnect\Model\OrderFulfillmentPickupDetails - */ - public function getPickupDetails() - { - return $this->pickup_details; - } - - /** - * Sets pickup_details - * @param \SquareConnect\Model\OrderFulfillmentPickupDetails $pickup_details Contains details for a pickup fulfillment. Required when fulfillment type is `PICKUP`. - * @return $this - */ - public function setPickupDetails($pickup_details) - { - $this->pickup_details = $pickup_details; - return $this; - } - /** - * Gets shipment_details - * @return \SquareConnect\Model\OrderFulfillmentShipmentDetails - */ - public function getShipmentDetails() - { - return $this->shipment_details; - } - - /** - * Sets shipment_details - * @param \SquareConnect\Model\OrderFulfillmentShipmentDetails $shipment_details Contains details for a shipment fulfillment. Required when fulfillment type is `SHIPMENT`. A shipment fulfillment's relationship to fulfillment `state`: `PROPOSED`: A shipment is requested. `RESERVED`: Fulfillment accepted. Shipment processing. `PREPARED`: Shipment packaged. Shipping label created. `COMPLETED`: Package has been shipped. `CANCELED`: Shipment has been canceled. `FAILED`: Shipment has failed. - * @return $this - */ - public function setShipmentDetails($shipment_details) - { - $this->shipment_details = $shipment_details; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetails.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetails.php deleted file mode 100644 index fac061c7e3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetails.php +++ /dev/null @@ -1,707 +0,0 @@ - '\SquareConnect\Model\OrderFulfillmentRecipient', - 'expires_at' => 'string', - 'auto_complete_duration' => 'string', - 'schedule_type' => 'string', - 'pickup_at' => 'string', - 'pickup_window_duration' => 'string', - 'prep_time_duration' => 'string', - 'note' => 'string', - 'placed_at' => 'string', - 'accepted_at' => 'string', - 'rejected_at' => 'string', - 'ready_at' => 'string', - 'expired_at' => 'string', - 'picked_up_at' => 'string', - 'canceled_at' => 'string', - 'cancel_reason' => 'string', - 'is_curbside_pickup' => 'bool', - 'curbside_pickup_details' => '\SquareConnect\Model\OrderFulfillmentPickupDetailsCurbsidePickupDetails' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'recipient' => 'recipient', - 'expires_at' => 'expires_at', - 'auto_complete_duration' => 'auto_complete_duration', - 'schedule_type' => 'schedule_type', - 'pickup_at' => 'pickup_at', - 'pickup_window_duration' => 'pickup_window_duration', - 'prep_time_duration' => 'prep_time_duration', - 'note' => 'note', - 'placed_at' => 'placed_at', - 'accepted_at' => 'accepted_at', - 'rejected_at' => 'rejected_at', - 'ready_at' => 'ready_at', - 'expired_at' => 'expired_at', - 'picked_up_at' => 'picked_up_at', - 'canceled_at' => 'canceled_at', - 'cancel_reason' => 'cancel_reason', - 'is_curbside_pickup' => 'is_curbside_pickup', - 'curbside_pickup_details' => 'curbside_pickup_details' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'recipient' => 'setRecipient', - 'expires_at' => 'setExpiresAt', - 'auto_complete_duration' => 'setAutoCompleteDuration', - 'schedule_type' => 'setScheduleType', - 'pickup_at' => 'setPickupAt', - 'pickup_window_duration' => 'setPickupWindowDuration', - 'prep_time_duration' => 'setPrepTimeDuration', - 'note' => 'setNote', - 'placed_at' => 'setPlacedAt', - 'accepted_at' => 'setAcceptedAt', - 'rejected_at' => 'setRejectedAt', - 'ready_at' => 'setReadyAt', - 'expired_at' => 'setExpiredAt', - 'picked_up_at' => 'setPickedUpAt', - 'canceled_at' => 'setCanceledAt', - 'cancel_reason' => 'setCancelReason', - 'is_curbside_pickup' => 'setIsCurbsidePickup', - 'curbside_pickup_details' => 'setCurbsidePickupDetails' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'recipient' => 'getRecipient', - 'expires_at' => 'getExpiresAt', - 'auto_complete_duration' => 'getAutoCompleteDuration', - 'schedule_type' => 'getScheduleType', - 'pickup_at' => 'getPickupAt', - 'pickup_window_duration' => 'getPickupWindowDuration', - 'prep_time_duration' => 'getPrepTimeDuration', - 'note' => 'getNote', - 'placed_at' => 'getPlacedAt', - 'accepted_at' => 'getAcceptedAt', - 'rejected_at' => 'getRejectedAt', - 'ready_at' => 'getReadyAt', - 'expired_at' => 'getExpiredAt', - 'picked_up_at' => 'getPickedUpAt', - 'canceled_at' => 'getCanceledAt', - 'cancel_reason' => 'getCancelReason', - 'is_curbside_pickup' => 'getIsCurbsidePickup', - 'curbside_pickup_details' => 'getCurbsidePickupDetails' - ); - - /** - * $recipient Information on the person meant to pick up this fulfillment from a physical location. - * @var \SquareConnect\Model\OrderFulfillmentRecipient - */ - protected $recipient; - /** - * $expires_at The [timestamp](#workingwithdates) indicating when this fulfillment will expire if it is not accepted. Must be in RFC 3339 format e.g., \"2016-09-04T23:59:33.123Z\". Expiration time can only be set up to 7 days in the future. If `expires_at` is not set, this pickup fulfillment will be automatically accepted when placed. - * @var string - */ - protected $expires_at; - /** - * $auto_complete_duration The duration of time after which an open and accepted pickup fulfillment will automatically move to the `COMPLETED` state. Must be in RFC3339 duration format e.g., \"P1W3D\". If not set, this pickup fulfillment will remain accepted until it is canceled or completed. - * @var string - */ - protected $auto_complete_duration; - /** - * $schedule_type The schedule type of the pickup fulfillment. Defaults to `SCHEDULED`. See [OrderFulfillmentPickupDetailsScheduleType](#type-orderfulfillmentpickupdetailsscheduletype) for possible values - * @var string - */ - protected $schedule_type; - /** - * $pickup_at The [timestamp](#workingwithdates) that represents the start of the pickup window. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". For fulfillments with the schedule type `ASAP`, this is automatically set to the current time plus the expected duration to prepare the fulfillment. - * @var string - */ - protected $pickup_at; - /** - * $pickup_window_duration The window of time in which the order should be picked up after the `pickup_at` timestamp. Must be in RFC3339 duration format, e.g., \"P1W3D\". Can be used as an informational guideline for merchants. - * @var string - */ - protected $pickup_window_duration; - /** - * $prep_time_duration The duration of time it takes to prepare this fulfillment. Must be in RFC3339 duration format, e.g., \"P1W3D\". - * @var string - */ - protected $prep_time_duration; - /** - * $note A note meant to provide additional instructions about the pickup fulfillment displayed in the Square Point of Sale and set by the API. - * @var string - */ - protected $note; - /** - * $placed_at The [timestamp](#workingwithdates) indicating when the fulfillment was placed. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $placed_at; - /** - * $accepted_at The [timestamp](#workingwithdates) indicating when the fulfillment was accepted. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $accepted_at; - /** - * $rejected_at The [timestamp](#workingwithdates) indicating when the fulfillment was rejected. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $rejected_at; - /** - * $ready_at The [timestamp](#workingwithdates) indicating when the fulfillment is marked as ready for pickup. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $ready_at; - /** - * $expired_at The [timestamp](#workingwithdates) indicating when the fulfillment expired. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $expired_at; - /** - * $picked_up_at The [timestamp](#workingwithdates) indicating when the fulfillment was picked up by the recipient. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $picked_up_at; - /** - * $canceled_at The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the fulfillment was canceled. - * @var string - */ - protected $canceled_at; - /** - * $cancel_reason A description of why the pickup was canceled. Max length: 100 characters. - * @var string - */ - protected $cancel_reason; - /** - * $is_curbside_pickup If true, indicates this pickup order is for curbside pickup, not in-store pickup. - * @var bool - */ - protected $is_curbside_pickup; - /** - * $curbside_pickup_details Specific details for curbside pickup. Can only be populated if `is_curbside_pickup` is true. - * @var \SquareConnect\Model\OrderFulfillmentPickupDetailsCurbsidePickupDetails - */ - protected $curbside_pickup_details; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["recipient"])) { - $this->recipient = $data["recipient"]; - } else { - $this->recipient = null; - } - if (isset($data["expires_at"])) { - $this->expires_at = $data["expires_at"]; - } else { - $this->expires_at = null; - } - if (isset($data["auto_complete_duration"])) { - $this->auto_complete_duration = $data["auto_complete_duration"]; - } else { - $this->auto_complete_duration = null; - } - if (isset($data["schedule_type"])) { - $this->schedule_type = $data["schedule_type"]; - } else { - $this->schedule_type = null; - } - if (isset($data["pickup_at"])) { - $this->pickup_at = $data["pickup_at"]; - } else { - $this->pickup_at = null; - } - if (isset($data["pickup_window_duration"])) { - $this->pickup_window_duration = $data["pickup_window_duration"]; - } else { - $this->pickup_window_duration = null; - } - if (isset($data["prep_time_duration"])) { - $this->prep_time_duration = $data["prep_time_duration"]; - } else { - $this->prep_time_duration = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["placed_at"])) { - $this->placed_at = $data["placed_at"]; - } else { - $this->placed_at = null; - } - if (isset($data["accepted_at"])) { - $this->accepted_at = $data["accepted_at"]; - } else { - $this->accepted_at = null; - } - if (isset($data["rejected_at"])) { - $this->rejected_at = $data["rejected_at"]; - } else { - $this->rejected_at = null; - } - if (isset($data["ready_at"])) { - $this->ready_at = $data["ready_at"]; - } else { - $this->ready_at = null; - } - if (isset($data["expired_at"])) { - $this->expired_at = $data["expired_at"]; - } else { - $this->expired_at = null; - } - if (isset($data["picked_up_at"])) { - $this->picked_up_at = $data["picked_up_at"]; - } else { - $this->picked_up_at = null; - } - if (isset($data["canceled_at"])) { - $this->canceled_at = $data["canceled_at"]; - } else { - $this->canceled_at = null; - } - if (isset($data["cancel_reason"])) { - $this->cancel_reason = $data["cancel_reason"]; - } else { - $this->cancel_reason = null; - } - if (isset($data["is_curbside_pickup"])) { - $this->is_curbside_pickup = $data["is_curbside_pickup"]; - } else { - $this->is_curbside_pickup = null; - } - if (isset($data["curbside_pickup_details"])) { - $this->curbside_pickup_details = $data["curbside_pickup_details"]; - } else { - $this->curbside_pickup_details = null; - } - } - } - /** - * Gets recipient - * @return \SquareConnect\Model\OrderFulfillmentRecipient - */ - public function getRecipient() - { - return $this->recipient; - } - - /** - * Sets recipient - * @param \SquareConnect\Model\OrderFulfillmentRecipient $recipient Information on the person meant to pick up this fulfillment from a physical location. - * @return $this - */ - public function setRecipient($recipient) - { - $this->recipient = $recipient; - return $this; - } - /** - * Gets expires_at - * @return string - */ - public function getExpiresAt() - { - return $this->expires_at; - } - - /** - * Sets expires_at - * @param string $expires_at The [timestamp](#workingwithdates) indicating when this fulfillment will expire if it is not accepted. Must be in RFC 3339 format e.g., \"2016-09-04T23:59:33.123Z\". Expiration time can only be set up to 7 days in the future. If `expires_at` is not set, this pickup fulfillment will be automatically accepted when placed. - * @return $this - */ - public function setExpiresAt($expires_at) - { - $this->expires_at = $expires_at; - return $this; - } - /** - * Gets auto_complete_duration - * @return string - */ - public function getAutoCompleteDuration() - { - return $this->auto_complete_duration; - } - - /** - * Sets auto_complete_duration - * @param string $auto_complete_duration The duration of time after which an open and accepted pickup fulfillment will automatically move to the `COMPLETED` state. Must be in RFC3339 duration format e.g., \"P1W3D\". If not set, this pickup fulfillment will remain accepted until it is canceled or completed. - * @return $this - */ - public function setAutoCompleteDuration($auto_complete_duration) - { - $this->auto_complete_duration = $auto_complete_duration; - return $this; - } - /** - * Gets schedule_type - * @return string - */ - public function getScheduleType() - { - return $this->schedule_type; - } - - /** - * Sets schedule_type - * @param string $schedule_type The schedule type of the pickup fulfillment. Defaults to `SCHEDULED`. See [OrderFulfillmentPickupDetailsScheduleType](#type-orderfulfillmentpickupdetailsscheduletype) for possible values - * @return $this - */ - public function setScheduleType($schedule_type) - { - $this->schedule_type = $schedule_type; - return $this; - } - /** - * Gets pickup_at - * @return string - */ - public function getPickupAt() - { - return $this->pickup_at; - } - - /** - * Sets pickup_at - * @param string $pickup_at The [timestamp](#workingwithdates) that represents the start of the pickup window. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". For fulfillments with the schedule type `ASAP`, this is automatically set to the current time plus the expected duration to prepare the fulfillment. - * @return $this - */ - public function setPickupAt($pickup_at) - { - $this->pickup_at = $pickup_at; - return $this; - } - /** - * Gets pickup_window_duration - * @return string - */ - public function getPickupWindowDuration() - { - return $this->pickup_window_duration; - } - - /** - * Sets pickup_window_duration - * @param string $pickup_window_duration The window of time in which the order should be picked up after the `pickup_at` timestamp. Must be in RFC3339 duration format, e.g., \"P1W3D\". Can be used as an informational guideline for merchants. - * @return $this - */ - public function setPickupWindowDuration($pickup_window_duration) - { - $this->pickup_window_duration = $pickup_window_duration; - return $this; - } - /** - * Gets prep_time_duration - * @return string - */ - public function getPrepTimeDuration() - { - return $this->prep_time_duration; - } - - /** - * Sets prep_time_duration - * @param string $prep_time_duration The duration of time it takes to prepare this fulfillment. Must be in RFC3339 duration format, e.g., \"P1W3D\". - * @return $this - */ - public function setPrepTimeDuration($prep_time_duration) - { - $this->prep_time_duration = $prep_time_duration; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note A note meant to provide additional instructions about the pickup fulfillment displayed in the Square Point of Sale and set by the API. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets placed_at - * @return string - */ - public function getPlacedAt() - { - return $this->placed_at; - } - - /** - * Sets placed_at - * @param string $placed_at The [timestamp](#workingwithdates) indicating when the fulfillment was placed. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setPlacedAt($placed_at) - { - $this->placed_at = $placed_at; - return $this; - } - /** - * Gets accepted_at - * @return string - */ - public function getAcceptedAt() - { - return $this->accepted_at; - } - - /** - * Sets accepted_at - * @param string $accepted_at The [timestamp](#workingwithdates) indicating when the fulfillment was accepted. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setAcceptedAt($accepted_at) - { - $this->accepted_at = $accepted_at; - return $this; - } - /** - * Gets rejected_at - * @return string - */ - public function getRejectedAt() - { - return $this->rejected_at; - } - - /** - * Sets rejected_at - * @param string $rejected_at The [timestamp](#workingwithdates) indicating when the fulfillment was rejected. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setRejectedAt($rejected_at) - { - $this->rejected_at = $rejected_at; - return $this; - } - /** - * Gets ready_at - * @return string - */ - public function getReadyAt() - { - return $this->ready_at; - } - - /** - * Sets ready_at - * @param string $ready_at The [timestamp](#workingwithdates) indicating when the fulfillment is marked as ready for pickup. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setReadyAt($ready_at) - { - $this->ready_at = $ready_at; - return $this; - } - /** - * Gets expired_at - * @return string - */ - public function getExpiredAt() - { - return $this->expired_at; - } - - /** - * Sets expired_at - * @param string $expired_at The [timestamp](#workingwithdates) indicating when the fulfillment expired. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setExpiredAt($expired_at) - { - $this->expired_at = $expired_at; - return $this; - } - /** - * Gets picked_up_at - * @return string - */ - public function getPickedUpAt() - { - return $this->picked_up_at; - } - - /** - * Sets picked_up_at - * @param string $picked_up_at The [timestamp](#workingwithdates) indicating when the fulfillment was picked up by the recipient. In RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setPickedUpAt($picked_up_at) - { - $this->picked_up_at = $picked_up_at; - return $this; - } - /** - * Gets canceled_at - * @return string - */ - public function getCanceledAt() - { - return $this->canceled_at; - } - - /** - * Sets canceled_at - * @param string $canceled_at The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the fulfillment was canceled. - * @return $this - */ - public function setCanceledAt($canceled_at) - { - $this->canceled_at = $canceled_at; - return $this; - } - /** - * Gets cancel_reason - * @return string - */ - public function getCancelReason() - { - return $this->cancel_reason; - } - - /** - * Sets cancel_reason - * @param string $cancel_reason A description of why the pickup was canceled. Max length: 100 characters. - * @return $this - */ - public function setCancelReason($cancel_reason) - { - $this->cancel_reason = $cancel_reason; - return $this; - } - /** - * Gets is_curbside_pickup - * @return bool - */ - public function getIsCurbsidePickup() - { - return $this->is_curbside_pickup; - } - - /** - * Sets is_curbside_pickup - * @param bool $is_curbside_pickup If true, indicates this pickup order is for curbside pickup, not in-store pickup. - * @return $this - */ - public function setIsCurbsidePickup($is_curbside_pickup) - { - $this->is_curbside_pickup = $is_curbside_pickup; - return $this; - } - /** - * Gets curbside_pickup_details - * @return \SquareConnect\Model\OrderFulfillmentPickupDetailsCurbsidePickupDetails - */ - public function getCurbsidePickupDetails() - { - return $this->curbside_pickup_details; - } - - /** - * Sets curbside_pickup_details - * @param \SquareConnect\Model\OrderFulfillmentPickupDetailsCurbsidePickupDetails $curbside_pickup_details Specific details for curbside pickup. Can only be populated if `is_curbside_pickup` is true. - * @return $this - */ - public function setCurbsidePickupDetails($curbside_pickup_details) - { - $this->curbside_pickup_details = $curbside_pickup_details; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetailsCurbsidePickupDetails.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetailsCurbsidePickupDetails.php deleted file mode 100644 index f87503067f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetailsCurbsidePickupDetails.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'buyer_arrived_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'curbside_details' => 'curbside_details', - 'buyer_arrived_at' => 'buyer_arrived_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'curbside_details' => 'setCurbsideDetails', - 'buyer_arrived_at' => 'setBuyerArrivedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'curbside_details' => 'getCurbsideDetails', - 'buyer_arrived_at' => 'getBuyerArrivedAt' - ); - - /** - * $curbside_details Specific details for curbside pickup, such as parking number, vehicle model, etc. - * @var string - */ - protected $curbside_details; - /** - * $buyer_arrived_at The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the buyer arrived and is waiting for pickup. - * @var string - */ - protected $buyer_arrived_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["curbside_details"])) { - $this->curbside_details = $data["curbside_details"]; - } else { - $this->curbside_details = null; - } - if (isset($data["buyer_arrived_at"])) { - $this->buyer_arrived_at = $data["buyer_arrived_at"]; - } else { - $this->buyer_arrived_at = null; - } - } - } - /** - * Gets curbside_details - * @return string - */ - public function getCurbsideDetails() - { - return $this->curbside_details; - } - - /** - * Sets curbside_details - * @param string $curbside_details Specific details for curbside pickup, such as parking number, vehicle model, etc. - * @return $this - */ - public function setCurbsideDetails($curbside_details) - { - $this->curbside_details = $curbside_details; - return $this; - } - /** - * Gets buyer_arrived_at - * @return string - */ - public function getBuyerArrivedAt() - { - return $this->buyer_arrived_at; - } - - /** - * Sets buyer_arrived_at - * @param string $buyer_arrived_at The [timestamp](#workingwithdates) in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\", indicating when the buyer arrived and is waiting for pickup. - * @return $this - */ - public function setBuyerArrivedAt($buyer_arrived_at) - { - $this->buyer_arrived_at = $buyer_arrived_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetailsScheduleType.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetailsScheduleType.php deleted file mode 100644 index 110fb074ce..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentPickupDetailsScheduleType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentRecipient.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentRecipient.php deleted file mode 100644 index 18f3c8de90..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentRecipient.php +++ /dev/null @@ -1,278 +0,0 @@ - 'string', - 'display_name' => 'string', - 'email_address' => 'string', - 'phone_number' => 'string', - 'address' => '\SquareConnect\Model\Address' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'customer_id' => 'customer_id', - 'display_name' => 'display_name', - 'email_address' => 'email_address', - 'phone_number' => 'phone_number', - 'address' => 'address' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'customer_id' => 'setCustomerId', - 'display_name' => 'setDisplayName', - 'email_address' => 'setEmailAddress', - 'phone_number' => 'setPhoneNumber', - 'address' => 'setAddress' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'customer_id' => 'getCustomerId', - 'display_name' => 'getDisplayName', - 'email_address' => 'getEmailAddress', - 'phone_number' => 'getPhoneNumber', - 'address' => 'getAddress' - ); - - /** - * $customer_id The Customer ID of the customer associated with the fulfillment. If `customer_id` is provided, the fulfillment recipient's `display_name`, `email_address`, and `phone_number` are automatically populated from the targeted customer profile. If these fields are set in the request, the request values will override the information from the customer profile. If the targeted customer profile does not contain the necessary information and these fields are left unset, the request will result in an error. - * @var string - */ - protected $customer_id; - /** - * $display_name The display name of the fulfillment recipient. If provided, overrides the value pulled from the customer profile indicated by `customer_id`. - * @var string - */ - protected $display_name; - /** - * $email_address The email address of the fulfillment recipient. If provided, overrides the value pulled from the customer profile indicated by `customer_id`. - * @var string - */ - protected $email_address; - /** - * $phone_number The phone number of the fulfillment recipient. If provided, overrides the value pulled from the customer profile indicated by `customer_id`. - * @var string - */ - protected $phone_number; - /** - * $address The address of the fulfillment recipient. If provided, overrides the value pulled from the customer profile indicated by `customer_id`. - * @var \SquareConnect\Model\Address - */ - protected $address; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["customer_id"])) { - $this->customer_id = $data["customer_id"]; - } else { - $this->customer_id = null; - } - if (isset($data["display_name"])) { - $this->display_name = $data["display_name"]; - } else { - $this->display_name = null; - } - if (isset($data["email_address"])) { - $this->email_address = $data["email_address"]; - } else { - $this->email_address = null; - } - if (isset($data["phone_number"])) { - $this->phone_number = $data["phone_number"]; - } else { - $this->phone_number = null; - } - if (isset($data["address"])) { - $this->address = $data["address"]; - } else { - $this->address = null; - } - } - } - /** - * Gets customer_id - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Sets customer_id - * @param string $customer_id The Customer ID of the customer associated with the fulfillment. If `customer_id` is provided, the fulfillment recipient's `display_name`, `email_address`, and `phone_number` are automatically populated from the targeted customer profile. If these fields are set in the request, the request values will override the information from the customer profile. If the targeted customer profile does not contain the necessary information and these fields are left unset, the request will result in an error. - * @return $this - */ - public function setCustomerId($customer_id) - { - $this->customer_id = $customer_id; - return $this; - } - /** - * Gets display_name - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Sets display_name - * @param string $display_name The display name of the fulfillment recipient. If provided, overrides the value pulled from the customer profile indicated by `customer_id`. - * @return $this - */ - public function setDisplayName($display_name) - { - $this->display_name = $display_name; - return $this; - } - /** - * Gets email_address - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Sets email_address - * @param string $email_address The email address of the fulfillment recipient. If provided, overrides the value pulled from the customer profile indicated by `customer_id`. - * @return $this - */ - public function setEmailAddress($email_address) - { - $this->email_address = $email_address; - return $this; - } - /** - * Gets phone_number - * @return string - */ - public function getPhoneNumber() - { - return $this->phone_number; - } - - /** - * Sets phone_number - * @param string $phone_number The phone number of the fulfillment recipient. If provided, overrides the value pulled from the customer profile indicated by `customer_id`. - * @return $this - */ - public function setPhoneNumber($phone_number) - { - $this->phone_number = $phone_number; - return $this; - } - /** - * Gets address - * @return \SquareConnect\Model\Address - */ - public function getAddress() - { - return $this->address; - } - - /** - * Sets address - * @param \SquareConnect\Model\Address $address The address of the fulfillment recipient. If provided, overrides the value pulled from the customer profile indicated by `customer_id`. - * @return $this - */ - public function setAddress($address) - { - $this->address = $address; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentShipmentDetails.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentShipmentDetails.php deleted file mode 100644 index a8882c1d2a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentShipmentDetails.php +++ /dev/null @@ -1,609 +0,0 @@ - '\SquareConnect\Model\OrderFulfillmentRecipient', - 'carrier' => 'string', - 'shipping_note' => 'string', - 'shipping_type' => 'string', - 'tracking_number' => 'string', - 'tracking_url' => 'string', - 'placed_at' => 'string', - 'in_progress_at' => 'string', - 'packaged_at' => 'string', - 'expected_shipped_at' => 'string', - 'shipped_at' => 'string', - 'canceled_at' => 'string', - 'cancel_reason' => 'string', - 'failed_at' => 'string', - 'failure_reason' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'recipient' => 'recipient', - 'carrier' => 'carrier', - 'shipping_note' => 'shipping_note', - 'shipping_type' => 'shipping_type', - 'tracking_number' => 'tracking_number', - 'tracking_url' => 'tracking_url', - 'placed_at' => 'placed_at', - 'in_progress_at' => 'in_progress_at', - 'packaged_at' => 'packaged_at', - 'expected_shipped_at' => 'expected_shipped_at', - 'shipped_at' => 'shipped_at', - 'canceled_at' => 'canceled_at', - 'cancel_reason' => 'cancel_reason', - 'failed_at' => 'failed_at', - 'failure_reason' => 'failure_reason' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'recipient' => 'setRecipient', - 'carrier' => 'setCarrier', - 'shipping_note' => 'setShippingNote', - 'shipping_type' => 'setShippingType', - 'tracking_number' => 'setTrackingNumber', - 'tracking_url' => 'setTrackingUrl', - 'placed_at' => 'setPlacedAt', - 'in_progress_at' => 'setInProgressAt', - 'packaged_at' => 'setPackagedAt', - 'expected_shipped_at' => 'setExpectedShippedAt', - 'shipped_at' => 'setShippedAt', - 'canceled_at' => 'setCanceledAt', - 'cancel_reason' => 'setCancelReason', - 'failed_at' => 'setFailedAt', - 'failure_reason' => 'setFailureReason' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'recipient' => 'getRecipient', - 'carrier' => 'getCarrier', - 'shipping_note' => 'getShippingNote', - 'shipping_type' => 'getShippingType', - 'tracking_number' => 'getTrackingNumber', - 'tracking_url' => 'getTrackingUrl', - 'placed_at' => 'getPlacedAt', - 'in_progress_at' => 'getInProgressAt', - 'packaged_at' => 'getPackagedAt', - 'expected_shipped_at' => 'getExpectedShippedAt', - 'shipped_at' => 'getShippedAt', - 'canceled_at' => 'getCanceledAt', - 'cancel_reason' => 'getCancelReason', - 'failed_at' => 'getFailedAt', - 'failure_reason' => 'getFailureReason' - ); - - /** - * $recipient Information on the person meant to receive this shipment fulfillment. - * @var \SquareConnect\Model\OrderFulfillmentRecipient - */ - protected $recipient; - /** - * $carrier The shipping carrier being used to ship this fulfillment e.g. UPS, FedEx, USPS, etc. - * @var string - */ - protected $carrier; - /** - * $shipping_note A note with additional information for the shipping carrier. - * @var string - */ - protected $shipping_note; - /** - * $shipping_type A description of the type of shipping product purchased from the carrier. e.g. First Class, Priority, Express - * @var string - */ - protected $shipping_type; - /** - * $tracking_number The reference number provided by the carrier to track the shipment's progress. - * @var string - */ - protected $tracking_number; - /** - * $tracking_url A link to the tracking webpage on the carrier's website. - * @var string - */ - protected $tracking_url; - /** - * $placed_at The [timestamp](#workingwithdates) indicating when the shipment was requested. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $placed_at; - /** - * $in_progress_at The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `RESERVED` state. Indicates that preparation of this shipment has begun. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $in_progress_at; - /** - * $packaged_at The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `PREPARED` state. Indicates that the fulfillment is packaged. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $packaged_at; - /** - * $expected_shipped_at The [timestamp](#workingwithdates) indicating when the shipment is expected to be delivered to the shipping carrier. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $expected_shipped_at; - /** - * $shipped_at The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `COMPLETED`state. Indicates that the fulfillment has been given to the shipping carrier. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $shipped_at; - /** - * $canceled_at The [timestamp](#workingwithdates) indicating the shipment was canceled. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $canceled_at; - /** - * $cancel_reason A description of why the shipment was canceled. - * @var string - */ - protected $cancel_reason; - /** - * $failed_at The [timestamp](#workingwithdates) indicating when the shipment failed to be completed. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @var string - */ - protected $failed_at; - /** - * $failure_reason A description of why the shipment failed to be completed. - * @var string - */ - protected $failure_reason; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["recipient"])) { - $this->recipient = $data["recipient"]; - } else { - $this->recipient = null; - } - if (isset($data["carrier"])) { - $this->carrier = $data["carrier"]; - } else { - $this->carrier = null; - } - if (isset($data["shipping_note"])) { - $this->shipping_note = $data["shipping_note"]; - } else { - $this->shipping_note = null; - } - if (isset($data["shipping_type"])) { - $this->shipping_type = $data["shipping_type"]; - } else { - $this->shipping_type = null; - } - if (isset($data["tracking_number"])) { - $this->tracking_number = $data["tracking_number"]; - } else { - $this->tracking_number = null; - } - if (isset($data["tracking_url"])) { - $this->tracking_url = $data["tracking_url"]; - } else { - $this->tracking_url = null; - } - if (isset($data["placed_at"])) { - $this->placed_at = $data["placed_at"]; - } else { - $this->placed_at = null; - } - if (isset($data["in_progress_at"])) { - $this->in_progress_at = $data["in_progress_at"]; - } else { - $this->in_progress_at = null; - } - if (isset($data["packaged_at"])) { - $this->packaged_at = $data["packaged_at"]; - } else { - $this->packaged_at = null; - } - if (isset($data["expected_shipped_at"])) { - $this->expected_shipped_at = $data["expected_shipped_at"]; - } else { - $this->expected_shipped_at = null; - } - if (isset($data["shipped_at"])) { - $this->shipped_at = $data["shipped_at"]; - } else { - $this->shipped_at = null; - } - if (isset($data["canceled_at"])) { - $this->canceled_at = $data["canceled_at"]; - } else { - $this->canceled_at = null; - } - if (isset($data["cancel_reason"])) { - $this->cancel_reason = $data["cancel_reason"]; - } else { - $this->cancel_reason = null; - } - if (isset($data["failed_at"])) { - $this->failed_at = $data["failed_at"]; - } else { - $this->failed_at = null; - } - if (isset($data["failure_reason"])) { - $this->failure_reason = $data["failure_reason"]; - } else { - $this->failure_reason = null; - } - } - } - /** - * Gets recipient - * @return \SquareConnect\Model\OrderFulfillmentRecipient - */ - public function getRecipient() - { - return $this->recipient; - } - - /** - * Sets recipient - * @param \SquareConnect\Model\OrderFulfillmentRecipient $recipient Information on the person meant to receive this shipment fulfillment. - * @return $this - */ - public function setRecipient($recipient) - { - $this->recipient = $recipient; - return $this; - } - /** - * Gets carrier - * @return string - */ - public function getCarrier() - { - return $this->carrier; - } - - /** - * Sets carrier - * @param string $carrier The shipping carrier being used to ship this fulfillment e.g. UPS, FedEx, USPS, etc. - * @return $this - */ - public function setCarrier($carrier) - { - $this->carrier = $carrier; - return $this; - } - /** - * Gets shipping_note - * @return string - */ - public function getShippingNote() - { - return $this->shipping_note; - } - - /** - * Sets shipping_note - * @param string $shipping_note A note with additional information for the shipping carrier. - * @return $this - */ - public function setShippingNote($shipping_note) - { - $this->shipping_note = $shipping_note; - return $this; - } - /** - * Gets shipping_type - * @return string - */ - public function getShippingType() - { - return $this->shipping_type; - } - - /** - * Sets shipping_type - * @param string $shipping_type A description of the type of shipping product purchased from the carrier. e.g. First Class, Priority, Express - * @return $this - */ - public function setShippingType($shipping_type) - { - $this->shipping_type = $shipping_type; - return $this; - } - /** - * Gets tracking_number - * @return string - */ - public function getTrackingNumber() - { - return $this->tracking_number; - } - - /** - * Sets tracking_number - * @param string $tracking_number The reference number provided by the carrier to track the shipment's progress. - * @return $this - */ - public function setTrackingNumber($tracking_number) - { - $this->tracking_number = $tracking_number; - return $this; - } - /** - * Gets tracking_url - * @return string - */ - public function getTrackingUrl() - { - return $this->tracking_url; - } - - /** - * Sets tracking_url - * @param string $tracking_url A link to the tracking webpage on the carrier's website. - * @return $this - */ - public function setTrackingUrl($tracking_url) - { - $this->tracking_url = $tracking_url; - return $this; - } - /** - * Gets placed_at - * @return string - */ - public function getPlacedAt() - { - return $this->placed_at; - } - - /** - * Sets placed_at - * @param string $placed_at The [timestamp](#workingwithdates) indicating when the shipment was requested. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setPlacedAt($placed_at) - { - $this->placed_at = $placed_at; - return $this; - } - /** - * Gets in_progress_at - * @return string - */ - public function getInProgressAt() - { - return $this->in_progress_at; - } - - /** - * Sets in_progress_at - * @param string $in_progress_at The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `RESERVED` state. Indicates that preparation of this shipment has begun. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setInProgressAt($in_progress_at) - { - $this->in_progress_at = $in_progress_at; - return $this; - } - /** - * Gets packaged_at - * @return string - */ - public function getPackagedAt() - { - return $this->packaged_at; - } - - /** - * Sets packaged_at - * @param string $packaged_at The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `PREPARED` state. Indicates that the fulfillment is packaged. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setPackagedAt($packaged_at) - { - $this->packaged_at = $packaged_at; - return $this; - } - /** - * Gets expected_shipped_at - * @return string - */ - public function getExpectedShippedAt() - { - return $this->expected_shipped_at; - } - - /** - * Sets expected_shipped_at - * @param string $expected_shipped_at The [timestamp](#workingwithdates) indicating when the shipment is expected to be delivered to the shipping carrier. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setExpectedShippedAt($expected_shipped_at) - { - $this->expected_shipped_at = $expected_shipped_at; - return $this; - } - /** - * Gets shipped_at - * @return string - */ - public function getShippedAt() - { - return $this->shipped_at; - } - - /** - * Sets shipped_at - * @param string $shipped_at The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `COMPLETED`state. Indicates that the fulfillment has been given to the shipping carrier. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setShippedAt($shipped_at) - { - $this->shipped_at = $shipped_at; - return $this; - } - /** - * Gets canceled_at - * @return string - */ - public function getCanceledAt() - { - return $this->canceled_at; - } - - /** - * Sets canceled_at - * @param string $canceled_at The [timestamp](#workingwithdates) indicating the shipment was canceled. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setCanceledAt($canceled_at) - { - $this->canceled_at = $canceled_at; - return $this; - } - /** - * Gets cancel_reason - * @return string - */ - public function getCancelReason() - { - return $this->cancel_reason; - } - - /** - * Sets cancel_reason - * @param string $cancel_reason A description of why the shipment was canceled. - * @return $this - */ - public function setCancelReason($cancel_reason) - { - $this->cancel_reason = $cancel_reason; - return $this; - } - /** - * Gets failed_at - * @return string - */ - public function getFailedAt() - { - return $this->failed_at; - } - - /** - * Sets failed_at - * @param string $failed_at The [timestamp](#workingwithdates) indicating when the shipment failed to be completed. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". - * @return $this - */ - public function setFailedAt($failed_at) - { - $this->failed_at = $failed_at; - return $this; - } - /** - * Gets failure_reason - * @return string - */ - public function getFailureReason() - { - return $this->failure_reason; - } - - /** - * Sets failure_reason - * @param string $failure_reason A description of why the shipment failed to be completed. - * @return $this - */ - public function setFailureReason($failure_reason) - { - $this->failure_reason = $failure_reason; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentState.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentState.php deleted file mode 100644 index 74d728bda2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentState.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentType.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentType.php deleted file mode 100644 index 81bac11f7f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdated.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdated.php deleted file mode 100644 index 37d7269059..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdated.php +++ /dev/null @@ -1,345 +0,0 @@ - 'string', - 'version' => 'int', - 'location_id' => 'string', - 'state' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string', - 'fulfillment_update' => '\SquareConnect\Model\OrderFulfillmentUpdatedUpdate[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_id' => 'order_id', - 'version' => 'version', - 'location_id' => 'location_id', - 'state' => 'state', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'fulfillment_update' => 'fulfillment_update' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_id' => 'setOrderId', - 'version' => 'setVersion', - 'location_id' => 'setLocationId', - 'state' => 'setState', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'fulfillment_update' => 'setFulfillmentUpdate' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_id' => 'getOrderId', - 'version' => 'getVersion', - 'location_id' => 'getLocationId', - 'state' => 'getState', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'fulfillment_update' => 'getFulfillmentUpdate' - ); - - /** - * $order_id The order's unique ID. - * @var string - */ - protected $order_id; - /** - * $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/docs/orders-api/manage-orders#update-orders) - * @var int - */ - protected $version; - /** - * $location_id The ID of the merchant location this order is associated with. - * @var string - */ - protected $location_id; - /** - * $state The state of the order. See [OrderState](#type-orderstate) for possible values - * @var string - */ - protected $state; - /** - * $created_at Timestamp for when the order was created in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at Timestamp for when the order was last updated in RFC 3339 format. - * @var string - */ - protected $updated_at; - /** - * $fulfillment_update The fulfillments that were updated with this version change. - * @var \SquareConnect\Model\OrderFulfillmentUpdatedUpdate[] - */ - protected $fulfillment_update; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["fulfillment_update"])) { - $this->fulfillment_update = $data["fulfillment_update"]; - } else { - $this->fulfillment_update = null; - } - } - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The order's unique ID. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/docs/orders-api/manage-orders#update-orders) - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the merchant location this order is associated with. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The state of the order. See [OrderState](#type-orderstate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at Timestamp for when the order was created in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at Timestamp for when the order was last updated in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets fulfillment_update - * @return \SquareConnect\Model\OrderFulfillmentUpdatedUpdate[] - */ - public function getFulfillmentUpdate() - { - return $this->fulfillment_update; - } - - /** - * Sets fulfillment_update - * @param \SquareConnect\Model\OrderFulfillmentUpdatedUpdate[] $fulfillment_update The fulfillments that were updated with this version change. - * @return $this - */ - public function setFulfillmentUpdate($fulfillment_update) - { - $this->fulfillment_update = $fulfillment_update; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdatedObject.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdatedObject.php deleted file mode 100644 index 331e0d5dbc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdatedObject.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\OrderFulfillmentUpdated' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_fulfillment_updated' => 'order_fulfillment_updated' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_fulfillment_updated' => 'setOrderFulfillmentUpdated' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_fulfillment_updated' => 'getOrderFulfillmentUpdated' - ); - - /** - * $order_fulfillment_updated Information about the updated order fulfillment. - * @var \SquareConnect\Model\OrderFulfillmentUpdated - */ - protected $order_fulfillment_updated; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_fulfillment_updated"])) { - $this->order_fulfillment_updated = $data["order_fulfillment_updated"]; - } else { - $this->order_fulfillment_updated = null; - } - } - } - /** - * Gets order_fulfillment_updated - * @return \SquareConnect\Model\OrderFulfillmentUpdated - */ - public function getOrderFulfillmentUpdated() - { - return $this->order_fulfillment_updated; - } - - /** - * Sets order_fulfillment_updated - * @param \SquareConnect\Model\OrderFulfillmentUpdated $order_fulfillment_updated Information about the updated order fulfillment. - * @return $this - */ - public function setOrderFulfillmentUpdated($order_fulfillment_updated) - { - $this->order_fulfillment_updated = $order_fulfillment_updated; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdatedUpdate.php b/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdatedUpdate.php deleted file mode 100644 index 4e7b243a41..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderFulfillmentUpdatedUpdate.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'old_state' => 'string', - 'new_state' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'fulfillment_uid' => 'fulfillment_uid', - 'old_state' => 'old_state', - 'new_state' => 'new_state' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'fulfillment_uid' => 'setFulfillmentUid', - 'old_state' => 'setOldState', - 'new_state' => 'setNewState' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'fulfillment_uid' => 'getFulfillmentUid', - 'old_state' => 'getOldState', - 'new_state' => 'getNewState' - ); - - /** - * $fulfillment_uid Unique ID that identifies the fulfillment only within this order. - * @var string - */ - protected $fulfillment_uid; - /** - * $old_state The state of the fulfillment before the change. Will not be populated if the fulfillment is created with this new Order version. See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values - * @var string - */ - protected $old_state; - /** - * $new_state The state of the fulfillment after the change. May be equal to old_state if a non-state field was changed on the fulfillment (e.g. tracking number). See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values - * @var string - */ - protected $new_state; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["fulfillment_uid"])) { - $this->fulfillment_uid = $data["fulfillment_uid"]; - } else { - $this->fulfillment_uid = null; - } - if (isset($data["old_state"])) { - $this->old_state = $data["old_state"]; - } else { - $this->old_state = null; - } - if (isset($data["new_state"])) { - $this->new_state = $data["new_state"]; - } else { - $this->new_state = null; - } - } - } - /** - * Gets fulfillment_uid - * @return string - */ - public function getFulfillmentUid() - { - return $this->fulfillment_uid; - } - - /** - * Sets fulfillment_uid - * @param string $fulfillment_uid Unique ID that identifies the fulfillment only within this order. - * @return $this - */ - public function setFulfillmentUid($fulfillment_uid) - { - $this->fulfillment_uid = $fulfillment_uid; - return $this; - } - /** - * Gets old_state - * @return string - */ - public function getOldState() - { - return $this->old_state; - } - - /** - * Sets old_state - * @param string $old_state The state of the fulfillment before the change. Will not be populated if the fulfillment is created with this new Order version. See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values - * @return $this - */ - public function setOldState($old_state) - { - $this->old_state = $old_state; - return $this; - } - /** - * Gets new_state - * @return string - */ - public function getNewState() - { - return $this->new_state; - } - - /** - * Sets new_state - * @param string $new_state The state of the fulfillment after the change. May be equal to old_state if a non-state field was changed on the fulfillment (e.g. tracking number). See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values - * @return $this - */ - public function setNewState($new_state) - { - $this->new_state = $new_state; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItem.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItem.php deleted file mode 100644 index 7e056f768f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItem.php +++ /dev/null @@ -1,674 +0,0 @@ - 'string', - 'name' => 'string', - 'quantity' => 'string', - 'quantity_unit' => '\SquareConnect\Model\OrderQuantityUnit', - 'note' => 'string', - 'catalog_object_id' => 'string', - 'variation_name' => 'string', - 'metadata' => 'map[string,string]', - 'modifiers' => '\SquareConnect\Model\OrderLineItemModifier[]', - 'applied_taxes' => '\SquareConnect\Model\OrderLineItemAppliedTax[]', - 'applied_discounts' => '\SquareConnect\Model\OrderLineItemAppliedDiscount[]', - 'base_price_money' => '\SquareConnect\Model\Money', - 'variation_total_price_money' => '\SquareConnect\Model\Money', - 'gross_sales_money' => '\SquareConnect\Model\Money', - 'total_tax_money' => '\SquareConnect\Model\Money', - 'total_discount_money' => '\SquareConnect\Model\Money', - 'total_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'name' => 'name', - 'quantity' => 'quantity', - 'quantity_unit' => 'quantity_unit', - 'note' => 'note', - 'catalog_object_id' => 'catalog_object_id', - 'variation_name' => 'variation_name', - 'metadata' => 'metadata', - 'modifiers' => 'modifiers', - 'applied_taxes' => 'applied_taxes', - 'applied_discounts' => 'applied_discounts', - 'base_price_money' => 'base_price_money', - 'variation_total_price_money' => 'variation_total_price_money', - 'gross_sales_money' => 'gross_sales_money', - 'total_tax_money' => 'total_tax_money', - 'total_discount_money' => 'total_discount_money', - 'total_money' => 'total_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'name' => 'setName', - 'quantity' => 'setQuantity', - 'quantity_unit' => 'setQuantityUnit', - 'note' => 'setNote', - 'catalog_object_id' => 'setCatalogObjectId', - 'variation_name' => 'setVariationName', - 'metadata' => 'setMetadata', - 'modifiers' => 'setModifiers', - 'applied_taxes' => 'setAppliedTaxes', - 'applied_discounts' => 'setAppliedDiscounts', - 'base_price_money' => 'setBasePriceMoney', - 'variation_total_price_money' => 'setVariationTotalPriceMoney', - 'gross_sales_money' => 'setGrossSalesMoney', - 'total_tax_money' => 'setTotalTaxMoney', - 'total_discount_money' => 'setTotalDiscountMoney', - 'total_money' => 'setTotalMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'name' => 'getName', - 'quantity' => 'getQuantity', - 'quantity_unit' => 'getQuantityUnit', - 'note' => 'getNote', - 'catalog_object_id' => 'getCatalogObjectId', - 'variation_name' => 'getVariationName', - 'metadata' => 'getMetadata', - 'modifiers' => 'getModifiers', - 'applied_taxes' => 'getAppliedTaxes', - 'applied_discounts' => 'getAppliedDiscounts', - 'base_price_money' => 'getBasePriceMoney', - 'variation_total_price_money' => 'getVariationTotalPriceMoney', - 'gross_sales_money' => 'getGrossSalesMoney', - 'total_tax_money' => 'getTotalTaxMoney', - 'total_discount_money' => 'getTotalDiscountMoney', - 'total_money' => 'getTotalMoney' - ); - - /** - * $uid Unique ID that identifies the line item only within this order. - * @var string - */ - protected $uid; - /** - * $name The name of the line item. - * @var string - */ - protected $name; - /** - * $quantity The quantity purchased, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`. - * @var string - */ - protected $quantity; - /** - * $quantity_unit The unit and precision that this line item's quantity is measured in. - * @var \SquareConnect\Model\OrderQuantityUnit - */ - protected $quantity_unit; - /** - * $note The note of the line item. - * @var string - */ - protected $note; - /** - * $catalog_object_id The `CatalogItemVariation` id applied to this line item. - * @var string - */ - protected $catalog_object_id; - /** - * $variation_name The name of the variation applied to this line item. - * @var string - */ - protected $variation_name; - /** - * $metadata Application-defined data attached to this line item. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @var map[string,string] - */ - protected $metadata; - /** - * $modifiers The `CatalogModifier`s applied to this line item. - * @var \SquareConnect\Model\OrderLineItemModifier[] - */ - protected $modifiers; - /** - * $applied_taxes The list of references to taxes applied to this line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` will be automatically created on every line item for all `ORDER` scoped taxes added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any line items. To change the amount of a tax, modify the referenced top-level tax. - * @var \SquareConnect\Model\OrderLineItemAppliedTax[] - */ - protected $applied_taxes; - /** - * $applied_discounts The list of references to discounts applied to this line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderLineItemDiscounts` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedDiscount` will be automatically created on every line item for all `ORDER` scoped discounts that are added to the order. `OrderLineItemAppliedDiscount` records for `LINE_ITEM` scoped discounts must be added in requests for the discount to apply to any line items. To change the amount of a discount, modify the referenced top-level discount. - * @var \SquareConnect\Model\OrderLineItemAppliedDiscount[] - */ - protected $applied_discounts; - /** - * $base_price_money The base price for a single unit of the line item. - * @var \SquareConnect\Model\Money - */ - protected $base_price_money; - /** - * $variation_total_price_money The total price of all item variations sold in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers. - * @var \SquareConnect\Model\Money - */ - protected $variation_total_price_money; - /** - * $gross_sales_money The amount of money made in gross sales for this line item. Calculated as the sum of the variation's total price and each modifier's total price. - * @var \SquareConnect\Model\Money - */ - protected $gross_sales_money; - /** - * $total_tax_money The total tax amount of money to collect for the line item. - * @var \SquareConnect\Model\Money - */ - protected $total_tax_money; - /** - * $total_discount_money The total discount amount of money to collect for the line item. - * @var \SquareConnect\Model\Money - */ - protected $total_discount_money; - /** - * $total_money The total amount of money to collect for this line item. - * @var \SquareConnect\Model\Money - */ - protected $total_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["quantity"])) { - $this->quantity = $data["quantity"]; - } else { - $this->quantity = null; - } - if (isset($data["quantity_unit"])) { - $this->quantity_unit = $data["quantity_unit"]; - } else { - $this->quantity_unit = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["variation_name"])) { - $this->variation_name = $data["variation_name"]; - } else { - $this->variation_name = null; - } - if (isset($data["metadata"])) { - $this->metadata = $data["metadata"]; - } else { - $this->metadata = null; - } - if (isset($data["modifiers"])) { - $this->modifiers = $data["modifiers"]; - } else { - $this->modifiers = null; - } - if (isset($data["applied_taxes"])) { - $this->applied_taxes = $data["applied_taxes"]; - } else { - $this->applied_taxes = null; - } - if (isset($data["applied_discounts"])) { - $this->applied_discounts = $data["applied_discounts"]; - } else { - $this->applied_discounts = null; - } - if (isset($data["base_price_money"])) { - $this->base_price_money = $data["base_price_money"]; - } else { - $this->base_price_money = null; - } - if (isset($data["variation_total_price_money"])) { - $this->variation_total_price_money = $data["variation_total_price_money"]; - } else { - $this->variation_total_price_money = null; - } - if (isset($data["gross_sales_money"])) { - $this->gross_sales_money = $data["gross_sales_money"]; - } else { - $this->gross_sales_money = null; - } - if (isset($data["total_tax_money"])) { - $this->total_tax_money = $data["total_tax_money"]; - } else { - $this->total_tax_money = null; - } - if (isset($data["total_discount_money"])) { - $this->total_discount_money = $data["total_discount_money"]; - } else { - $this->total_discount_money = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the line item only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the line item. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets quantity - * @return string - */ - public function getQuantity() - { - return $this->quantity; - } - - /** - * Sets quantity - * @param string $quantity The quantity purchased, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`. - * @return $this - */ - public function setQuantity($quantity) - { - $this->quantity = $quantity; - return $this; - } - /** - * Gets quantity_unit - * @return \SquareConnect\Model\OrderQuantityUnit - */ - public function getQuantityUnit() - { - return $this->quantity_unit; - } - - /** - * Sets quantity_unit - * @param \SquareConnect\Model\OrderQuantityUnit $quantity_unit The unit and precision that this line item's quantity is measured in. - * @return $this - */ - public function setQuantityUnit($quantity_unit) - { - $this->quantity_unit = $quantity_unit; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note The note of the line item. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The `CatalogItemVariation` id applied to this line item. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets variation_name - * @return string - */ - public function getVariationName() - { - return $this->variation_name; - } - - /** - * Sets variation_name - * @param string $variation_name The name of the variation applied to this line item. - * @return $this - */ - public function setVariationName($variation_name) - { - $this->variation_name = $variation_name; - return $this; - } - /** - * Gets metadata - * @return map[string,string] - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Sets metadata - * @param map[string,string] $metadata Application-defined data attached to this line item. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @return $this - */ - public function setMetadata($metadata) - { - $this->metadata = $metadata; - return $this; - } - /** - * Gets modifiers - * @return \SquareConnect\Model\OrderLineItemModifier[] - */ - public function getModifiers() - { - return $this->modifiers; - } - - /** - * Sets modifiers - * @param \SquareConnect\Model\OrderLineItemModifier[] $modifiers The `CatalogModifier`s applied to this line item. - * @return $this - */ - public function setModifiers($modifiers) - { - $this->modifiers = $modifiers; - return $this; - } - /** - * Gets applied_taxes - * @return \SquareConnect\Model\OrderLineItemAppliedTax[] - */ - public function getAppliedTaxes() - { - return $this->applied_taxes; - } - - /** - * Sets applied_taxes - * @param \SquareConnect\Model\OrderLineItemAppliedTax[] $applied_taxes The list of references to taxes applied to this line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` will be automatically created on every line item for all `ORDER` scoped taxes added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any line items. To change the amount of a tax, modify the referenced top-level tax. - * @return $this - */ - public function setAppliedTaxes($applied_taxes) - { - $this->applied_taxes = $applied_taxes; - return $this; - } - /** - * Gets applied_discounts - * @return \SquareConnect\Model\OrderLineItemAppliedDiscount[] - */ - public function getAppliedDiscounts() - { - return $this->applied_discounts; - } - - /** - * Sets applied_discounts - * @param \SquareConnect\Model\OrderLineItemAppliedDiscount[] $applied_discounts The list of references to discounts applied to this line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderLineItemDiscounts` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedDiscount` will be automatically created on every line item for all `ORDER` scoped discounts that are added to the order. `OrderLineItemAppliedDiscount` records for `LINE_ITEM` scoped discounts must be added in requests for the discount to apply to any line items. To change the amount of a discount, modify the referenced top-level discount. - * @return $this - */ - public function setAppliedDiscounts($applied_discounts) - { - $this->applied_discounts = $applied_discounts; - return $this; - } - /** - * Gets base_price_money - * @return \SquareConnect\Model\Money - */ - public function getBasePriceMoney() - { - return $this->base_price_money; - } - - /** - * Sets base_price_money - * @param \SquareConnect\Model\Money $base_price_money The base price for a single unit of the line item. - * @return $this - */ - public function setBasePriceMoney($base_price_money) - { - $this->base_price_money = $base_price_money; - return $this; - } - /** - * Gets variation_total_price_money - * @return \SquareConnect\Model\Money - */ - public function getVariationTotalPriceMoney() - { - return $this->variation_total_price_money; - } - - /** - * Sets variation_total_price_money - * @param \SquareConnect\Model\Money $variation_total_price_money The total price of all item variations sold in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers. - * @return $this - */ - public function setVariationTotalPriceMoney($variation_total_price_money) - { - $this->variation_total_price_money = $variation_total_price_money; - return $this; - } - /** - * Gets gross_sales_money - * @return \SquareConnect\Model\Money - */ - public function getGrossSalesMoney() - { - return $this->gross_sales_money; - } - - /** - * Sets gross_sales_money - * @param \SquareConnect\Model\Money $gross_sales_money The amount of money made in gross sales for this line item. Calculated as the sum of the variation's total price and each modifier's total price. - * @return $this - */ - public function setGrossSalesMoney($gross_sales_money) - { - $this->gross_sales_money = $gross_sales_money; - return $this; - } - /** - * Gets total_tax_money - * @return \SquareConnect\Model\Money - */ - public function getTotalTaxMoney() - { - return $this->total_tax_money; - } - - /** - * Sets total_tax_money - * @param \SquareConnect\Model\Money $total_tax_money The total tax amount of money to collect for the line item. - * @return $this - */ - public function setTotalTaxMoney($total_tax_money) - { - $this->total_tax_money = $total_tax_money; - return $this; - } - /** - * Gets total_discount_money - * @return \SquareConnect\Model\Money - */ - public function getTotalDiscountMoney() - { - return $this->total_discount_money; - } - - /** - * Sets total_discount_money - * @param \SquareConnect\Model\Money $total_discount_money The total discount amount of money to collect for the line item. - * @return $this - */ - public function setTotalDiscountMoney($total_discount_money) - { - $this->total_discount_money = $total_discount_money; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\Money $total_money The total amount of money to collect for this line item. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemAppliedDiscount.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemAppliedDiscount.php deleted file mode 100644 index 73dedb3e79..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemAppliedDiscount.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'discount_uid' => 'string', - 'applied_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'discount_uid' => 'discount_uid', - 'applied_money' => 'applied_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'discount_uid' => 'setDiscountUid', - 'applied_money' => 'setAppliedMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'discount_uid' => 'getDiscountUid', - 'applied_money' => 'getAppliedMoney' - ); - - /** - * $uid Unique ID that identifies the applied discount only within this order. - * @var string - */ - protected $uid; - /** - * $discount_uid The `uid` of the discount the applied discount represents. Must reference a discount present in the `order.discounts` field. This field is immutable. To change which discounts apply to a line item, you must delete the discount and re-add it as a new `OrderLineItemAppliedDiscount`. - * @var string - */ - protected $discount_uid; - /** - * $applied_money The amount of money applied by the discount to the line item. - * @var \SquareConnect\Model\Money - */ - protected $applied_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["discount_uid"])) { - $this->discount_uid = $data["discount_uid"]; - } else { - $this->discount_uid = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the applied discount only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets discount_uid - * @return string - */ - public function getDiscountUid() - { - return $this->discount_uid; - } - - /** - * Sets discount_uid - * @param string $discount_uid The `uid` of the discount the applied discount represents. Must reference a discount present in the `order.discounts` field. This field is immutable. To change which discounts apply to a line item, you must delete the discount and re-add it as a new `OrderLineItemAppliedDiscount`. - * @return $this - */ - public function setDiscountUid($discount_uid) - { - $this->discount_uid = $discount_uid; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\Money $applied_money The amount of money applied by the discount to the line item. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemAppliedTax.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemAppliedTax.php deleted file mode 100644 index 9a4d7ca800..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemAppliedTax.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'tax_uid' => 'string', - 'applied_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'tax_uid' => 'tax_uid', - 'applied_money' => 'applied_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'tax_uid' => 'setTaxUid', - 'applied_money' => 'setAppliedMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'tax_uid' => 'getTaxUid', - 'applied_money' => 'getAppliedMoney' - ); - - /** - * $uid Unique ID that identifies the applied tax only within this order. - * @var string - */ - protected $uid; - /** - * $tax_uid The `uid` of the tax for which this applied tax represents. Must reference a tax present in the `order.taxes` field. This field is immutable. To change which taxes apply to a line item, delete and add new `OrderLineItemAppliedTax`s. - * @var string - */ - protected $tax_uid; - /** - * $applied_money The amount of money applied by the tax to the line item. - * @var \SquareConnect\Model\Money - */ - protected $applied_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["tax_uid"])) { - $this->tax_uid = $data["tax_uid"]; - } else { - $this->tax_uid = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the applied tax only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets tax_uid - * @return string - */ - public function getTaxUid() - { - return $this->tax_uid; - } - - /** - * Sets tax_uid - * @param string $tax_uid The `uid` of the tax for which this applied tax represents. Must reference a tax present in the `order.taxes` field. This field is immutable. To change which taxes apply to a line item, delete and add new `OrderLineItemAppliedTax`s. - * @return $this - */ - public function setTaxUid($tax_uid) - { - $this->tax_uid = $tax_uid; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\Money $applied_money The amount of money applied by the tax to the line item. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscount.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscount.php deleted file mode 100644 index e1dac4e00e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscount.php +++ /dev/null @@ -1,443 +0,0 @@ - 'string', - 'catalog_object_id' => 'string', - 'name' => 'string', - 'type' => 'string', - 'percentage' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'applied_money' => '\SquareConnect\Model\Money', - 'metadata' => 'map[string,string]', - 'scope' => 'string', - 'reward_ids' => 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'catalog_object_id' => 'catalog_object_id', - 'name' => 'name', - 'type' => 'type', - 'percentage' => 'percentage', - 'amount_money' => 'amount_money', - 'applied_money' => 'applied_money', - 'metadata' => 'metadata', - 'scope' => 'scope', - 'reward_ids' => 'reward_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'catalog_object_id' => 'setCatalogObjectId', - 'name' => 'setName', - 'type' => 'setType', - 'percentage' => 'setPercentage', - 'amount_money' => 'setAmountMoney', - 'applied_money' => 'setAppliedMoney', - 'metadata' => 'setMetadata', - 'scope' => 'setScope', - 'reward_ids' => 'setRewardIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'catalog_object_id' => 'getCatalogObjectId', - 'name' => 'getName', - 'type' => 'getType', - 'percentage' => 'getPercentage', - 'amount_money' => 'getAmountMoney', - 'applied_money' => 'getAppliedMoney', - 'metadata' => 'getMetadata', - 'scope' => 'getScope', - 'reward_ids' => 'getRewardIds' - ); - - /** - * $uid Unique ID that identifies the discount only within this order. - * @var string - */ - protected $uid; - /** - * $catalog_object_id The catalog object id referencing `CatalogDiscount`. - * @var string - */ - protected $catalog_object_id; - /** - * $name The discount's name. - * @var string - */ - protected $name; - /** - * $type The type of the discount. Discounts that don't reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values - * @var string - */ - protected $type; - /** - * $percentage The percentage of the discount, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts. - * @var string - */ - protected $percentage; - /** - * $amount_money The total declared monetary amount of the discount. `amount_money` is not set for percentage-based discounts. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $applied_money The amount of discount actually applied to the line item. Represents the amount of money applied as a line item-scoped discount. When an amount-based discount is scoped to the entire order, the value of `applied_money` is different from `amount_money` because the total amount of the discount is distributed across all line items. - * @var \SquareConnect\Model\Money - */ - protected $applied_money; - /** - * $metadata Application-defined data attached to this discount. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @var map[string,string] - */ - protected $metadata; - /** - * $scope Indicates the level at which the discount applies. For `ORDER` scoped discounts, Square generates references in `applied_discounts` on all order line items that do not have them. For `LINE_ITEM` scoped discounts, the discount only applies to line items with a discount reference in their `applied_discounts` field. This field is immutable. To change the scope of a discount you must delete the discount and re-add it as a new discount. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values - * @var string - */ - protected $scope; - /** - * $reward_ids The reward identifiers corresponding to this discount. The application and specification of discounts that have `reward_ids` are completely controlled by the backing criteria corresponding to the reward tiers of the rewards that are added to the order through the Loyalty API. To manually unapply discounts that are the result of added rewards, the rewards must be removed from the order through the Loyalty API. - * @var string[] - */ - protected $reward_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["percentage"])) { - $this->percentage = $data["percentage"]; - } else { - $this->percentage = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["metadata"])) { - $this->metadata = $data["metadata"]; - } else { - $this->metadata = null; - } - if (isset($data["scope"])) { - $this->scope = $data["scope"]; - } else { - $this->scope = null; - } - if (isset($data["reward_ids"])) { - $this->reward_ids = $data["reward_ids"]; - } else { - $this->reward_ids = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the discount only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The catalog object id referencing `CatalogDiscount`. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The discount's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of the discount. Discounts that don't reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets percentage - * @return string - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Sets percentage - * @param string $percentage The percentage of the discount, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts. - * @return $this - */ - public function setPercentage($percentage) - { - $this->percentage = $percentage; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The total declared monetary amount of the discount. `amount_money` is not set for percentage-based discounts. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\Money $applied_money The amount of discount actually applied to the line item. Represents the amount of money applied as a line item-scoped discount. When an amount-based discount is scoped to the entire order, the value of `applied_money` is different from `amount_money` because the total amount of the discount is distributed across all line items. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets metadata - * @return map[string,string] - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Sets metadata - * @param map[string,string] $metadata Application-defined data attached to this discount. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @return $this - */ - public function setMetadata($metadata) - { - $this->metadata = $metadata; - return $this; - } - /** - * Gets scope - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Sets scope - * @param string $scope Indicates the level at which the discount applies. For `ORDER` scoped discounts, Square generates references in `applied_discounts` on all order line items that do not have them. For `LINE_ITEM` scoped discounts, the discount only applies to line items with a discount reference in their `applied_discounts` field. This field is immutable. To change the scope of a discount you must delete the discount and re-add it as a new discount. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values - * @return $this - */ - public function setScope($scope) - { - $this->scope = $scope; - return $this; - } - /** - * Gets reward_ids - * @return string[] - */ - public function getRewardIds() - { - return $this->reward_ids; - } - - /** - * Sets reward_ids - * @param string[] $reward_ids The reward identifiers corresponding to this discount. The application and specification of discounts that have `reward_ids` are completely controlled by the backing criteria corresponding to the reward tiers of the rewards that are added to the order through the Loyalty API. To manually unapply discounts that are the result of added rewards, the rewards must be removed from the order through the Loyalty API. - * @return $this - */ - public function setRewardIds($reward_ids) - { - $this->reward_ids = $reward_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscountScope.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscountScope.php deleted file mode 100644 index 2a3fd18139..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscountScope.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscountType.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscountType.php deleted file mode 100644 index 1c8d26fb0f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemDiscountType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemModifier.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemModifier.php deleted file mode 100644 index c89fb66857..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemModifier.php +++ /dev/null @@ -1,278 +0,0 @@ - 'string', - 'catalog_object_id' => 'string', - 'name' => 'string', - 'base_price_money' => '\SquareConnect\Model\Money', - 'total_price_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'catalog_object_id' => 'catalog_object_id', - 'name' => 'name', - 'base_price_money' => 'base_price_money', - 'total_price_money' => 'total_price_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'catalog_object_id' => 'setCatalogObjectId', - 'name' => 'setName', - 'base_price_money' => 'setBasePriceMoney', - 'total_price_money' => 'setTotalPriceMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'catalog_object_id' => 'getCatalogObjectId', - 'name' => 'getName', - 'base_price_money' => 'getBasePriceMoney', - 'total_price_money' => 'getTotalPriceMoney' - ); - - /** - * $uid Unique ID that identifies the modifier only within this order. - * @var string - */ - protected $uid; - /** - * $catalog_object_id The catalog object id referencing `CatalogModifier`. - * @var string - */ - protected $catalog_object_id; - /** - * $name The name of the item modifier. - * @var string - */ - protected $name; - /** - * $base_price_money The base price for the modifier. `base_price_money` is required for ad hoc modifiers. If both `catalog_object_id` and `base_price_money` are set, `base_price_money` will override the predefined `CatalogModifier` price. - * @var \SquareConnect\Model\Money - */ - protected $base_price_money; - /** - * $total_price_money The total price of the item modifier for its line item. This is the modifier's `base_price_money` multiplied by the line item's quantity. - * @var \SquareConnect\Model\Money - */ - protected $total_price_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["base_price_money"])) { - $this->base_price_money = $data["base_price_money"]; - } else { - $this->base_price_money = null; - } - if (isset($data["total_price_money"])) { - $this->total_price_money = $data["total_price_money"]; - } else { - $this->total_price_money = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the modifier only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The catalog object id referencing `CatalogModifier`. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the item modifier. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets base_price_money - * @return \SquareConnect\Model\Money - */ - public function getBasePriceMoney() - { - return $this->base_price_money; - } - - /** - * Sets base_price_money - * @param \SquareConnect\Model\Money $base_price_money The base price for the modifier. `base_price_money` is required for ad hoc modifiers. If both `catalog_object_id` and `base_price_money` are set, `base_price_money` will override the predefined `CatalogModifier` price. - * @return $this - */ - public function setBasePriceMoney($base_price_money) - { - $this->base_price_money = $base_price_money; - return $this; - } - /** - * Gets total_price_money - * @return \SquareConnect\Model\Money - */ - public function getTotalPriceMoney() - { - return $this->total_price_money; - } - - /** - * Sets total_price_money - * @param \SquareConnect\Model\Money $total_price_money The total price of the item modifier for its line item. This is the modifier's `base_price_money` multiplied by the line item's quantity. - * @return $this - */ - public function setTotalPriceMoney($total_price_money) - { - $this->total_price_money = $total_price_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTax.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTax.php deleted file mode 100644 index beb96da75f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTax.php +++ /dev/null @@ -1,377 +0,0 @@ - 'string', - 'catalog_object_id' => 'string', - 'name' => 'string', - 'type' => 'string', - 'percentage' => 'string', - 'metadata' => 'map[string,string]', - 'applied_money' => '\SquareConnect\Model\Money', - 'scope' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'catalog_object_id' => 'catalog_object_id', - 'name' => 'name', - 'type' => 'type', - 'percentage' => 'percentage', - 'metadata' => 'metadata', - 'applied_money' => 'applied_money', - 'scope' => 'scope' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'catalog_object_id' => 'setCatalogObjectId', - 'name' => 'setName', - 'type' => 'setType', - 'percentage' => 'setPercentage', - 'metadata' => 'setMetadata', - 'applied_money' => 'setAppliedMoney', - 'scope' => 'setScope' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'catalog_object_id' => 'getCatalogObjectId', - 'name' => 'getName', - 'type' => 'getType', - 'percentage' => 'getPercentage', - 'metadata' => 'getMetadata', - 'applied_money' => 'getAppliedMoney', - 'scope' => 'getScope' - ); - - /** - * $uid Unique ID that identifies the tax only within this order. - * @var string - */ - protected $uid; - /** - * $catalog_object_id The catalog object id referencing `CatalogTax`. - * @var string - */ - protected $catalog_object_id; - /** - * $name The tax's name. - * @var string - */ - protected $name; - /** - * $type Indicates the calculation method used to apply the tax. See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values - * @var string - */ - protected $type; - /** - * $percentage The percentage of the tax, as a string representation of a decimal number. For example, a value of `\"7.25\"` corresponds to a percentage of 7.25%. - * @var string - */ - protected $percentage; - /** - * $metadata Application-defined data attached to this tax. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @var map[string,string] - */ - protected $metadata; - /** - * $applied_money The amount of the money applied by the tax in the order. - * @var \SquareConnect\Model\Money - */ - protected $applied_money; - /** - * $scope Indicates the level at which the tax applies. For `ORDER` scoped taxes, Square generates references in `applied_taxes` on all order line items that do not have them. For `LINE_ITEM` scoped taxes, the tax will only apply to line items with references in their `applied_taxes` field. This field is immutable. To change the scope, you must delete the tax and re-add it as a new tax. See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values - * @var string - */ - protected $scope; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["percentage"])) { - $this->percentage = $data["percentage"]; - } else { - $this->percentage = null; - } - if (isset($data["metadata"])) { - $this->metadata = $data["metadata"]; - } else { - $this->metadata = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["scope"])) { - $this->scope = $data["scope"]; - } else { - $this->scope = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the tax only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The catalog object id referencing `CatalogTax`. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The tax's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type Indicates the calculation method used to apply the tax. See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets percentage - * @return string - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Sets percentage - * @param string $percentage The percentage of the tax, as a string representation of a decimal number. For example, a value of `\"7.25\"` corresponds to a percentage of 7.25%. - * @return $this - */ - public function setPercentage($percentage) - { - $this->percentage = $percentage; - return $this; - } - /** - * Gets metadata - * @return map[string,string] - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Sets metadata - * @param map[string,string] $metadata Application-defined data attached to this tax. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @return $this - */ - public function setMetadata($metadata) - { - $this->metadata = $metadata; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\Money $applied_money The amount of the money applied by the tax in the order. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets scope - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Sets scope - * @param string $scope Indicates the level at which the tax applies. For `ORDER` scoped taxes, Square generates references in `applied_taxes` on all order line items that do not have them. For `LINE_ITEM` scoped taxes, the tax will only apply to line items with references in their `applied_taxes` field. This field is immutable. To change the scope, you must delete the tax and re-add it as a new tax. See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values - * @return $this - */ - public function setScope($scope) - { - $this->scope = $scope; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTaxScope.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTaxScope.php deleted file mode 100644 index dc7d7d72ce..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTaxScope.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTaxType.php b/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTaxType.php deleted file mode 100644 index 43c5c1f1da..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderLineItemTaxType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderMoneyAmounts.php b/includes/classes/vendors/square/connect/lib/Model/OrderMoneyAmounts.php deleted file mode 100644 index 86d5df3ba1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderMoneyAmounts.php +++ /dev/null @@ -1,279 +0,0 @@ - '\SquareConnect\Model\Money', - 'tax_money' => '\SquareConnect\Model\Money', - 'discount_money' => '\SquareConnect\Model\Money', - 'tip_money' => '\SquareConnect\Model\Money', - 'service_charge_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'total_money' => 'total_money', - 'tax_money' => 'tax_money', - 'discount_money' => 'discount_money', - 'tip_money' => 'tip_money', - 'service_charge_money' => 'service_charge_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'total_money' => 'setTotalMoney', - 'tax_money' => 'setTaxMoney', - 'discount_money' => 'setDiscountMoney', - 'tip_money' => 'setTipMoney', - 'service_charge_money' => 'setServiceChargeMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'total_money' => 'getTotalMoney', - 'tax_money' => 'getTaxMoney', - 'discount_money' => 'getDiscountMoney', - 'tip_money' => 'getTipMoney', - 'service_charge_money' => 'getServiceChargeMoney' - ); - - /** - * $total_money Total money. - * @var \SquareConnect\Model\Money - */ - protected $total_money; - /** - * $tax_money Money associated with taxes. - * @var \SquareConnect\Model\Money - */ - protected $tax_money; - /** - * $discount_money Money associated with discounts. - * @var \SquareConnect\Model\Money - */ - protected $discount_money; - /** - * $tip_money Money associated with tips. - * @var \SquareConnect\Model\Money - */ - protected $tip_money; - /** - * $service_charge_money Money associated with service charges. - * @var \SquareConnect\Model\Money - */ - protected $service_charge_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - if (isset($data["tax_money"])) { - $this->tax_money = $data["tax_money"]; - } else { - $this->tax_money = null; - } - if (isset($data["discount_money"])) { - $this->discount_money = $data["discount_money"]; - } else { - $this->discount_money = null; - } - if (isset($data["tip_money"])) { - $this->tip_money = $data["tip_money"]; - } else { - $this->tip_money = null; - } - if (isset($data["service_charge_money"])) { - $this->service_charge_money = $data["service_charge_money"]; - } else { - $this->service_charge_money = null; - } - } - } - /** - * Gets total_money - * @return \SquareConnect\Model\Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\Money $total_money Total money. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Gets tax_money - * @return \SquareConnect\Model\Money - */ - public function getTaxMoney() - { - return $this->tax_money; - } - - /** - * Sets tax_money - * @param \SquareConnect\Model\Money $tax_money Money associated with taxes. - * @return $this - */ - public function setTaxMoney($tax_money) - { - $this->tax_money = $tax_money; - return $this; - } - /** - * Gets discount_money - * @return \SquareConnect\Model\Money - */ - public function getDiscountMoney() - { - return $this->discount_money; - } - - /** - * Sets discount_money - * @param \SquareConnect\Model\Money $discount_money Money associated with discounts. - * @return $this - */ - public function setDiscountMoney($discount_money) - { - $this->discount_money = $discount_money; - return $this; - } - /** - * Gets tip_money - * @return \SquareConnect\Model\Money - */ - public function getTipMoney() - { - return $this->tip_money; - } - - /** - * Sets tip_money - * @param \SquareConnect\Model\Money $tip_money Money associated with tips. - * @return $this - */ - public function setTipMoney($tip_money) - { - $this->tip_money = $tip_money; - return $this; - } - /** - * Gets service_charge_money - * @return \SquareConnect\Model\Money - */ - public function getServiceChargeMoney() - { - return $this->service_charge_money; - } - - /** - * Sets service_charge_money - * @param \SquareConnect\Model\Money $service_charge_money Money associated with service charges. - * @return $this - */ - public function setServiceChargeMoney($service_charge_money) - { - $this->service_charge_money = $service_charge_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderQuantityUnit.php b/includes/classes/vendors/square/connect/lib/Model/OrderQuantityUnit.php deleted file mode 100644 index bd162b56dc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderQuantityUnit.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\MeasurementUnit', - 'precision' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'measurement_unit' => 'measurement_unit', - 'precision' => 'precision' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'measurement_unit' => 'setMeasurementUnit', - 'precision' => 'setPrecision' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'measurement_unit' => 'getMeasurementUnit', - 'precision' => 'getPrecision' - ); - - /** - * $measurement_unit A `MeasurementUnit` that represents the unit of measure for the quantity. - * @var \SquareConnect\Model\MeasurementUnit - */ - protected $measurement_unit; - /** - * $precision For non-integer quantities, represents the number of digits after the decimal point that are recorded for this quantity. For example, a precision of 1 allows quantities like `\"1.0\"` and `\"1.1\"`, but not `\"1.01\"`. Min: 0. Max: 5. - * @var int - */ - protected $precision; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["measurement_unit"])) { - $this->measurement_unit = $data["measurement_unit"]; - } else { - $this->measurement_unit = null; - } - if (isset($data["precision"])) { - $this->precision = $data["precision"]; - } else { - $this->precision = null; - } - } - } - /** - * Gets measurement_unit - * @return \SquareConnect\Model\MeasurementUnit - */ - public function getMeasurementUnit() - { - return $this->measurement_unit; - } - - /** - * Sets measurement_unit - * @param \SquareConnect\Model\MeasurementUnit $measurement_unit A `MeasurementUnit` that represents the unit of measure for the quantity. - * @return $this - */ - public function setMeasurementUnit($measurement_unit) - { - $this->measurement_unit = $measurement_unit; - return $this; - } - /** - * Gets precision - * @return int - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * Sets precision - * @param int $precision For non-integer quantities, represents the number of digits after the decimal point that are recorded for this quantity. For example, a precision of 1 allows quantities like `\"1.0\"` and `\"1.1\"`, but not `\"1.01\"`. Min: 0. Max: 5. - * @return $this - */ - public function setPrecision($precision) - { - $this->precision = $precision; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderReturn.php b/includes/classes/vendors/square/connect/lib/Model/OrderReturn.php deleted file mode 100644 index 10df1ef66d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderReturn.php +++ /dev/null @@ -1,378 +0,0 @@ - 'string', - 'source_order_id' => 'string', - 'return_line_items' => '\SquareConnect\Model\OrderReturnLineItem[]', - 'return_service_charges' => '\SquareConnect\Model\OrderReturnServiceCharge[]', - 'return_taxes' => '\SquareConnect\Model\OrderReturnTax[]', - 'return_discounts' => '\SquareConnect\Model\OrderReturnDiscount[]', - 'rounding_adjustment' => '\SquareConnect\Model\OrderRoundingAdjustment', - 'return_amounts' => '\SquareConnect\Model\OrderMoneyAmounts' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'source_order_id' => 'source_order_id', - 'return_line_items' => 'return_line_items', - 'return_service_charges' => 'return_service_charges', - 'return_taxes' => 'return_taxes', - 'return_discounts' => 'return_discounts', - 'rounding_adjustment' => 'rounding_adjustment', - 'return_amounts' => 'return_amounts' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'source_order_id' => 'setSourceOrderId', - 'return_line_items' => 'setReturnLineItems', - 'return_service_charges' => 'setReturnServiceCharges', - 'return_taxes' => 'setReturnTaxes', - 'return_discounts' => 'setReturnDiscounts', - 'rounding_adjustment' => 'setRoundingAdjustment', - 'return_amounts' => 'setReturnAmounts' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'source_order_id' => 'getSourceOrderId', - 'return_line_items' => 'getReturnLineItems', - 'return_service_charges' => 'getReturnServiceCharges', - 'return_taxes' => 'getReturnTaxes', - 'return_discounts' => 'getReturnDiscounts', - 'rounding_adjustment' => 'getRoundingAdjustment', - 'return_amounts' => 'getReturnAmounts' - ); - - /** - * $uid Unique ID that identifies the return only within this order. - * @var string - */ - protected $uid; - /** - * $source_order_id Order which contains the original sale of these returned line items. This will be unset for unlinked returns. - * @var string - */ - protected $source_order_id; - /** - * $return_line_items Collection of line items which are being returned. - * @var \SquareConnect\Model\OrderReturnLineItem[] - */ - protected $return_line_items; - /** - * $return_service_charges Collection of service charges which are being returned. - * @var \SquareConnect\Model\OrderReturnServiceCharge[] - */ - protected $return_service_charges; - /** - * $return_taxes Collection of references to taxes being returned for an order, including the total applied tax amount to be returned. The taxes must reference a top-level tax ID from the source order. - * @var \SquareConnect\Model\OrderReturnTax[] - */ - protected $return_taxes; - /** - * $return_discounts Collection of references to discounts being returned for an order, including the total applied discount amount to be returned. The discounts must reference a top-level discount ID from the source order. - * @var \SquareConnect\Model\OrderReturnDiscount[] - */ - protected $return_discounts; - /** - * $rounding_adjustment A positive or negative rounding adjustment to the total value being returned. Commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. - * @var \SquareConnect\Model\OrderRoundingAdjustment - */ - protected $rounding_adjustment; - /** - * $return_amounts Aggregate monetary value being returned by this Return entry. - * @var \SquareConnect\Model\OrderMoneyAmounts - */ - protected $return_amounts; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["source_order_id"])) { - $this->source_order_id = $data["source_order_id"]; - } else { - $this->source_order_id = null; - } - if (isset($data["return_line_items"])) { - $this->return_line_items = $data["return_line_items"]; - } else { - $this->return_line_items = null; - } - if (isset($data["return_service_charges"])) { - $this->return_service_charges = $data["return_service_charges"]; - } else { - $this->return_service_charges = null; - } - if (isset($data["return_taxes"])) { - $this->return_taxes = $data["return_taxes"]; - } else { - $this->return_taxes = null; - } - if (isset($data["return_discounts"])) { - $this->return_discounts = $data["return_discounts"]; - } else { - $this->return_discounts = null; - } - if (isset($data["rounding_adjustment"])) { - $this->rounding_adjustment = $data["rounding_adjustment"]; - } else { - $this->rounding_adjustment = null; - } - if (isset($data["return_amounts"])) { - $this->return_amounts = $data["return_amounts"]; - } else { - $this->return_amounts = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the return only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets source_order_id - * @return string - */ - public function getSourceOrderId() - { - return $this->source_order_id; - } - - /** - * Sets source_order_id - * @param string $source_order_id Order which contains the original sale of these returned line items. This will be unset for unlinked returns. - * @return $this - */ - public function setSourceOrderId($source_order_id) - { - $this->source_order_id = $source_order_id; - return $this; - } - /** - * Gets return_line_items - * @return \SquareConnect\Model\OrderReturnLineItem[] - */ - public function getReturnLineItems() - { - return $this->return_line_items; - } - - /** - * Sets return_line_items - * @param \SquareConnect\Model\OrderReturnLineItem[] $return_line_items Collection of line items which are being returned. - * @return $this - */ - public function setReturnLineItems($return_line_items) - { - $this->return_line_items = $return_line_items; - return $this; - } - /** - * Gets return_service_charges - * @return \SquareConnect\Model\OrderReturnServiceCharge[] - */ - public function getReturnServiceCharges() - { - return $this->return_service_charges; - } - - /** - * Sets return_service_charges - * @param \SquareConnect\Model\OrderReturnServiceCharge[] $return_service_charges Collection of service charges which are being returned. - * @return $this - */ - public function setReturnServiceCharges($return_service_charges) - { - $this->return_service_charges = $return_service_charges; - return $this; - } - /** - * Gets return_taxes - * @return \SquareConnect\Model\OrderReturnTax[] - */ - public function getReturnTaxes() - { - return $this->return_taxes; - } - - /** - * Sets return_taxes - * @param \SquareConnect\Model\OrderReturnTax[] $return_taxes Collection of references to taxes being returned for an order, including the total applied tax amount to be returned. The taxes must reference a top-level tax ID from the source order. - * @return $this - */ - public function setReturnTaxes($return_taxes) - { - $this->return_taxes = $return_taxes; - return $this; - } - /** - * Gets return_discounts - * @return \SquareConnect\Model\OrderReturnDiscount[] - */ - public function getReturnDiscounts() - { - return $this->return_discounts; - } - - /** - * Sets return_discounts - * @param \SquareConnect\Model\OrderReturnDiscount[] $return_discounts Collection of references to discounts being returned for an order, including the total applied discount amount to be returned. The discounts must reference a top-level discount ID from the source order. - * @return $this - */ - public function setReturnDiscounts($return_discounts) - { - $this->return_discounts = $return_discounts; - return $this; - } - /** - * Gets rounding_adjustment - * @return \SquareConnect\Model\OrderRoundingAdjustment - */ - public function getRoundingAdjustment() - { - return $this->rounding_adjustment; - } - - /** - * Sets rounding_adjustment - * @param \SquareConnect\Model\OrderRoundingAdjustment $rounding_adjustment A positive or negative rounding adjustment to the total value being returned. Commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency. - * @return $this - */ - public function setRoundingAdjustment($rounding_adjustment) - { - $this->rounding_adjustment = $rounding_adjustment; - return $this; - } - /** - * Gets return_amounts - * @return \SquareConnect\Model\OrderMoneyAmounts - */ - public function getReturnAmounts() - { - return $this->return_amounts; - } - - /** - * Sets return_amounts - * @param \SquareConnect\Model\OrderMoneyAmounts $return_amounts Aggregate monetary value being returned by this Return entry. - * @return $this - */ - public function setReturnAmounts($return_amounts) - { - $this->return_amounts = $return_amounts; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderReturnDiscount.php b/includes/classes/vendors/square/connect/lib/Model/OrderReturnDiscount.php deleted file mode 100644 index 364595c2fd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderReturnDiscount.php +++ /dev/null @@ -1,411 +0,0 @@ - 'string', - 'source_discount_uid' => 'string', - 'catalog_object_id' => 'string', - 'name' => 'string', - 'type' => 'string', - 'percentage' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'applied_money' => '\SquareConnect\Model\Money', - 'scope' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'source_discount_uid' => 'source_discount_uid', - 'catalog_object_id' => 'catalog_object_id', - 'name' => 'name', - 'type' => 'type', - 'percentage' => 'percentage', - 'amount_money' => 'amount_money', - 'applied_money' => 'applied_money', - 'scope' => 'scope' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'source_discount_uid' => 'setSourceDiscountUid', - 'catalog_object_id' => 'setCatalogObjectId', - 'name' => 'setName', - 'type' => 'setType', - 'percentage' => 'setPercentage', - 'amount_money' => 'setAmountMoney', - 'applied_money' => 'setAppliedMoney', - 'scope' => 'setScope' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'source_discount_uid' => 'getSourceDiscountUid', - 'catalog_object_id' => 'getCatalogObjectId', - 'name' => 'getName', - 'type' => 'getType', - 'percentage' => 'getPercentage', - 'amount_money' => 'getAmountMoney', - 'applied_money' => 'getAppliedMoney', - 'scope' => 'getScope' - ); - - /** - * $uid Unique ID that identifies the return discount only within this order. - * @var string - */ - protected $uid; - /** - * $source_discount_uid `uid` of the Discount from the Order which contains the original application of this discount. - * @var string - */ - protected $source_discount_uid; - /** - * $catalog_object_id The catalog object id referencing `CatalogDiscount`. - * @var string - */ - protected $catalog_object_id; - /** - * $name The discount's name. - * @var string - */ - protected $name; - /** - * $type The type of the discount. If it is created by API, it would be either `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. Discounts that don't reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values - * @var string - */ - protected $type; - /** - * $percentage The percentage of the tax, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts. - * @var string - */ - protected $percentage; - /** - * $amount_money The total declared monetary amount of the discount. `amount_money` is not set for percentage-based discounts. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $applied_money The amount of discount actually applied to this line item. When an amount-based discount is at order-level, this value is different from `amount_money` because the discount is distributed across the line items. - * @var \SquareConnect\Model\Money - */ - protected $applied_money; - /** - * $scope Indicates the level at which the `OrderReturnDiscount` applies. For `ORDER` scoped discounts, the server will generate references in `applied_discounts` on all `OrderReturnLineItem`s. For `LINE_ITEM` scoped discounts, the discount will only apply to `OrderReturnLineItem`s with references in their `applied_discounts` field. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values - * @var string - */ - protected $scope; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["source_discount_uid"])) { - $this->source_discount_uid = $data["source_discount_uid"]; - } else { - $this->source_discount_uid = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["percentage"])) { - $this->percentage = $data["percentage"]; - } else { - $this->percentage = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["scope"])) { - $this->scope = $data["scope"]; - } else { - $this->scope = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the return discount only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets source_discount_uid - * @return string - */ - public function getSourceDiscountUid() - { - return $this->source_discount_uid; - } - - /** - * Sets source_discount_uid - * @param string $source_discount_uid `uid` of the Discount from the Order which contains the original application of this discount. - * @return $this - */ - public function setSourceDiscountUid($source_discount_uid) - { - $this->source_discount_uid = $source_discount_uid; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The catalog object id referencing `CatalogDiscount`. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The discount's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of the discount. If it is created by API, it would be either `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. Discounts that don't reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets percentage - * @return string - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Sets percentage - * @param string $percentage The percentage of the tax, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts. - * @return $this - */ - public function setPercentage($percentage) - { - $this->percentage = $percentage; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The total declared monetary amount of the discount. `amount_money` is not set for percentage-based discounts. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\Money $applied_money The amount of discount actually applied to this line item. When an amount-based discount is at order-level, this value is different from `amount_money` because the discount is distributed across the line items. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets scope - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Sets scope - * @param string $scope Indicates the level at which the `OrderReturnDiscount` applies. For `ORDER` scoped discounts, the server will generate references in `applied_discounts` on all `OrderReturnLineItem`s. For `LINE_ITEM` scoped discounts, the discount will only apply to `OrderReturnLineItem`s with references in their `applied_discounts` field. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values - * @return $this - */ - public function setScope($scope) - { - $this->scope = $scope; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderReturnLineItem.php b/includes/classes/vendors/square/connect/lib/Model/OrderReturnLineItem.php deleted file mode 100644 index f227b6af7f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderReturnLineItem.php +++ /dev/null @@ -1,675 +0,0 @@ - 'string', - 'source_line_item_uid' => 'string', - 'name' => 'string', - 'quantity' => 'string', - 'quantity_unit' => '\SquareConnect\Model\OrderQuantityUnit', - 'note' => 'string', - 'catalog_object_id' => 'string', - 'variation_name' => 'string', - 'return_modifiers' => '\SquareConnect\Model\OrderReturnLineItemModifier[]', - 'applied_taxes' => '\SquareConnect\Model\OrderLineItemAppliedTax[]', - 'applied_discounts' => '\SquareConnect\Model\OrderLineItemAppliedDiscount[]', - 'base_price_money' => '\SquareConnect\Model\Money', - 'variation_total_price_money' => '\SquareConnect\Model\Money', - 'gross_return_money' => '\SquareConnect\Model\Money', - 'total_tax_money' => '\SquareConnect\Model\Money', - 'total_discount_money' => '\SquareConnect\Model\Money', - 'total_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'source_line_item_uid' => 'source_line_item_uid', - 'name' => 'name', - 'quantity' => 'quantity', - 'quantity_unit' => 'quantity_unit', - 'note' => 'note', - 'catalog_object_id' => 'catalog_object_id', - 'variation_name' => 'variation_name', - 'return_modifiers' => 'return_modifiers', - 'applied_taxes' => 'applied_taxes', - 'applied_discounts' => 'applied_discounts', - 'base_price_money' => 'base_price_money', - 'variation_total_price_money' => 'variation_total_price_money', - 'gross_return_money' => 'gross_return_money', - 'total_tax_money' => 'total_tax_money', - 'total_discount_money' => 'total_discount_money', - 'total_money' => 'total_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'source_line_item_uid' => 'setSourceLineItemUid', - 'name' => 'setName', - 'quantity' => 'setQuantity', - 'quantity_unit' => 'setQuantityUnit', - 'note' => 'setNote', - 'catalog_object_id' => 'setCatalogObjectId', - 'variation_name' => 'setVariationName', - 'return_modifiers' => 'setReturnModifiers', - 'applied_taxes' => 'setAppliedTaxes', - 'applied_discounts' => 'setAppliedDiscounts', - 'base_price_money' => 'setBasePriceMoney', - 'variation_total_price_money' => 'setVariationTotalPriceMoney', - 'gross_return_money' => 'setGrossReturnMoney', - 'total_tax_money' => 'setTotalTaxMoney', - 'total_discount_money' => 'setTotalDiscountMoney', - 'total_money' => 'setTotalMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'source_line_item_uid' => 'getSourceLineItemUid', - 'name' => 'getName', - 'quantity' => 'getQuantity', - 'quantity_unit' => 'getQuantityUnit', - 'note' => 'getNote', - 'catalog_object_id' => 'getCatalogObjectId', - 'variation_name' => 'getVariationName', - 'return_modifiers' => 'getReturnModifiers', - 'applied_taxes' => 'getAppliedTaxes', - 'applied_discounts' => 'getAppliedDiscounts', - 'base_price_money' => 'getBasePriceMoney', - 'variation_total_price_money' => 'getVariationTotalPriceMoney', - 'gross_return_money' => 'getGrossReturnMoney', - 'total_tax_money' => 'getTotalTaxMoney', - 'total_discount_money' => 'getTotalDiscountMoney', - 'total_money' => 'getTotalMoney' - ); - - /** - * $uid Unique identifier for this return line item entry. - * @var string - */ - protected $uid; - /** - * $source_line_item_uid `uid` of the LineItem in the original sale Order. - * @var string - */ - protected $source_line_item_uid; - /** - * $name The name of the line item. - * @var string - */ - protected $name; - /** - * $quantity The quantity returned, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`. - * @var string - */ - protected $quantity; - /** - * $quantity_unit The unit and precision that this return line item's quantity is measured in. - * @var \SquareConnect\Model\OrderQuantityUnit - */ - protected $quantity_unit; - /** - * $note The note of the returned line item. - * @var string - */ - protected $note; - /** - * $catalog_object_id The `CatalogItemVariation` id applied to this returned line item. - * @var string - */ - protected $catalog_object_id; - /** - * $variation_name The name of the variation applied to this returned line item. - * @var string - */ - protected $variation_name; - /** - * $return_modifiers The `CatalogModifier`s applied to this line item. - * @var \SquareConnect\Model\OrderReturnLineItemModifier[] - */ - protected $return_modifiers; - /** - * $applied_taxes The list of references to `OrderReturnTax` entities applied to the returned line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderReturnTax` applied to the returned line item. On reads, the amount applied is populated. - * @var \SquareConnect\Model\OrderLineItemAppliedTax[] - */ - protected $applied_taxes; - /** - * $applied_discounts The list of references to `OrderReturnDiscount` entities applied to the returned line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderReturnDiscount` applied to the returned line item. On reads, the amount applied is populated. - * @var \SquareConnect\Model\OrderLineItemAppliedDiscount[] - */ - protected $applied_discounts; - /** - * $base_price_money The base price for a single unit of the line item. - * @var \SquareConnect\Model\Money - */ - protected $base_price_money; - /** - * $variation_total_price_money The total price of all item variations returned in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers. - * @var \SquareConnect\Model\Money - */ - protected $variation_total_price_money; - /** - * $gross_return_money The gross return amount of money calculated as (item base price + modifiers price) * quantity. - * @var \SquareConnect\Model\Money - */ - protected $gross_return_money; - /** - * $total_tax_money The total tax amount of money to return for the line item. - * @var \SquareConnect\Model\Money - */ - protected $total_tax_money; - /** - * $total_discount_money The total discount amount of money to return for the line item. - * @var \SquareConnect\Model\Money - */ - protected $total_discount_money; - /** - * $total_money The total amount of money to return for this line item. - * @var \SquareConnect\Model\Money - */ - protected $total_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["source_line_item_uid"])) { - $this->source_line_item_uid = $data["source_line_item_uid"]; - } else { - $this->source_line_item_uid = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["quantity"])) { - $this->quantity = $data["quantity"]; - } else { - $this->quantity = null; - } - if (isset($data["quantity_unit"])) { - $this->quantity_unit = $data["quantity_unit"]; - } else { - $this->quantity_unit = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["variation_name"])) { - $this->variation_name = $data["variation_name"]; - } else { - $this->variation_name = null; - } - if (isset($data["return_modifiers"])) { - $this->return_modifiers = $data["return_modifiers"]; - } else { - $this->return_modifiers = null; - } - if (isset($data["applied_taxes"])) { - $this->applied_taxes = $data["applied_taxes"]; - } else { - $this->applied_taxes = null; - } - if (isset($data["applied_discounts"])) { - $this->applied_discounts = $data["applied_discounts"]; - } else { - $this->applied_discounts = null; - } - if (isset($data["base_price_money"])) { - $this->base_price_money = $data["base_price_money"]; - } else { - $this->base_price_money = null; - } - if (isset($data["variation_total_price_money"])) { - $this->variation_total_price_money = $data["variation_total_price_money"]; - } else { - $this->variation_total_price_money = null; - } - if (isset($data["gross_return_money"])) { - $this->gross_return_money = $data["gross_return_money"]; - } else { - $this->gross_return_money = null; - } - if (isset($data["total_tax_money"])) { - $this->total_tax_money = $data["total_tax_money"]; - } else { - $this->total_tax_money = null; - } - if (isset($data["total_discount_money"])) { - $this->total_discount_money = $data["total_discount_money"]; - } else { - $this->total_discount_money = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique identifier for this return line item entry. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets source_line_item_uid - * @return string - */ - public function getSourceLineItemUid() - { - return $this->source_line_item_uid; - } - - /** - * Sets source_line_item_uid - * @param string $source_line_item_uid `uid` of the LineItem in the original sale Order. - * @return $this - */ - public function setSourceLineItemUid($source_line_item_uid) - { - $this->source_line_item_uid = $source_line_item_uid; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the line item. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets quantity - * @return string - */ - public function getQuantity() - { - return $this->quantity; - } - - /** - * Sets quantity - * @param string $quantity The quantity returned, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`. - * @return $this - */ - public function setQuantity($quantity) - { - $this->quantity = $quantity; - return $this; - } - /** - * Gets quantity_unit - * @return \SquareConnect\Model\OrderQuantityUnit - */ - public function getQuantityUnit() - { - return $this->quantity_unit; - } - - /** - * Sets quantity_unit - * @param \SquareConnect\Model\OrderQuantityUnit $quantity_unit The unit and precision that this return line item's quantity is measured in. - * @return $this - */ - public function setQuantityUnit($quantity_unit) - { - $this->quantity_unit = $quantity_unit; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note The note of the returned line item. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The `CatalogItemVariation` id applied to this returned line item. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets variation_name - * @return string - */ - public function getVariationName() - { - return $this->variation_name; - } - - /** - * Sets variation_name - * @param string $variation_name The name of the variation applied to this returned line item. - * @return $this - */ - public function setVariationName($variation_name) - { - $this->variation_name = $variation_name; - return $this; - } - /** - * Gets return_modifiers - * @return \SquareConnect\Model\OrderReturnLineItemModifier[] - */ - public function getReturnModifiers() - { - return $this->return_modifiers; - } - - /** - * Sets return_modifiers - * @param \SquareConnect\Model\OrderReturnLineItemModifier[] $return_modifiers The `CatalogModifier`s applied to this line item. - * @return $this - */ - public function setReturnModifiers($return_modifiers) - { - $this->return_modifiers = $return_modifiers; - return $this; - } - /** - * Gets applied_taxes - * @return \SquareConnect\Model\OrderLineItemAppliedTax[] - */ - public function getAppliedTaxes() - { - return $this->applied_taxes; - } - - /** - * Sets applied_taxes - * @param \SquareConnect\Model\OrderLineItemAppliedTax[] $applied_taxes The list of references to `OrderReturnTax` entities applied to the returned line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderReturnTax` applied to the returned line item. On reads, the amount applied is populated. - * @return $this - */ - public function setAppliedTaxes($applied_taxes) - { - $this->applied_taxes = $applied_taxes; - return $this; - } - /** - * Gets applied_discounts - * @return \SquareConnect\Model\OrderLineItemAppliedDiscount[] - */ - public function getAppliedDiscounts() - { - return $this->applied_discounts; - } - - /** - * Sets applied_discounts - * @param \SquareConnect\Model\OrderLineItemAppliedDiscount[] $applied_discounts The list of references to `OrderReturnDiscount` entities applied to the returned line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderReturnDiscount` applied to the returned line item. On reads, the amount applied is populated. - * @return $this - */ - public function setAppliedDiscounts($applied_discounts) - { - $this->applied_discounts = $applied_discounts; - return $this; - } - /** - * Gets base_price_money - * @return \SquareConnect\Model\Money - */ - public function getBasePriceMoney() - { - return $this->base_price_money; - } - - /** - * Sets base_price_money - * @param \SquareConnect\Model\Money $base_price_money The base price for a single unit of the line item. - * @return $this - */ - public function setBasePriceMoney($base_price_money) - { - $this->base_price_money = $base_price_money; - return $this; - } - /** - * Gets variation_total_price_money - * @return \SquareConnect\Model\Money - */ - public function getVariationTotalPriceMoney() - { - return $this->variation_total_price_money; - } - - /** - * Sets variation_total_price_money - * @param \SquareConnect\Model\Money $variation_total_price_money The total price of all item variations returned in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers. - * @return $this - */ - public function setVariationTotalPriceMoney($variation_total_price_money) - { - $this->variation_total_price_money = $variation_total_price_money; - return $this; - } - /** - * Gets gross_return_money - * @return \SquareConnect\Model\Money - */ - public function getGrossReturnMoney() - { - return $this->gross_return_money; - } - - /** - * Sets gross_return_money - * @param \SquareConnect\Model\Money $gross_return_money The gross return amount of money calculated as (item base price + modifiers price) * quantity. - * @return $this - */ - public function setGrossReturnMoney($gross_return_money) - { - $this->gross_return_money = $gross_return_money; - return $this; - } - /** - * Gets total_tax_money - * @return \SquareConnect\Model\Money - */ - public function getTotalTaxMoney() - { - return $this->total_tax_money; - } - - /** - * Sets total_tax_money - * @param \SquareConnect\Model\Money $total_tax_money The total tax amount of money to return for the line item. - * @return $this - */ - public function setTotalTaxMoney($total_tax_money) - { - $this->total_tax_money = $total_tax_money; - return $this; - } - /** - * Gets total_discount_money - * @return \SquareConnect\Model\Money - */ - public function getTotalDiscountMoney() - { - return $this->total_discount_money; - } - - /** - * Sets total_discount_money - * @param \SquareConnect\Model\Money $total_discount_money The total discount amount of money to return for the line item. - * @return $this - */ - public function setTotalDiscountMoney($total_discount_money) - { - $this->total_discount_money = $total_discount_money; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\Money $total_money The total amount of money to return for this line item. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderReturnLineItemModifier.php b/includes/classes/vendors/square/connect/lib/Model/OrderReturnLineItemModifier.php deleted file mode 100644 index 5aed861d7a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderReturnLineItemModifier.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'source_modifier_uid' => 'string', - 'catalog_object_id' => 'string', - 'name' => 'string', - 'base_price_money' => '\SquareConnect\Model\Money', - 'total_price_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'source_modifier_uid' => 'source_modifier_uid', - 'catalog_object_id' => 'catalog_object_id', - 'name' => 'name', - 'base_price_money' => 'base_price_money', - 'total_price_money' => 'total_price_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'source_modifier_uid' => 'setSourceModifierUid', - 'catalog_object_id' => 'setCatalogObjectId', - 'name' => 'setName', - 'base_price_money' => 'setBasePriceMoney', - 'total_price_money' => 'setTotalPriceMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'source_modifier_uid' => 'getSourceModifierUid', - 'catalog_object_id' => 'getCatalogObjectId', - 'name' => 'getName', - 'base_price_money' => 'getBasePriceMoney', - 'total_price_money' => 'getTotalPriceMoney' - ); - - /** - * $uid Unique ID that identifies the return modifier only within this order. - * @var string - */ - protected $uid; - /** - * $source_modifier_uid `uid` of the Modifier from the LineItem from the Order which contains the original sale of this line item modifier. - * @var string - */ - protected $source_modifier_uid; - /** - * $catalog_object_id The catalog object id referencing `CatalogModifier`. - * @var string - */ - protected $catalog_object_id; - /** - * $name The name of the item modifier. - * @var string - */ - protected $name; - /** - * $base_price_money The base price for the modifier. `base_price_money` is required for ad hoc modifiers. If both `catalog_object_id` and `base_price_money` are set, `base_price_money` will override the predefined `CatalogModifier` price. - * @var \SquareConnect\Model\Money - */ - protected $base_price_money; - /** - * $total_price_money The total price of the item modifier for its line item. This is the modifier's `base_price_money` multiplied by the line item's quantity. - * @var \SquareConnect\Model\Money - */ - protected $total_price_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["source_modifier_uid"])) { - $this->source_modifier_uid = $data["source_modifier_uid"]; - } else { - $this->source_modifier_uid = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["base_price_money"])) { - $this->base_price_money = $data["base_price_money"]; - } else { - $this->base_price_money = null; - } - if (isset($data["total_price_money"])) { - $this->total_price_money = $data["total_price_money"]; - } else { - $this->total_price_money = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the return modifier only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets source_modifier_uid - * @return string - */ - public function getSourceModifierUid() - { - return $this->source_modifier_uid; - } - - /** - * Sets source_modifier_uid - * @param string $source_modifier_uid `uid` of the Modifier from the LineItem from the Order which contains the original sale of this line item modifier. - * @return $this - */ - public function setSourceModifierUid($source_modifier_uid) - { - $this->source_modifier_uid = $source_modifier_uid; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The catalog object id referencing `CatalogModifier`. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the item modifier. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets base_price_money - * @return \SquareConnect\Model\Money - */ - public function getBasePriceMoney() - { - return $this->base_price_money; - } - - /** - * Sets base_price_money - * @param \SquareConnect\Model\Money $base_price_money The base price for the modifier. `base_price_money` is required for ad hoc modifiers. If both `catalog_object_id` and `base_price_money` are set, `base_price_money` will override the predefined `CatalogModifier` price. - * @return $this - */ - public function setBasePriceMoney($base_price_money) - { - $this->base_price_money = $base_price_money; - return $this; - } - /** - * Gets total_price_money - * @return \SquareConnect\Model\Money - */ - public function getTotalPriceMoney() - { - return $this->total_price_money; - } - - /** - * Sets total_price_money - * @param \SquareConnect\Model\Money $total_price_money The total price of the item modifier for its line item. This is the modifier's `base_price_money` multiplied by the line item's quantity. - * @return $this - */ - public function setTotalPriceMoney($total_price_money) - { - $this->total_price_money = $total_price_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderReturnServiceCharge.php b/includes/classes/vendors/square/connect/lib/Model/OrderReturnServiceCharge.php deleted file mode 100644 index bd7b357780..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderReturnServiceCharge.php +++ /dev/null @@ -1,509 +0,0 @@ - 'string', - 'source_service_charge_uid' => 'string', - 'name' => 'string', - 'catalog_object_id' => 'string', - 'percentage' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'applied_money' => '\SquareConnect\Model\Money', - 'total_money' => '\SquareConnect\Model\Money', - 'total_tax_money' => '\SquareConnect\Model\Money', - 'calculation_phase' => 'string', - 'taxable' => 'bool', - 'applied_taxes' => '\SquareConnect\Model\OrderLineItemAppliedTax[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'source_service_charge_uid' => 'source_service_charge_uid', - 'name' => 'name', - 'catalog_object_id' => 'catalog_object_id', - 'percentage' => 'percentage', - 'amount_money' => 'amount_money', - 'applied_money' => 'applied_money', - 'total_money' => 'total_money', - 'total_tax_money' => 'total_tax_money', - 'calculation_phase' => 'calculation_phase', - 'taxable' => 'taxable', - 'applied_taxes' => 'applied_taxes' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'source_service_charge_uid' => 'setSourceServiceChargeUid', - 'name' => 'setName', - 'catalog_object_id' => 'setCatalogObjectId', - 'percentage' => 'setPercentage', - 'amount_money' => 'setAmountMoney', - 'applied_money' => 'setAppliedMoney', - 'total_money' => 'setTotalMoney', - 'total_tax_money' => 'setTotalTaxMoney', - 'calculation_phase' => 'setCalculationPhase', - 'taxable' => 'setTaxable', - 'applied_taxes' => 'setAppliedTaxes' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'source_service_charge_uid' => 'getSourceServiceChargeUid', - 'name' => 'getName', - 'catalog_object_id' => 'getCatalogObjectId', - 'percentage' => 'getPercentage', - 'amount_money' => 'getAmountMoney', - 'applied_money' => 'getAppliedMoney', - 'total_money' => 'getTotalMoney', - 'total_tax_money' => 'getTotalTaxMoney', - 'calculation_phase' => 'getCalculationPhase', - 'taxable' => 'getTaxable', - 'applied_taxes' => 'getAppliedTaxes' - ); - - /** - * $uid Unique ID that identifies the return service charge only within this order. - * @var string - */ - protected $uid; - /** - * $source_service_charge_uid `uid` of the Service Charge from the Order containing the original charge of the service charge. `source_service_charge_uid` is `null` for unlinked returns. - * @var string - */ - protected $source_service_charge_uid; - /** - * $name The name of the service charge. - * @var string - */ - protected $name; - /** - * $catalog_object_id The catalog object ID of the associated `CatalogServiceCharge`. - * @var string - */ - protected $catalog_object_id; - /** - * $percentage The percentage of the service charge, as a string representation of a decimal number. For example, a value of `\"7.25\"` corresponds to a percentage of 7.25%. Exactly one of `percentage` or `amount_money` should be set. - * @var string - */ - protected $percentage; - /** - * $amount_money The amount of a non-percentage based service charge. Exactly one of `percentage` or `amount_money` should be set. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $applied_money The amount of money applied to the order by the service charge, including any inclusive tax amounts, as calculated by Square. - For fixed-amount service charges, `applied_money` is equal to `amount_money`. - For percentage-based service charges, `applied_money` is the money calculated using the percentage. - * @var \SquareConnect\Model\Money - */ - protected $applied_money; - /** - * $total_money The total amount of money to collect for the service charge. __NOTE__: if an inclusive tax is applied to the service charge, `total_money` does not equal `applied_money` plus `total_tax_money` since the inclusive tax amount will already be included in both `applied_money` and `total_tax_money`. - * @var \SquareConnect\Model\Money - */ - protected $total_money; - /** - * $total_tax_money The total amount of tax money to collect for the service charge. - * @var \SquareConnect\Model\Money - */ - protected $total_tax_money; - /** - * $calculation_phase The calculation phase after which to apply the service charge. See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values - * @var string - */ - protected $calculation_phase; - /** - * $taxable Indicates whether the surcharge can be taxed. Service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable. - * @var bool - */ - protected $taxable; - /** - * $applied_taxes The list of references to `OrderReturnTax` entities applied to the `OrderReturnServiceCharge`. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderReturnTax` that is being applied to the `OrderReturnServiceCharge`. On reads, the amount applied is populated. - * @var \SquareConnect\Model\OrderLineItemAppliedTax[] - */ - protected $applied_taxes; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["source_service_charge_uid"])) { - $this->source_service_charge_uid = $data["source_service_charge_uid"]; - } else { - $this->source_service_charge_uid = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["percentage"])) { - $this->percentage = $data["percentage"]; - } else { - $this->percentage = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - if (isset($data["total_tax_money"])) { - $this->total_tax_money = $data["total_tax_money"]; - } else { - $this->total_tax_money = null; - } - if (isset($data["calculation_phase"])) { - $this->calculation_phase = $data["calculation_phase"]; - } else { - $this->calculation_phase = null; - } - if (isset($data["taxable"])) { - $this->taxable = $data["taxable"]; - } else { - $this->taxable = null; - } - if (isset($data["applied_taxes"])) { - $this->applied_taxes = $data["applied_taxes"]; - } else { - $this->applied_taxes = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the return service charge only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets source_service_charge_uid - * @return string - */ - public function getSourceServiceChargeUid() - { - return $this->source_service_charge_uid; - } - - /** - * Sets source_service_charge_uid - * @param string $source_service_charge_uid `uid` of the Service Charge from the Order containing the original charge of the service charge. `source_service_charge_uid` is `null` for unlinked returns. - * @return $this - */ - public function setSourceServiceChargeUid($source_service_charge_uid) - { - $this->source_service_charge_uid = $source_service_charge_uid; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the service charge. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The catalog object ID of the associated `CatalogServiceCharge`. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets percentage - * @return string - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Sets percentage - * @param string $percentage The percentage of the service charge, as a string representation of a decimal number. For example, a value of `\"7.25\"` corresponds to a percentage of 7.25%. Exactly one of `percentage` or `amount_money` should be set. - * @return $this - */ - public function setPercentage($percentage) - { - $this->percentage = $percentage; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of a non-percentage based service charge. Exactly one of `percentage` or `amount_money` should be set. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\Money $applied_money The amount of money applied to the order by the service charge, including any inclusive tax amounts, as calculated by Square. - For fixed-amount service charges, `applied_money` is equal to `amount_money`. - For percentage-based service charges, `applied_money` is the money calculated using the percentage. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\Money $total_money The total amount of money to collect for the service charge. __NOTE__: if an inclusive tax is applied to the service charge, `total_money` does not equal `applied_money` plus `total_tax_money` since the inclusive tax amount will already be included in both `applied_money` and `total_tax_money`. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Gets total_tax_money - * @return \SquareConnect\Model\Money - */ - public function getTotalTaxMoney() - { - return $this->total_tax_money; - } - - /** - * Sets total_tax_money - * @param \SquareConnect\Model\Money $total_tax_money The total amount of tax money to collect for the service charge. - * @return $this - */ - public function setTotalTaxMoney($total_tax_money) - { - $this->total_tax_money = $total_tax_money; - return $this; - } - /** - * Gets calculation_phase - * @return string - */ - public function getCalculationPhase() - { - return $this->calculation_phase; - } - - /** - * Sets calculation_phase - * @param string $calculation_phase The calculation phase after which to apply the service charge. See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values - * @return $this - */ - public function setCalculationPhase($calculation_phase) - { - $this->calculation_phase = $calculation_phase; - return $this; - } - /** - * Gets taxable - * @return bool - */ - public function getTaxable() - { - return $this->taxable; - } - - /** - * Sets taxable - * @param bool $taxable Indicates whether the surcharge can be taxed. Service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable. - * @return $this - */ - public function setTaxable($taxable) - { - $this->taxable = $taxable; - return $this; - } - /** - * Gets applied_taxes - * @return \SquareConnect\Model\OrderLineItemAppliedTax[] - */ - public function getAppliedTaxes() - { - return $this->applied_taxes; - } - - /** - * Sets applied_taxes - * @param \SquareConnect\Model\OrderLineItemAppliedTax[] $applied_taxes The list of references to `OrderReturnTax` entities applied to the `OrderReturnServiceCharge`. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderReturnTax` that is being applied to the `OrderReturnServiceCharge`. On reads, the amount applied is populated. - * @return $this - */ - public function setAppliedTaxes($applied_taxes) - { - $this->applied_taxes = $applied_taxes; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderReturnTax.php b/includes/classes/vendors/square/connect/lib/Model/OrderReturnTax.php deleted file mode 100644 index 8fc296bae6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderReturnTax.php +++ /dev/null @@ -1,378 +0,0 @@ - 'string', - 'source_tax_uid' => 'string', - 'catalog_object_id' => 'string', - 'name' => 'string', - 'type' => 'string', - 'percentage' => 'string', - 'applied_money' => '\SquareConnect\Model\Money', - 'scope' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'source_tax_uid' => 'source_tax_uid', - 'catalog_object_id' => 'catalog_object_id', - 'name' => 'name', - 'type' => 'type', - 'percentage' => 'percentage', - 'applied_money' => 'applied_money', - 'scope' => 'scope' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'source_tax_uid' => 'setSourceTaxUid', - 'catalog_object_id' => 'setCatalogObjectId', - 'name' => 'setName', - 'type' => 'setType', - 'percentage' => 'setPercentage', - 'applied_money' => 'setAppliedMoney', - 'scope' => 'setScope' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'source_tax_uid' => 'getSourceTaxUid', - 'catalog_object_id' => 'getCatalogObjectId', - 'name' => 'getName', - 'type' => 'getType', - 'percentage' => 'getPercentage', - 'applied_money' => 'getAppliedMoney', - 'scope' => 'getScope' - ); - - /** - * $uid Unique ID that identifies the return tax only within this order. - * @var string - */ - protected $uid; - /** - * $source_tax_uid `uid` of the Tax from the Order which contains the original charge of this tax. - * @var string - */ - protected $source_tax_uid; - /** - * $catalog_object_id The catalog object id referencing `CatalogTax`. - * @var string - */ - protected $catalog_object_id; - /** - * $name The tax's name. - * @var string - */ - protected $name; - /** - * $type Indicates the calculation method used to apply the tax. See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values - * @var string - */ - protected $type; - /** - * $percentage The percentage of the tax, as a string representation of a decimal number. For example, a value of `\"7.25\"` corresponds to a percentage of 7.25%. - * @var string - */ - protected $percentage; - /** - * $applied_money The amount of the money applied by the tax in an order. - * @var \SquareConnect\Model\Money - */ - protected $applied_money; - /** - * $scope Indicates the level at which the `OrderReturnTax` applies. For `ORDER` scoped taxes, Square generates references in `applied_taxes` on all `OrderReturnLineItem`s. For `LINE_ITEM` scoped taxes, the tax will only apply to `OrderReturnLineItem`s with references in their `applied_discounts` field. See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values - * @var string - */ - protected $scope; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["source_tax_uid"])) { - $this->source_tax_uid = $data["source_tax_uid"]; - } else { - $this->source_tax_uid = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["percentage"])) { - $this->percentage = $data["percentage"]; - } else { - $this->percentage = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["scope"])) { - $this->scope = $data["scope"]; - } else { - $this->scope = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the return tax only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets source_tax_uid - * @return string - */ - public function getSourceTaxUid() - { - return $this->source_tax_uid; - } - - /** - * Sets source_tax_uid - * @param string $source_tax_uid `uid` of the Tax from the Order which contains the original charge of this tax. - * @return $this - */ - public function setSourceTaxUid($source_tax_uid) - { - $this->source_tax_uid = $source_tax_uid; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The catalog object id referencing `CatalogTax`. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The tax's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type Indicates the calculation method used to apply the tax. See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets percentage - * @return string - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Sets percentage - * @param string $percentage The percentage of the tax, as a string representation of a decimal number. For example, a value of `\"7.25\"` corresponds to a percentage of 7.25%. - * @return $this - */ - public function setPercentage($percentage) - { - $this->percentage = $percentage; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\Money $applied_money The amount of the money applied by the tax in an order. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets scope - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Sets scope - * @param string $scope Indicates the level at which the `OrderReturnTax` applies. For `ORDER` scoped taxes, Square generates references in `applied_taxes` on all `OrderReturnLineItem`s. For `LINE_ITEM` scoped taxes, the tax will only apply to `OrderReturnLineItem`s with references in their `applied_discounts` field. See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values - * @return $this - */ - public function setScope($scope) - { - $this->scope = $scope; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderReward.php b/includes/classes/vendors/square/connect/lib/Model/OrderReward.php deleted file mode 100644 index d06a28f044..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderReward.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'reward_tier_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'reward_tier_id' => 'reward_tier_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'reward_tier_id' => 'setRewardTierId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'reward_tier_id' => 'getRewardTierId' - ); - - /** - * $id The identifier of the reward. - * @var string - */ - protected $id; - /** - * $reward_tier_id The identifier of the reward tier corresponding to this reward. - * @var string - */ - protected $reward_tier_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["reward_tier_id"])) { - $this->reward_tier_id = $data["reward_tier_id"]; - } else { - $this->reward_tier_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The identifier of the reward. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets reward_tier_id - * @return string - */ - public function getRewardTierId() - { - return $this->reward_tier_id; - } - - /** - * Sets reward_tier_id - * @param string $reward_tier_id The identifier of the reward tier corresponding to this reward. - * @return $this - */ - public function setRewardTierId($reward_tier_id) - { - $this->reward_tier_id = $reward_tier_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderRoundingAdjustment.php b/includes/classes/vendors/square/connect/lib/Model/OrderRoundingAdjustment.php deleted file mode 100644 index de402235b2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderRoundingAdjustment.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'name' => 'string', - 'amount_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'name' => 'name', - 'amount_money' => 'amount_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'name' => 'setName', - 'amount_money' => 'setAmountMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'name' => 'getName', - 'amount_money' => 'getAmountMoney' - ); - - /** - * $uid Unique ID that identifies the rounding adjustment only within this order. - * @var string - */ - protected $uid; - /** - * $name The name of the rounding adjustment from the original sale Order. - * @var string - */ - protected $name; - /** - * $amount_money Actual rounding adjustment amount. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the rounding adjustment only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the rounding adjustment from the original sale Order. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money Actual rounding adjustment amount. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderServiceCharge.php b/includes/classes/vendors/square/connect/lib/Model/OrderServiceCharge.php deleted file mode 100644 index f1f0cb5b43..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderServiceCharge.php +++ /dev/null @@ -1,509 +0,0 @@ - 'string', - 'name' => 'string', - 'catalog_object_id' => 'string', - 'percentage' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'applied_money' => '\SquareConnect\Model\Money', - 'total_money' => '\SquareConnect\Model\Money', - 'total_tax_money' => '\SquareConnect\Model\Money', - 'calculation_phase' => 'string', - 'taxable' => 'bool', - 'applied_taxes' => '\SquareConnect\Model\OrderLineItemAppliedTax[]', - 'metadata' => 'map[string,string]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'uid' => 'uid', - 'name' => 'name', - 'catalog_object_id' => 'catalog_object_id', - 'percentage' => 'percentage', - 'amount_money' => 'amount_money', - 'applied_money' => 'applied_money', - 'total_money' => 'total_money', - 'total_tax_money' => 'total_tax_money', - 'calculation_phase' => 'calculation_phase', - 'taxable' => 'taxable', - 'applied_taxes' => 'applied_taxes', - 'metadata' => 'metadata' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'uid' => 'setUid', - 'name' => 'setName', - 'catalog_object_id' => 'setCatalogObjectId', - 'percentage' => 'setPercentage', - 'amount_money' => 'setAmountMoney', - 'applied_money' => 'setAppliedMoney', - 'total_money' => 'setTotalMoney', - 'total_tax_money' => 'setTotalTaxMoney', - 'calculation_phase' => 'setCalculationPhase', - 'taxable' => 'setTaxable', - 'applied_taxes' => 'setAppliedTaxes', - 'metadata' => 'setMetadata' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'uid' => 'getUid', - 'name' => 'getName', - 'catalog_object_id' => 'getCatalogObjectId', - 'percentage' => 'getPercentage', - 'amount_money' => 'getAmountMoney', - 'applied_money' => 'getAppliedMoney', - 'total_money' => 'getTotalMoney', - 'total_tax_money' => 'getTotalTaxMoney', - 'calculation_phase' => 'getCalculationPhase', - 'taxable' => 'getTaxable', - 'applied_taxes' => 'getAppliedTaxes', - 'metadata' => 'getMetadata' - ); - - /** - * $uid Unique ID that identifies the service charge only within this order. - * @var string - */ - protected $uid; - /** - * $name The name of the service charge. - * @var string - */ - protected $name; - /** - * $catalog_object_id The catalog object ID referencing the service charge `CatalogObject`. - * @var string - */ - protected $catalog_object_id; - /** - * $percentage The service charge percentage as a string representation of a decimal number. For example, `\"7.25\"` indicates a service charge of 7.25%. Exactly 1 of `percentage` or `amount_money` should be set. - * @var string - */ - protected $percentage; - /** - * $amount_money The amount of a non-percentage based service charge. Exactly one of `percentage` or `amount_money` should be set. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $applied_money The amount of money applied to the order by the service charge, including any inclusive tax amounts, as calculated by Square. - For fixed-amount service charges, `applied_money` is equal to `amount_money`. - For percentage-based service charges, `applied_money` is the money calculated using the percentage. - * @var \SquareConnect\Model\Money - */ - protected $applied_money; - /** - * $total_money The total amount of money to collect for the service charge. __Note__: if an inclusive tax is applied to the service charge, `total_money` __does not__ equal `applied_money` plus `total_tax_money` since the inclusive tax amount will already be included in both `applied_money` and `total_tax_money`. - * @var \SquareConnect\Model\Money - */ - protected $total_money; - /** - * $total_tax_money The total amount of tax money to collect for the service charge. - * @var \SquareConnect\Model\Money - */ - protected $total_tax_money; - /** - * $calculation_phase The calculation phase at which to apply the service charge. See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values - * @var string - */ - protected $calculation_phase; - /** - * $taxable Indicates whether the service charge can be taxed. If set to `true`, order-level taxes automatically apply to the service charge. Note that service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable. - * @var bool - */ - protected $taxable; - /** - * $applied_taxes The list of references to taxes applied to this service charge. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` that is being applied to this service charge. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` will be automatically created on every taxable service charge for all `ORDER` scoped taxes that are added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any taxable service charge. Taxable service charges have the `taxable` field set to true and calculated in the `SUBTOTAL_PHASE`. To change the amount of a tax, modify the referenced top-level tax. - * @var \SquareConnect\Model\OrderLineItemAppliedTax[] - */ - protected $applied_taxes; - /** - * $metadata Application-defined data attached to this service charge. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @var map[string,string] - */ - protected $metadata; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["uid"])) { - $this->uid = $data["uid"]; - } else { - $this->uid = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["catalog_object_id"])) { - $this->catalog_object_id = $data["catalog_object_id"]; - } else { - $this->catalog_object_id = null; - } - if (isset($data["percentage"])) { - $this->percentage = $data["percentage"]; - } else { - $this->percentage = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - if (isset($data["total_tax_money"])) { - $this->total_tax_money = $data["total_tax_money"]; - } else { - $this->total_tax_money = null; - } - if (isset($data["calculation_phase"])) { - $this->calculation_phase = $data["calculation_phase"]; - } else { - $this->calculation_phase = null; - } - if (isset($data["taxable"])) { - $this->taxable = $data["taxable"]; - } else { - $this->taxable = null; - } - if (isset($data["applied_taxes"])) { - $this->applied_taxes = $data["applied_taxes"]; - } else { - $this->applied_taxes = null; - } - if (isset($data["metadata"])) { - $this->metadata = $data["metadata"]; - } else { - $this->metadata = null; - } - } - } - /** - * Gets uid - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Sets uid - * @param string $uid Unique ID that identifies the service charge only within this order. - * @return $this - */ - public function setUid($uid) - { - $this->uid = $uid; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the service charge. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets catalog_object_id - * @return string - */ - public function getCatalogObjectId() - { - return $this->catalog_object_id; - } - - /** - * Sets catalog_object_id - * @param string $catalog_object_id The catalog object ID referencing the service charge `CatalogObject`. - * @return $this - */ - public function setCatalogObjectId($catalog_object_id) - { - $this->catalog_object_id = $catalog_object_id; - return $this; - } - /** - * Gets percentage - * @return string - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Sets percentage - * @param string $percentage The service charge percentage as a string representation of a decimal number. For example, `\"7.25\"` indicates a service charge of 7.25%. Exactly 1 of `percentage` or `amount_money` should be set. - * @return $this - */ - public function setPercentage($percentage) - { - $this->percentage = $percentage; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of a non-percentage based service charge. Exactly one of `percentage` or `amount_money` should be set. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\Money $applied_money The amount of money applied to the order by the service charge, including any inclusive tax amounts, as calculated by Square. - For fixed-amount service charges, `applied_money` is equal to `amount_money`. - For percentage-based service charges, `applied_money` is the money calculated using the percentage. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\Money $total_money The total amount of money to collect for the service charge. __Note__: if an inclusive tax is applied to the service charge, `total_money` __does not__ equal `applied_money` plus `total_tax_money` since the inclusive tax amount will already be included in both `applied_money` and `total_tax_money`. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Gets total_tax_money - * @return \SquareConnect\Model\Money - */ - public function getTotalTaxMoney() - { - return $this->total_tax_money; - } - - /** - * Sets total_tax_money - * @param \SquareConnect\Model\Money $total_tax_money The total amount of tax money to collect for the service charge. - * @return $this - */ - public function setTotalTaxMoney($total_tax_money) - { - $this->total_tax_money = $total_tax_money; - return $this; - } - /** - * Gets calculation_phase - * @return string - */ - public function getCalculationPhase() - { - return $this->calculation_phase; - } - - /** - * Sets calculation_phase - * @param string $calculation_phase The calculation phase at which to apply the service charge. See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values - * @return $this - */ - public function setCalculationPhase($calculation_phase) - { - $this->calculation_phase = $calculation_phase; - return $this; - } - /** - * Gets taxable - * @return bool - */ - public function getTaxable() - { - return $this->taxable; - } - - /** - * Sets taxable - * @param bool $taxable Indicates whether the service charge can be taxed. If set to `true`, order-level taxes automatically apply to the service charge. Note that service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable. - * @return $this - */ - public function setTaxable($taxable) - { - $this->taxable = $taxable; - return $this; - } - /** - * Gets applied_taxes - * @return \SquareConnect\Model\OrderLineItemAppliedTax[] - */ - public function getAppliedTaxes() - { - return $this->applied_taxes; - } - - /** - * Sets applied_taxes - * @param \SquareConnect\Model\OrderLineItemAppliedTax[] $applied_taxes The list of references to taxes applied to this service charge. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` that is being applied to this service charge. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` will be automatically created on every taxable service charge for all `ORDER` scoped taxes that are added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any taxable service charge. Taxable service charges have the `taxable` field set to true and calculated in the `SUBTOTAL_PHASE`. To change the amount of a tax, modify the referenced top-level tax. - * @return $this - */ - public function setAppliedTaxes($applied_taxes) - { - $this->applied_taxes = $applied_taxes; - return $this; - } - /** - * Gets metadata - * @return map[string,string] - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Sets metadata - * @param map[string,string] $metadata Application-defined data attached to this service charge. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. - * @return $this - */ - public function setMetadata($metadata) - { - $this->metadata = $metadata; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderServiceChargeCalculationPhase.php b/includes/classes/vendors/square/connect/lib/Model/OrderServiceChargeCalculationPhase.php deleted file mode 100644 index c1f787f7bd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderServiceChargeCalculationPhase.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderSource.php b/includes/classes/vendors/square/connect/lib/Model/OrderSource.php deleted file mode 100644 index c98ee6a3b8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderSource.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName' - ); - - /** - * $name The name used to identify the place (physical or digital) that an order originates. If unset, the name defaults to the name of the application that created the order. - * @var string - */ - protected $name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name used to identify the place (physical or digital) that an order originates. If unset, the name defaults to the name of the application that created the order. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderState.php b/includes/classes/vendors/square/connect/lib/Model/OrderState.php deleted file mode 100644 index 749580dc23..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderState.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderUpdated.php b/includes/classes/vendors/square/connect/lib/Model/OrderUpdated.php deleted file mode 100644 index f7cfec0cb9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderUpdated.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'version' => 'int', - 'location_id' => 'string', - 'state' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_id' => 'order_id', - 'version' => 'version', - 'location_id' => 'location_id', - 'state' => 'state', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_id' => 'setOrderId', - 'version' => 'setVersion', - 'location_id' => 'setLocationId', - 'state' => 'setState', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_id' => 'getOrderId', - 'version' => 'getVersion', - 'location_id' => 'getLocationId', - 'state' => 'getState', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $order_id The order's unique ID. - * @var string - */ - protected $order_id; - /** - * $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/docs/orders-api/manage-orders#update-orders) - * @var int - */ - protected $version; - /** - * $location_id The ID of the merchant location this order is associated with. - * @var string - */ - protected $location_id; - /** - * $state The state of the order. See [OrderState](#type-orderstate) for possible values - * @var string - */ - protected $state; - /** - * $created_at Timestamp for when the order was created in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at Timestamp for when the order was last updated in RFC 3339 format. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The order's unique ID. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/docs/orders-api/manage-orders#update-orders) - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the merchant location this order is associated with. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state The state of the order. See [OrderState](#type-orderstate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at Timestamp for when the order was created in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at Timestamp for when the order was last updated in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/OrderUpdatedObject.php b/includes/classes/vendors/square/connect/lib/Model/OrderUpdatedObject.php deleted file mode 100644 index 2fc71f11db..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/OrderUpdatedObject.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\OrderUpdated' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_updated' => 'order_updated' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_updated' => 'setOrderUpdated' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_updated' => 'getOrderUpdated' - ); - - /** - * $order_updated Information about the updated order. - * @var \SquareConnect\Model\OrderUpdated - */ - protected $order_updated; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_updated"])) { - $this->order_updated = $data["order_updated"]; - } else { - $this->order_updated = null; - } - } - } - /** - * Gets order_updated - * @return \SquareConnect\Model\OrderUpdated - */ - public function getOrderUpdated() - { - return $this->order_updated; - } - - /** - * Sets order_updated - * @param \SquareConnect\Model\OrderUpdated $order_updated Information about the updated order. - * @return $this - */ - public function setOrderUpdated($order_updated) - { - $this->order_updated = $order_updated; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/PayOrderRequest.php b/includes/classes/vendors/square/connect/lib/Model/PayOrderRequest.php deleted file mode 100644 index 844ca7078d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/PayOrderRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'order_version' => 'int', - 'payment_ids' => 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'order_version' => 'order_version', - 'payment_ids' => 'payment_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'order_version' => 'setOrderVersion', - 'payment_ids' => 'setPaymentIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'order_version' => 'getOrderVersion', - 'payment_ids' => 'getPaymentIds' - ); - - /** - * $idempotency_key A value you specify that uniquely identifies this request among requests you've sent. If you're unsure whether a particular payment request was completed successfully, you can reattempt it with the same idempotency key without worrying about duplicate payments. See [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $order_version The version of the order being paid. If not supplied, the latest version will be paid. - * @var int - */ - protected $order_version; - /** - * $payment_ids The IDs of the `payments` to collect. The payment total must match the order total. - * @var string[] - */ - protected $payment_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["order_version"])) { - $this->order_version = $data["order_version"]; - } else { - $this->order_version = null; - } - if (isset($data["payment_ids"])) { - $this->payment_ids = $data["payment_ids"]; - } else { - $this->payment_ids = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A value you specify that uniquely identifies this request among requests you've sent. If you're unsure whether a particular payment request was completed successfully, you can reattempt it with the same idempotency key without worrying about duplicate payments. See [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets order_version - * @return int - */ - public function getOrderVersion() - { - return $this->order_version; - } - - /** - * Sets order_version - * @param int $order_version The version of the order being paid. If not supplied, the latest version will be paid. - * @return $this - */ - public function setOrderVersion($order_version) - { - $this->order_version = $order_version; - return $this; - } - /** - * Gets payment_ids - * @return string[] - */ - public function getPaymentIds() - { - return $this->payment_ids; - } - - /** - * Sets payment_ids - * @param string[] $payment_ids The IDs of the `payments` to collect. The payment total must match the order total. - * @return $this - */ - public function setPaymentIds($payment_ids) - { - $this->payment_ids = $payment_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/PayOrderResponse.php b/includes/classes/vendors/square/connect/lib/Model/PayOrderResponse.php deleted file mode 100644 index 575359e8ce..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/PayOrderResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'order' => '\SquareConnect\Model\Order' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'order' => 'order' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'order' => 'setOrder' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'order' => 'getOrder' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $order The paid, updated `order`. - * @var \SquareConnect\Model\Order - */ - protected $order; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets order - * @return \SquareConnect\Model\Order - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\Order $order The paid, updated `order`. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Payment.php b/includes/classes/vendors/square/connect/lib/Model/Payment.php deleted file mode 100644 index b6369af2c3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Payment.php +++ /dev/null @@ -1,1037 +0,0 @@ - 'string', - 'created_at' => 'string', - 'updated_at' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'tip_money' => '\SquareConnect\Model\Money', - 'total_money' => '\SquareConnect\Model\Money', - 'app_fee_money' => '\SquareConnect\Model\Money', - 'processing_fee' => '\SquareConnect\Model\ProcessingFee[]', - 'refunded_money' => '\SquareConnect\Model\Money', - 'status' => 'string', - 'delay_duration' => 'string', - 'delay_action' => 'string', - 'delayed_until' => 'string', - 'source_type' => 'string', - 'card_details' => '\SquareConnect\Model\CardPaymentDetails', - 'location_id' => 'string', - 'order_id' => 'string', - 'reference_id' => 'string', - 'customer_id' => 'string', - 'employee_id' => 'string', - 'refund_ids' => 'string[]', - 'buyer_email_address' => 'string', - 'billing_address' => '\SquareConnect\Model\Address', - 'shipping_address' => '\SquareConnect\Model\Address', - 'note' => 'string', - 'statement_description_identifier' => 'string', - 'receipt_number' => 'string', - 'receipt_url' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'amount_money' => 'amount_money', - 'tip_money' => 'tip_money', - 'total_money' => 'total_money', - 'app_fee_money' => 'app_fee_money', - 'processing_fee' => 'processing_fee', - 'refunded_money' => 'refunded_money', - 'status' => 'status', - 'delay_duration' => 'delay_duration', - 'delay_action' => 'delay_action', - 'delayed_until' => 'delayed_until', - 'source_type' => 'source_type', - 'card_details' => 'card_details', - 'location_id' => 'location_id', - 'order_id' => 'order_id', - 'reference_id' => 'reference_id', - 'customer_id' => 'customer_id', - 'employee_id' => 'employee_id', - 'refund_ids' => 'refund_ids', - 'buyer_email_address' => 'buyer_email_address', - 'billing_address' => 'billing_address', - 'shipping_address' => 'shipping_address', - 'note' => 'note', - 'statement_description_identifier' => 'statement_description_identifier', - 'receipt_number' => 'receipt_number', - 'receipt_url' => 'receipt_url' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'amount_money' => 'setAmountMoney', - 'tip_money' => 'setTipMoney', - 'total_money' => 'setTotalMoney', - 'app_fee_money' => 'setAppFeeMoney', - 'processing_fee' => 'setProcessingFee', - 'refunded_money' => 'setRefundedMoney', - 'status' => 'setStatus', - 'delay_duration' => 'setDelayDuration', - 'delay_action' => 'setDelayAction', - 'delayed_until' => 'setDelayedUntil', - 'source_type' => 'setSourceType', - 'card_details' => 'setCardDetails', - 'location_id' => 'setLocationId', - 'order_id' => 'setOrderId', - 'reference_id' => 'setReferenceId', - 'customer_id' => 'setCustomerId', - 'employee_id' => 'setEmployeeId', - 'refund_ids' => 'setRefundIds', - 'buyer_email_address' => 'setBuyerEmailAddress', - 'billing_address' => 'setBillingAddress', - 'shipping_address' => 'setShippingAddress', - 'note' => 'setNote', - 'statement_description_identifier' => 'setStatementDescriptionIdentifier', - 'receipt_number' => 'setReceiptNumber', - 'receipt_url' => 'setReceiptUrl' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'amount_money' => 'getAmountMoney', - 'tip_money' => 'getTipMoney', - 'total_money' => 'getTotalMoney', - 'app_fee_money' => 'getAppFeeMoney', - 'processing_fee' => 'getProcessingFee', - 'refunded_money' => 'getRefundedMoney', - 'status' => 'getStatus', - 'delay_duration' => 'getDelayDuration', - 'delay_action' => 'getDelayAction', - 'delayed_until' => 'getDelayedUntil', - 'source_type' => 'getSourceType', - 'card_details' => 'getCardDetails', - 'location_id' => 'getLocationId', - 'order_id' => 'getOrderId', - 'reference_id' => 'getReferenceId', - 'customer_id' => 'getCustomerId', - 'employee_id' => 'getEmployeeId', - 'refund_ids' => 'getRefundIds', - 'buyer_email_address' => 'getBuyerEmailAddress', - 'billing_address' => 'getBillingAddress', - 'shipping_address' => 'getShippingAddress', - 'note' => 'getNote', - 'statement_description_identifier' => 'getStatementDescriptionIdentifier', - 'receipt_number' => 'getReceiptNumber', - 'receipt_url' => 'getReceiptUrl' - ); - - /** - * $id Unique ID for the payment. - * @var string - */ - protected $id; - /** - * $created_at Timestamp of when the payment was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at Timestamp of when the payment was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - /** - * $amount_money The amount of money processed for this payment, not including `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts). - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $tip_money The amount designated as a tip. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. - * @var \SquareConnect\Model\Money - */ - protected $tip_money; - /** - * $total_money The total money for the payment, including `amount_money` and `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. - * @var \SquareConnect\Model\Money - */ - protected $total_money; - /** - * $app_fee_money The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). Cannot be more than 90% of the `total_money` value. - * @var \SquareConnect\Model\Money - */ - protected $app_fee_money; - /** - * $processing_fee Processing fees and fee adjustments assessed by Square on this payment. - * @var \SquareConnect\Model\ProcessingFee[] - */ - protected $processing_fee; - /** - * $refunded_money Total amount of the payment refunded to-date. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. - * @var \SquareConnect\Model\Money - */ - protected $refunded_money; - /** - * $status Indicates whether the payment is `APPROVED`, `COMPLETED`, `CANCELED`, or `FAILED`. - * @var string - */ - protected $status; - /** - * $delay_duration The duration of time after the payment's creation when Square automatically applies the `delay_action` to the payment. This automatic `delay_action` applies only to payments that don't reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration` time period. This field is specified as a time duration, in RFC 3339 format. Notes: This feature is only supported for card payments. Default: - Card Present payments: \"PT36H\" (36 hours) from the creation time. - Card Not Present payments: \"P7D\" (7 days) from the creation time. - * @var string - */ - protected $delay_duration; - /** - * $delay_action The action to be applied to the payment when the `delay_duration` has elapsed. This field is read only. Current values include: `CANCEL` - * @var string - */ - protected $delay_action; - /** - * $delayed_until Read only timestamp of when the `delay_action` will automatically be applied, in RFC 3339 format. Note that this field is calculated by summing the payment's `delay_duration` and `created_at` fields. The `created_at` field is generated by Square and may not exactly match the time on your local machine. - * @var string - */ - protected $delayed_until; - /** - * $source_type The source type for this payment Current values include: `CARD`. - * @var string - */ - protected $source_type; - /** - * $card_details Non-confidential details about the source. Only populated if the `source_type` is `CARD`. - * @var \SquareConnect\Model\CardPaymentDetails - */ - protected $card_details; - /** - * $location_id ID of the location associated with the payment. - * @var string - */ - protected $location_id; - /** - * $order_id ID of the order associated with this payment. - * @var string - */ - protected $order_id; - /** - * $reference_id An optional ID that associates this payment with an entity in another system. - * @var string - */ - protected $reference_id; - /** - * $customer_id The `Customer` ID of the customer associated with the payment. - * @var string - */ - protected $customer_id; - /** - * $employee_id An optional ID of the employee associated with taking this payment. - * @var string - */ - protected $employee_id; - /** - * $refund_ids List of `refund_id`s identifying refunds for this payment. - * @var string[] - */ - protected $refund_ids; - /** - * $buyer_email_address The buyer's e-mail address - * @var string - */ - protected $buyer_email_address; - /** - * $billing_address The buyer's billing address - * @var \SquareConnect\Model\Address - */ - protected $billing_address; - /** - * $shipping_address The buyer's shipping address - * @var \SquareConnect\Model\Address - */ - protected $shipping_address; - /** - * $note An optional note to include when creating a payment - * @var string - */ - protected $note; - /** - * $statement_description_identifier Additional payment information that gets added on the customer's card statement as part of the statement description. Note that the `statement_description_identifier` may get truncated on the statement description to fit the required information including the Square identifier (SQ *) and name of the merchant taking the payment. - * @var string - */ - protected $statement_description_identifier; - /** - * $receipt_number The payment's receipt number. The field will be missing if a payment is CANCELED - * @var string - */ - protected $receipt_number; - /** - * $receipt_url The URL for the payment's receipt. The field will only be populated for COMPLETED payments. - * @var string - */ - protected $receipt_url; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["tip_money"])) { - $this->tip_money = $data["tip_money"]; - } else { - $this->tip_money = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - if (isset($data["app_fee_money"])) { - $this->app_fee_money = $data["app_fee_money"]; - } else { - $this->app_fee_money = null; - } - if (isset($data["processing_fee"])) { - $this->processing_fee = $data["processing_fee"]; - } else { - $this->processing_fee = null; - } - if (isset($data["refunded_money"])) { - $this->refunded_money = $data["refunded_money"]; - } else { - $this->refunded_money = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["delay_duration"])) { - $this->delay_duration = $data["delay_duration"]; - } else { - $this->delay_duration = null; - } - if (isset($data["delay_action"])) { - $this->delay_action = $data["delay_action"]; - } else { - $this->delay_action = null; - } - if (isset($data["delayed_until"])) { - $this->delayed_until = $data["delayed_until"]; - } else { - $this->delayed_until = null; - } - if (isset($data["source_type"])) { - $this->source_type = $data["source_type"]; - } else { - $this->source_type = null; - } - if (isset($data["card_details"])) { - $this->card_details = $data["card_details"]; - } else { - $this->card_details = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["customer_id"])) { - $this->customer_id = $data["customer_id"]; - } else { - $this->customer_id = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["refund_ids"])) { - $this->refund_ids = $data["refund_ids"]; - } else { - $this->refund_ids = null; - } - if (isset($data["buyer_email_address"])) { - $this->buyer_email_address = $data["buyer_email_address"]; - } else { - $this->buyer_email_address = null; - } - if (isset($data["billing_address"])) { - $this->billing_address = $data["billing_address"]; - } else { - $this->billing_address = null; - } - if (isset($data["shipping_address"])) { - $this->shipping_address = $data["shipping_address"]; - } else { - $this->shipping_address = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["statement_description_identifier"])) { - $this->statement_description_identifier = $data["statement_description_identifier"]; - } else { - $this->statement_description_identifier = null; - } - if (isset($data["receipt_number"])) { - $this->receipt_number = $data["receipt_number"]; - } else { - $this->receipt_number = null; - } - if (isset($data["receipt_url"])) { - $this->receipt_url = $data["receipt_url"]; - } else { - $this->receipt_url = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id Unique ID for the payment. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at Timestamp of when the payment was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at Timestamp of when the payment was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money processed for this payment, not including `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts). - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets tip_money - * @return \SquareConnect\Model\Money - */ - public function getTipMoney() - { - return $this->tip_money; - } - - /** - * Sets tip_money - * @param \SquareConnect\Model\Money $tip_money The amount designated as a tip. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. - * @return $this - */ - public function setTipMoney($tip_money) - { - $this->tip_money = $tip_money; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\Money $total_money The total money for the payment, including `amount_money` and `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Gets app_fee_money - * @return \SquareConnect\Model\Money - */ - public function getAppFeeMoney() - { - return $this->app_fee_money; - } - - /** - * Sets app_fee_money - * @param \SquareConnect\Model\Money $app_fee_money The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). Cannot be more than 90% of the `total_money` value. - * @return $this - */ - public function setAppFeeMoney($app_fee_money) - { - $this->app_fee_money = $app_fee_money; - return $this; - } - /** - * Gets processing_fee - * @return \SquareConnect\Model\ProcessingFee[] - */ - public function getProcessingFee() - { - return $this->processing_fee; - } - - /** - * Sets processing_fee - * @param \SquareConnect\Model\ProcessingFee[] $processing_fee Processing fees and fee adjustments assessed by Square on this payment. - * @return $this - */ - public function setProcessingFee($processing_fee) - { - $this->processing_fee = $processing_fee; - return $this; - } - /** - * Gets refunded_money - * @return \SquareConnect\Model\Money - */ - public function getRefundedMoney() - { - return $this->refunded_money; - } - - /** - * Sets refunded_money - * @param \SquareConnect\Model\Money $refunded_money Total amount of the payment refunded to-date. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. - * @return $this - */ - public function setRefundedMoney($refunded_money) - { - $this->refunded_money = $refunded_money; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Indicates whether the payment is `APPROVED`, `COMPLETED`, `CANCELED`, or `FAILED`. - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets delay_duration - * @return string - */ - public function getDelayDuration() - { - return $this->delay_duration; - } - - /** - * Sets delay_duration - * @param string $delay_duration The duration of time after the payment's creation when Square automatically applies the `delay_action` to the payment. This automatic `delay_action` applies only to payments that don't reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration` time period. This field is specified as a time duration, in RFC 3339 format. Notes: This feature is only supported for card payments. Default: - Card Present payments: \"PT36H\" (36 hours) from the creation time. - Card Not Present payments: \"P7D\" (7 days) from the creation time. - * @return $this - */ - public function setDelayDuration($delay_duration) - { - $this->delay_duration = $delay_duration; - return $this; - } - /** - * Gets delay_action - * @return string - */ - public function getDelayAction() - { - return $this->delay_action; - } - - /** - * Sets delay_action - * @param string $delay_action The action to be applied to the payment when the `delay_duration` has elapsed. This field is read only. Current values include: `CANCEL` - * @return $this - */ - public function setDelayAction($delay_action) - { - $this->delay_action = $delay_action; - return $this; - } - /** - * Gets delayed_until - * @return string - */ - public function getDelayedUntil() - { - return $this->delayed_until; - } - - /** - * Sets delayed_until - * @param string $delayed_until Read only timestamp of when the `delay_action` will automatically be applied, in RFC 3339 format. Note that this field is calculated by summing the payment's `delay_duration` and `created_at` fields. The `created_at` field is generated by Square and may not exactly match the time on your local machine. - * @return $this - */ - public function setDelayedUntil($delayed_until) - { - $this->delayed_until = $delayed_until; - return $this; - } - /** - * Gets source_type - * @return string - */ - public function getSourceType() - { - return $this->source_type; - } - - /** - * Sets source_type - * @param string $source_type The source type for this payment Current values include: `CARD`. - * @return $this - */ - public function setSourceType($source_type) - { - $this->source_type = $source_type; - return $this; - } - /** - * Gets card_details - * @return \SquareConnect\Model\CardPaymentDetails - */ - public function getCardDetails() - { - return $this->card_details; - } - - /** - * Sets card_details - * @param \SquareConnect\Model\CardPaymentDetails $card_details Non-confidential details about the source. Only populated if the `source_type` is `CARD`. - * @return $this - */ - public function setCardDetails($card_details) - { - $this->card_details = $card_details; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id ID of the location associated with the payment. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id ID of the order associated with this payment. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional ID that associates this payment with an entity in another system. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets customer_id - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Sets customer_id - * @param string $customer_id The `Customer` ID of the customer associated with the payment. - * @return $this - */ - public function setCustomerId($customer_id) - { - $this->customer_id = $customer_id; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id An optional ID of the employee associated with taking this payment. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets refund_ids - * @return string[] - */ - public function getRefundIds() - { - return $this->refund_ids; - } - - /** - * Sets refund_ids - * @param string[] $refund_ids List of `refund_id`s identifying refunds for this payment. - * @return $this - */ - public function setRefundIds($refund_ids) - { - $this->refund_ids = $refund_ids; - return $this; - } - /** - * Gets buyer_email_address - * @return string - */ - public function getBuyerEmailAddress() - { - return $this->buyer_email_address; - } - - /** - * Sets buyer_email_address - * @param string $buyer_email_address The buyer's e-mail address - * @return $this - */ - public function setBuyerEmailAddress($buyer_email_address) - { - $this->buyer_email_address = $buyer_email_address; - return $this; - } - /** - * Gets billing_address - * @return \SquareConnect\Model\Address - */ - public function getBillingAddress() - { - return $this->billing_address; - } - - /** - * Sets billing_address - * @param \SquareConnect\Model\Address $billing_address The buyer's billing address - * @return $this - */ - public function setBillingAddress($billing_address) - { - $this->billing_address = $billing_address; - return $this; - } - /** - * Gets shipping_address - * @return \SquareConnect\Model\Address - */ - public function getShippingAddress() - { - return $this->shipping_address; - } - - /** - * Sets shipping_address - * @param \SquareConnect\Model\Address $shipping_address The buyer's shipping address - * @return $this - */ - public function setShippingAddress($shipping_address) - { - $this->shipping_address = $shipping_address; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note An optional note to include when creating a payment - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets statement_description_identifier - * @return string - */ - public function getStatementDescriptionIdentifier() - { - return $this->statement_description_identifier; - } - - /** - * Sets statement_description_identifier - * @param string $statement_description_identifier Additional payment information that gets added on the customer's card statement as part of the statement description. Note that the `statement_description_identifier` may get truncated on the statement description to fit the required information including the Square identifier (SQ *) and name of the merchant taking the payment. - * @return $this - */ - public function setStatementDescriptionIdentifier($statement_description_identifier) - { - $this->statement_description_identifier = $statement_description_identifier; - return $this; - } - /** - * Gets receipt_number - * @return string - */ - public function getReceiptNumber() - { - return $this->receipt_number; - } - - /** - * Sets receipt_number - * @param string $receipt_number The payment's receipt number. The field will be missing if a payment is CANCELED - * @return $this - */ - public function setReceiptNumber($receipt_number) - { - $this->receipt_number = $receipt_number; - return $this; - } - /** - * Gets receipt_url - * @return string - */ - public function getReceiptUrl() - { - return $this->receipt_url; - } - - /** - * Sets receipt_url - * @param string $receipt_url The URL for the payment's receipt. The field will only be populated for COMPLETED payments. - * @return $this - */ - public function setReceiptUrl($receipt_url) - { - $this->receipt_url = $receipt_url; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/PaymentOptions.php b/includes/classes/vendors/square/connect/lib/Model/PaymentOptions.php deleted file mode 100644 index 1c0e2363af..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/PaymentOptions.php +++ /dev/null @@ -1,147 +0,0 @@ - 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'autocomplete' => 'autocomplete' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'autocomplete' => 'setAutocomplete' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'autocomplete' => 'getAutocomplete' - ); - - /** - * $autocomplete Indicates whether the Payment objects created from this `TerminalCheckout` will automatically be COMPLETED or left in an APPROVED state for later modification. - * @var bool - */ - protected $autocomplete; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["autocomplete"])) { - $this->autocomplete = $data["autocomplete"]; - } else { - $this->autocomplete = null; - } - } - } - /** - * Gets autocomplete - * @return bool - */ - public function getAutocomplete() - { - return $this->autocomplete; - } - - /** - * Sets autocomplete - * @param bool $autocomplete Indicates whether the Payment objects created from this `TerminalCheckout` will automatically be COMPLETED or left in an APPROVED state for later modification. - * @return $this - */ - public function setAutocomplete($autocomplete) - { - $this->autocomplete = $autocomplete; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/PaymentRefund.php b/includes/classes/vendors/square/connect/lib/Model/PaymentRefund.php deleted file mode 100644 index 2fc7c3698f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/PaymentRefund.php +++ /dev/null @@ -1,476 +0,0 @@ - 'string', - 'status' => 'string', - 'location_id' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'app_fee_money' => '\SquareConnect\Model\Money', - 'processing_fee' => '\SquareConnect\Model\ProcessingFee[]', - 'payment_id' => 'string', - 'order_id' => 'string', - 'reason' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'status' => 'status', - 'location_id' => 'location_id', - 'amount_money' => 'amount_money', - 'app_fee_money' => 'app_fee_money', - 'processing_fee' => 'processing_fee', - 'payment_id' => 'payment_id', - 'order_id' => 'order_id', - 'reason' => 'reason', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'status' => 'setStatus', - 'location_id' => 'setLocationId', - 'amount_money' => 'setAmountMoney', - 'app_fee_money' => 'setAppFeeMoney', - 'processing_fee' => 'setProcessingFee', - 'payment_id' => 'setPaymentId', - 'order_id' => 'setOrderId', - 'reason' => 'setReason', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'status' => 'getStatus', - 'location_id' => 'getLocationId', - 'amount_money' => 'getAmountMoney', - 'app_fee_money' => 'getAppFeeMoney', - 'processing_fee' => 'getProcessingFee', - 'payment_id' => 'getPaymentId', - 'order_id' => 'getOrderId', - 'reason' => 'getReason', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id Unique ID for this refund, generated by Square. - * @var string - */ - protected $id; - /** - * $status The refund's status: - `PENDING` - awaiting approval - `COMPLETED` - successfully completed - `REJECTED` - the refund was rejected - `FAILED` - an error occurred - * @var string - */ - protected $status; - /** - * $location_id Location ID associated with the payment this refund is attached to. - * @var string - */ - protected $location_id; - /** - * $amount_money The amount of money refunded, specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $app_fee_money Amount of money the app developer contributed to help cover the refunded amount. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. - * @var \SquareConnect\Model\Money - */ - protected $app_fee_money; - /** - * $processing_fee Processing fees and fee adjustments assessed by Square on this refund. - * @var \SquareConnect\Model\ProcessingFee[] - */ - protected $processing_fee; - /** - * $payment_id The ID of the payment assocated with this refund. - * @var string - */ - protected $payment_id; - /** - * $order_id The ID of the order associated with the refund. - * @var string - */ - protected $order_id; - /** - * $reason The reason for the refund. - * @var string - */ - protected $reason; - /** - * $created_at Timestamp of when the refund was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $updated_at Timestamp of when the refund was last updated, in RFC 3339 format. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["app_fee_money"])) { - $this->app_fee_money = $data["app_fee_money"]; - } else { - $this->app_fee_money = null; - } - if (isset($data["processing_fee"])) { - $this->processing_fee = $data["processing_fee"]; - } else { - $this->processing_fee = null; - } - if (isset($data["payment_id"])) { - $this->payment_id = $data["payment_id"]; - } else { - $this->payment_id = null; - } - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - if (isset($data["reason"])) { - $this->reason = $data["reason"]; - } else { - $this->reason = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id Unique ID for this refund, generated by Square. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The refund's status: - `PENDING` - awaiting approval - `COMPLETED` - successfully completed - `REJECTED` - the refund was rejected - `FAILED` - an error occurred - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id Location ID associated with the payment this refund is attached to. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money refunded, specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets app_fee_money - * @return \SquareConnect\Model\Money - */ - public function getAppFeeMoney() - { - return $this->app_fee_money; - } - - /** - * Sets app_fee_money - * @param \SquareConnect\Model\Money $app_fee_money Amount of money the app developer contributed to help cover the refunded amount. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. - * @return $this - */ - public function setAppFeeMoney($app_fee_money) - { - $this->app_fee_money = $app_fee_money; - return $this; - } - /** - * Gets processing_fee - * @return \SquareConnect\Model\ProcessingFee[] - */ - public function getProcessingFee() - { - return $this->processing_fee; - } - - /** - * Sets processing_fee - * @param \SquareConnect\Model\ProcessingFee[] $processing_fee Processing fees and fee adjustments assessed by Square on this refund. - * @return $this - */ - public function setProcessingFee($processing_fee) - { - $this->processing_fee = $processing_fee; - return $this; - } - /** - * Gets payment_id - * @return string - */ - public function getPaymentId() - { - return $this->payment_id; - } - - /** - * Sets payment_id - * @param string $payment_id The ID of the payment assocated with this refund. - * @return $this - */ - public function setPaymentId($payment_id) - { - $this->payment_id = $payment_id; - return $this; - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The ID of the order associated with the refund. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Gets reason - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Sets reason - * @param string $reason The reason for the refund. - * @return $this - */ - public function setReason($reason) - { - $this->reason = $reason; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at Timestamp of when the refund was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at Timestamp of when the refund was last updated, in RFC 3339 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ProcessingFee.php b/includes/classes/vendors/square/connect/lib/Model/ProcessingFee.php deleted file mode 100644 index 3c5450e2c1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ProcessingFee.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'type' => 'string', - 'amount_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'effective_at' => 'effective_at', - 'type' => 'type', - 'amount_money' => 'amount_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'effective_at' => 'setEffectiveAt', - 'type' => 'setType', - 'amount_money' => 'setAmountMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'effective_at' => 'getEffectiveAt', - 'type' => 'getType', - 'amount_money' => 'getAmountMoney' - ); - - /** - * $effective_at Timestamp of when the fee takes effect, in RFC 3339 format. - * @var string - */ - protected $effective_at; - /** - * $type The type of fee assessed or adjusted. Can be one of: `INITIAL`, `ADJUSTMENT`. - * @var string - */ - protected $type; - /** - * $amount_money The fee amount assessed or adjusted by Square. May be negative. Positive values represent funds being assessed, while negative values represent funds being returned. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["effective_at"])) { - $this->effective_at = $data["effective_at"]; - } else { - $this->effective_at = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - } - } - /** - * Gets effective_at - * @return string - */ - public function getEffectiveAt() - { - return $this->effective_at; - } - - /** - * Sets effective_at - * @param string $effective_at Timestamp of when the fee takes effect, in RFC 3339 format. - * @return $this - */ - public function setEffectiveAt($effective_at) - { - $this->effective_at = $effective_at; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of fee assessed or adjusted. Can be one of: `INITIAL`, `ADJUSTMENT`. - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The fee amount assessed or adjusted by Square. May be negative. Positive values represent funds being assessed, while negative values represent funds being returned. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Product.php b/includes/classes/vendors/square/connect/lib/Model/Product.php deleted file mode 100644 index 204f2c4e7d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Product.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ProductType.php b/includes/classes/vendors/square/connect/lib/Model/ProductType.php deleted file mode 100644 index 7b213ca3c2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ProductType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RedeemLoyaltyRewardRequest.php b/includes/classes/vendors/square/connect/lib/Model/RedeemLoyaltyRewardRequest.php deleted file mode 100644 index cfc556d30d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RedeemLoyaltyRewardRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'location_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'location_id' => 'getLocationId' - ); - - /** - * $idempotency_key A unique string that identifies this `RedeemLoyaltyReward` request. Keys can be any valid string, but must be unique for every request. - * @var string - */ - protected $idempotency_key; - /** - * $location_id The ID of the `location` where the reward is redeemed. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this `RedeemLoyaltyReward` request. Keys can be any valid string, but must be unique for every request. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the `location` where the reward is redeemed. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RedeemLoyaltyRewardResponse.php b/includes/classes/vendors/square/connect/lib/Model/RedeemLoyaltyRewardResponse.php deleted file mode 100644 index 77d3afc6e5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RedeemLoyaltyRewardResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'event' => '\SquareConnect\Model\LoyaltyEvent' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'event' => 'event' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'event' => 'setEvent' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'event' => 'getEvent' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $event The `LoyaltyEvent` for redeeming the reward. - * @var \SquareConnect\Model\LoyaltyEvent - */ - protected $event; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["event"])) { - $this->event = $data["event"]; - } else { - $this->event = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets event - * @return \SquareConnect\Model\LoyaltyEvent - */ - public function getEvent() - { - return $this->event; - } - - /** - * Sets event - * @param \SquareConnect\Model\LoyaltyEvent $event The `LoyaltyEvent` for redeeming the reward. - * @return $this - */ - public function setEvent($event) - { - $this->event = $event; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Refund.php b/includes/classes/vendors/square/connect/lib/Model/Refund.php deleted file mode 100644 index 99e4d6fc03..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Refund.php +++ /dev/null @@ -1,443 +0,0 @@ - 'string', - 'location_id' => 'string', - 'transaction_id' => 'string', - 'tender_id' => 'string', - 'created_at' => 'string', - 'reason' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'status' => 'string', - 'processing_fee_money' => '\SquareConnect\Model\Money', - 'additional_recipients' => '\SquareConnect\Model\AdditionalRecipient[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'location_id' => 'location_id', - 'transaction_id' => 'transaction_id', - 'tender_id' => 'tender_id', - 'created_at' => 'created_at', - 'reason' => 'reason', - 'amount_money' => 'amount_money', - 'status' => 'status', - 'processing_fee_money' => 'processing_fee_money', - 'additional_recipients' => 'additional_recipients' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'location_id' => 'setLocationId', - 'transaction_id' => 'setTransactionId', - 'tender_id' => 'setTenderId', - 'created_at' => 'setCreatedAt', - 'reason' => 'setReason', - 'amount_money' => 'setAmountMoney', - 'status' => 'setStatus', - 'processing_fee_money' => 'setProcessingFeeMoney', - 'additional_recipients' => 'setAdditionalRecipients' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'location_id' => 'getLocationId', - 'transaction_id' => 'getTransactionId', - 'tender_id' => 'getTenderId', - 'created_at' => 'getCreatedAt', - 'reason' => 'getReason', - 'amount_money' => 'getAmountMoney', - 'status' => 'getStatus', - 'processing_fee_money' => 'getProcessingFeeMoney', - 'additional_recipients' => 'getAdditionalRecipients' - ); - - /** - * $id The refund's unique ID. - * @var string - */ - protected $id; - /** - * $location_id The ID of the refund's associated location. - * @var string - */ - protected $location_id; - /** - * $transaction_id The ID of the transaction that the refunded tender is part of. - * @var string - */ - protected $transaction_id; - /** - * $tender_id The ID of the refunded tender. - * @var string - */ - protected $tender_id; - /** - * $created_at The time when the refund was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $reason The reason for the refund being issued. - * @var string - */ - protected $reason; - /** - * $amount_money The amount of money refunded to the buyer. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $status The current status of the refund (`PENDING`, `APPROVED`, `REJECTED`, or `FAILED`). See [RefundStatus](#type-refundstatus) for possible values - * @var string - */ - protected $status; - /** - * $processing_fee_money The amount of Square processing fee money refunded to the *merchant*. - * @var \SquareConnect\Model\Money - */ - protected $processing_fee_money; - /** - * $additional_recipients Additional recipients (other than the merchant) receiving a portion of this refund. For example, fees assessed on a refund of a purchase by a third party integration. - * @var \SquareConnect\Model\AdditionalRecipient[] - */ - protected $additional_recipients; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["transaction_id"])) { - $this->transaction_id = $data["transaction_id"]; - } else { - $this->transaction_id = null; - } - if (isset($data["tender_id"])) { - $this->tender_id = $data["tender_id"]; - } else { - $this->tender_id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["reason"])) { - $this->reason = $data["reason"]; - } else { - $this->reason = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["processing_fee_money"])) { - $this->processing_fee_money = $data["processing_fee_money"]; - } else { - $this->processing_fee_money = null; - } - if (isset($data["additional_recipients"])) { - $this->additional_recipients = $data["additional_recipients"]; - } else { - $this->additional_recipients = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The refund's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the refund's associated location. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets transaction_id - * @return string - */ - public function getTransactionId() - { - return $this->transaction_id; - } - - /** - * Sets transaction_id - * @param string $transaction_id The ID of the transaction that the refunded tender is part of. - * @return $this - */ - public function setTransactionId($transaction_id) - { - $this->transaction_id = $transaction_id; - return $this; - } - /** - * Gets tender_id - * @return string - */ - public function getTenderId() - { - return $this->tender_id; - } - - /** - * Sets tender_id - * @param string $tender_id The ID of the refunded tender. - * @return $this - */ - public function setTenderId($tender_id) - { - $this->tender_id = $tender_id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the refund was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets reason - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Sets reason - * @param string $reason The reason for the refund being issued. - * @return $this - */ - public function setReason($reason) - { - $this->reason = $reason; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money refunded to the buyer. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The current status of the refund (`PENDING`, `APPROVED`, `REJECTED`, or `FAILED`). See [RefundStatus](#type-refundstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets processing_fee_money - * @return \SquareConnect\Model\Money - */ - public function getProcessingFeeMoney() - { - return $this->processing_fee_money; - } - - /** - * Sets processing_fee_money - * @param \SquareConnect\Model\Money $processing_fee_money The amount of Square processing fee money refunded to the *merchant*. - * @return $this - */ - public function setProcessingFeeMoney($processing_fee_money) - { - $this->processing_fee_money = $processing_fee_money; - return $this; - } - /** - * Gets additional_recipients - * @return \SquareConnect\Model\AdditionalRecipient[] - */ - public function getAdditionalRecipients() - { - return $this->additional_recipients; - } - - /** - * Sets additional_recipients - * @param \SquareConnect\Model\AdditionalRecipient[] $additional_recipients Additional recipients (other than the merchant) receiving a portion of this refund. For example, fees assessed on a refund of a purchase by a third party integration. - * @return $this - */ - public function setAdditionalRecipients($additional_recipients) - { - $this->additional_recipients = $additional_recipients; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RefundPaymentRequest.php b/includes/classes/vendors/square/connect/lib/Model/RefundPaymentRequest.php deleted file mode 100644 index 5c32cab310..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RefundPaymentRequest.php +++ /dev/null @@ -1,278 +0,0 @@ - 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'app_fee_money' => '\SquareConnect\Model\Money', - 'payment_id' => 'string', - 'reason' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'amount_money' => 'amount_money', - 'app_fee_money' => 'app_fee_money', - 'payment_id' => 'payment_id', - 'reason' => 'reason' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'amount_money' => 'setAmountMoney', - 'app_fee_money' => 'setAppFeeMoney', - 'payment_id' => 'setPaymentId', - 'reason' => 'setReason' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'amount_money' => 'getAmountMoney', - 'app_fee_money' => 'getAppFeeMoney', - 'payment_id' => 'getPaymentId', - 'reason' => 'getReason' - ); - - /** - * $idempotency_key A unique string that identifies this RefundPayment request. Key can be any valid string but must be unique for every RefundPayment request. For more information, see [Idempotency keys](https://developer.squareup.com/docs/working-with-apis/idempotency). - * @var string - */ - protected $idempotency_key; - /** - * $amount_money The amount of money to refund. Cannot be more than the `total_money` value of the payment minus the total amount of all previously completed refunds for this payment. Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The currency code must match the currency associated with the business that is charging the card. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $app_fee_money Amount of money the developer will contribute to help cover the refunded amount. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. Value cannot be more than the `amount_money`. You can specify this parameter in a refund request only if the same parameter was also included when taking the payment. This is part of the application fee scenario the API supports. For more information, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees) - * @var \SquareConnect\Model\Money - */ - protected $app_fee_money; - /** - * $payment_id Unique ID of the payment being refunded. - * @var string - */ - protected $payment_id; - /** - * $reason A description of the reason for the refund. - * @var string - */ - protected $reason; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["app_fee_money"])) { - $this->app_fee_money = $data["app_fee_money"]; - } else { - $this->app_fee_money = null; - } - if (isset($data["payment_id"])) { - $this->payment_id = $data["payment_id"]; - } else { - $this->payment_id = null; - } - if (isset($data["reason"])) { - $this->reason = $data["reason"]; - } else { - $this->reason = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A unique string that identifies this RefundPayment request. Key can be any valid string but must be unique for every RefundPayment request. For more information, see [Idempotency keys](https://developer.squareup.com/docs/working-with-apis/idempotency). - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money to refund. Cannot be more than the `total_money` value of the payment minus the total amount of all previously completed refunds for this payment. Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The currency code must match the currency associated with the business that is charging the card. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets app_fee_money - * @return \SquareConnect\Model\Money - */ - public function getAppFeeMoney() - { - return $this->app_fee_money; - } - - /** - * Sets app_fee_money - * @param \SquareConnect\Model\Money $app_fee_money Amount of money the developer will contribute to help cover the refunded amount. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. Value cannot be more than the `amount_money`. You can specify this parameter in a refund request only if the same parameter was also included when taking the payment. This is part of the application fee scenario the API supports. For more information, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees) - * @return $this - */ - public function setAppFeeMoney($app_fee_money) - { - $this->app_fee_money = $app_fee_money; - return $this; - } - /** - * Gets payment_id - * @return string - */ - public function getPaymentId() - { - return $this->payment_id; - } - - /** - * Sets payment_id - * @param string $payment_id Unique ID of the payment being refunded. - * @return $this - */ - public function setPaymentId($payment_id) - { - $this->payment_id = $payment_id; - return $this; - } - /** - * Gets reason - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Sets reason - * @param string $reason A description of the reason for the refund. - * @return $this - */ - public function setReason($reason) - { - $this->reason = $reason; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RefundPaymentResponse.php b/includes/classes/vendors/square/connect/lib/Model/RefundPaymentResponse.php deleted file mode 100644 index ef89ccc934..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RefundPaymentResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'refund' => '\SquareConnect\Model\PaymentRefund' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'refund' => 'refund' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'refund' => 'setRefund' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'refund' => 'getRefund' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $refund The successfully created `PaymentRefund`. - * @var \SquareConnect\Model\PaymentRefund - */ - protected $refund; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["refund"])) { - $this->refund = $data["refund"]; - } else { - $this->refund = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets refund - * @return \SquareConnect\Model\PaymentRefund - */ - public function getRefund() - { - return $this->refund; - } - - /** - * Sets refund - * @param \SquareConnect\Model\PaymentRefund $refund The successfully created `PaymentRefund`. - * @return $this - */ - public function setRefund($refund) - { - $this->refund = $refund; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RefundStatus.php b/includes/classes/vendors/square/connect/lib/Model/RefundStatus.php deleted file mode 100644 index d59c5b0c07..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RefundStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RegisterDomainRequest.php b/includes/classes/vendors/square/connect/lib/Model/RegisterDomainRequest.php deleted file mode 100644 index d6d877189e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RegisterDomainRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'domain_name' => 'domain_name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'domain_name' => 'setDomainName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'domain_name' => 'getDomainName' - ); - - /** - * $domain_name A domain name as described in RFC-1034 that will be registered with ApplePay - * @var string - */ - protected $domain_name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["domain_name"])) { - $this->domain_name = $data["domain_name"]; - } else { - $this->domain_name = null; - } - } - } - /** - * Gets domain_name - * @return string - */ - public function getDomainName() - { - return $this->domain_name; - } - - /** - * Sets domain_name - * @param string $domain_name A domain name as described in RFC-1034 that will be registered with ApplePay - * @return $this - */ - public function setDomainName($domain_name) - { - $this->domain_name = $domain_name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RegisterDomainResponse.php b/includes/classes/vendors/square/connect/lib/Model/RegisterDomainResponse.php deleted file mode 100644 index cdf01bc240..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RegisterDomainResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'status' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'status' => 'status' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'status' => 'setStatus' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'status' => 'getStatus' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $status Status of the domain registration. See `RegisterDomainResponseStatus` for possible values. See [RegisterDomainResponseStatus](#type-registerdomainresponsestatus) for possible values - * @var string - */ - protected $status; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Status of the domain registration. See `RegisterDomainResponseStatus` for possible values. See [RegisterDomainResponseStatus](#type-registerdomainresponsestatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RegisterDomainResponseStatus.php b/includes/classes/vendors/square/connect/lib/Model/RegisterDomainResponseStatus.php deleted file mode 100644 index 887392cf70..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RegisterDomainResponseStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RemoveDisputeEvidenceRequest.php b/includes/classes/vendors/square/connect/lib/Model/RemoveDisputeEvidenceRequest.php deleted file mode 100644 index 90ba2e0a58..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RemoveDisputeEvidenceRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RemoveDisputeEvidenceResponse.php b/includes/classes/vendors/square/connect/lib/Model/RemoveDisputeEvidenceResponse.php deleted file mode 100644 index 221b88a160..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RemoveDisputeEvidenceResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RemoveGroupFromCustomerRequest.php b/includes/classes/vendors/square/connect/lib/Model/RemoveGroupFromCustomerRequest.php deleted file mode 100644 index d7f925b611..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RemoveGroupFromCustomerRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RemoveGroupFromCustomerResponse.php b/includes/classes/vendors/square/connect/lib/Model/RemoveGroupFromCustomerResponse.php deleted file mode 100644 index c04b5d38b4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RemoveGroupFromCustomerResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RenewTokenRequest.php b/includes/classes/vendors/square/connect/lib/Model/RenewTokenRequest.php deleted file mode 100644 index 79a16dde9d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RenewTokenRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'access_token' => 'access_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'access_token' => 'setAccessToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'access_token' => 'getAccessToken' - ); - - /** - * $access_token The token you want to renew. - * @var string - */ - protected $access_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["access_token"])) { - $this->access_token = $data["access_token"]; - } else { - $this->access_token = null; - } - } - } - /** - * Gets access_token - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Sets access_token - * @param string $access_token The token you want to renew. - * @return $this - */ - public function setAccessToken($access_token) - { - $this->access_token = $access_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RenewTokenResponse.php b/includes/classes/vendors/square/connect/lib/Model/RenewTokenResponse.php deleted file mode 100644 index 9fa281f616..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RenewTokenResponse.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'token_type' => 'string', - 'expires_at' => 'string', - 'merchant_id' => 'string', - 'subscription_id' => 'string', - 'plan_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'access_token' => 'access_token', - 'token_type' => 'token_type', - 'expires_at' => 'expires_at', - 'merchant_id' => 'merchant_id', - 'subscription_id' => 'subscription_id', - 'plan_id' => 'plan_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'access_token' => 'setAccessToken', - 'token_type' => 'setTokenType', - 'expires_at' => 'setExpiresAt', - 'merchant_id' => 'setMerchantId', - 'subscription_id' => 'setSubscriptionId', - 'plan_id' => 'setPlanId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'access_token' => 'getAccessToken', - 'token_type' => 'getTokenType', - 'expires_at' => 'getExpiresAt', - 'merchant_id' => 'getMerchantId', - 'subscription_id' => 'getSubscriptionId', - 'plan_id' => 'getPlanId' - ); - - /** - * $access_token The renewed access token. This value might be different from the `access_token` you provided in your request. You provide this token in a header with every request to Connect API endpoints. See [Request and response headers](https://developer.squareup.com/docs/api/connect/v2/#requestandresponseheaders) for the format of this header. - * @var string - */ - protected $access_token; - /** - * $token_type This value is always _bearer_. - * @var string - */ - protected $token_type; - /** - * $expires_at The date when access_token expires, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format. - * @var string - */ - protected $expires_at; - /** - * $merchant_id The ID of the authorizing merchant's business. - * @var string - */ - protected $merchant_id; - /** - * $subscription_id __LEGACY FIELD__. The ID of the merchant subscription associated with the authorization. Only present if the merchant signed up for a subscription during authorization.. - * @var string - */ - protected $subscription_id; - /** - * $plan_id __LEGACY FIELD__. The ID of the subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. - * @var string - */ - protected $plan_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["access_token"])) { - $this->access_token = $data["access_token"]; - } else { - $this->access_token = null; - } - if (isset($data["token_type"])) { - $this->token_type = $data["token_type"]; - } else { - $this->token_type = null; - } - if (isset($data["expires_at"])) { - $this->expires_at = $data["expires_at"]; - } else { - $this->expires_at = null; - } - if (isset($data["merchant_id"])) { - $this->merchant_id = $data["merchant_id"]; - } else { - $this->merchant_id = null; - } - if (isset($data["subscription_id"])) { - $this->subscription_id = $data["subscription_id"]; - } else { - $this->subscription_id = null; - } - if (isset($data["plan_id"])) { - $this->plan_id = $data["plan_id"]; - } else { - $this->plan_id = null; - } - } - } - /** - * Gets access_token - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Sets access_token - * @param string $access_token The renewed access token. This value might be different from the `access_token` you provided in your request. You provide this token in a header with every request to Connect API endpoints. See [Request and response headers](https://developer.squareup.com/docs/api/connect/v2/#requestandresponseheaders) for the format of this header. - * @return $this - */ - public function setAccessToken($access_token) - { - $this->access_token = $access_token; - return $this; - } - /** - * Gets token_type - * @return string - */ - public function getTokenType() - { - return $this->token_type; - } - - /** - * Sets token_type - * @param string $token_type This value is always _bearer_. - * @return $this - */ - public function setTokenType($token_type) - { - $this->token_type = $token_type; - return $this; - } - /** - * Gets expires_at - * @return string - */ - public function getExpiresAt() - { - return $this->expires_at; - } - - /** - * Sets expires_at - * @param string $expires_at The date when access_token expires, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format. - * @return $this - */ - public function setExpiresAt($expires_at) - { - $this->expires_at = $expires_at; - return $this; - } - /** - * Gets merchant_id - * @return string - */ - public function getMerchantId() - { - return $this->merchant_id; - } - - /** - * Sets merchant_id - * @param string $merchant_id The ID of the authorizing merchant's business. - * @return $this - */ - public function setMerchantId($merchant_id) - { - $this->merchant_id = $merchant_id; - return $this; - } - /** - * Gets subscription_id - * @return string - */ - public function getSubscriptionId() - { - return $this->subscription_id; - } - - /** - * Sets subscription_id - * @param string $subscription_id __LEGACY FIELD__. The ID of the merchant subscription associated with the authorization. Only present if the merchant signed up for a subscription during authorization.. - * @return $this - */ - public function setSubscriptionId($subscription_id) - { - $this->subscription_id = $subscription_id; - return $this; - } - /** - * Gets plan_id - * @return string - */ - public function getPlanId() - { - return $this->plan_id; - } - - /** - * Sets plan_id - * @param string $plan_id __LEGACY FIELD__. The ID of the subscription plan the merchant signed up for. Only present if the merchant signed up for a subscription during authorization. - * @return $this - */ - public function setPlanId($plan_id) - { - $this->plan_id = $plan_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCashDrawerShiftRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCashDrawerShiftRequest.php deleted file mode 100644 index f316050264..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCashDrawerShiftRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_id' => 'location_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_id' => 'setLocationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_id' => 'getLocationId' - ); - - /** - * $location_id The ID of the location to retrieve cash drawer shifts from. - * @var string - */ - protected $location_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - } - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the location to retrieve cash drawer shifts from. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCashDrawerShiftResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCashDrawerShiftResponse.php deleted file mode 100644 index a2d9e57eb9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCashDrawerShiftResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\CashDrawerShift', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cash_drawer_shift' => 'cash_drawer_shift', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cash_drawer_shift' => 'setCashDrawerShift', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cash_drawer_shift' => 'getCashDrawerShift', - 'errors' => 'getErrors' - ); - - /** - * $cash_drawer_shift The cash drawer shift queried for. - * @var \SquareConnect\Model\CashDrawerShift - */ - protected $cash_drawer_shift; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cash_drawer_shift"])) { - $this->cash_drawer_shift = $data["cash_drawer_shift"]; - } else { - $this->cash_drawer_shift = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets cash_drawer_shift - * @return \SquareConnect\Model\CashDrawerShift - */ - public function getCashDrawerShift() - { - return $this->cash_drawer_shift; - } - - /** - * Sets cash_drawer_shift - * @param \SquareConnect\Model\CashDrawerShift $cash_drawer_shift The cash drawer shift queried for. - * @return $this - */ - public function setCashDrawerShift($cash_drawer_shift) - { - $this->cash_drawer_shift = $cash_drawer_shift; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCatalogObjectRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCatalogObjectRequest.php deleted file mode 100644 index 3e242044eb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCatalogObjectRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'include_related_objects' => 'include_related_objects' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'include_related_objects' => 'setIncludeRelatedObjects' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'include_related_objects' => 'getIncludeRelatedObjects' - ); - - /** - * $include_related_objects If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a CatalogItem, its associated CatalogCategory, CatalogTax objects, CatalogImages and CatalogModifierLists will be returned in the `related_objects` field of the response. If the `object` field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the `related_objects` field of the response. Default value: `false` - * @var bool - */ - protected $include_related_objects; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["include_related_objects"])) { - $this->include_related_objects = $data["include_related_objects"]; - } else { - $this->include_related_objects = null; - } - } - } - /** - * Gets include_related_objects - * @return bool - */ - public function getIncludeRelatedObjects() - { - return $this->include_related_objects; - } - - /** - * Sets include_related_objects - * @param bool $include_related_objects If `true`, the response will include additional objects that are related to the requested object, as follows: If the `object` field of the response contains a CatalogItem, its associated CatalogCategory, CatalogTax objects, CatalogImages and CatalogModifierLists will be returned in the `related_objects` field of the response. If the `object` field of the response contains a CatalogItemVariation, its parent CatalogItem will be returned in the `related_objects` field of the response. Default value: `false` - * @return $this - */ - public function setIncludeRelatedObjects($include_related_objects) - { - $this->include_related_objects = $include_related_objects; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCatalogObjectResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCatalogObjectResponse.php deleted file mode 100644 index 11b7181829..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCatalogObjectResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'object' => '\SquareConnect\Model\CatalogObject', - 'related_objects' => '\SquareConnect\Model\CatalogObject[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'object' => 'object', - 'related_objects' => 'related_objects' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'object' => 'setObject', - 'related_objects' => 'setRelatedObjects' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'object' => 'getObject', - 'related_objects' => 'getRelatedObjects' - ); - - /** - * $errors Information on any errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $object The CatalogObjects returned. - * @var \SquareConnect\Model\CatalogObject - */ - protected $object; - /** - * $related_objects A list of CatalogObjects referenced by the object in the `object` field. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $related_objects; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["object"])) { - $this->object = $data["object"]; - } else { - $this->object = null; - } - if (isset($data["related_objects"])) { - $this->related_objects = $data["related_objects"]; - } else { - $this->related_objects = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets object - * @return \SquareConnect\Model\CatalogObject - */ - public function getObject() - { - return $this->object; - } - - /** - * Sets object - * @param \SquareConnect\Model\CatalogObject $object The CatalogObjects returned. - * @return $this - */ - public function setObject($object) - { - $this->object = $object; - return $this; - } - /** - * Gets related_objects - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getRelatedObjects() - { - return $this->related_objects; - } - - /** - * Sets related_objects - * @param \SquareConnect\Model\CatalogObject[] $related_objects A list of CatalogObjects referenced by the object in the `object` field. - * @return $this - */ - public function setRelatedObjects($related_objects) - { - $this->related_objects = $related_objects; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerGroupRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerGroupRequest.php deleted file mode 100644 index d4f3e329e9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerGroupRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerGroupResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerGroupResponse.php deleted file mode 100644 index 36f4c64cdc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerGroupResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'group' => '\SquareConnect\Model\CustomerGroup' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'group' => 'group' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'group' => 'setGroup' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'group' => 'getGroup' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $group The retrieved customer group. - * @var \SquareConnect\Model\CustomerGroup - */ - protected $group; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["group"])) { - $this->group = $data["group"]; - } else { - $this->group = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets group - * @return \SquareConnect\Model\CustomerGroup - */ - public function getGroup() - { - return $this->group; - } - - /** - * Sets group - * @param \SquareConnect\Model\CustomerGroup $group The retrieved customer group. - * @return $this - */ - public function setGroup($group) - { - $this->group = $group; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerRequest.php deleted file mode 100644 index 9404774ea2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerResponse.php deleted file mode 100644 index 2785e59fe3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'customer' => '\SquareConnect\Model\Customer' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'customer' => 'customer' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'customer' => 'setCustomer' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'customer' => 'getCustomer' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $customer The requested customer. - * @var \SquareConnect\Model\Customer - */ - protected $customer; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["customer"])) { - $this->customer = $data["customer"]; - } else { - $this->customer = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets customer - * @return \SquareConnect\Model\Customer - */ - public function getCustomer() - { - return $this->customer; - } - - /** - * Sets customer - * @param \SquareConnect\Model\Customer $customer The requested customer. - * @return $this - */ - public function setCustomer($customer) - { - $this->customer = $customer; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerSegmentRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerSegmentRequest.php deleted file mode 100644 index f57758cb3e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerSegmentRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerSegmentResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerSegmentResponse.php deleted file mode 100644 index bf81599018..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveCustomerSegmentResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'segment' => '\SquareConnect\Model\CustomerSegment' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'segment' => 'segment' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'segment' => 'setSegment' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'segment' => 'getSegment' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $segment The retrieved customer segment. - * @var \SquareConnect\Model\CustomerSegment - */ - protected $segment; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["segment"])) { - $this->segment = $data["segment"]; - } else { - $this->segment = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets segment - * @return \SquareConnect\Model\CustomerSegment - */ - public function getSegment() - { - return $this->segment; - } - - /** - * Sets segment - * @param \SquareConnect\Model\CustomerSegment $segment The retrieved customer segment. - * @return $this - */ - public function setSegment($segment) - { - $this->segment = $segment; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeEvidenceRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeEvidenceRequest.php deleted file mode 100644 index d20d09e1db..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeEvidenceRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeEvidenceResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeEvidenceResponse.php deleted file mode 100644 index 1dd97b6564..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeEvidenceResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'evidence' => '\SquareConnect\Model\DisputeEvidence' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'evidence' => 'evidence' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'evidence' => 'setEvidence' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'evidence' => 'getEvidence' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $evidence Metadata about the dispute evidence file. - * @var \SquareConnect\Model\DisputeEvidence - */ - protected $evidence; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["evidence"])) { - $this->evidence = $data["evidence"]; - } else { - $this->evidence = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets evidence - * @return \SquareConnect\Model\DisputeEvidence - */ - public function getEvidence() - { - return $this->evidence; - } - - /** - * Sets evidence - * @param \SquareConnect\Model\DisputeEvidence $evidence Metadata about the dispute evidence file. - * @return $this - */ - public function setEvidence($evidence) - { - $this->evidence = $evidence; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeRequest.php deleted file mode 100644 index 2398fd023c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeResponse.php deleted file mode 100644 index 38982a1ffe..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveDisputeResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'dispute' => '\SquareConnect\Model\Dispute' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'dispute' => 'dispute' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'dispute' => 'setDispute' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'dispute' => 'getDispute' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $dispute Details about the requested `Dispute`. - * @var \SquareConnect\Model\Dispute - */ - protected $dispute; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["dispute"])) { - $this->dispute = $data["dispute"]; - } else { - $this->dispute = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets dispute - * @return \SquareConnect\Model\Dispute - */ - public function getDispute() - { - return $this->dispute; - } - - /** - * Sets dispute - * @param \SquareConnect\Model\Dispute $dispute Details about the requested `Dispute`. - * @return $this - */ - public function setDispute($dispute) - { - $this->dispute = $dispute; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveEmployeeRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveEmployeeRequest.php deleted file mode 100644 index 74bbcfd167..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveEmployeeRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveEmployeeResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveEmployeeResponse.php deleted file mode 100644 index b4c71dec87..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveEmployeeResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Employee', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'employee' => 'employee', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'employee' => 'setEmployee', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'employee' => 'getEmployee', - 'errors' => 'getErrors' - ); - - /** - * $employee The response object. - * @var \SquareConnect\Model\Employee - */ - protected $employee; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["employee"])) { - $this->employee = $data["employee"]; - } else { - $this->employee = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets employee - * @return \SquareConnect\Model\Employee - */ - public function getEmployee() - { - return $this->employee; - } - - /** - * Sets employee - * @param \SquareConnect\Model\Employee $employee The response object. - * @return $this - */ - public function setEmployee($employee) - { - $this->employee = $employee; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryAdjustmentRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryAdjustmentRequest.php deleted file mode 100644 index 93ade68008..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryAdjustmentRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryAdjustmentResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryAdjustmentResponse.php deleted file mode 100644 index 98e7356c97..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryAdjustmentResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'adjustment' => '\SquareConnect\Model\InventoryAdjustment' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'adjustment' => 'adjustment' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'adjustment' => 'setAdjustment' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'adjustment' => 'getAdjustment' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $adjustment The requested `InventoryAdjustment`. - * @var \SquareConnect\Model\InventoryAdjustment - */ - protected $adjustment; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["adjustment"])) { - $this->adjustment = $data["adjustment"]; - } else { - $this->adjustment = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets adjustment - * @return \SquareConnect\Model\InventoryAdjustment - */ - public function getAdjustment() - { - return $this->adjustment; - } - - /** - * Sets adjustment - * @param \SquareConnect\Model\InventoryAdjustment $adjustment The requested `InventoryAdjustment`. - * @return $this - */ - public function setAdjustment($adjustment) - { - $this->adjustment = $adjustment; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryChangesRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryChangesRequest.php deleted file mode 100644 index ffcf228659..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryChangesRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_ids' => 'location_ids', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_ids' => 'setLocationIds', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_ids' => 'getLocationIds', - 'cursor' => 'getCursor' - ); - - /** - * $location_ids The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. - * @var string - */ - protected $location_ids; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets location_ids - * @return string - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string $location_ids The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryChangesResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryChangesResponse.php deleted file mode 100644 index 95aa299399..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryChangesResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'changes' => '\SquareConnect\Model\InventoryChange[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'changes' => 'changes', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'changes' => 'setChanges', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'changes' => 'getChanges', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $changes The set of inventory changes for the requested object and locations. - * @var \SquareConnect\Model\InventoryChange[] - */ - protected $changes; - /** - * $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["changes"])) { - $this->changes = $data["changes"]; - } else { - $this->changes = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets changes - * @return \SquareConnect\Model\InventoryChange[] - */ - public function getChanges() - { - return $this->changes; - } - - /** - * Sets changes - * @param \SquareConnect\Model\InventoryChange[] $changes The set of inventory changes for the requested object and locations. - * @return $this - */ - public function setChanges($changes) - { - $this->changes = $changes; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryCountRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryCountRequest.php deleted file mode 100644 index 24764d713f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryCountRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_ids' => 'location_ids', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_ids' => 'setLocationIds', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_ids' => 'getLocationIds', - 'cursor' => 'getCursor' - ); - - /** - * $location_ids The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. - * @var string - */ - protected $location_ids; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets location_ids - * @return string - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string $location_ids The `Location` IDs to look up as a comma-separated list. An empty list queries all locations. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryCountResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryCountResponse.php deleted file mode 100644 index d5fffbc5cb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryCountResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'counts' => '\SquareConnect\Model\InventoryCount[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'counts' => 'counts', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'counts' => 'setCounts', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'counts' => 'getCounts', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $counts The current calculated inventory counts for the requested object and locations. - * @var \SquareConnect\Model\InventoryCount[] - */ - protected $counts; - /** - * $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["counts"])) { - $this->counts = $data["counts"]; - } else { - $this->counts = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets counts - * @return \SquareConnect\Model\InventoryCount[] - */ - public function getCounts() - { - return $this->counts; - } - - /** - * Sets counts - * @param \SquareConnect\Model\InventoryCount[] $counts The current calculated inventory counts for the requested object and locations. - * @return $this - */ - public function setCounts($counts) - { - $this->counts = $counts; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryPhysicalCountRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryPhysicalCountRequest.php deleted file mode 100644 index 1ac05a4264..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryPhysicalCountRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryPhysicalCountResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryPhysicalCountResponse.php deleted file mode 100644 index b3eef0f5fb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveInventoryPhysicalCountResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'count' => '\SquareConnect\Model\InventoryPhysicalCount' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'count' => 'count' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'count' => 'setCount' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'count' => 'getCount' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $count The requested `InventoryPhysicalCount`. - * @var \SquareConnect\Model\InventoryPhysicalCount - */ - protected $count; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["count"])) { - $this->count = $data["count"]; - } else { - $this->count = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets count - * @return \SquareConnect\Model\InventoryPhysicalCount - */ - public function getCount() - { - return $this->count; - } - - /** - * Sets count - * @param \SquareConnect\Model\InventoryPhysicalCount $count The requested `InventoryPhysicalCount`. - * @return $this - */ - public function setCount($count) - { - $this->count = $count; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveLocationRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveLocationRequest.php deleted file mode 100644 index 9800e18a43..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveLocationRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveLocationResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveLocationResponse.php deleted file mode 100644 index 43ce4c31fd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveLocationResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'location' => '\SquareConnect\Model\Location' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'location' => 'location' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'location' => 'setLocation' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'location' => 'getLocation' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $location The requested location. - * @var \SquareConnect\Model\Location - */ - protected $location; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["location"])) { - $this->location = $data["location"]; - } else { - $this->location = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets location - * @return \SquareConnect\Model\Location - */ - public function getLocation() - { - return $this->location; - } - - /** - * Sets location - * @param \SquareConnect\Model\Location $location The requested location. - * @return $this - */ - public function setLocation($location) - { - $this->location = $location; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyAccountRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyAccountRequest.php deleted file mode 100644 index a54c7235bf..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyAccountRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyAccountResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyAccountResponse.php deleted file mode 100644 index 40177699e3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyAccountResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'loyalty_account' => '\SquareConnect\Model\LoyaltyAccount' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'loyalty_account' => 'loyalty_account' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'loyalty_account' => 'setLoyaltyAccount' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'loyalty_account' => 'getLoyaltyAccount' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $loyalty_account The loyalty account. - * @var \SquareConnect\Model\LoyaltyAccount - */ - protected $loyalty_account; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["loyalty_account"])) { - $this->loyalty_account = $data["loyalty_account"]; - } else { - $this->loyalty_account = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets loyalty_account - * @return \SquareConnect\Model\LoyaltyAccount - */ - public function getLoyaltyAccount() - { - return $this->loyalty_account; - } - - /** - * Sets loyalty_account - * @param \SquareConnect\Model\LoyaltyAccount $loyalty_account The loyalty account. - * @return $this - */ - public function setLoyaltyAccount($loyalty_account) - { - $this->loyalty_account = $loyalty_account; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyRewardRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyRewardRequest.php deleted file mode 100644 index fabd67eec4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyRewardRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyRewardResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyRewardResponse.php deleted file mode 100644 index 7a699a4320..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveLoyaltyRewardResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'reward' => '\SquareConnect\Model\LoyaltyReward' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'reward' => 'reward' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'reward' => 'setReward' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'reward' => 'getReward' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $reward The loyalty reward retrieved. - * @var \SquareConnect\Model\LoyaltyReward - */ - protected $reward; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["reward"])) { - $this->reward = $data["reward"]; - } else { - $this->reward = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets reward - * @return \SquareConnect\Model\LoyaltyReward - */ - public function getReward() - { - return $this->reward; - } - - /** - * Sets reward - * @param \SquareConnect\Model\LoyaltyReward $reward The loyalty reward retrieved. - * @return $this - */ - public function setReward($reward) - { - $this->reward = $reward; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveMerchantRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveMerchantRequest.php deleted file mode 100644 index 8b95c26a38..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveMerchantRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveMerchantResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveMerchantResponse.php deleted file mode 100644 index c8ece9cce0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveMerchantResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'merchant' => '\SquareConnect\Model\Merchant' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'merchant' => 'merchant' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'merchant' => 'setMerchant' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'merchant' => 'getMerchant' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $merchant The requested `Merchant` object. - * @var \SquareConnect\Model\Merchant - */ - protected $merchant; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["merchant"])) { - $this->merchant = $data["merchant"]; - } else { - $this->merchant = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets merchant - * @return \SquareConnect\Model\Merchant - */ - public function getMerchant() - { - return $this->merchant; - } - - /** - * Sets merchant - * @param \SquareConnect\Model\Merchant $merchant The requested `Merchant` object. - * @return $this - */ - public function setMerchant($merchant) - { - $this->merchant = $merchant; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveTransactionRequest.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveTransactionRequest.php deleted file mode 100644 index 7f255a5464..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveTransactionRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RetrieveTransactionResponse.php b/includes/classes/vendors/square/connect/lib/Model/RetrieveTransactionResponse.php deleted file mode 100644 index 19ec193cff..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RetrieveTransactionResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'transaction' => '\SquareConnect\Model\Transaction' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'transaction' => 'transaction' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'transaction' => 'setTransaction' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'transaction' => 'getTransaction' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $transaction The requested transaction. - * @var \SquareConnect\Model\Transaction - */ - protected $transaction; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["transaction"])) { - $this->transaction = $data["transaction"]; - } else { - $this->transaction = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets transaction - * @return \SquareConnect\Model\Transaction - */ - public function getTransaction() - { - return $this->transaction; - } - - /** - * Sets transaction - * @param \SquareConnect\Model\Transaction $transaction The requested transaction. - * @return $this - */ - public function setTransaction($transaction) - { - $this->transaction = $transaction; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RevokeTokenRequest.php b/includes/classes/vendors/square/connect/lib/Model/RevokeTokenRequest.php deleted file mode 100644 index 43ba222b92..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RevokeTokenRequest.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'access_token' => 'string', - 'merchant_id' => 'string', - 'revoke_only_access_token' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'client_id' => 'client_id', - 'access_token' => 'access_token', - 'merchant_id' => 'merchant_id', - 'revoke_only_access_token' => 'revoke_only_access_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'client_id' => 'setClientId', - 'access_token' => 'setAccessToken', - 'merchant_id' => 'setMerchantId', - 'revoke_only_access_token' => 'setRevokeOnlyAccessToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'client_id' => 'getClientId', - 'access_token' => 'getAccessToken', - 'merchant_id' => 'getMerchantId', - 'revoke_only_access_token' => 'getRevokeOnlyAccessToken' - ); - - /** - * $client_id The Square issued ID for your application, available from the [application dashboard](https://connect.squareup.com/apps). - * @var string - */ - protected $client_id; - /** - * $access_token The access token of the merchant whose token you want to revoke. Do not provide a value for merchant_id if you provide this parameter. - * @var string - */ - protected $access_token; - /** - * $merchant_id The ID of the merchant whose token you want to revoke. Do not provide a value for access_token if you provide this parameter. - * @var string - */ - protected $merchant_id; - /** - * $revoke_only_access_token If `true`, terminate the given single access token, but do not terminate the entire authorization. Default: `false` - * @var bool - */ - protected $revoke_only_access_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["client_id"])) { - $this->client_id = $data["client_id"]; - } else { - $this->client_id = null; - } - if (isset($data["access_token"])) { - $this->access_token = $data["access_token"]; - } else { - $this->access_token = null; - } - if (isset($data["merchant_id"])) { - $this->merchant_id = $data["merchant_id"]; - } else { - $this->merchant_id = null; - } - if (isset($data["revoke_only_access_token"])) { - $this->revoke_only_access_token = $data["revoke_only_access_token"]; - } else { - $this->revoke_only_access_token = null; - } - } - } - /** - * Gets client_id - * @return string - */ - public function getClientId() - { - return $this->client_id; - } - - /** - * Sets client_id - * @param string $client_id The Square issued ID for your application, available from the [application dashboard](https://connect.squareup.com/apps). - * @return $this - */ - public function setClientId($client_id) - { - $this->client_id = $client_id; - return $this; - } - /** - * Gets access_token - * @return string - */ - public function getAccessToken() - { - return $this->access_token; - } - - /** - * Sets access_token - * @param string $access_token The access token of the merchant whose token you want to revoke. Do not provide a value for merchant_id if you provide this parameter. - * @return $this - */ - public function setAccessToken($access_token) - { - $this->access_token = $access_token; - return $this; - } - /** - * Gets merchant_id - * @return string - */ - public function getMerchantId() - { - return $this->merchant_id; - } - - /** - * Sets merchant_id - * @param string $merchant_id The ID of the merchant whose token you want to revoke. Do not provide a value for access_token if you provide this parameter. - * @return $this - */ - public function setMerchantId($merchant_id) - { - $this->merchant_id = $merchant_id; - return $this; - } - /** - * Gets revoke_only_access_token - * @return bool - */ - public function getRevokeOnlyAccessToken() - { - return $this->revoke_only_access_token; - } - - /** - * Sets revoke_only_access_token - * @param bool $revoke_only_access_token If `true`, terminate the given single access token, but do not terminate the entire authorization. Default: `false` - * @return $this - */ - public function setRevokeOnlyAccessToken($revoke_only_access_token) - { - $this->revoke_only_access_token = $revoke_only_access_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/RevokeTokenResponse.php b/includes/classes/vendors/square/connect/lib/Model/RevokeTokenResponse.php deleted file mode 100644 index b4d1a68af0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/RevokeTokenResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'success' => 'success' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'success' => 'setSuccess' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'success' => 'getSuccess' - ); - - /** - * $success If the request is successful, this is true. - * @var bool - */ - protected $success; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["success"])) { - $this->success = $data["success"]; - } else { - $this->success = null; - } - } - } - /** - * Gets success - * @return bool - */ - public function getSuccess() - { - return $this->success; - } - - /** - * Sets success - * @param bool $success If the request is successful, this is true. - * @return $this - */ - public function setSuccess($success) - { - $this->success = $success; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchCatalogObjectsRequest.php b/includes/classes/vendors/square/connect/lib/Model/SearchCatalogObjectsRequest.php deleted file mode 100644 index bb587d6663..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchCatalogObjectsRequest.php +++ /dev/null @@ -1,344 +0,0 @@ - 'string', - 'object_types' => 'string[]', - 'include_deleted_objects' => 'bool', - 'include_related_objects' => 'bool', - 'begin_time' => 'string', - 'query' => '\SquareConnect\Model\CatalogQuery', - 'limit' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor', - 'object_types' => 'object_types', - 'include_deleted_objects' => 'include_deleted_objects', - 'include_related_objects' => 'include_related_objects', - 'begin_time' => 'begin_time', - 'query' => 'query', - 'limit' => 'limit' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor', - 'object_types' => 'setObjectTypes', - 'include_deleted_objects' => 'setIncludeDeletedObjects', - 'include_related_objects' => 'setIncludeRelatedObjects', - 'begin_time' => 'setBeginTime', - 'query' => 'setQuery', - 'limit' => 'setLimit' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor', - 'object_types' => 'getObjectTypes', - 'include_deleted_objects' => 'getIncludeDeletedObjects', - 'include_related_objects' => 'getIncludeRelatedObjects', - 'begin_time' => 'getBeginTime', - 'query' => 'getQuery', - 'limit' => 'getLimit' - ); - - /** - * $cursor The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $object_types The desired set of object types to appear in the search results. The legal values are taken from the CatalogObjectType enum: `\"ITEM\"`, `\"ITEM_VARIATION\"`, `\"CATEGORY\"`, `\"DISCOUNT\"`, `\"TAX\"`, `\"MODIFIER\"`, or `\"MODIFIER_LIST\"`. See [CatalogObjectType](#type-catalogobjecttype) for possible values - * @var string[] - */ - protected $object_types; - /** - * $include_deleted_objects If `true`, deleted objects will be included in the results. Deleted objects will have their `is_deleted` field set to `true`. - * @var bool - */ - protected $include_deleted_objects; - /** - * $include_related_objects If `true`, the response will include additional objects that are related to the requested object, as follows: If a CatalogItem is returned in the object field of the response, its associated CatalogCategory, CatalogTax objects, CatalogImage objects and CatalogModifierList objects will be included in the `related_objects` field of the response. If a CatalogItemVariation is returned in the object field of the response, its parent CatalogItem will be included in the `related_objects` field of the response. - * @var bool - */ - protected $include_related_objects; - /** - * $begin_time Return objects modified after this [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates), in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. The timestamp is exclusive - objects with a timestamp equal to `begin_time` will not be included in the response. - * @var string - */ - protected $begin_time; - /** - * $query A query to be used to filter or sort the results. If no query is specified, the entire catalog will be returned. - * @var \SquareConnect\Model\CatalogQuery - */ - protected $query; - /** - * $limit A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 1,000, it will be ignored. - * @var int - */ - protected $limit; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["object_types"])) { - $this->object_types = $data["object_types"]; - } else { - $this->object_types = null; - } - if (isset($data["include_deleted_objects"])) { - $this->include_deleted_objects = $data["include_deleted_objects"]; - } else { - $this->include_deleted_objects = null; - } - if (isset($data["include_related_objects"])) { - $this->include_related_objects = $data["include_related_objects"]; - } else { - $this->include_related_objects = null; - } - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["query"])) { - $this->query = $data["query"]; - } else { - $this->query = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor returned in the previous response. Leave unset for an initial request. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets object_types - * @return string[] - */ - public function getObjectTypes() - { - return $this->object_types; - } - - /** - * Sets object_types - * @param string[] $object_types The desired set of object types to appear in the search results. The legal values are taken from the CatalogObjectType enum: `\"ITEM\"`, `\"ITEM_VARIATION\"`, `\"CATEGORY\"`, `\"DISCOUNT\"`, `\"TAX\"`, `\"MODIFIER\"`, or `\"MODIFIER_LIST\"`. See [CatalogObjectType](#type-catalogobjecttype) for possible values - * @return $this - */ - public function setObjectTypes($object_types) - { - $this->object_types = $object_types; - return $this; - } - /** - * Gets include_deleted_objects - * @return bool - */ - public function getIncludeDeletedObjects() - { - return $this->include_deleted_objects; - } - - /** - * Sets include_deleted_objects - * @param bool $include_deleted_objects If `true`, deleted objects will be included in the results. Deleted objects will have their `is_deleted` field set to `true`. - * @return $this - */ - public function setIncludeDeletedObjects($include_deleted_objects) - { - $this->include_deleted_objects = $include_deleted_objects; - return $this; - } - /** - * Gets include_related_objects - * @return bool - */ - public function getIncludeRelatedObjects() - { - return $this->include_related_objects; - } - - /** - * Sets include_related_objects - * @param bool $include_related_objects If `true`, the response will include additional objects that are related to the requested object, as follows: If a CatalogItem is returned in the object field of the response, its associated CatalogCategory, CatalogTax objects, CatalogImage objects and CatalogModifierList objects will be included in the `related_objects` field of the response. If a CatalogItemVariation is returned in the object field of the response, its parent CatalogItem will be included in the `related_objects` field of the response. - * @return $this - */ - public function setIncludeRelatedObjects($include_related_objects) - { - $this->include_related_objects = $include_related_objects; - return $this; - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time Return objects modified after this [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates), in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. The timestamp is exclusive - objects with a timestamp equal to `begin_time` will not be included in the response. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets query - * @return \SquareConnect\Model\CatalogQuery - */ - public function getQuery() - { - return $this->query; - } - - /** - * Sets query - * @param \SquareConnect\Model\CatalogQuery $query A query to be used to filter or sort the results. If no query is specified, the entire catalog will be returned. - * @return $this - */ - public function setQuery($query) - { - $this->query = $query; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 1,000, it will be ignored. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchCatalogObjectsResponse.php b/includes/classes/vendors/square/connect/lib/Model/SearchCatalogObjectsResponse.php deleted file mode 100644 index e6d8b9b89b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchCatalogObjectsResponse.php +++ /dev/null @@ -1,278 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'cursor' => 'string', - 'objects' => '\SquareConnect\Model\CatalogObject[]', - 'related_objects' => '\SquareConnect\Model\CatalogObject[]', - 'latest_time' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'cursor' => 'cursor', - 'objects' => 'objects', - 'related_objects' => 'related_objects', - 'latest_time' => 'latest_time' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'cursor' => 'setCursor', - 'objects' => 'setObjects', - 'related_objects' => 'setRelatedObjects', - 'latest_time' => 'setLatestTime' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'cursor' => 'getCursor', - 'objects' => 'getObjects', - 'related_objects' => 'getRelatedObjects', - 'latest_time' => 'getLatestTime' - ); - - /** - * $errors Information on any errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $objects The CatalogObjects returned. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $objects; - /** - * $related_objects A list of CatalogObjects referenced by the objects in the `objects` field. - * @var \SquareConnect\Model\CatalogObject[] - */ - protected $related_objects; - /** - * $latest_time When the associated product catalog was last updated. Will match the value for `end_time` or `cursor` if either field is included in the `SearchCatalog` request. - * @var string - */ - protected $latest_time; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["objects"])) { - $this->objects = $data["objects"]; - } else { - $this->objects = null; - } - if (isset($data["related_objects"])) { - $this->related_objects = $data["related_objects"]; - } else { - $this->related_objects = null; - } - if (isset($data["latest_time"])) { - $this->latest_time = $data["latest_time"]; - } else { - $this->latest_time = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets objects - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getObjects() - { - return $this->objects; - } - - /** - * Sets objects - * @param \SquareConnect\Model\CatalogObject[] $objects The CatalogObjects returned. - * @return $this - */ - public function setObjects($objects) - { - $this->objects = $objects; - return $this; - } - /** - * Gets related_objects - * @return \SquareConnect\Model\CatalogObject[] - */ - public function getRelatedObjects() - { - return $this->related_objects; - } - - /** - * Sets related_objects - * @param \SquareConnect\Model\CatalogObject[] $related_objects A list of CatalogObjects referenced by the objects in the `objects` field. - * @return $this - */ - public function setRelatedObjects($related_objects) - { - $this->related_objects = $related_objects; - return $this; - } - /** - * Gets latest_time - * @return string - */ - public function getLatestTime() - { - return $this->latest_time; - } - - /** - * Sets latest_time - * @param string $latest_time When the associated product catalog was last updated. Will match the value for `end_time` or `cursor` if either field is included in the `SearchCatalog` request. - * @return $this - */ - public function setLatestTime($latest_time) - { - $this->latest_time = $latest_time; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchCustomersRequest.php b/includes/classes/vendors/square/connect/lib/Model/SearchCustomersRequest.php deleted file mode 100644 index ef96317252..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchCustomersRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'limit' => 'int', - 'query' => '\SquareConnect\Model\CustomerQuery' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'cursor' => 'cursor', - 'limit' => 'limit', - 'query' => 'query' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'cursor' => 'setCursor', - 'limit' => 'setLimit', - 'query' => 'setQuery' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'cursor' => 'getCursor', - 'limit' => 'getLimit', - 'query' => 'getQuery' - ); - - /** - * $cursor Include the pagination cursor in subsequent calls to this endpoint to retrieve the next set of results associated with the original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $limit A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 100, it will be ignored. - * @var int - */ - protected $limit; - /** - * $query Query customers based on the given conditions and sort order. Calling SearchCustomers without an explicit query parameter will return all customers ordered alphabetically based on `given_name` and `family_name`. - * @var \SquareConnect\Model\CustomerQuery - */ - protected $query; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["query"])) { - $this->query = $data["query"]; - } else { - $this->query = null; - } - } - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Include the pagination cursor in subsequent calls to this endpoint to retrieve the next set of results associated with the original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 100, it will be ignored. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets query - * @return \SquareConnect\Model\CustomerQuery - */ - public function getQuery() - { - return $this->query; - } - - /** - * Sets query - * @param \SquareConnect\Model\CustomerQuery $query Query customers based on the given conditions and sort order. Calling SearchCustomers without an explicit query parameter will return all customers ordered alphabetically based on `given_name` and `family_name`. - * @return $this - */ - public function setQuery($query) - { - $this->query = $query; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchCustomersResponse.php b/includes/classes/vendors/square/connect/lib/Model/SearchCustomersResponse.php deleted file mode 100644 index 1835b52fdb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchCustomersResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'customers' => '\SquareConnect\Model\Customer[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'customers' => 'customers', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'customers' => 'setCustomers', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'customers' => 'getCustomers', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $customers An array of `Customer` objects that match a query. - * @var \SquareConnect\Model\Customer[] - */ - protected $customers; - /** - * $cursor A pagination cursor that can be used during subsequent calls to SearchCustomers to retrieve the next set of results associated with the original query. Pagination cursors are only present when a request succeeds and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["customers"])) { - $this->customers = $data["customers"]; - } else { - $this->customers = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets customers - * @return \SquareConnect\Model\Customer[] - */ - public function getCustomers() - { - return $this->customers; - } - - /** - * Sets customers - * @param \SquareConnect\Model\Customer[] $customers An array of `Customer` objects that match a query. - * @return $this - */ - public function setCustomers($customers) - { - $this->customers = $customers; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor that can be used during subsequent calls to SearchCustomers to retrieve the next set of results associated with the original query. Pagination cursors are only present when a request succeeds and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsRequest.php b/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsRequest.php deleted file mode 100644 index 5873cb632b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\SearchLoyaltyAccountsRequestLoyaltyAccountQuery', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'query' => 'query', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'query' => 'setQuery', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'query' => 'getQuery', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $query The search criteria for the request. - * @var \SquareConnect\Model\SearchLoyaltyAccountsRequestLoyaltyAccountQuery - */ - protected $query; - /** - * $limit The maximum number of results to include in the response. - * @var int - */ - protected $limit; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["query"])) { - $this->query = $data["query"]; - } else { - $this->query = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets query - * @return \SquareConnect\Model\SearchLoyaltyAccountsRequestLoyaltyAccountQuery - */ - public function getQuery() - { - return $this->query; - } - - /** - * Sets query - * @param \SquareConnect\Model\SearchLoyaltyAccountsRequestLoyaltyAccountQuery $query The search criteria for the request. - * @return $this - */ - public function setQuery($query) - { - $this->query = $query; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum number of results to include in the response. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.php b/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.php deleted file mode 100644 index b24160f2f7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\LoyaltyAccountMapping[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'mappings' => 'mappings' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'mappings' => 'setMappings' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'mappings' => 'getMappings' - ); - - /** - * $mappings The set of mappings to use in the loyalty account search. - * @var \SquareConnect\Model\LoyaltyAccountMapping[] - */ - protected $mappings; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["mappings"])) { - $this->mappings = $data["mappings"]; - } else { - $this->mappings = null; - } - } - } - /** - * Gets mappings - * @return \SquareConnect\Model\LoyaltyAccountMapping[] - */ - public function getMappings() - { - return $this->mappings; - } - - /** - * Sets mappings - * @param \SquareConnect\Model\LoyaltyAccountMapping[] $mappings The set of mappings to use in the loyalty account search. - * @return $this - */ - public function setMappings($mappings) - { - $this->mappings = $mappings; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsResponse.php b/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsResponse.php deleted file mode 100644 index 5a5e332db4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyAccountsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'loyalty_accounts' => '\SquareConnect\Model\LoyaltyAccount[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'loyalty_accounts' => 'loyalty_accounts', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'loyalty_accounts' => 'setLoyaltyAccounts', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'loyalty_accounts' => 'getLoyaltyAccounts', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $loyalty_accounts The loyalty accounts that met the search criteria, in order of creation date. - * @var \SquareConnect\Model\LoyaltyAccount[] - */ - protected $loyalty_accounts; - /** - * $cursor The pagination cursor to use in a subsequent request. If empty, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["loyalty_accounts"])) { - $this->loyalty_accounts = $data["loyalty_accounts"]; - } else { - $this->loyalty_accounts = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets loyalty_accounts - * @return \SquareConnect\Model\LoyaltyAccount[] - */ - public function getLoyaltyAccounts() - { - return $this->loyalty_accounts; - } - - /** - * Sets loyalty_accounts - * @param \SquareConnect\Model\LoyaltyAccount[] $loyalty_accounts The loyalty accounts that met the search criteria, in order of creation date. - * @return $this - */ - public function setLoyaltyAccounts($loyalty_accounts) - { - $this->loyalty_accounts = $loyalty_accounts; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to use in a subsequent request. If empty, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyEventsRequest.php b/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyEventsRequest.php deleted file mode 100644 index 95a5252ec9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyEventsRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\LoyaltyEventQuery', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'query' => 'query', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'query' => 'setQuery', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'query' => 'getQuery', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $query A set of one or more predefined query filters to apply when searching for loyalty events. The endpoint performs a logical AND to evaluate multiple filters and performs a logical OR on arrays that specifies multiple field values. - * @var \SquareConnect\Model\LoyaltyEventQuery - */ - protected $query; - /** - * $limit The maximum number of results to include in the response. The last page might contain fewer events. The default is 30 events. - * @var int - */ - protected $limit; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["query"])) { - $this->query = $data["query"]; - } else { - $this->query = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets query - * @return \SquareConnect\Model\LoyaltyEventQuery - */ - public function getQuery() - { - return $this->query; - } - - /** - * Sets query - * @param \SquareConnect\Model\LoyaltyEventQuery $query A set of one or more predefined query filters to apply when searching for loyalty events. The endpoint performs a logical AND to evaluate multiple filters and performs a logical OR on arrays that specifies multiple field values. - * @return $this - */ - public function setQuery($query) - { - $this->query = $query; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum number of results to include in the response. The last page might contain fewer events. The default is 30 events. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyEventsResponse.php b/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyEventsResponse.php deleted file mode 100644 index 7fdd92316d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyEventsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'events' => '\SquareConnect\Model\LoyaltyEvent[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'events' => 'events', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'events' => 'setEvents', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'events' => 'getEvents', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $events The loyalty events that satisfy the search criteria. - * @var \SquareConnect\Model\LoyaltyEvent[] - */ - protected $events; - /** - * $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["events"])) { - $this->events = $data["events"]; - } else { - $this->events = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets events - * @return \SquareConnect\Model\LoyaltyEvent[] - */ - public function getEvents() - { - return $this->events; - } - - /** - * Sets events - * @param \SquareConnect\Model\LoyaltyEvent[] $events The loyalty events that satisfy the search criteria. - * @return $this - */ - public function setEvents($events) - { - $this->events = $events; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsRequest.php b/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsRequest.php deleted file mode 100644 index e82d584cd1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\SearchLoyaltyRewardsRequestLoyaltyRewardQuery', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'query' => 'query', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'query' => 'setQuery', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'query' => 'getQuery', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $query The search criteria for the request. If empty, the endpoint retrieves all loyalty rewards in the loyalty program. - * @var \SquareConnect\Model\SearchLoyaltyRewardsRequestLoyaltyRewardQuery - */ - protected $query; - /** - * $limit The maximum number of results to return in the response. - * @var int - */ - protected $limit; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["query"])) { - $this->query = $data["query"]; - } else { - $this->query = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets query - * @return \SquareConnect\Model\SearchLoyaltyRewardsRequestLoyaltyRewardQuery - */ - public function getQuery() - { - return $this->query; - } - - /** - * Sets query - * @param \SquareConnect\Model\SearchLoyaltyRewardsRequestLoyaltyRewardQuery $query The search criteria for the request. If empty, the endpoint retrieves all loyalty rewards in the loyalty program. - * @return $this - */ - public function setQuery($query) - { - $this->query = $query; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum number of results to return in the response. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. For more information, see [Pagination](https://developer.squareup.com/docs/docs/basics/api101/pagination). - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.php b/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.php deleted file mode 100644 index 8f2a5b4508..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'status' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'loyalty_account_id' => 'loyalty_account_id', - 'status' => 'status' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'loyalty_account_id' => 'setLoyaltyAccountId', - 'status' => 'setStatus' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'loyalty_account_id' => 'getLoyaltyAccountId', - 'status' => 'getStatus' - ); - - /** - * $loyalty_account_id The ID of the `loyalty account` to which the loyalty reward belongs. - * @var string - */ - protected $loyalty_account_id; - /** - * $status The status of the loyalty reward. See [LoyaltyRewardStatus](#type-loyaltyrewardstatus) for possible values - * @var string - */ - protected $status; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["loyalty_account_id"])) { - $this->loyalty_account_id = $data["loyalty_account_id"]; - } else { - $this->loyalty_account_id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - } - } - /** - * Gets loyalty_account_id - * @return string - */ - public function getLoyaltyAccountId() - { - return $this->loyalty_account_id; - } - - /** - * Sets loyalty_account_id - * @param string $loyalty_account_id The ID of the `loyalty account` to which the loyalty reward belongs. - * @return $this - */ - public function setLoyaltyAccountId($loyalty_account_id) - { - $this->loyalty_account_id = $loyalty_account_id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The status of the loyalty reward. See [LoyaltyRewardStatus](#type-loyaltyrewardstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsResponse.php b/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsResponse.php deleted file mode 100644 index 7801c611fd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchLoyaltyRewardsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'rewards' => '\SquareConnect\Model\LoyaltyReward[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'rewards' => 'rewards', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'rewards' => 'setRewards', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'rewards' => 'getRewards', - 'cursor' => 'getCursor' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $rewards The loyalty rewards that satisfy the search criteria. These are returned in descending order by `updated_at`. - * @var \SquareConnect\Model\LoyaltyReward[] - */ - protected $rewards; - /** - * $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["rewards"])) { - $this->rewards = $data["rewards"]; - } else { - $this->rewards = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets rewards - * @return \SquareConnect\Model\LoyaltyReward[] - */ - public function getRewards() - { - return $this->rewards; - } - - /** - * Sets rewards - * @param \SquareConnect\Model\LoyaltyReward[] $rewards The loyalty rewards that satisfy the search criteria. These are returned in descending order by `updated_at`. - * @return $this - */ - public function setRewards($rewards) - { - $this->rewards = $rewards; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersCustomerFilter.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersCustomerFilter.php deleted file mode 100644 index 36f29e72d8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersCustomerFilter.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'customer_ids' => 'customer_ids' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'customer_ids' => 'setCustomerIds' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'customer_ids' => 'getCustomerIds' - ); - - /** - * $customer_ids List of customer IDs to filter by. Max: 10 customer IDs. - * @var string[] - */ - protected $customer_ids; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["customer_ids"])) { - $this->customer_ids = $data["customer_ids"]; - } else { - $this->customer_ids = null; - } - } - } - /** - * Gets customer_ids - * @return string[] - */ - public function getCustomerIds() - { - return $this->customer_ids; - } - - /** - * Sets customer_ids - * @param string[] $customer_ids List of customer IDs to filter by. Max: 10 customer IDs. - * @return $this - */ - public function setCustomerIds($customer_ids) - { - $this->customer_ids = $customer_ids; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersDateTimeFilter.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersDateTimeFilter.php deleted file mode 100644 index 393fef41e5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersDateTimeFilter.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\TimeRange', - 'updated_at' => '\SquareConnect\Model\TimeRange', - 'closed_at' => '\SquareConnect\Model\TimeRange' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'closed_at' => 'closed_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'closed_at' => 'setClosedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'closed_at' => 'getClosedAt' - ); - - /** - * $created_at Time range for filtering on the `created_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `CREATED_AT`. - * @var \SquareConnect\Model\TimeRange - */ - protected $created_at; - /** - * $updated_at Time range for filtering on the `updated_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `UPDATED_AT`. - * @var \SquareConnect\Model\TimeRange - */ - protected $updated_at; - /** - * $closed_at Time range for filtering on the `closed_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `CLOSED_AT`. - * @var \SquareConnect\Model\TimeRange - */ - protected $closed_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["closed_at"])) { - $this->closed_at = $data["closed_at"]; - } else { - $this->closed_at = null; - } - } - } - /** - * Gets created_at - * @return \SquareConnect\Model\TimeRange - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param \SquareConnect\Model\TimeRange $created_at Time range for filtering on the `created_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `CREATED_AT`. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return \SquareConnect\Model\TimeRange - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param \SquareConnect\Model\TimeRange $updated_at Time range for filtering on the `updated_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `UPDATED_AT`. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets closed_at - * @return \SquareConnect\Model\TimeRange - */ - public function getClosedAt() - { - return $this->closed_at; - } - - /** - * Sets closed_at - * @param \SquareConnect\Model\TimeRange $closed_at Time range for filtering on the `closed_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `CLOSED_AT`. - * @return $this - */ - public function setClosedAt($closed_at) - { - $this->closed_at = $closed_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersFilter.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersFilter.php deleted file mode 100644 index 4fdd1f0e37..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersFilter.php +++ /dev/null @@ -1,278 +0,0 @@ - '\SquareConnect\Model\SearchOrdersStateFilter', - 'date_time_filter' => '\SquareConnect\Model\SearchOrdersDateTimeFilter', - 'fulfillment_filter' => '\SquareConnect\Model\SearchOrdersFulfillmentFilter', - 'source_filter' => '\SquareConnect\Model\SearchOrdersSourceFilter', - 'customer_filter' => '\SquareConnect\Model\SearchOrdersCustomerFilter' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'state_filter' => 'state_filter', - 'date_time_filter' => 'date_time_filter', - 'fulfillment_filter' => 'fulfillment_filter', - 'source_filter' => 'source_filter', - 'customer_filter' => 'customer_filter' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'state_filter' => 'setStateFilter', - 'date_time_filter' => 'setDateTimeFilter', - 'fulfillment_filter' => 'setFulfillmentFilter', - 'source_filter' => 'setSourceFilter', - 'customer_filter' => 'setCustomerFilter' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'state_filter' => 'getStateFilter', - 'date_time_filter' => 'getDateTimeFilter', - 'fulfillment_filter' => 'getFulfillmentFilter', - 'source_filter' => 'getSourceFilter', - 'customer_filter' => 'getCustomerFilter' - ); - - /** - * $state_filter Filter by ``OrderState``. - * @var \SquareConnect\Model\SearchOrdersStateFilter - */ - protected $state_filter; - /** - * $date_time_filter Filter for results within a time range. __Important:__ If you filter for orders by time range, you must set SearchOrdersSort to sort by the same field. [Learn more about filtering orders by time range](https://developer.squareup.com/docs/orders-api/manage-orders#important-note-on-filtering-orders-by-time-range) - * @var \SquareConnect\Model\SearchOrdersDateTimeFilter - */ - protected $date_time_filter; - /** - * $fulfillment_filter Filter by fulfillment type or state. - * @var \SquareConnect\Model\SearchOrdersFulfillmentFilter - */ - protected $fulfillment_filter; - /** - * $source_filter Filter by source of order. - * @var \SquareConnect\Model\SearchOrdersSourceFilter - */ - protected $source_filter; - /** - * $customer_filter Filter by customers associated with the order. - * @var \SquareConnect\Model\SearchOrdersCustomerFilter - */ - protected $customer_filter; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["state_filter"])) { - $this->state_filter = $data["state_filter"]; - } else { - $this->state_filter = null; - } - if (isset($data["date_time_filter"])) { - $this->date_time_filter = $data["date_time_filter"]; - } else { - $this->date_time_filter = null; - } - if (isset($data["fulfillment_filter"])) { - $this->fulfillment_filter = $data["fulfillment_filter"]; - } else { - $this->fulfillment_filter = null; - } - if (isset($data["source_filter"])) { - $this->source_filter = $data["source_filter"]; - } else { - $this->source_filter = null; - } - if (isset($data["customer_filter"])) { - $this->customer_filter = $data["customer_filter"]; - } else { - $this->customer_filter = null; - } - } - } - /** - * Gets state_filter - * @return \SquareConnect\Model\SearchOrdersStateFilter - */ - public function getStateFilter() - { - return $this->state_filter; - } - - /** - * Sets state_filter - * @param \SquareConnect\Model\SearchOrdersStateFilter $state_filter Filter by ``OrderState``. - * @return $this - */ - public function setStateFilter($state_filter) - { - $this->state_filter = $state_filter; - return $this; - } - /** - * Gets date_time_filter - * @return \SquareConnect\Model\SearchOrdersDateTimeFilter - */ - public function getDateTimeFilter() - { - return $this->date_time_filter; - } - - /** - * Sets date_time_filter - * @param \SquareConnect\Model\SearchOrdersDateTimeFilter $date_time_filter Filter for results within a time range. __Important:__ If you filter for orders by time range, you must set SearchOrdersSort to sort by the same field. [Learn more about filtering orders by time range](https://developer.squareup.com/docs/orders-api/manage-orders#important-note-on-filtering-orders-by-time-range) - * @return $this - */ - public function setDateTimeFilter($date_time_filter) - { - $this->date_time_filter = $date_time_filter; - return $this; - } - /** - * Gets fulfillment_filter - * @return \SquareConnect\Model\SearchOrdersFulfillmentFilter - */ - public function getFulfillmentFilter() - { - return $this->fulfillment_filter; - } - - /** - * Sets fulfillment_filter - * @param \SquareConnect\Model\SearchOrdersFulfillmentFilter $fulfillment_filter Filter by fulfillment type or state. - * @return $this - */ - public function setFulfillmentFilter($fulfillment_filter) - { - $this->fulfillment_filter = $fulfillment_filter; - return $this; - } - /** - * Gets source_filter - * @return \SquareConnect\Model\SearchOrdersSourceFilter - */ - public function getSourceFilter() - { - return $this->source_filter; - } - - /** - * Sets source_filter - * @param \SquareConnect\Model\SearchOrdersSourceFilter $source_filter Filter by source of order. - * @return $this - */ - public function setSourceFilter($source_filter) - { - $this->source_filter = $source_filter; - return $this; - } - /** - * Gets customer_filter - * @return \SquareConnect\Model\SearchOrdersCustomerFilter - */ - public function getCustomerFilter() - { - return $this->customer_filter; - } - - /** - * Sets customer_filter - * @param \SquareConnect\Model\SearchOrdersCustomerFilter $customer_filter Filter by customers associated with the order. - * @return $this - */ - public function setCustomerFilter($customer_filter) - { - $this->customer_filter = $customer_filter; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersFulfillmentFilter.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersFulfillmentFilter.php deleted file mode 100644 index 0c7a499efb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersFulfillmentFilter.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string[]', - 'fulfillment_states' => 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'fulfillment_types' => 'fulfillment_types', - 'fulfillment_states' => 'fulfillment_states' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'fulfillment_types' => 'setFulfillmentTypes', - 'fulfillment_states' => 'setFulfillmentStates' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'fulfillment_types' => 'getFulfillmentTypes', - 'fulfillment_states' => 'getFulfillmentStates' - ); - - /** - * $fulfillment_types List of `fulfillment types` to filter for. Will return orders if any of its fulfillments match any of the fulfillment types listed in this field. See [OrderFulfillmentType](#type-orderfulfillmenttype) for possible values - * @var string[] - */ - protected $fulfillment_types; - /** - * $fulfillment_states List of `fulfillment states` to filter for. Will return orders if any of its fulfillments match any of the fulfillment states listed in this field. See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values - * @var string[] - */ - protected $fulfillment_states; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["fulfillment_types"])) { - $this->fulfillment_types = $data["fulfillment_types"]; - } else { - $this->fulfillment_types = null; - } - if (isset($data["fulfillment_states"])) { - $this->fulfillment_states = $data["fulfillment_states"]; - } else { - $this->fulfillment_states = null; - } - } - } - /** - * Gets fulfillment_types - * @return string[] - */ - public function getFulfillmentTypes() - { - return $this->fulfillment_types; - } - - /** - * Sets fulfillment_types - * @param string[] $fulfillment_types List of `fulfillment types` to filter for. Will return orders if any of its fulfillments match any of the fulfillment types listed in this field. See [OrderFulfillmentType](#type-orderfulfillmenttype) for possible values - * @return $this - */ - public function setFulfillmentTypes($fulfillment_types) - { - $this->fulfillment_types = $fulfillment_types; - return $this; - } - /** - * Gets fulfillment_states - * @return string[] - */ - public function getFulfillmentStates() - { - return $this->fulfillment_states; - } - - /** - * Sets fulfillment_states - * @param string[] $fulfillment_states List of `fulfillment states` to filter for. Will return orders if any of its fulfillments match any of the fulfillment states listed in this field. See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values - * @return $this - */ - public function setFulfillmentStates($fulfillment_states) - { - $this->fulfillment_states = $fulfillment_states; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersQuery.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersQuery.php deleted file mode 100644 index 098acb413f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersQuery.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\SearchOrdersFilter', - 'sort' => '\SquareConnect\Model\SearchOrdersSort' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'filter' => 'filter', - 'sort' => 'sort' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'filter' => 'setFilter', - 'sort' => 'setSort' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'filter' => 'getFilter', - 'sort' => 'getSort' - ); - - /** - * $filter Criteria to filter results by. - * @var \SquareConnect\Model\SearchOrdersFilter - */ - protected $filter; - /** - * $sort Criteria to sort results by. - * @var \SquareConnect\Model\SearchOrdersSort - */ - protected $sort; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["filter"])) { - $this->filter = $data["filter"]; - } else { - $this->filter = null; - } - if (isset($data["sort"])) { - $this->sort = $data["sort"]; - } else { - $this->sort = null; - } - } - } - /** - * Gets filter - * @return \SquareConnect\Model\SearchOrdersFilter - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Sets filter - * @param \SquareConnect\Model\SearchOrdersFilter $filter Criteria to filter results by. - * @return $this - */ - public function setFilter($filter) - { - $this->filter = $filter; - return $this; - } - /** - * Gets sort - * @return \SquareConnect\Model\SearchOrdersSort - */ - public function getSort() - { - return $this->sort; - } - - /** - * Sets sort - * @param \SquareConnect\Model\SearchOrdersSort $sort Criteria to sort results by. - * @return $this - */ - public function setSort($sort) - { - $this->sort = $sort; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersRequest.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersRequest.php deleted file mode 100644 index 79466e5275..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersRequest.php +++ /dev/null @@ -1,278 +0,0 @@ - 'string[]', - 'cursor' => 'string', - 'query' => '\SquareConnect\Model\SearchOrdersQuery', - 'limit' => 'int', - 'return_entries' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_ids' => 'location_ids', - 'cursor' => 'cursor', - 'query' => 'query', - 'limit' => 'limit', - 'return_entries' => 'return_entries' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_ids' => 'setLocationIds', - 'cursor' => 'setCursor', - 'query' => 'setQuery', - 'limit' => 'setLimit', - 'return_entries' => 'setReturnEntries' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_ids' => 'getLocationIds', - 'cursor' => 'getCursor', - 'query' => 'getQuery', - 'limit' => 'getLimit', - 'return_entries' => 'getReturnEntries' - ); - - /** - * $location_ids The location IDs for the orders to query. All locations must belong to the same merchant. Min: 1 location IDs. Max: 10 location IDs. - * @var string[] - */ - protected $location_ids; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $query Query conditions used to filter or sort the results. Note that when fetching additional pages using a cursor, the query must be equal to the query used to fetch the first page of results. - * @var \SquareConnect\Model\SearchOrdersQuery - */ - protected $query; - /** - * $limit Maximum number of results to be returned in a single page. It is possible to receive fewer results than the specified limit on a given page. Default: `500` - * @var int - */ - protected $limit; - /** - * $return_entries Boolean that controls the format of the search results. If `true`, SearchOrders will return ``OrderEntry`` objects. If `false`, SearchOrders will return complete Order objects. Default: `false`. - * @var bool - */ - protected $return_entries; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["query"])) { - $this->query = $data["query"]; - } else { - $this->query = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["return_entries"])) { - $this->return_entries = $data["return_entries"]; - } else { - $this->return_entries = null; - } - } - } - /** - * Gets location_ids - * @return string[] - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string[] $location_ids The location IDs for the orders to query. All locations must belong to the same merchant. Min: 1 location IDs. Max: 10 location IDs. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets query - * @return \SquareConnect\Model\SearchOrdersQuery - */ - public function getQuery() - { - return $this->query; - } - - /** - * Sets query - * @param \SquareConnect\Model\SearchOrdersQuery $query Query conditions used to filter or sort the results. Note that when fetching additional pages using a cursor, the query must be equal to the query used to fetch the first page of results. - * @return $this - */ - public function setQuery($query) - { - $this->query = $query; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit Maximum number of results to be returned in a single page. It is possible to receive fewer results than the specified limit on a given page. Default: `500` - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets return_entries - * @return bool - */ - public function getReturnEntries() - { - return $this->return_entries; - } - - /** - * Sets return_entries - * @param bool $return_entries Boolean that controls the format of the search results. If `true`, SearchOrders will return ``OrderEntry`` objects. If `false`, SearchOrders will return complete Order objects. Default: `false`. - * @return $this - */ - public function setReturnEntries($return_entries) - { - $this->return_entries = $return_entries; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersResponse.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersResponse.php deleted file mode 100644 index a1bfa6fed6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersResponse.php +++ /dev/null @@ -1,245 +0,0 @@ - '\SquareConnect\Model\OrderEntry[]', - 'orders' => '\SquareConnect\Model\Order[]', - 'cursor' => 'string', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order_entries' => 'order_entries', - 'orders' => 'orders', - 'cursor' => 'cursor', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order_entries' => 'setOrderEntries', - 'orders' => 'setOrders', - 'cursor' => 'setCursor', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order_entries' => 'getOrderEntries', - 'orders' => 'getOrders', - 'cursor' => 'getCursor', - 'errors' => 'getErrors' - ); - - /** - * $order_entries List of `OrderEntries` that fit the query conditions. Populated only if `return_entries` was set to `true` in the request. - * @var \SquareConnect\Model\OrderEntry[] - */ - protected $order_entries; - /** - * $orders List of `Order` objects that match query conditions. Populated only if `return_entries` in the request is set to `false`. - * @var \SquareConnect\Model\Order[] - */ - protected $orders; - /** - * $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - /** - * $errors `Errors` encountered during the search. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order_entries"])) { - $this->order_entries = $data["order_entries"]; - } else { - $this->order_entries = null; - } - if (isset($data["orders"])) { - $this->orders = $data["orders"]; - } else { - $this->orders = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets order_entries - * @return \SquareConnect\Model\OrderEntry[] - */ - public function getOrderEntries() - { - return $this->order_entries; - } - - /** - * Sets order_entries - * @param \SquareConnect\Model\OrderEntry[] $order_entries List of `OrderEntries` that fit the query conditions. Populated only if `return_entries` was set to `true` in the request. - * @return $this - */ - public function setOrderEntries($order_entries) - { - $this->order_entries = $order_entries; - return $this; - } - /** - * Gets orders - * @return \SquareConnect\Model\Order[] - */ - public function getOrders() - { - return $this->orders; - } - - /** - * Sets orders - * @param \SquareConnect\Model\Order[] $orders List of `Order` objects that match query conditions. Populated only if `return_entries` in the request is set to `false`. - * @return $this - */ - public function setOrders($orders) - { - $this->orders = $orders; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors `Errors` encountered during the search. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSort.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSort.php deleted file mode 100644 index 8377fdec17..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSort.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'sort_order' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'sort_field' => 'sort_field', - 'sort_order' => 'sort_order' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'sort_field' => 'setSortField', - 'sort_order' => 'setSortOrder' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'sort_field' => 'getSortField', - 'sort_order' => 'getSortOrder' - ); - - /** - * $sort_field The field to sort by. __Important:__ When using a `DateTimeFilter`, `sort_field` must match the timestamp field that the DateTimeFilter uses to filter. For example, If you set your `sort_field` to `CLOSED_AT` and you use a DateTimeFilter, your DateTimeFilter must filter for orders by their `CLOSED_AT` date. If this field does not match the timestamp field in `DateTimeFilter`, SearchOrders will return an error. Default: `CREATED_AT`. See [SearchOrdersSortField](#type-searchorderssortfield) for possible values - * @var string - */ - protected $sort_field; - /** - * $sort_order The chronological order in which results are returned. Defaults to `DESC`. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $sort_order; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["sort_field"])) { - $this->sort_field = $data["sort_field"]; - } else { - $this->sort_field = null; - } - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - } - } - /** - * Gets sort_field - * @return string - */ - public function getSortField() - { - return $this->sort_field; - } - - /** - * Sets sort_field - * @param string $sort_field The field to sort by. __Important:__ When using a `DateTimeFilter`, `sort_field` must match the timestamp field that the DateTimeFilter uses to filter. For example, If you set your `sort_field` to `CLOSED_AT` and you use a DateTimeFilter, your DateTimeFilter must filter for orders by their `CLOSED_AT` date. If this field does not match the timestamp field in `DateTimeFilter`, SearchOrders will return an error. Default: `CREATED_AT`. See [SearchOrdersSortField](#type-searchorderssortfield) for possible values - * @return $this - */ - public function setSortField($sort_field) - { - $this->sort_field = $sort_field; - return $this; - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The chronological order in which results are returned. Defaults to `DESC`. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSortField.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSortField.php deleted file mode 100644 index 0327b19170..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSortField.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSourceFilter.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSourceFilter.php deleted file mode 100644 index 219849c9a7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersSourceFilter.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'source_names' => 'source_names' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'source_names' => 'setSourceNames' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'source_names' => 'getSourceNames' - ); - - /** - * $source_names Filters by `Source` `name`. Will return any orders with with a `source.name` that matches any of the listed source names. Max: 10 source names. - * @var string[] - */ - protected $source_names; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["source_names"])) { - $this->source_names = $data["source_names"]; - } else { - $this->source_names = null; - } - } - } - /** - * Gets source_names - * @return string[] - */ - public function getSourceNames() - { - return $this->source_names; - } - - /** - * Sets source_names - * @param string[] $source_names Filters by `Source` `name`. Will return any orders with with a `source.name` that matches any of the listed source names. Max: 10 source names. - * @return $this - */ - public function setSourceNames($source_names) - { - $this->source_names = $source_names; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersStateFilter.php b/includes/classes/vendors/square/connect/lib/Model/SearchOrdersStateFilter.php deleted file mode 100644 index 606e4cf178..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchOrdersStateFilter.php +++ /dev/null @@ -1,146 +0,0 @@ - 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'states' => 'states' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'states' => 'setStates' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'states' => 'getStates' - ); - - /** - * $states States to filter for. See [OrderState](#type-orderstate) for possible values - * @var string[] - */ - protected $states; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["states"])) { - $this->states = $data["states"]; - } else { - $this->states = null; - } - } - } - /** - * Gets states - * @return string[] - */ - public function getStates() - { - return $this->states; - } - - /** - * Sets states - * @param string[] $states States to filter for. See [OrderState](#type-orderstate) for possible values - * @return $this - */ - public function setStates($states) - { - $this->states = $states; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchShiftsRequest.php b/includes/classes/vendors/square/connect/lib/Model/SearchShiftsRequest.php deleted file mode 100644 index ae178c97e2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchShiftsRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\ShiftQuery', - 'limit' => 'int', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'query' => 'query', - 'limit' => 'limit', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'query' => 'setQuery', - 'limit' => 'setLimit', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'query' => 'getQuery', - 'limit' => 'getLimit', - 'cursor' => 'getCursor' - ); - - /** - * $query Query filters. - * @var \SquareConnect\Model\ShiftQuery - */ - protected $query; - /** - * $limit number of resources in a page (200 by default). - * @var int - */ - protected $limit; - /** - * $cursor opaque cursor for fetching the next page. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["query"])) { - $this->query = $data["query"]; - } else { - $this->query = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets query - * @return \SquareConnect\Model\ShiftQuery - */ - public function getQuery() - { - return $this->query; - } - - /** - * Sets query - * @param \SquareConnect\Model\ShiftQuery $query Query filters. - * @return $this - */ - public function setQuery($query) - { - $this->query = $query; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit number of resources in a page (200 by default). - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor opaque cursor for fetching the next page. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchShiftsResponse.php b/includes/classes/vendors/square/connect/lib/Model/SearchShiftsResponse.php deleted file mode 100644 index b2b0db548e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchShiftsResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Shift[]', - 'cursor' => 'string', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'shifts' => 'shifts', - 'cursor' => 'cursor', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'shifts' => 'setShifts', - 'cursor' => 'setCursor', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'shifts' => 'getShifts', - 'cursor' => 'getCursor', - 'errors' => 'getErrors' - ); - - /** - * $shifts Shifts - * @var \SquareConnect\Model\Shift[] - */ - protected $shifts; - /** - * $cursor Opaque cursor for fetching the next page. - * @var string - */ - protected $cursor; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["shifts"])) { - $this->shifts = $data["shifts"]; - } else { - $this->shifts = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets shifts - * @return \SquareConnect\Model\Shift[] - */ - public function getShifts() - { - return $this->shifts; - } - - /** - * Sets shifts - * @param \SquareConnect\Model\Shift[] $shifts Shifts - * @return $this - */ - public function setShifts($shifts) - { - $this->shifts = $shifts; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor Opaque cursor for fetching the next page. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchTerminalCheckoutsRequest.php b/includes/classes/vendors/square/connect/lib/Model/SearchTerminalCheckoutsRequest.php deleted file mode 100644 index 58240ca95d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchTerminalCheckoutsRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\TerminalCheckoutQuery', - 'cursor' => 'string', - 'limit' => 'int' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'query' => 'query', - 'cursor' => 'cursor', - 'limit' => 'limit' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'query' => 'setQuery', - 'cursor' => 'setCursor', - 'limit' => 'setLimit' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'query' => 'getQuery', - 'cursor' => 'getCursor', - 'limit' => 'getLimit' - ); - - /** - * $query Query the terminal checkouts based on given conditions and sort order. Calling SearchTerminalCheckouts without an explicitly query parameter will return all available checkouts with the default sort order. - * @var \SquareConnect\Model\TerminalCheckoutQuery - */ - protected $query; - /** - * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. - * @var string - */ - protected $cursor; - /** - * $limit Limit the number of results returned for a single request. - * @var int - */ - protected $limit; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["query"])) { - $this->query = $data["query"]; - } else { - $this->query = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - } - } - /** - * Gets query - * @return \SquareConnect\Model\TerminalCheckoutQuery - */ - public function getQuery() - { - return $this->query; - } - - /** - * Sets query - * @param \SquareConnect\Model\TerminalCheckoutQuery $query Query the terminal checkouts based on given conditions and sort order. Calling SearchTerminalCheckouts without an explicitly query parameter will return all available checkouts with the default sort order. - * @return $this - */ - public function setQuery($query) - { - $this->query = $query; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit Limit the number of results returned for a single request. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SearchTerminalCheckoutsResponse.php b/includes/classes/vendors/square/connect/lib/Model/SearchTerminalCheckoutsResponse.php deleted file mode 100644 index db22f8ee5f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SearchTerminalCheckoutsResponse.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'checkouts' => '\SquareConnect\Model\TerminalCheckout[]', - 'cursor' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'checkouts' => 'checkouts', - 'cursor' => 'cursor' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'checkouts' => 'setCheckouts', - 'cursor' => 'setCursor' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'checkouts' => 'getCheckouts', - 'cursor' => 'getCursor' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $checkouts The requested search result of `TerminalCheckout`s. - * @var \SquareConnect\Model\TerminalCheckout[] - */ - protected $checkouts; - /** - * $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @var string - */ - protected $cursor; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["checkouts"])) { - $this->checkouts = $data["checkouts"]; - } else { - $this->checkouts = null; - } - if (isset($data["cursor"])) { - $this->cursor = $data["cursor"]; - } else { - $this->cursor = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets checkouts - * @return \SquareConnect\Model\TerminalCheckout[] - */ - public function getCheckouts() - { - return $this->checkouts; - } - - /** - * Sets checkouts - * @param \SquareConnect\Model\TerminalCheckout[] $checkouts The requested search result of `TerminalCheckout`s. - * @return $this - */ - public function setCheckouts($checkouts) - { - $this->checkouts = $checkouts; - return $this; - } - /** - * Gets cursor - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * Sets cursor - * @param string $cursor The pagination cursor to be used in a subsequent request. If empty, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. - * @return $this - */ - public function setCursor($cursor) - { - $this->cursor = $cursor; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Shift.php b/includes/classes/vendors/square/connect/lib/Model/Shift.php deleted file mode 100644 index 4f22ac14fb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Shift.php +++ /dev/null @@ -1,509 +0,0 @@ - 'string', - 'employee_id' => 'string', - 'location_id' => 'string', - 'timezone' => 'string', - 'start_at' => 'string', - 'end_at' => 'string', - 'wage' => '\SquareConnect\Model\ShiftWage', - 'breaks' => '\SquareConnect\Model\ModelBreak[]', - 'status' => 'string', - 'version' => 'int', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'employee_id' => 'employee_id', - 'location_id' => 'location_id', - 'timezone' => 'timezone', - 'start_at' => 'start_at', - 'end_at' => 'end_at', - 'wage' => 'wage', - 'breaks' => 'breaks', - 'status' => 'status', - 'version' => 'version', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'employee_id' => 'setEmployeeId', - 'location_id' => 'setLocationId', - 'timezone' => 'setTimezone', - 'start_at' => 'setStartAt', - 'end_at' => 'setEndAt', - 'wage' => 'setWage', - 'breaks' => 'setBreaks', - 'status' => 'setStatus', - 'version' => 'setVersion', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'employee_id' => 'getEmployeeId', - 'location_id' => 'getLocationId', - 'timezone' => 'getTimezone', - 'start_at' => 'getStartAt', - 'end_at' => 'getEndAt', - 'wage' => 'getWage', - 'breaks' => 'getBreaks', - 'status' => 'getStatus', - 'version' => 'getVersion', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id UUID for this object - * @var string - */ - protected $id; - /** - * $employee_id The ID of the employee this shift belongs to. - * @var string - */ - protected $employee_id; - /** - * $location_id The ID of the location this shift occurred at. Should be based on where the employee clocked in. - * @var string - */ - protected $location_id; - /** - * $timezone Read-only convenience value that is calculated from the location based on `location_id`. Format: the IANA Timezone Database identifier for the location timezone. - * @var string - */ - protected $timezone; - /** - * $start_at RFC 3339; shifted to location timezone + offset. Precision up to the minute is respected; seconds are truncated. - * @var string - */ - protected $start_at; - /** - * $end_at RFC 3339; shifted to timezone + offset. Precision up to the minute is respected; seconds are truncated. The `end_at` minute is not counted when the shift length is calculated. For example, a shift from `00:00` to `08:01` is considered an 8 hour shift (midnight to 8am). - * @var string - */ - protected $end_at; - /** - * $wage Job and pay related information. If wage is not set on create, will default to a wage of zero money. If title is not set on create, will default to the name of the role the employee is assigned to, if any. - * @var \SquareConnect\Model\ShiftWage - */ - protected $wage; - /** - * $breaks A list of any paid or unpaid breaks that were taken during this shift. - * @var \SquareConnect\Model\ModelBreak[] - */ - protected $breaks; - /** - * $status Describes working state of the current `Shift`. See [ShiftStatus](#type-shiftstatus) for possible values - * @var string - */ - protected $status; - /** - * $version Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If not provided, Square executes a blind write; potentially overwriting data from another write. - * @var int - */ - protected $version; - /** - * $created_at A read-only timestamp in RFC 3339 format; presented in UTC. - * @var string - */ - protected $created_at; - /** - * $updated_at A read-only timestamp in RFC 3339 format; presented in UTC. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["timezone"])) { - $this->timezone = $data["timezone"]; - } else { - $this->timezone = null; - } - if (isset($data["start_at"])) { - $this->start_at = $data["start_at"]; - } else { - $this->start_at = null; - } - if (isset($data["end_at"])) { - $this->end_at = $data["end_at"]; - } else { - $this->end_at = null; - } - if (isset($data["wage"])) { - $this->wage = $data["wage"]; - } else { - $this->wage = null; - } - if (isset($data["breaks"])) { - $this->breaks = $data["breaks"]; - } else { - $this->breaks = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id UUID for this object - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The ID of the employee this shift belongs to. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the location this shift occurred at. Should be based on where the employee clocked in. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets timezone - * @return string - */ - public function getTimezone() - { - return $this->timezone; - } - - /** - * Sets timezone - * @param string $timezone Read-only convenience value that is calculated from the location based on `location_id`. Format: the IANA Timezone Database identifier for the location timezone. - * @return $this - */ - public function setTimezone($timezone) - { - $this->timezone = $timezone; - return $this; - } - /** - * Gets start_at - * @return string - */ - public function getStartAt() - { - return $this->start_at; - } - - /** - * Sets start_at - * @param string $start_at RFC 3339; shifted to location timezone + offset. Precision up to the minute is respected; seconds are truncated. - * @return $this - */ - public function setStartAt($start_at) - { - $this->start_at = $start_at; - return $this; - } - /** - * Gets end_at - * @return string - */ - public function getEndAt() - { - return $this->end_at; - } - - /** - * Sets end_at - * @param string $end_at RFC 3339; shifted to timezone + offset. Precision up to the minute is respected; seconds are truncated. The `end_at` minute is not counted when the shift length is calculated. For example, a shift from `00:00` to `08:01` is considered an 8 hour shift (midnight to 8am). - * @return $this - */ - public function setEndAt($end_at) - { - $this->end_at = $end_at; - return $this; - } - /** - * Gets wage - * @return \SquareConnect\Model\ShiftWage - */ - public function getWage() - { - return $this->wage; - } - - /** - * Sets wage - * @param \SquareConnect\Model\ShiftWage $wage Job and pay related information. If wage is not set on create, will default to a wage of zero money. If title is not set on create, will default to the name of the role the employee is assigned to, if any. - * @return $this - */ - public function setWage($wage) - { - $this->wage = $wage; - return $this; - } - /** - * Gets breaks - * @return \SquareConnect\Model\ModelBreak[] - */ - public function getBreaks() - { - return $this->breaks; - } - - /** - * Sets breaks - * @param \SquareConnect\Model\ModelBreak[] $breaks A list of any paid or unpaid breaks that were taken during this shift. - * @return $this - */ - public function setBreaks($breaks) - { - $this->breaks = $breaks; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Describes working state of the current `Shift`. See [ShiftStatus](#type-shiftstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If not provided, Square executes a blind write; potentially overwriting data from another write. - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at A read-only timestamp in RFC 3339 format; presented in UTC. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at A read-only timestamp in RFC 3339 format; presented in UTC. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftFilter.php b/includes/classes/vendors/square/connect/lib/Model/ShiftFilter.php deleted file mode 100644 index 7a6854f1f1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftFilter.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string[]', - 'employee_ids' => 'string[]', - 'status' => 'string', - 'start' => '\SquareConnect\Model\TimeRange', - 'end' => '\SquareConnect\Model\TimeRange', - 'workday' => '\SquareConnect\Model\ShiftWorkday' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location_ids' => 'location_ids', - 'employee_ids' => 'employee_ids', - 'status' => 'status', - 'start' => 'start', - 'end' => 'end', - 'workday' => 'workday' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location_ids' => 'setLocationIds', - 'employee_ids' => 'setEmployeeIds', - 'status' => 'setStatus', - 'start' => 'setStart', - 'end' => 'setEnd', - 'workday' => 'setWorkday' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location_ids' => 'getLocationIds', - 'employee_ids' => 'getEmployeeIds', - 'status' => 'getStatus', - 'start' => 'getStart', - 'end' => 'getEnd', - 'workday' => 'getWorkday' - ); - - /** - * $location_ids Fetch shifts for the specified location. - * @var string[] - */ - protected $location_ids; - /** - * $employee_ids Fetch shifts for the specified employee. - * @var string[] - */ - protected $employee_ids; - /** - * $status Fetch a `Shift` instance by `Shift.status`. See [ShiftFilterStatus](#type-shiftfilterstatus) for possible values - * @var string - */ - protected $status; - /** - * $start Fetch `Shift`s that start in the time range - Inclusive. - * @var \SquareConnect\Model\TimeRange - */ - protected $start; - /** - * $end Fetch the `Shift`s that end in the time range - Inclusive. - * @var \SquareConnect\Model\TimeRange - */ - protected $end; - /** - * $workday Fetch the `Shift`s based on workday date range. - * @var \SquareConnect\Model\ShiftWorkday - */ - protected $workday; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location_ids"])) { - $this->location_ids = $data["location_ids"]; - } else { - $this->location_ids = null; - } - if (isset($data["employee_ids"])) { - $this->employee_ids = $data["employee_ids"]; - } else { - $this->employee_ids = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["start"])) { - $this->start = $data["start"]; - } else { - $this->start = null; - } - if (isset($data["end"])) { - $this->end = $data["end"]; - } else { - $this->end = null; - } - if (isset($data["workday"])) { - $this->workday = $data["workday"]; - } else { - $this->workday = null; - } - } - } - /** - * Gets location_ids - * @return string[] - */ - public function getLocationIds() - { - return $this->location_ids; - } - - /** - * Sets location_ids - * @param string[] $location_ids Fetch shifts for the specified location. - * @return $this - */ - public function setLocationIds($location_ids) - { - $this->location_ids = $location_ids; - return $this; - } - /** - * Gets employee_ids - * @return string[] - */ - public function getEmployeeIds() - { - return $this->employee_ids; - } - - /** - * Sets employee_ids - * @param string[] $employee_ids Fetch shifts for the specified employee. - * @return $this - */ - public function setEmployeeIds($employee_ids) - { - $this->employee_ids = $employee_ids; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Fetch a `Shift` instance by `Shift.status`. See [ShiftFilterStatus](#type-shiftfilterstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets start - * @return \SquareConnect\Model\TimeRange - */ - public function getStart() - { - return $this->start; - } - - /** - * Sets start - * @param \SquareConnect\Model\TimeRange $start Fetch `Shift`s that start in the time range - Inclusive. - * @return $this - */ - public function setStart($start) - { - $this->start = $start; - return $this; - } - /** - * Gets end - * @return \SquareConnect\Model\TimeRange - */ - public function getEnd() - { - return $this->end; - } - - /** - * Sets end - * @param \SquareConnect\Model\TimeRange $end Fetch the `Shift`s that end in the time range - Inclusive. - * @return $this - */ - public function setEnd($end) - { - $this->end = $end; - return $this; - } - /** - * Gets workday - * @return \SquareConnect\Model\ShiftWorkday - */ - public function getWorkday() - { - return $this->workday; - } - - /** - * Sets workday - * @param \SquareConnect\Model\ShiftWorkday $workday Fetch the `Shift`s based on workday date range. - * @return $this - */ - public function setWorkday($workday) - { - $this->workday = $workday; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftFilterStatus.php b/includes/classes/vendors/square/connect/lib/Model/ShiftFilterStatus.php deleted file mode 100644 index 1a34550ac1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftFilterStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftQuery.php b/includes/classes/vendors/square/connect/lib/Model/ShiftQuery.php deleted file mode 100644 index a7f99f2403..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftQuery.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\ShiftFilter', - 'sort' => '\SquareConnect\Model\ShiftSort' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'filter' => 'filter', - 'sort' => 'sort' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'filter' => 'setFilter', - 'sort' => 'setSort' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'filter' => 'getFilter', - 'sort' => 'getSort' - ); - - /** - * $filter Query filter options - * @var \SquareConnect\Model\ShiftFilter - */ - protected $filter; - /** - * $sort Sort order details - * @var \SquareConnect\Model\ShiftSort - */ - protected $sort; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["filter"])) { - $this->filter = $data["filter"]; - } else { - $this->filter = null; - } - if (isset($data["sort"])) { - $this->sort = $data["sort"]; - } else { - $this->sort = null; - } - } - } - /** - * Gets filter - * @return \SquareConnect\Model\ShiftFilter - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Sets filter - * @param \SquareConnect\Model\ShiftFilter $filter Query filter options - * @return $this - */ - public function setFilter($filter) - { - $this->filter = $filter; - return $this; - } - /** - * Gets sort - * @return \SquareConnect\Model\ShiftSort - */ - public function getSort() - { - return $this->sort; - } - - /** - * Sets sort - * @param \SquareConnect\Model\ShiftSort $sort Sort order details - * @return $this - */ - public function setSort($sort) - { - $this->sort = $sort; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftSort.php b/includes/classes/vendors/square/connect/lib/Model/ShiftSort.php deleted file mode 100644 index 1319136240..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftSort.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'order' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'field' => 'field', - 'order' => 'order' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'field' => 'setField', - 'order' => 'setOrder' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'field' => 'getField', - 'order' => 'getOrder' - ); - - /** - * $field The field to sort on. See [ShiftSortField](#type-shiftsortfield) for possible values - * @var string - */ - protected $field; - /** - * $order The order in which results are returned. Defaults to DESC. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["field"])) { - $this->field = $data["field"]; - } else { - $this->field = null; - } - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - } - } - /** - * Gets field - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Sets field - * @param string $field The field to sort on. See [ShiftSortField](#type-shiftsortfield) for possible values - * @return $this - */ - public function setField($field) - { - $this->field = $field; - return $this; - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order The order in which results are returned. Defaults to DESC. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftSortField.php b/includes/classes/vendors/square/connect/lib/Model/ShiftSortField.php deleted file mode 100644 index 1f0e91453c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftSortField.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftStatus.php b/includes/classes/vendors/square/connect/lib/Model/ShiftStatus.php deleted file mode 100644 index 45b45813a0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftWage.php b/includes/classes/vendors/square/connect/lib/Model/ShiftWage.php deleted file mode 100644 index 5d32330879..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftWage.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'hourly_rate' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'title' => 'title', - 'hourly_rate' => 'hourly_rate' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'title' => 'setTitle', - 'hourly_rate' => 'setHourlyRate' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'title' => 'getTitle', - 'hourly_rate' => 'getHourlyRate' - ); - - /** - * $title The name of the job performed during this shift. Square labor-reporting UIs may group shifts together by title. - * @var string - */ - protected $title; - /** - * $hourly_rate Can be a custom-set hourly wage or the calculated effective hourly wage based on annual wage and hours worked per week. - * @var \SquareConnect\Model\Money - */ - protected $hourly_rate; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["title"])) { - $this->title = $data["title"]; - } else { - $this->title = null; - } - if (isset($data["hourly_rate"])) { - $this->hourly_rate = $data["hourly_rate"]; - } else { - $this->hourly_rate = null; - } - } - } - /** - * Gets title - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Sets title - * @param string $title The name of the job performed during this shift. Square labor-reporting UIs may group shifts together by title. - * @return $this - */ - public function setTitle($title) - { - $this->title = $title; - return $this; - } - /** - * Gets hourly_rate - * @return \SquareConnect\Model\Money - */ - public function getHourlyRate() - { - return $this->hourly_rate; - } - - /** - * Sets hourly_rate - * @param \SquareConnect\Model\Money $hourly_rate Can be a custom-set hourly wage or the calculated effective hourly wage based on annual wage and hours worked per week. - * @return $this - */ - public function setHourlyRate($hourly_rate) - { - $this->hourly_rate = $hourly_rate; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftWorkday.php b/includes/classes/vendors/square/connect/lib/Model/ShiftWorkday.php deleted file mode 100644 index c80d0fc93f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftWorkday.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\DateRange', - 'match_shifts_by' => 'string', - 'default_timezone' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'date_range' => 'date_range', - 'match_shifts_by' => 'match_shifts_by', - 'default_timezone' => 'default_timezone' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'date_range' => 'setDateRange', - 'match_shifts_by' => 'setMatchShiftsBy', - 'default_timezone' => 'setDefaultTimezone' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'date_range' => 'getDateRange', - 'match_shifts_by' => 'getMatchShiftsBy', - 'default_timezone' => 'getDefaultTimezone' - ); - - /** - * $date_range Dates for fetching the shifts - * @var \SquareConnect\Model\DateRange - */ - protected $date_range; - /** - * $match_shifts_by The strategy on which the dates are applied. See [ShiftWorkdayMatcher](#type-shiftworkdaymatcher) for possible values - * @var string - */ - protected $match_shifts_by; - /** - * $default_timezone Location-specific timezones convert workdays to datetime filters. Every location included in the query must have a timezone, or this field must be provided as a fallback. Format: the IANA timezone database identifier for the relevant timezone. - * @var string - */ - protected $default_timezone; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["date_range"])) { - $this->date_range = $data["date_range"]; - } else { - $this->date_range = null; - } - if (isset($data["match_shifts_by"])) { - $this->match_shifts_by = $data["match_shifts_by"]; - } else { - $this->match_shifts_by = null; - } - if (isset($data["default_timezone"])) { - $this->default_timezone = $data["default_timezone"]; - } else { - $this->default_timezone = null; - } - } - } - /** - * Gets date_range - * @return \SquareConnect\Model\DateRange - */ - public function getDateRange() - { - return $this->date_range; - } - - /** - * Sets date_range - * @param \SquareConnect\Model\DateRange $date_range Dates for fetching the shifts - * @return $this - */ - public function setDateRange($date_range) - { - $this->date_range = $date_range; - return $this; - } - /** - * Gets match_shifts_by - * @return string - */ - public function getMatchShiftsBy() - { - return $this->match_shifts_by; - } - - /** - * Sets match_shifts_by - * @param string $match_shifts_by The strategy on which the dates are applied. See [ShiftWorkdayMatcher](#type-shiftworkdaymatcher) for possible values - * @return $this - */ - public function setMatchShiftsBy($match_shifts_by) - { - $this->match_shifts_by = $match_shifts_by; - return $this; - } - /** - * Gets default_timezone - * @return string - */ - public function getDefaultTimezone() - { - return $this->default_timezone; - } - - /** - * Sets default_timezone - * @param string $default_timezone Location-specific timezones convert workdays to datetime filters. Every location included in the query must have a timezone, or this field must be provided as a fallback. Format: the IANA timezone database identifier for the relevant timezone. - * @return $this - */ - public function setDefaultTimezone($default_timezone) - { - $this->default_timezone = $default_timezone; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/ShiftWorkdayMatcher.php b/includes/classes/vendors/square/connect/lib/Model/ShiftWorkdayMatcher.php deleted file mode 100644 index 3d82d4b51a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/ShiftWorkdayMatcher.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SortOrder.php b/includes/classes/vendors/square/connect/lib/Model/SortOrder.php deleted file mode 100644 index 17ad844903..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SortOrder.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SourceApplication.php b/includes/classes/vendors/square/connect/lib/Model/SourceApplication.php deleted file mode 100644 index 287199a1e3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SourceApplication.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'application_id' => 'string', - 'name' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'product' => 'product', - 'application_id' => 'application_id', - 'name' => 'name' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'product' => 'setProduct', - 'application_id' => 'setApplicationId', - 'name' => 'setName' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'product' => 'getProduct', - 'application_id' => 'getApplicationId', - 'name' => 'getName' - ); - - /** - * $product Read-only `Product` type for the application. See [Product](#type-product) for possible values - * @var string - */ - protected $product; - /** - * $application_id Read-only Square ID assigned to the application. Only used for `Product` type `EXTERNAL_API`. - * @var string - */ - protected $application_id; - /** - * $name Read-only display name assigned to the application (e.g. `\"Custom Application\"`, `\"Square POS 4.74 for Android\"`). - * @var string - */ - protected $name; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["product"])) { - $this->product = $data["product"]; - } else { - $this->product = null; - } - if (isset($data["application_id"])) { - $this->application_id = $data["application_id"]; - } else { - $this->application_id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - } - } - /** - * Gets product - * @return string - */ - public function getProduct() - { - return $this->product; - } - - /** - * Sets product - * @param string $product Read-only `Product` type for the application. See [Product](#type-product) for possible values - * @return $this - */ - public function setProduct($product) - { - $this->product = $product; - return $this; - } - /** - * Gets application_id - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Sets application_id - * @param string $application_id Read-only Square ID assigned to the application. Only used for `Product` type `EXTERNAL_API`. - * @return $this - */ - public function setApplicationId($application_id) - { - $this->application_id = $application_id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name Read-only display name assigned to the application (e.g. `\"Custom Application\"`, `\"Square POS 4.74 for Android\"`). - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/StandardUnitDescription.php b/includes/classes/vendors/square/connect/lib/Model/StandardUnitDescription.php deleted file mode 100644 index 3e4913ea64..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/StandardUnitDescription.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\MeasurementUnit', - 'name' => 'string', - 'abbreviation' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'unit' => 'unit', - 'name' => 'name', - 'abbreviation' => 'abbreviation' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'unit' => 'setUnit', - 'name' => 'setName', - 'abbreviation' => 'setAbbreviation' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'unit' => 'getUnit', - 'name' => 'getName', - 'abbreviation' => 'getAbbreviation' - ); - - /** - * $unit Identifies the measurement unit being described. - * @var \SquareConnect\Model\MeasurementUnit - */ - protected $unit; - /** - * $name UI display name of the measurement unit. For example, 'Pound'. - * @var string - */ - protected $name; - /** - * $abbreviation UI display abbreviation for the measurement unit. For example, 'lb'. - * @var string - */ - protected $abbreviation; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["unit"])) { - $this->unit = $data["unit"]; - } else { - $this->unit = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["abbreviation"])) { - $this->abbreviation = $data["abbreviation"]; - } else { - $this->abbreviation = null; - } - } - } - /** - * Gets unit - * @return \SquareConnect\Model\MeasurementUnit - */ - public function getUnit() - { - return $this->unit; - } - - /** - * Sets unit - * @param \SquareConnect\Model\MeasurementUnit $unit Identifies the measurement unit being described. - * @return $this - */ - public function setUnit($unit) - { - $this->unit = $unit; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name UI display name of the measurement unit. For example, 'Pound'. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets abbreviation - * @return string - */ - public function getAbbreviation() - { - return $this->abbreviation; - } - - /** - * Sets abbreviation - * @param string $abbreviation UI display abbreviation for the measurement unit. For example, 'lb'. - * @return $this - */ - public function setAbbreviation($abbreviation) - { - $this->abbreviation = $abbreviation; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/StandardUnitDescriptionGroup.php b/includes/classes/vendors/square/connect/lib/Model/StandardUnitDescriptionGroup.php deleted file mode 100644 index 0c5986de76..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/StandardUnitDescriptionGroup.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\StandardUnitDescription[]', - 'language_code' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'standard_unit_descriptions' => 'standard_unit_descriptions', - 'language_code' => 'language_code' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'standard_unit_descriptions' => 'setStandardUnitDescriptions', - 'language_code' => 'setLanguageCode' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'standard_unit_descriptions' => 'getStandardUnitDescriptions', - 'language_code' => 'getLanguageCode' - ); - - /** - * $standard_unit_descriptions List of standard (non-custom) measurement units in this description group. - * @var \SquareConnect\Model\StandardUnitDescription[] - */ - protected $standard_unit_descriptions; - /** - * $language_code IETF language tag. - * @var string - */ - protected $language_code; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["standard_unit_descriptions"])) { - $this->standard_unit_descriptions = $data["standard_unit_descriptions"]; - } else { - $this->standard_unit_descriptions = null; - } - if (isset($data["language_code"])) { - $this->language_code = $data["language_code"]; - } else { - $this->language_code = null; - } - } - } - /** - * Gets standard_unit_descriptions - * @return \SquareConnect\Model\StandardUnitDescription[] - */ - public function getStandardUnitDescriptions() - { - return $this->standard_unit_descriptions; - } - - /** - * Sets standard_unit_descriptions - * @param \SquareConnect\Model\StandardUnitDescription[] $standard_unit_descriptions List of standard (non-custom) measurement units in this description group. - * @return $this - */ - public function setStandardUnitDescriptions($standard_unit_descriptions) - { - $this->standard_unit_descriptions = $standard_unit_descriptions; - return $this; - } - /** - * Gets language_code - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Sets language_code - * @param string $language_code IETF language tag. - * @return $this - */ - public function setLanguageCode($language_code) - { - $this->language_code = $language_code; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SubmitEvidenceRequest.php b/includes/classes/vendors/square/connect/lib/Model/SubmitEvidenceRequest.php deleted file mode 100644 index 28be0a32cb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SubmitEvidenceRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/SubmitEvidenceResponse.php b/includes/classes/vendors/square/connect/lib/Model/SubmitEvidenceResponse.php deleted file mode 100644 index c1f32d9b3b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/SubmitEvidenceResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'dispute' => '\SquareConnect\Model\Dispute' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'dispute' => 'dispute' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'dispute' => 'setDispute' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'dispute' => 'getDispute' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $dispute The `Dispute` for which evidence was submitted. - * @var \SquareConnect\Model\Dispute - */ - protected $dispute; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["dispute"])) { - $this->dispute = $data["dispute"]; - } else { - $this->dispute = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets dispute - * @return \SquareConnect\Model\Dispute - */ - public function getDispute() - { - return $this->dispute; - } - - /** - * Sets dispute - * @param \SquareConnect\Model\Dispute $dispute The `Dispute` for which evidence was submitted. - * @return $this - */ - public function setDispute($dispute) - { - $this->dispute = $dispute; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TaxCalculationPhase.php b/includes/classes/vendors/square/connect/lib/Model/TaxCalculationPhase.php deleted file mode 100644 index 7a66b4af26..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TaxCalculationPhase.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TaxInclusionType.php b/includes/classes/vendors/square/connect/lib/Model/TaxInclusionType.php deleted file mode 100644 index 306e603290..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TaxInclusionType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Tender.php b/includes/classes/vendors/square/connect/lib/Model/Tender.php deleted file mode 100644 index 533566508b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Tender.php +++ /dev/null @@ -1,575 +0,0 @@ - 'string', - 'location_id' => 'string', - 'transaction_id' => 'string', - 'created_at' => 'string', - 'note' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'tip_money' => '\SquareConnect\Model\Money', - 'processing_fee_money' => '\SquareConnect\Model\Money', - 'customer_id' => 'string', - 'type' => 'string', - 'card_details' => '\SquareConnect\Model\TenderCardDetails', - 'cash_details' => '\SquareConnect\Model\TenderCashDetails', - 'additional_recipients' => '\SquareConnect\Model\AdditionalRecipient[]', - 'payment_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'location_id' => 'location_id', - 'transaction_id' => 'transaction_id', - 'created_at' => 'created_at', - 'note' => 'note', - 'amount_money' => 'amount_money', - 'tip_money' => 'tip_money', - 'processing_fee_money' => 'processing_fee_money', - 'customer_id' => 'customer_id', - 'type' => 'type', - 'card_details' => 'card_details', - 'cash_details' => 'cash_details', - 'additional_recipients' => 'additional_recipients', - 'payment_id' => 'payment_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'location_id' => 'setLocationId', - 'transaction_id' => 'setTransactionId', - 'created_at' => 'setCreatedAt', - 'note' => 'setNote', - 'amount_money' => 'setAmountMoney', - 'tip_money' => 'setTipMoney', - 'processing_fee_money' => 'setProcessingFeeMoney', - 'customer_id' => 'setCustomerId', - 'type' => 'setType', - 'card_details' => 'setCardDetails', - 'cash_details' => 'setCashDetails', - 'additional_recipients' => 'setAdditionalRecipients', - 'payment_id' => 'setPaymentId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'location_id' => 'getLocationId', - 'transaction_id' => 'getTransactionId', - 'created_at' => 'getCreatedAt', - 'note' => 'getNote', - 'amount_money' => 'getAmountMoney', - 'tip_money' => 'getTipMoney', - 'processing_fee_money' => 'getProcessingFeeMoney', - 'customer_id' => 'getCustomerId', - 'type' => 'getType', - 'card_details' => 'getCardDetails', - 'cash_details' => 'getCashDetails', - 'additional_recipients' => 'getAdditionalRecipients', - 'payment_id' => 'getPaymentId' - ); - - /** - * $id The tender's unique ID. - * @var string - */ - protected $id; - /** - * $location_id The ID of the transaction's associated location. - * @var string - */ - protected $location_id; - /** - * $transaction_id The ID of the tender's associated transaction. - * @var string - */ - protected $transaction_id; - /** - * $created_at The time when the tender was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $note An optional note associated with the tender at the time of payment. - * @var string - */ - protected $note; - /** - * $amount_money The total amount of the tender, including `tip_money`. If the tender has a `payment_id`, the `total_money` of the corresponding `Payment` will be equal to the `amount_money` of the tender. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $tip_money The tip's amount of the tender. - * @var \SquareConnect\Model\Money - */ - protected $tip_money; - /** - * $processing_fee_money The amount of any Square processing fees applied to the tender. This field is not immediately populated when a new transaction is created. It is usually available after about ten seconds. - * @var \SquareConnect\Model\Money - */ - protected $processing_fee_money; - /** - * $customer_id If the tender is associated with a customer or represents a customer's card on file, this is the ID of the associated customer. - * @var string - */ - protected $customer_id; - /** - * $type The type of tender, such as `CARD` or `CASH`. See [TenderType](#type-tendertype) for possible values - * @var string - */ - protected $type; - /** - * $card_details The details of the card tender. This value is present only if the value of `type` is `CARD`. - * @var \SquareConnect\Model\TenderCardDetails - */ - protected $card_details; - /** - * $cash_details The details of the cash tender. This value is present only if the value of `type` is `CASH`. - * @var \SquareConnect\Model\TenderCashDetails - */ - protected $cash_details; - /** - * $additional_recipients Additional recipients (other than the merchant) receiving a portion of this tender. For example, fees assessed on the purchase by a third party integration. - * @var \SquareConnect\Model\AdditionalRecipient[] - */ - protected $additional_recipients; - /** - * $payment_id The ID of the `Payment` that corresponds to this tender. This value is only present for payments created with the v2 Payments API. - * @var string - */ - protected $payment_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["transaction_id"])) { - $this->transaction_id = $data["transaction_id"]; - } else { - $this->transaction_id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["tip_money"])) { - $this->tip_money = $data["tip_money"]; - } else { - $this->tip_money = null; - } - if (isset($data["processing_fee_money"])) { - $this->processing_fee_money = $data["processing_fee_money"]; - } else { - $this->processing_fee_money = null; - } - if (isset($data["customer_id"])) { - $this->customer_id = $data["customer_id"]; - } else { - $this->customer_id = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["card_details"])) { - $this->card_details = $data["card_details"]; - } else { - $this->card_details = null; - } - if (isset($data["cash_details"])) { - $this->cash_details = $data["cash_details"]; - } else { - $this->cash_details = null; - } - if (isset($data["additional_recipients"])) { - $this->additional_recipients = $data["additional_recipients"]; - } else { - $this->additional_recipients = null; - } - if (isset($data["payment_id"])) { - $this->payment_id = $data["payment_id"]; - } else { - $this->payment_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The tender's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the transaction's associated location. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets transaction_id - * @return string - */ - public function getTransactionId() - { - return $this->transaction_id; - } - - /** - * Sets transaction_id - * @param string $transaction_id The ID of the tender's associated transaction. - * @return $this - */ - public function setTransactionId($transaction_id) - { - $this->transaction_id = $transaction_id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the tender was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note An optional note associated with the tender at the time of payment. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The total amount of the tender, including `tip_money`. If the tender has a `payment_id`, the `total_money` of the corresponding `Payment` will be equal to the `amount_money` of the tender. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets tip_money - * @return \SquareConnect\Model\Money - */ - public function getTipMoney() - { - return $this->tip_money; - } - - /** - * Sets tip_money - * @param \SquareConnect\Model\Money $tip_money The tip's amount of the tender. - * @return $this - */ - public function setTipMoney($tip_money) - { - $this->tip_money = $tip_money; - return $this; - } - /** - * Gets processing_fee_money - * @return \SquareConnect\Model\Money - */ - public function getProcessingFeeMoney() - { - return $this->processing_fee_money; - } - - /** - * Sets processing_fee_money - * @param \SquareConnect\Model\Money $processing_fee_money The amount of any Square processing fees applied to the tender. This field is not immediately populated when a new transaction is created. It is usually available after about ten seconds. - * @return $this - */ - public function setProcessingFeeMoney($processing_fee_money) - { - $this->processing_fee_money = $processing_fee_money; - return $this; - } - /** - * Gets customer_id - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Sets customer_id - * @param string $customer_id If the tender is associated with a customer or represents a customer's card on file, this is the ID of the associated customer. - * @return $this - */ - public function setCustomerId($customer_id) - { - $this->customer_id = $customer_id; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of tender, such as `CARD` or `CASH`. See [TenderType](#type-tendertype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets card_details - * @return \SquareConnect\Model\TenderCardDetails - */ - public function getCardDetails() - { - return $this->card_details; - } - - /** - * Sets card_details - * @param \SquareConnect\Model\TenderCardDetails $card_details The details of the card tender. This value is present only if the value of `type` is `CARD`. - * @return $this - */ - public function setCardDetails($card_details) - { - $this->card_details = $card_details; - return $this; - } - /** - * Gets cash_details - * @return \SquareConnect\Model\TenderCashDetails - */ - public function getCashDetails() - { - return $this->cash_details; - } - - /** - * Sets cash_details - * @param \SquareConnect\Model\TenderCashDetails $cash_details The details of the cash tender. This value is present only if the value of `type` is `CASH`. - * @return $this - */ - public function setCashDetails($cash_details) - { - $this->cash_details = $cash_details; - return $this; - } - /** - * Gets additional_recipients - * @return \SquareConnect\Model\AdditionalRecipient[] - */ - public function getAdditionalRecipients() - { - return $this->additional_recipients; - } - - /** - * Sets additional_recipients - * @param \SquareConnect\Model\AdditionalRecipient[] $additional_recipients Additional recipients (other than the merchant) receiving a portion of this tender. For example, fees assessed on the purchase by a third party integration. - * @return $this - */ - public function setAdditionalRecipients($additional_recipients) - { - $this->additional_recipients = $additional_recipients; - return $this; - } - /** - * Gets payment_id - * @return string - */ - public function getPaymentId() - { - return $this->payment_id; - } - - /** - * Sets payment_id - * @param string $payment_id The ID of the `Payment` that corresponds to this tender. This value is only present for payments created with the v2 Payments API. - * @return $this - */ - public function setPaymentId($payment_id) - { - $this->payment_id = $payment_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TenderCardDetails.php b/includes/classes/vendors/square/connect/lib/Model/TenderCardDetails.php deleted file mode 100644 index f356dd7dc5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TenderCardDetails.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'card' => '\SquareConnect\Model\Card', - 'entry_method' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'status' => 'status', - 'card' => 'card', - 'entry_method' => 'entry_method' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'status' => 'setStatus', - 'card' => 'setCard', - 'entry_method' => 'setEntryMethod' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'status' => 'getStatus', - 'card' => 'getCard', - 'entry_method' => 'getEntryMethod' - ); - - /** - * $status The credit card payment's current state (such as `AUTHORIZED` or `CAPTURED`). See `TenderCardDetailsStatus` for possible values. See [TenderCardDetailsStatus](#type-tendercarddetailsstatus) for possible values - * @var string - */ - protected $status; - /** - * $card The credit card's non-confidential details. - * @var \SquareConnect\Model\Card - */ - protected $card; - /** - * $entry_method The method used to enter the card's details for the transaction. See [TenderCardDetailsEntryMethod](#type-tendercarddetailsentrymethod) for possible values - * @var string - */ - protected $entry_method; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["card"])) { - $this->card = $data["card"]; - } else { - $this->card = null; - } - if (isset($data["entry_method"])) { - $this->entry_method = $data["entry_method"]; - } else { - $this->entry_method = null; - } - } - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The credit card payment's current state (such as `AUTHORIZED` or `CAPTURED`). See `TenderCardDetailsStatus` for possible values. See [TenderCardDetailsStatus](#type-tendercarddetailsstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets card - * @return \SquareConnect\Model\Card - */ - public function getCard() - { - return $this->card; - } - - /** - * Sets card - * @param \SquareConnect\Model\Card $card The credit card's non-confidential details. - * @return $this - */ - public function setCard($card) - { - $this->card = $card; - return $this; - } - /** - * Gets entry_method - * @return string - */ - public function getEntryMethod() - { - return $this->entry_method; - } - - /** - * Sets entry_method - * @param string $entry_method The method used to enter the card's details for the transaction. See [TenderCardDetailsEntryMethod](#type-tendercarddetailsentrymethod) for possible values - * @return $this - */ - public function setEntryMethod($entry_method) - { - $this->entry_method = $entry_method; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TenderCardDetailsEntryMethod.php b/includes/classes/vendors/square/connect/lib/Model/TenderCardDetailsEntryMethod.php deleted file mode 100644 index 2b9c7f3fc7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TenderCardDetailsEntryMethod.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TenderCardDetailsStatus.php b/includes/classes/vendors/square/connect/lib/Model/TenderCardDetailsStatus.php deleted file mode 100644 index 5460ae46ec..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TenderCardDetailsStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TenderCashDetails.php b/includes/classes/vendors/square/connect/lib/Model/TenderCashDetails.php deleted file mode 100644 index bddb9421bd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TenderCashDetails.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Money', - 'change_back_money' => '\SquareConnect\Model\Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'buyer_tendered_money' => 'buyer_tendered_money', - 'change_back_money' => 'change_back_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'buyer_tendered_money' => 'setBuyerTenderedMoney', - 'change_back_money' => 'setChangeBackMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'buyer_tendered_money' => 'getBuyerTenderedMoney', - 'change_back_money' => 'getChangeBackMoney' - ); - - /** - * $buyer_tendered_money The total amount of cash provided by the buyer, before change is given. - * @var \SquareConnect\Model\Money - */ - protected $buyer_tendered_money; - /** - * $change_back_money The amount of change returned to the buyer. - * @var \SquareConnect\Model\Money - */ - protected $change_back_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["buyer_tendered_money"])) { - $this->buyer_tendered_money = $data["buyer_tendered_money"]; - } else { - $this->buyer_tendered_money = null; - } - if (isset($data["change_back_money"])) { - $this->change_back_money = $data["change_back_money"]; - } else { - $this->change_back_money = null; - } - } - } - /** - * Gets buyer_tendered_money - * @return \SquareConnect\Model\Money - */ - public function getBuyerTenderedMoney() - { - return $this->buyer_tendered_money; - } - - /** - * Sets buyer_tendered_money - * @param \SquareConnect\Model\Money $buyer_tendered_money The total amount of cash provided by the buyer, before change is given. - * @return $this - */ - public function setBuyerTenderedMoney($buyer_tendered_money) - { - $this->buyer_tendered_money = $buyer_tendered_money; - return $this; - } - /** - * Gets change_back_money - * @return \SquareConnect\Model\Money - */ - public function getChangeBackMoney() - { - return $this->change_back_money; - } - - /** - * Sets change_back_money - * @param \SquareConnect\Model\Money $change_back_money The amount of change returned to the buyer. - * @return $this - */ - public function setChangeBackMoney($change_back_money) - { - $this->change_back_money = $change_back_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TenderType.php b/includes/classes/vendors/square/connect/lib/Model/TenderType.php deleted file mode 100644 index a4a00ef5d0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TenderType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckout.php b/includes/classes/vendors/square/connect/lib/Model/TerminalCheckout.php deleted file mode 100644 index 3542bdae05..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckout.php +++ /dev/null @@ -1,477 +0,0 @@ - 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'reference_id' => 'string', - 'note' => 'string', - 'device_options' => '\SquareConnect\Model\DeviceCheckoutOptions', - 'deadline_duration' => 'string', - 'status' => 'string', - 'cancel_reason' => 'string', - 'payment_ids' => 'string[]', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'amount_money' => 'amount_money', - 'reference_id' => 'reference_id', - 'note' => 'note', - 'device_options' => 'device_options', - 'deadline_duration' => 'deadline_duration', - 'status' => 'status', - 'cancel_reason' => 'cancel_reason', - 'payment_ids' => 'payment_ids', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'amount_money' => 'setAmountMoney', - 'reference_id' => 'setReferenceId', - 'note' => 'setNote', - 'device_options' => 'setDeviceOptions', - 'deadline_duration' => 'setDeadlineDuration', - 'status' => 'setStatus', - 'cancel_reason' => 'setCancelReason', - 'payment_ids' => 'setPaymentIds', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'amount_money' => 'getAmountMoney', - 'reference_id' => 'getReferenceId', - 'note' => 'getNote', - 'device_options' => 'getDeviceOptions', - 'deadline_duration' => 'getDeadlineDuration', - 'status' => 'getStatus', - 'cancel_reason' => 'getCancelReason', - 'payment_ids' => 'getPaymentIds', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id A unique ID for this `TerminalCheckout` - * @var string - */ - protected $id; - /** - * $amount_money The amount of money (including tax amount) that the Square Terminal device should try to collect. - * @var \SquareConnect\Model\Money - */ - protected $amount_money; - /** - * $reference_id An optional user-defined reference ID which can be used to associate this TerminalCheckout to another entity in an external system. For example, an order ID generated by a third-party shopping cart. Will also be associated with any payments used to complete the checkout. - * @var string - */ - protected $reference_id; - /** - * $note An optional note to associate with the checkout, as well any payments used to complete the checkout. - * @var string - */ - protected $note; - /** - * $device_options Options to control the display and behavior of the Square Terminal device. - * @var \SquareConnect\Model\DeviceCheckoutOptions - */ - protected $device_options; - /** - * $deadline_duration The duration as an RFC 3339 duration, after which the checkout will be automatically canceled. TerminalCheckouts that are PENDING will be automatically CANCELED and have a cancellation reason of “TIMED\\_OUT”. Default: 5 minutes from creation Maximum: 5 minutes - * @var string - */ - protected $deadline_duration; - /** - * $status The status of the `TerminalCheckout`. Options: PENDING, IN\\_PROGRESS, CANCELED, COMPLETED - * @var string - */ - protected $status; - /** - * $cancel_reason Present if the status is CANCELED. See [TerminalCheckoutCancelReason](#type-terminalcheckoutcancelreason) for possible values - * @var string - */ - protected $cancel_reason; - /** - * $payment_ids A list of payments created by this `TerminalCheckout`. - * @var string[] - */ - protected $payment_ids; - /** - * $created_at The time when the `TerminalCheckout` was created as an RFC 3339 timestamp. - * @var string - */ - protected $created_at; - /** - * $updated_at The time when the `TerminalCheckout` was last updated as an RFC 3339 timestamp. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["device_options"])) { - $this->device_options = $data["device_options"]; - } else { - $this->device_options = null; - } - if (isset($data["deadline_duration"])) { - $this->deadline_duration = $data["deadline_duration"]; - } else { - $this->deadline_duration = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["cancel_reason"])) { - $this->cancel_reason = $data["cancel_reason"]; - } else { - $this->cancel_reason = null; - } - if (isset($data["payment_ids"])) { - $this->payment_ids = $data["payment_ids"]; - } else { - $this->payment_ids = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id A unique ID for this `TerminalCheckout` - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\Money $amount_money The amount of money (including tax amount) that the Square Terminal device should try to collect. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional user-defined reference ID which can be used to associate this TerminalCheckout to another entity in an external system. For example, an order ID generated by a third-party shopping cart. Will also be associated with any payments used to complete the checkout. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note An optional note to associate with the checkout, as well any payments used to complete the checkout. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets device_options - * @return \SquareConnect\Model\DeviceCheckoutOptions - */ - public function getDeviceOptions() - { - return $this->device_options; - } - - /** - * Sets device_options - * @param \SquareConnect\Model\DeviceCheckoutOptions $device_options Options to control the display and behavior of the Square Terminal device. - * @return $this - */ - public function setDeviceOptions($device_options) - { - $this->device_options = $device_options; - return $this; - } - /** - * Gets deadline_duration - * @return string - */ - public function getDeadlineDuration() - { - return $this->deadline_duration; - } - - /** - * Sets deadline_duration - * @param string $deadline_duration The duration as an RFC 3339 duration, after which the checkout will be automatically canceled. TerminalCheckouts that are PENDING will be automatically CANCELED and have a cancellation reason of “TIMED\\_OUT”. Default: 5 minutes from creation Maximum: 5 minutes - * @return $this - */ - public function setDeadlineDuration($deadline_duration) - { - $this->deadline_duration = $deadline_duration; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The status of the `TerminalCheckout`. Options: PENDING, IN\\_PROGRESS, CANCELED, COMPLETED - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets cancel_reason - * @return string - */ - public function getCancelReason() - { - return $this->cancel_reason; - } - - /** - * Sets cancel_reason - * @param string $cancel_reason Present if the status is CANCELED. See [TerminalCheckoutCancelReason](#type-terminalcheckoutcancelreason) for possible values - * @return $this - */ - public function setCancelReason($cancel_reason) - { - $this->cancel_reason = $cancel_reason; - return $this; - } - /** - * Gets payment_ids - * @return string[] - */ - public function getPaymentIds() - { - return $this->payment_ids; - } - - /** - * Sets payment_ids - * @param string[] $payment_ids A list of payments created by this `TerminalCheckout`. - * @return $this - */ - public function setPaymentIds($payment_ids) - { - $this->payment_ids = $payment_ids; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the `TerminalCheckout` was created as an RFC 3339 timestamp. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The time when the `TerminalCheckout` was last updated as an RFC 3339 timestamp. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutCancelReason.php b/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutCancelReason.php deleted file mode 100644 index 9fecd7b7e8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutCancelReason.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQuery.php b/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQuery.php deleted file mode 100644 index b69f4e74c9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQuery.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\TerminalCheckoutQueryFilter', - 'sort' => '\SquareConnect\Model\TerminalCheckoutQuerySort' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'filter' => 'filter', - 'sort' => 'sort' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'filter' => 'setFilter', - 'sort' => 'setSort' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'filter' => 'getFilter', - 'sort' => 'getSort' - ); - - /** - * $filter Options for filtering returned `TerminalCheckout`s - * @var \SquareConnect\Model\TerminalCheckoutQueryFilter - */ - protected $filter; - /** - * $sort Option for sorting returned `TerminalCheckout`s - * @var \SquareConnect\Model\TerminalCheckoutQuerySort - */ - protected $sort; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["filter"])) { - $this->filter = $data["filter"]; - } else { - $this->filter = null; - } - if (isset($data["sort"])) { - $this->sort = $data["sort"]; - } else { - $this->sort = null; - } - } - } - /** - * Gets filter - * @return \SquareConnect\Model\TerminalCheckoutQueryFilter - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Sets filter - * @param \SquareConnect\Model\TerminalCheckoutQueryFilter $filter Options for filtering returned `TerminalCheckout`s - * @return $this - */ - public function setFilter($filter) - { - $this->filter = $filter; - return $this; - } - /** - * Gets sort - * @return \SquareConnect\Model\TerminalCheckoutQuerySort - */ - public function getSort() - { - return $this->sort; - } - - /** - * Sets sort - * @param \SquareConnect\Model\TerminalCheckoutQuerySort $sort Option for sorting returned `TerminalCheckout`s - * @return $this - */ - public function setSort($sort) - { - $this->sort = $sort; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQueryFilter.php b/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQueryFilter.php deleted file mode 100644 index 27172c35de..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQueryFilter.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'created_at' => '\SquareConnect\Model\TimeRange', - 'status' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'device_id' => 'device_id', - 'created_at' => 'created_at', - 'status' => 'status' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'device_id' => 'setDeviceId', - 'created_at' => 'setCreatedAt', - 'status' => 'setStatus' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'device_id' => 'getDeviceId', - 'created_at' => 'getCreatedAt', - 'status' => 'getStatus' - ); - - /** - * $device_id `TerminalCheckout`s associated with a specific device. If no device is specified then all `TerminalCheckout`s for the merchant will be displayed. - * @var string - */ - protected $device_id; - /** - * $created_at Time range for the beginning of the reporting period. Inclusive. Default: The current time minus one day. - * @var \SquareConnect\Model\TimeRange - */ - protected $created_at; - /** - * $status Filtered results with the desired status of the `TerminalCheckout` Options: PENDING, IN\\_PROGRESS, CANCELED, COMPLETED - * @var string - */ - protected $status; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["device_id"])) { - $this->device_id = $data["device_id"]; - } else { - $this->device_id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - } - } - /** - * Gets device_id - * @return string - */ - public function getDeviceId() - { - return $this->device_id; - } - - /** - * Sets device_id - * @param string $device_id `TerminalCheckout`s associated with a specific device. If no device is specified then all `TerminalCheckout`s for the merchant will be displayed. - * @return $this - */ - public function setDeviceId($device_id) - { - $this->device_id = $device_id; - return $this; - } - /** - * Gets created_at - * @return \SquareConnect\Model\TimeRange - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param \SquareConnect\Model\TimeRange $created_at Time range for the beginning of the reporting period. Inclusive. Default: The current time minus one day. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Filtered results with the desired status of the `TerminalCheckout` Options: PENDING, IN\\_PROGRESS, CANCELED, COMPLETED - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQuerySort.php b/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQuerySort.php deleted file mode 100644 index 6c7271c3f7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TerminalCheckoutQuerySort.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'sort_order' => 'sort_order' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'sort_order' => 'setSortOrder' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'sort_order' => 'getSortOrder' - ); - - /** - * $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). - * @var string - */ - protected $sort_order; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["sort_order"])) { - $this->sort_order = $data["sort_order"]; - } else { - $this->sort_order = null; - } - } - } - /** - * Gets sort_order - * @return string - */ - public function getSortOrder() - { - return $this->sort_order; - } - - /** - * Sets sort_order - * @param string $sort_order The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). - * @return $this - */ - public function setSortOrder($sort_order) - { - $this->sort_order = $sort_order; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TimeRange.php b/includes/classes/vendors/square/connect/lib/Model/TimeRange.php deleted file mode 100644 index 4c04d9a2f9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TimeRange.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'end_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'start_at' => 'start_at', - 'end_at' => 'end_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'start_at' => 'setStartAt', - 'end_at' => 'setEndAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'start_at' => 'getStartAt', - 'end_at' => 'getEndAt' - ); - - /** - * $start_at A datetime value in RFC-3339 format indicating when the time range starts. - * @var string - */ - protected $start_at; - /** - * $end_at A datetime value in RFC-3339 format indicating when the time range ends. - * @var string - */ - protected $end_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["start_at"])) { - $this->start_at = $data["start_at"]; - } else { - $this->start_at = null; - } - if (isset($data["end_at"])) { - $this->end_at = $data["end_at"]; - } else { - $this->end_at = null; - } - } - } - /** - * Gets start_at - * @return string - */ - public function getStartAt() - { - return $this->start_at; - } - - /** - * Sets start_at - * @param string $start_at A datetime value in RFC-3339 format indicating when the time range starts. - * @return $this - */ - public function setStartAt($start_at) - { - $this->start_at = $start_at; - return $this; - } - /** - * Gets end_at - * @return string - */ - public function getEndAt() - { - return $this->end_at; - } - - /** - * Sets end_at - * @param string $end_at A datetime value in RFC-3339 format indicating when the time range ends. - * @return $this - */ - public function setEndAt($end_at) - { - $this->end_at = $end_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TipSettings.php b/includes/classes/vendors/square/connect/lib/Model/TipSettings.php deleted file mode 100644 index 2b5e3fa021..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TipSettings.php +++ /dev/null @@ -1,213 +0,0 @@ - 'bool', - 'separate_tip_screen' => 'bool', - 'custom_tip_field' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'allow_tipping' => 'allow_tipping', - 'separate_tip_screen' => 'separate_tip_screen', - 'custom_tip_field' => 'custom_tip_field' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'allow_tipping' => 'setAllowTipping', - 'separate_tip_screen' => 'setSeparateTipScreen', - 'custom_tip_field' => 'setCustomTipField' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'allow_tipping' => 'getAllowTipping', - 'separate_tip_screen' => 'getSeparateTipScreen', - 'custom_tip_field' => 'getCustomTipField' - ); - - /** - * $allow_tipping Indicates whether tipping is enabled for this checkout. Defaults to false. - * @var bool - */ - protected $allow_tipping; - /** - * $separate_tip_screen Indicates whether tip options should be presented on their own screen before presenting the signature screen during card payment. Defaults to false. - * @var bool - */ - protected $separate_tip_screen; - /** - * $custom_tip_field Indicates whether custom tip amounts are allowed during the checkout flow. Defaults to false. - * @var bool - */ - protected $custom_tip_field; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["allow_tipping"])) { - $this->allow_tipping = $data["allow_tipping"]; - } else { - $this->allow_tipping = null; - } - if (isset($data["separate_tip_screen"])) { - $this->separate_tip_screen = $data["separate_tip_screen"]; - } else { - $this->separate_tip_screen = null; - } - if (isset($data["custom_tip_field"])) { - $this->custom_tip_field = $data["custom_tip_field"]; - } else { - $this->custom_tip_field = null; - } - } - } - /** - * Gets allow_tipping - * @return bool - */ - public function getAllowTipping() - { - return $this->allow_tipping; - } - - /** - * Sets allow_tipping - * @param bool $allow_tipping Indicates whether tipping is enabled for this checkout. Defaults to false. - * @return $this - */ - public function setAllowTipping($allow_tipping) - { - $this->allow_tipping = $allow_tipping; - return $this; - } - /** - * Gets separate_tip_screen - * @return bool - */ - public function getSeparateTipScreen() - { - return $this->separate_tip_screen; - } - - /** - * Sets separate_tip_screen - * @param bool $separate_tip_screen Indicates whether tip options should be presented on their own screen before presenting the signature screen during card payment. Defaults to false. - * @return $this - */ - public function setSeparateTipScreen($separate_tip_screen) - { - $this->separate_tip_screen = $separate_tip_screen; - return $this; - } - /** - * Gets custom_tip_field - * @return bool - */ - public function getCustomTipField() - { - return $this->custom_tip_field; - } - - /** - * Sets custom_tip_field - * @param bool $custom_tip_field Indicates whether custom tip amounts are allowed during the checkout flow. Defaults to false. - * @return $this - */ - public function setCustomTipField($custom_tip_field) - { - $this->custom_tip_field = $custom_tip_field; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Transaction.php b/includes/classes/vendors/square/connect/lib/Model/Transaction.php deleted file mode 100644 index 2618ddc77f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Transaction.php +++ /dev/null @@ -1,444 +0,0 @@ - 'string', - 'location_id' => 'string', - 'created_at' => 'string', - 'tenders' => '\SquareConnect\Model\Tender[]', - 'refunds' => '\SquareConnect\Model\Refund[]', - 'reference_id' => 'string', - 'product' => 'string', - 'client_id' => 'string', - 'shipping_address' => '\SquareConnect\Model\Address', - 'order_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'location_id' => 'location_id', - 'created_at' => 'created_at', - 'tenders' => 'tenders', - 'refunds' => 'refunds', - 'reference_id' => 'reference_id', - 'product' => 'product', - 'client_id' => 'client_id', - 'shipping_address' => 'shipping_address', - 'order_id' => 'order_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'location_id' => 'setLocationId', - 'created_at' => 'setCreatedAt', - 'tenders' => 'setTenders', - 'refunds' => 'setRefunds', - 'reference_id' => 'setReferenceId', - 'product' => 'setProduct', - 'client_id' => 'setClientId', - 'shipping_address' => 'setShippingAddress', - 'order_id' => 'setOrderId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'location_id' => 'getLocationId', - 'created_at' => 'getCreatedAt', - 'tenders' => 'getTenders', - 'refunds' => 'getRefunds', - 'reference_id' => 'getReferenceId', - 'product' => 'getProduct', - 'client_id' => 'getClientId', - 'shipping_address' => 'getShippingAddress', - 'order_id' => 'getOrderId' - ); - - /** - * $id The transaction's unique ID, issued by Square payments servers. - * @var string - */ - protected $id; - /** - * $location_id The ID of the transaction's associated location. - * @var string - */ - protected $location_id; - /** - * $created_at The time when the transaction was created, in RFC 3339 format. - * @var string - */ - protected $created_at; - /** - * $tenders The tenders used to pay in the transaction. - * @var \SquareConnect\Model\Tender[] - */ - protected $tenders; - /** - * $refunds Refunds that have been applied to any tender in the transaction. - * @var \SquareConnect\Model\Refund[] - */ - protected $refunds; - /** - * $reference_id If the transaction was created with the `Charge` endpoint, this value is the same as the value provided for the `reference_id` parameter in the request to that endpoint. Otherwise, it is not set. - * @var string - */ - protected $reference_id; - /** - * $product The Square product that processed the transaction. See [TransactionProduct](#type-transactionproduct) for possible values - * @var string - */ - protected $product; - /** - * $client_id If the transaction was created in the Square Point of Sale app, this value is the ID generated for the transaction by Square Point of Sale. This ID has no relationship to the transaction's canonical `id`, which is generated by Square's backend servers. This value is generated for bookkeeping purposes, in case the transaction cannot immediately be completed (for example, if the transaction is processed in offline mode). It is not currently possible with the Connect API to perform a transaction lookup by this value. - * @var string - */ - protected $client_id; - /** - * $shipping_address The shipping address provided in the request, if any. - * @var \SquareConnect\Model\Address - */ - protected $shipping_address; - /** - * $order_id The order_id is an identifier for the order associated with this transaction, if any. - * @var string - */ - protected $order_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["location_id"])) { - $this->location_id = $data["location_id"]; - } else { - $this->location_id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["tenders"])) { - $this->tenders = $data["tenders"]; - } else { - $this->tenders = null; - } - if (isset($data["refunds"])) { - $this->refunds = $data["refunds"]; - } else { - $this->refunds = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["product"])) { - $this->product = $data["product"]; - } else { - $this->product = null; - } - if (isset($data["client_id"])) { - $this->client_id = $data["client_id"]; - } else { - $this->client_id = null; - } - if (isset($data["shipping_address"])) { - $this->shipping_address = $data["shipping_address"]; - } else { - $this->shipping_address = null; - } - if (isset($data["order_id"])) { - $this->order_id = $data["order_id"]; - } else { - $this->order_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The transaction's unique ID, issued by Square payments servers. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets location_id - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Sets location_id - * @param string $location_id The ID of the transaction's associated location. - * @return $this - */ - public function setLocationId($location_id) - { - $this->location_id = $location_id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the transaction was created, in RFC 3339 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets tenders - * @return \SquareConnect\Model\Tender[] - */ - public function getTenders() - { - return $this->tenders; - } - - /** - * Sets tenders - * @param \SquareConnect\Model\Tender[] $tenders The tenders used to pay in the transaction. - * @return $this - */ - public function setTenders($tenders) - { - $this->tenders = $tenders; - return $this; - } - /** - * Gets refunds - * @return \SquareConnect\Model\Refund[] - */ - public function getRefunds() - { - return $this->refunds; - } - - /** - * Sets refunds - * @param \SquareConnect\Model\Refund[] $refunds Refunds that have been applied to any tender in the transaction. - * @return $this - */ - public function setRefunds($refunds) - { - $this->refunds = $refunds; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id If the transaction was created with the `Charge` endpoint, this value is the same as the value provided for the `reference_id` parameter in the request to that endpoint. Otherwise, it is not set. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets product - * @return string - */ - public function getProduct() - { - return $this->product; - } - - /** - * Sets product - * @param string $product The Square product that processed the transaction. See [TransactionProduct](#type-transactionproduct) for possible values - * @return $this - */ - public function setProduct($product) - { - $this->product = $product; - return $this; - } - /** - * Gets client_id - * @return string - */ - public function getClientId() - { - return $this->client_id; - } - - /** - * Sets client_id - * @param string $client_id If the transaction was created in the Square Point of Sale app, this value is the ID generated for the transaction by Square Point of Sale. This ID has no relationship to the transaction's canonical `id`, which is generated by Square's backend servers. This value is generated for bookkeeping purposes, in case the transaction cannot immediately be completed (for example, if the transaction is processed in offline mode). It is not currently possible with the Connect API to perform a transaction lookup by this value. - * @return $this - */ - public function setClientId($client_id) - { - $this->client_id = $client_id; - return $this; - } - /** - * Gets shipping_address - * @return \SquareConnect\Model\Address - */ - public function getShippingAddress() - { - return $this->shipping_address; - } - - /** - * Sets shipping_address - * @param \SquareConnect\Model\Address $shipping_address The shipping address provided in the request, if any. - * @return $this - */ - public function setShippingAddress($shipping_address) - { - $this->shipping_address = $shipping_address; - return $this; - } - /** - * Gets order_id - * @return string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Sets order_id - * @param string $order_id The order_id is an identifier for the order associated with this transaction, if any. - * @return $this - */ - public function setOrderId($order_id) - { - $this->order_id = $order_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TransactionProduct.php b/includes/classes/vendors/square/connect/lib/Model/TransactionProduct.php deleted file mode 100644 index 6aa07dde77..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TransactionProduct.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/TransactionType.php b/includes/classes/vendors/square/connect/lib/Model/TransactionType.php deleted file mode 100644 index a5a4b20b62..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/TransactionType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateBreakTypeRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateBreakTypeRequest.php deleted file mode 100644 index 754e0380f9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateBreakTypeRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\BreakType' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'break_type' => 'break_type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'break_type' => 'setBreakType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'break_type' => 'getBreakType' - ); - - /** - * $break_type The updated `BreakType`. - * @var \SquareConnect\Model\BreakType - */ - protected $break_type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["break_type"])) { - $this->break_type = $data["break_type"]; - } else { - $this->break_type = null; - } - } - } - /** - * Gets break_type - * @return \SquareConnect\Model\BreakType - */ - public function getBreakType() - { - return $this->break_type; - } - - /** - * Sets break_type - * @param \SquareConnect\Model\BreakType $break_type The updated `BreakType`. - * @return $this - */ - public function setBreakType($break_type) - { - $this->break_type = $break_type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateBreakTypeResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateBreakTypeResponse.php deleted file mode 100644 index 195c7aab57..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateBreakTypeResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\BreakType', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'break_type' => 'break_type', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'break_type' => 'setBreakType', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'break_type' => 'getBreakType', - 'errors' => 'getErrors' - ); - - /** - * $break_type The response object. - * @var \SquareConnect\Model\BreakType - */ - protected $break_type; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["break_type"])) { - $this->break_type = $data["break_type"]; - } else { - $this->break_type = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets break_type - * @return \SquareConnect\Model\BreakType - */ - public function getBreakType() - { - return $this->break_type; - } - - /** - * Sets break_type - * @param \SquareConnect\Model\BreakType $break_type The response object. - * @return $this - */ - public function setBreakType($break_type) - { - $this->break_type = $break_type; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerGroupRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerGroupRequest.php deleted file mode 100644 index dd144c52c5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerGroupRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\CustomerGroup' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'group' => 'group' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'group' => 'setGroup' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'group' => 'getGroup' - ); - - /** - * $group The `CustomerGroup` object including all the updates you want to make. - * @var \SquareConnect\Model\CustomerGroup - */ - protected $group; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["group"])) { - $this->group = $data["group"]; - } else { - $this->group = null; - } - } - } - /** - * Gets group - * @return \SquareConnect\Model\CustomerGroup - */ - public function getGroup() - { - return $this->group; - } - - /** - * Sets group - * @param \SquareConnect\Model\CustomerGroup $group The `CustomerGroup` object including all the updates you want to make. - * @return $this - */ - public function setGroup($group) - { - $this->group = $group; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerGroupResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerGroupResponse.php deleted file mode 100644 index a0442dbf6d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerGroupResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'group' => '\SquareConnect\Model\CustomerGroup' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'group' => 'group' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'group' => 'setGroup' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'group' => 'getGroup' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $group The successfully updated customer group. - * @var \SquareConnect\Model\CustomerGroup - */ - protected $group; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["group"])) { - $this->group = $data["group"]; - } else { - $this->group = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets group - * @return \SquareConnect\Model\CustomerGroup - */ - public function getGroup() - { - return $this->group; - } - - /** - * Sets group - * @param \SquareConnect\Model\CustomerGroup $group The successfully updated customer group. - * @return $this - */ - public function setGroup($group) - { - $this->group = $group; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerRequest.php deleted file mode 100644 index 0c95d19e89..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerRequest.php +++ /dev/null @@ -1,443 +0,0 @@ - 'string', - 'family_name' => 'string', - 'company_name' => 'string', - 'nickname' => 'string', - 'email_address' => 'string', - 'address' => '\SquareConnect\Model\Address', - 'phone_number' => 'string', - 'reference_id' => 'string', - 'note' => 'string', - 'birthday' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'given_name' => 'given_name', - 'family_name' => 'family_name', - 'company_name' => 'company_name', - 'nickname' => 'nickname', - 'email_address' => 'email_address', - 'address' => 'address', - 'phone_number' => 'phone_number', - 'reference_id' => 'reference_id', - 'note' => 'note', - 'birthday' => 'birthday' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'given_name' => 'setGivenName', - 'family_name' => 'setFamilyName', - 'company_name' => 'setCompanyName', - 'nickname' => 'setNickname', - 'email_address' => 'setEmailAddress', - 'address' => 'setAddress', - 'phone_number' => 'setPhoneNumber', - 'reference_id' => 'setReferenceId', - 'note' => 'setNote', - 'birthday' => 'setBirthday' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'given_name' => 'getGivenName', - 'family_name' => 'getFamilyName', - 'company_name' => 'getCompanyName', - 'nickname' => 'getNickname', - 'email_address' => 'getEmailAddress', - 'address' => 'getAddress', - 'phone_number' => 'getPhoneNumber', - 'reference_id' => 'getReferenceId', - 'note' => 'getNote', - 'birthday' => 'getBirthday' - ); - - /** - * $given_name The given (i.e., first) name associated with the customer profile. - * @var string - */ - protected $given_name; - /** - * $family_name The family (i.e., last) name associated with the customer profile. - * @var string - */ - protected $family_name; - /** - * $company_name A business name associated with the customer profile. - * @var string - */ - protected $company_name; - /** - * $nickname A nickname for the customer profile. - * @var string - */ - protected $nickname; - /** - * $email_address The email address associated with the customer profile. - * @var string - */ - protected $email_address; - /** - * $address The physical address associated with the customer profile. - * @var \SquareConnect\Model\Address - */ - protected $address; - /** - * $phone_number The 11-digit phone number associated with the customer profile. - * @var string - */ - protected $phone_number; - /** - * $reference_id An optional, second ID used to associate the customer profile with an entity in another system. - * @var string - */ - protected $reference_id; - /** - * $note A custom note associated with the customer profile. - * @var string - */ - protected $note; - /** - * $birthday The birthday associated with the customer profile, in RFC-3339 format. Year is optional, timezone and times are not allowed. For example: `0000-09-01T00:00:00-00:00` indicates a birthday on September 1st. `1998-09-01T00:00:00-00:00` indications a birthday on September 1st __1998__. - * @var string - */ - protected $birthday; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["given_name"])) { - $this->given_name = $data["given_name"]; - } else { - $this->given_name = null; - } - if (isset($data["family_name"])) { - $this->family_name = $data["family_name"]; - } else { - $this->family_name = null; - } - if (isset($data["company_name"])) { - $this->company_name = $data["company_name"]; - } else { - $this->company_name = null; - } - if (isset($data["nickname"])) { - $this->nickname = $data["nickname"]; - } else { - $this->nickname = null; - } - if (isset($data["email_address"])) { - $this->email_address = $data["email_address"]; - } else { - $this->email_address = null; - } - if (isset($data["address"])) { - $this->address = $data["address"]; - } else { - $this->address = null; - } - if (isset($data["phone_number"])) { - $this->phone_number = $data["phone_number"]; - } else { - $this->phone_number = null; - } - if (isset($data["reference_id"])) { - $this->reference_id = $data["reference_id"]; - } else { - $this->reference_id = null; - } - if (isset($data["note"])) { - $this->note = $data["note"]; - } else { - $this->note = null; - } - if (isset($data["birthday"])) { - $this->birthday = $data["birthday"]; - } else { - $this->birthday = null; - } - } - } - /** - * Gets given_name - * @return string - */ - public function getGivenName() - { - return $this->given_name; - } - - /** - * Sets given_name - * @param string $given_name The given (i.e., first) name associated with the customer profile. - * @return $this - */ - public function setGivenName($given_name) - { - $this->given_name = $given_name; - return $this; - } - /** - * Gets family_name - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * Sets family_name - * @param string $family_name The family (i.e., last) name associated with the customer profile. - * @return $this - */ - public function setFamilyName($family_name) - { - $this->family_name = $family_name; - return $this; - } - /** - * Gets company_name - * @return string - */ - public function getCompanyName() - { - return $this->company_name; - } - - /** - * Sets company_name - * @param string $company_name A business name associated with the customer profile. - * @return $this - */ - public function setCompanyName($company_name) - { - $this->company_name = $company_name; - return $this; - } - /** - * Gets nickname - * @return string - */ - public function getNickname() - { - return $this->nickname; - } - - /** - * Sets nickname - * @param string $nickname A nickname for the customer profile. - * @return $this - */ - public function setNickname($nickname) - { - $this->nickname = $nickname; - return $this; - } - /** - * Gets email_address - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Sets email_address - * @param string $email_address The email address associated with the customer profile. - * @return $this - */ - public function setEmailAddress($email_address) - { - $this->email_address = $email_address; - return $this; - } - /** - * Gets address - * @return \SquareConnect\Model\Address - */ - public function getAddress() - { - return $this->address; - } - - /** - * Sets address - * @param \SquareConnect\Model\Address $address The physical address associated with the customer profile. - * @return $this - */ - public function setAddress($address) - { - $this->address = $address; - return $this; - } - /** - * Gets phone_number - * @return string - */ - public function getPhoneNumber() - { - return $this->phone_number; - } - - /** - * Sets phone_number - * @param string $phone_number The 11-digit phone number associated with the customer profile. - * @return $this - */ - public function setPhoneNumber($phone_number) - { - $this->phone_number = $phone_number; - return $this; - } - /** - * Gets reference_id - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Sets reference_id - * @param string $reference_id An optional, second ID used to associate the customer profile with an entity in another system. - * @return $this - */ - public function setReferenceId($reference_id) - { - $this->reference_id = $reference_id; - return $this; - } - /** - * Gets note - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Sets note - * @param string $note A custom note associated with the customer profile. - * @return $this - */ - public function setNote($note) - { - $this->note = $note; - return $this; - } - /** - * Gets birthday - * @return string - */ - public function getBirthday() - { - return $this->birthday; - } - - /** - * Sets birthday - * @param string $birthday The birthday associated with the customer profile, in RFC-3339 format. Year is optional, timezone and times are not allowed. For example: `0000-09-01T00:00:00-00:00` indicates a birthday on September 1st. `1998-09-01T00:00:00-00:00` indications a birthday on September 1st __1998__. - * @return $this - */ - public function setBirthday($birthday) - { - $this->birthday = $birthday; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerResponse.php deleted file mode 100644 index 21375d77b2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateCustomerResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'customer' => '\SquareConnect\Model\Customer' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'customer' => 'customer' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'customer' => 'setCustomer' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'customer' => 'getCustomer' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $customer The updated customer. - * @var \SquareConnect\Model\Customer - */ - protected $customer; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["customer"])) { - $this->customer = $data["customer"]; - } else { - $this->customer = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets customer - * @return \SquareConnect\Model\Customer - */ - public function getCustomer() - { - return $this->customer; - } - - /** - * Sets customer - * @param \SquareConnect\Model\Customer $customer The updated customer. - * @return $this - */ - public function setCustomer($customer) - { - $this->customer = $customer; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateItemModifierListsRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateItemModifierListsRequest.php deleted file mode 100644 index 18544a019b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateItemModifierListsRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string[]', - 'modifier_lists_to_enable' => 'string[]', - 'modifier_lists_to_disable' => 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'item_ids' => 'item_ids', - 'modifier_lists_to_enable' => 'modifier_lists_to_enable', - 'modifier_lists_to_disable' => 'modifier_lists_to_disable' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'item_ids' => 'setItemIds', - 'modifier_lists_to_enable' => 'setModifierListsToEnable', - 'modifier_lists_to_disable' => 'setModifierListsToDisable' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'item_ids' => 'getItemIds', - 'modifier_lists_to_enable' => 'getModifierListsToEnable', - 'modifier_lists_to_disable' => 'getModifierListsToDisable' - ); - - /** - * $item_ids The IDs of the catalog items associated with the CatalogModifierList objects being updated. - * @var string[] - */ - protected $item_ids; - /** - * $modifier_lists_to_enable The IDs of the CatalogModifierList objects to enable for the CatalogItem. - * @var string[] - */ - protected $modifier_lists_to_enable; - /** - * $modifier_lists_to_disable The IDs of the CatalogModifierList objects to disable for the CatalogItem. - * @var string[] - */ - protected $modifier_lists_to_disable; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["item_ids"])) { - $this->item_ids = $data["item_ids"]; - } else { - $this->item_ids = null; - } - if (isset($data["modifier_lists_to_enable"])) { - $this->modifier_lists_to_enable = $data["modifier_lists_to_enable"]; - } else { - $this->modifier_lists_to_enable = null; - } - if (isset($data["modifier_lists_to_disable"])) { - $this->modifier_lists_to_disable = $data["modifier_lists_to_disable"]; - } else { - $this->modifier_lists_to_disable = null; - } - } - } - /** - * Gets item_ids - * @return string[] - */ - public function getItemIds() - { - return $this->item_ids; - } - - /** - * Sets item_ids - * @param string[] $item_ids The IDs of the catalog items associated with the CatalogModifierList objects being updated. - * @return $this - */ - public function setItemIds($item_ids) - { - $this->item_ids = $item_ids; - return $this; - } - /** - * Gets modifier_lists_to_enable - * @return string[] - */ - public function getModifierListsToEnable() - { - return $this->modifier_lists_to_enable; - } - - /** - * Sets modifier_lists_to_enable - * @param string[] $modifier_lists_to_enable The IDs of the CatalogModifierList objects to enable for the CatalogItem. - * @return $this - */ - public function setModifierListsToEnable($modifier_lists_to_enable) - { - $this->modifier_lists_to_enable = $modifier_lists_to_enable; - return $this; - } - /** - * Gets modifier_lists_to_disable - * @return string[] - */ - public function getModifierListsToDisable() - { - return $this->modifier_lists_to_disable; - } - - /** - * Sets modifier_lists_to_disable - * @param string[] $modifier_lists_to_disable The IDs of the CatalogModifierList objects to disable for the CatalogItem. - * @return $this - */ - public function setModifierListsToDisable($modifier_lists_to_disable) - { - $this->modifier_lists_to_disable = $modifier_lists_to_disable; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateItemModifierListsResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateItemModifierListsResponse.php deleted file mode 100644 index fd547ab684..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateItemModifierListsResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $errors Information on any errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $updated_at - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateItemTaxesRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateItemTaxesRequest.php deleted file mode 100644 index cefa591e98..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateItemTaxesRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string[]', - 'taxes_to_enable' => 'string[]', - 'taxes_to_disable' => 'string[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'item_ids' => 'item_ids', - 'taxes_to_enable' => 'taxes_to_enable', - 'taxes_to_disable' => 'taxes_to_disable' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'item_ids' => 'setItemIds', - 'taxes_to_enable' => 'setTaxesToEnable', - 'taxes_to_disable' => 'setTaxesToDisable' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'item_ids' => 'getItemIds', - 'taxes_to_enable' => 'getTaxesToEnable', - 'taxes_to_disable' => 'getTaxesToDisable' - ); - - /** - * $item_ids IDs for the CatalogItems associated with the CatalogTax objects being updated. - * @var string[] - */ - protected $item_ids; - /** - * $taxes_to_enable IDs of the CatalogTax objects to enable. - * @var string[] - */ - protected $taxes_to_enable; - /** - * $taxes_to_disable IDs of the CatalogTax objects to disable. - * @var string[] - */ - protected $taxes_to_disable; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["item_ids"])) { - $this->item_ids = $data["item_ids"]; - } else { - $this->item_ids = null; - } - if (isset($data["taxes_to_enable"])) { - $this->taxes_to_enable = $data["taxes_to_enable"]; - } else { - $this->taxes_to_enable = null; - } - if (isset($data["taxes_to_disable"])) { - $this->taxes_to_disable = $data["taxes_to_disable"]; - } else { - $this->taxes_to_disable = null; - } - } - } - /** - * Gets item_ids - * @return string[] - */ - public function getItemIds() - { - return $this->item_ids; - } - - /** - * Sets item_ids - * @param string[] $item_ids IDs for the CatalogItems associated with the CatalogTax objects being updated. - * @return $this - */ - public function setItemIds($item_ids) - { - $this->item_ids = $item_ids; - return $this; - } - /** - * Gets taxes_to_enable - * @return string[] - */ - public function getTaxesToEnable() - { - return $this->taxes_to_enable; - } - - /** - * Sets taxes_to_enable - * @param string[] $taxes_to_enable IDs of the CatalogTax objects to enable. - * @return $this - */ - public function setTaxesToEnable($taxes_to_enable) - { - $this->taxes_to_enable = $taxes_to_enable; - return $this; - } - /** - * Gets taxes_to_disable - * @return string[] - */ - public function getTaxesToDisable() - { - return $this->taxes_to_disable; - } - - /** - * Sets taxes_to_disable - * @param string[] $taxes_to_disable IDs of the CatalogTax objects to disable. - * @return $this - */ - public function setTaxesToDisable($taxes_to_disable) - { - $this->taxes_to_disable = $taxes_to_disable; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateItemTaxesResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateItemTaxesResponse.php deleted file mode 100644 index 958ba24805..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateItemTaxesResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $errors Information on any errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $updated_at The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this update in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this update in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateLocationRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateLocationRequest.php deleted file mode 100644 index fadbb92e0b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateLocationRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Location' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'location' => 'location' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'location' => 'setLocation' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'location' => 'getLocation' - ); - - /** - * $location The `Location` object with only the fields to update. - * @var \SquareConnect\Model\Location - */ - protected $location; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["location"])) { - $this->location = $data["location"]; - } else { - $this->location = null; - } - } - } - /** - * Gets location - * @return \SquareConnect\Model\Location - */ - public function getLocation() - { - return $this->location; - } - - /** - * Sets location - * @param \SquareConnect\Model\Location $location The `Location` object with only the fields to update. - * @return $this - */ - public function setLocation($location) - { - $this->location = $location; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateLocationResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateLocationResponse.php deleted file mode 100644 index 6ac7e7c13f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateLocationResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'location' => '\SquareConnect\Model\Location' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'location' => 'location' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'location' => 'setLocation' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'location' => 'getLocation' - ); - - /** - * $errors Information on errors encountered during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $location The updated `Location`. - * @var \SquareConnect\Model\Location - */ - protected $location; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["location"])) { - $this->location = $data["location"]; - } else { - $this->location = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on errors encountered during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets location - * @return \SquareConnect\Model\Location - */ - public function getLocation() - { - return $this->location; - } - - /** - * Sets location - * @param \SquareConnect\Model\Location $location The updated `Location`. - * @return $this - */ - public function setLocation($location) - { - $this->location = $location; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateOrderRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateOrderRequest.php deleted file mode 100644 index 395e0202ab..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateOrderRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - '\SquareConnect\Model\Order', - 'fields_to_clear' => 'string[]', - 'idempotency_key' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'fields_to_clear' => 'fields_to_clear', - 'idempotency_key' => 'idempotency_key' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'fields_to_clear' => 'setFieldsToClear', - 'idempotency_key' => 'setIdempotencyKey' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'fields_to_clear' => 'getFieldsToClear', - 'idempotency_key' => 'getIdempotencyKey' - ); - - /** - * $order The [sparse order](https://developer.squareup.com/docs/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - * @var \SquareConnect\Model\Order - */ - protected $order; - /** - * $fields_to_clear The [dot notation paths](https://developer.squareup.com/docs/orders-api/manage-orders#on-dot-notation) fields to clear. For example, `line_items[uid].note` [Read more about Deleting fields](https://developer.squareup.com/docs/orders-api/manage-orders#delete-fields). - * @var string[] - */ - protected $fields_to_clear; - /** - * $idempotency_key A value you specify that uniquely identifies this update request If you're unsure whether a particular update was applied to an order successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate updates to the order. The latest order version will be returned. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["fields_to_clear"])) { - $this->fields_to_clear = $data["fields_to_clear"]; - } else { - $this->fields_to_clear = null; - } - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - } - } - /** - * Gets order - * @return \SquareConnect\Model\Order - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\Order $order The [sparse order](https://developer.squareup.com/docs/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets fields_to_clear - * @return string[] - */ - public function getFieldsToClear() - { - return $this->fields_to_clear; - } - - /** - * Sets fields_to_clear - * @param string[] $fields_to_clear The [dot notation paths](https://developer.squareup.com/docs/orders-api/manage-orders#on-dot-notation) fields to clear. For example, `line_items[uid].note` [Read more about Deleting fields](https://developer.squareup.com/docs/orders-api/manage-orders#delete-fields). - * @return $this - */ - public function setFieldsToClear($fields_to_clear) - { - $this->fields_to_clear = $fields_to_clear; - return $this; - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A value you specify that uniquely identifies this update request If you're unsure whether a particular update was applied to an order successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate updates to the order. The latest order version will be returned. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateOrderResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateOrderResponse.php deleted file mode 100644 index 8711558512..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateOrderResponse.php +++ /dev/null @@ -1,180 +0,0 @@ - '\SquareConnect\Model\Order', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'errors' => 'getErrors' - ); - - /** - * $order The updated Order. - * @var \SquareConnect\Model\Order - */ - protected $order; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets order - * @return \SquareConnect\Model\Order - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param \SquareConnect\Model\Order $order The updated Order. - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateShiftRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateShiftRequest.php deleted file mode 100644 index 2e240d9235..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateShiftRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\Shift' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'shift' => 'shift' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'shift' => 'setShift' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'shift' => 'getShift' - ); - - /** - * $shift The updated `Shift` object. - * @var \SquareConnect\Model\Shift - */ - protected $shift; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["shift"])) { - $this->shift = $data["shift"]; - } else { - $this->shift = null; - } - } - } - /** - * Gets shift - * @return \SquareConnect\Model\Shift - */ - public function getShift() - { - return $this->shift; - } - - /** - * Sets shift - * @param \SquareConnect\Model\Shift $shift The updated `Shift` object. - * @return $this - */ - public function setShift($shift) - { - $this->shift = $shift; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateShiftResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateShiftResponse.php deleted file mode 100644 index 9b2442595d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateShiftResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\Shift', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'shift' => 'shift', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'shift' => 'setShift', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'shift' => 'getShift', - 'errors' => 'getErrors' - ); - - /** - * $shift The updated `Shift`. - * @var \SquareConnect\Model\Shift - */ - protected $shift; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["shift"])) { - $this->shift = $data["shift"]; - } else { - $this->shift = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets shift - * @return \SquareConnect\Model\Shift - */ - public function getShift() - { - return $this->shift; - } - - /** - * Sets shift - * @param \SquareConnect\Model\Shift $shift The updated `Shift`. - * @return $this - */ - public function setShift($shift) - { - $this->shift = $shift; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateWorkweekConfigRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpdateWorkweekConfigRequest.php deleted file mode 100644 index 57fd0de100..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateWorkweekConfigRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\WorkweekConfig' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'workweek_config' => 'workweek_config' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'workweek_config' => 'setWorkweekConfig' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'workweek_config' => 'getWorkweekConfig' - ); - - /** - * $workweek_config The updated `WorkweekConfig` object. - * @var \SquareConnect\Model\WorkweekConfig - */ - protected $workweek_config; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["workweek_config"])) { - $this->workweek_config = $data["workweek_config"]; - } else { - $this->workweek_config = null; - } - } - } - /** - * Gets workweek_config - * @return \SquareConnect\Model\WorkweekConfig - */ - public function getWorkweekConfig() - { - return $this->workweek_config; - } - - /** - * Sets workweek_config - * @param \SquareConnect\Model\WorkweekConfig $workweek_config The updated `WorkweekConfig` object. - * @return $this - */ - public function setWorkweekConfig($workweek_config) - { - $this->workweek_config = $workweek_config; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpdateWorkweekConfigResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpdateWorkweekConfigResponse.php deleted file mode 100644 index f4e140b388..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpdateWorkweekConfigResponse.php +++ /dev/null @@ -1,179 +0,0 @@ - '\SquareConnect\Model\WorkweekConfig', - 'errors' => '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'workweek_config' => 'workweek_config', - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'workweek_config' => 'setWorkweekConfig', - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'workweek_config' => 'getWorkweekConfig', - 'errors' => 'getErrors' - ); - - /** - * $workweek_config The response object. - * @var \SquareConnect\Model\WorkweekConfig - */ - protected $workweek_config; - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["workweek_config"])) { - $this->workweek_config = $data["workweek_config"]; - } else { - $this->workweek_config = null; - } - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets workweek_config - * @return \SquareConnect\Model\WorkweekConfig - */ - public function getWorkweekConfig() - { - return $this->workweek_config; - } - - /** - * Sets workweek_config - * @param \SquareConnect\Model\WorkweekConfig $workweek_config The response object. - * @return $this - */ - public function setWorkweekConfig($workweek_config) - { - $this->workweek_config = $workweek_config; - return $this; - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpsertCatalogObjectRequest.php b/includes/classes/vendors/square/connect/lib/Model/UpsertCatalogObjectRequest.php deleted file mode 100644 index d740ad13f2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpsertCatalogObjectRequest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'object' => '\SquareConnect\Model\CatalogObject' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'idempotency_key' => 'idempotency_key', - 'object' => 'object' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'idempotency_key' => 'setIdempotencyKey', - 'object' => 'setObject' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'idempotency_key' => 'getIdempotencyKey', - 'object' => 'getObject' - ); - - /** - * $idempotency_key A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you're unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @var string - */ - protected $idempotency_key; - /** - * $object A CatalogObject to be created or updated. - For updates, the object must be active (the `is_deleted` field is not `true`). - For creates, the object ID must start with `#`. The provided ID is replaced with a server-generated ID. - * @var \SquareConnect\Model\CatalogObject - */ - protected $object; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["idempotency_key"])) { - $this->idempotency_key = $data["idempotency_key"]; - } else { - $this->idempotency_key = null; - } - if (isset($data["object"])) { - $this->object = $data["object"]; - } else { - $this->object = null; - } - } - } - /** - * Gets idempotency_key - * @return string - */ - public function getIdempotencyKey() - { - return $this->idempotency_key; - } - - /** - * Sets idempotency_key - * @param string $idempotency_key A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you're unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. - * @return $this - */ - public function setIdempotencyKey($idempotency_key) - { - $this->idempotency_key = $idempotency_key; - return $this; - } - /** - * Gets object - * @return \SquareConnect\Model\CatalogObject - */ - public function getObject() - { - return $this->object; - } - - /** - * Sets object - * @param \SquareConnect\Model\CatalogObject $object A CatalogObject to be created or updated. - For updates, the object must be active (the `is_deleted` field is not `true`). - For creates, the object ID must start with `#`. The provided ID is replaced with a server-generated ID. - * @return $this - */ - public function setObject($object) - { - $this->object = $object; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/UpsertCatalogObjectResponse.php b/includes/classes/vendors/square/connect/lib/Model/UpsertCatalogObjectResponse.php deleted file mode 100644 index e99bb00c5f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/UpsertCatalogObjectResponse.php +++ /dev/null @@ -1,212 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'catalog_object' => '\SquareConnect\Model\CatalogObject', - 'id_mappings' => '\SquareConnect\Model\CatalogIdMapping[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'catalog_object' => 'catalog_object', - 'id_mappings' => 'id_mappings' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'catalog_object' => 'setCatalogObject', - 'id_mappings' => 'setIdMappings' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'catalog_object' => 'getCatalogObject', - 'id_mappings' => 'getIdMappings' - ); - - /** - * $errors Information on any errors encountered. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $catalog_object The successfully created or updated CatalogObject. - * @var \SquareConnect\Model\CatalogObject - */ - protected $catalog_object; - /** - * $id_mappings The mapping between client and server IDs for this upsert. - * @var \SquareConnect\Model\CatalogIdMapping[] - */ - protected $id_mappings; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["catalog_object"])) { - $this->catalog_object = $data["catalog_object"]; - } else { - $this->catalog_object = null; - } - if (isset($data["id_mappings"])) { - $this->id_mappings = $data["id_mappings"]; - } else { - $this->id_mappings = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Information on any errors encountered. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets catalog_object - * @return \SquareConnect\Model\CatalogObject - */ - public function getCatalogObject() - { - return $this->catalog_object; - } - - /** - * Sets catalog_object - * @param \SquareConnect\Model\CatalogObject $catalog_object The successfully created or updated CatalogObject. - * @return $this - */ - public function setCatalogObject($catalog_object) - { - $this->catalog_object = $catalog_object; - return $this; - } - /** - * Gets id_mappings - * @return \SquareConnect\Model\CatalogIdMapping[] - */ - public function getIdMappings() - { - return $this->id_mappings; - } - - /** - * Sets id_mappings - * @param \SquareConnect\Model\CatalogIdMapping[] $id_mappings The mapping between client and server IDs for this upsert. - * @return $this - */ - public function setIdMappings($id_mappings) - { - $this->id_mappings = $id_mappings; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1AdjustInventoryRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1AdjustInventoryRequest.php deleted file mode 100644 index 0a9eb843c0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1AdjustInventoryRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - 'float', - 'adjustment_type' => 'string', - 'memo' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'quantity_delta' => 'quantity_delta', - 'adjustment_type' => 'adjustment_type', - 'memo' => 'memo' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'quantity_delta' => 'setQuantityDelta', - 'adjustment_type' => 'setAdjustmentType', - 'memo' => 'setMemo' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'quantity_delta' => 'getQuantityDelta', - 'adjustment_type' => 'getAdjustmentType', - 'memo' => 'getMemo' - ); - - /** - * $quantity_delta The number to adjust the variation's quantity by. - * @var float - */ - protected $quantity_delta; - /** - * $adjustment_type The reason for the inventory adjustment. See [V1AdjustInventoryRequestAdjustmentType](#type-v1adjustinventoryrequestadjustmenttype) for possible values - * @var string - */ - protected $adjustment_type; - /** - * $memo A note about the inventory adjustment. - * @var string - */ - protected $memo; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["quantity_delta"])) { - $this->quantity_delta = $data["quantity_delta"]; - } else { - $this->quantity_delta = null; - } - if (isset($data["adjustment_type"])) { - $this->adjustment_type = $data["adjustment_type"]; - } else { - $this->adjustment_type = null; - } - if (isset($data["memo"])) { - $this->memo = $data["memo"]; - } else { - $this->memo = null; - } - } - } - /** - * Gets quantity_delta - * @return float - */ - public function getQuantityDelta() - { - return $this->quantity_delta; - } - - /** - * Sets quantity_delta - * @param float $quantity_delta The number to adjust the variation's quantity by. - * @return $this - */ - public function setQuantityDelta($quantity_delta) - { - $this->quantity_delta = $quantity_delta; - return $this; - } - /** - * Gets adjustment_type - * @return string - */ - public function getAdjustmentType() - { - return $this->adjustment_type; - } - - /** - * Sets adjustment_type - * @param string $adjustment_type The reason for the inventory adjustment. See [V1AdjustInventoryRequestAdjustmentType](#type-v1adjustinventoryrequestadjustmenttype) for possible values - * @return $this - */ - public function setAdjustmentType($adjustment_type) - { - $this->adjustment_type = $adjustment_type; - return $this; - } - /** - * Gets memo - * @return string - */ - public function getMemo() - { - return $this->memo; - } - - /** - * Sets memo - * @param string $memo A note about the inventory adjustment. - * @return $this - */ - public function setMemo($memo) - { - $this->memo = $memo; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1AdjustInventoryRequestAdjustmentType.php b/includes/classes/vendors/square/connect/lib/Model/V1AdjustInventoryRequestAdjustmentType.php deleted file mode 100644 index 0d0a05adf1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1AdjustInventoryRequestAdjustmentType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ApplyFeeRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ApplyFeeRequest.php deleted file mode 100644 index a7900d3add..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ApplyFeeRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ApplyModifierListRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ApplyModifierListRequest.php deleted file mode 100644 index 66ee20c6a5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ApplyModifierListRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1BankAccount.php b/includes/classes/vendors/square/connect/lib/Model/V1BankAccount.php deleted file mode 100644 index 48a0826659..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1BankAccount.php +++ /dev/null @@ -1,378 +0,0 @@ - 'string', - 'merchant_id' => 'string', - 'bank_name' => 'string', - 'name' => 'string', - 'routing_number' => 'string', - 'account_number_suffix' => 'string', - 'currency_code' => 'string', - 'type' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'merchant_id' => 'merchant_id', - 'bank_name' => 'bank_name', - 'name' => 'name', - 'routing_number' => 'routing_number', - 'account_number_suffix' => 'account_number_suffix', - 'currency_code' => 'currency_code', - 'type' => 'type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'merchant_id' => 'setMerchantId', - 'bank_name' => 'setBankName', - 'name' => 'setName', - 'routing_number' => 'setRoutingNumber', - 'account_number_suffix' => 'setAccountNumberSuffix', - 'currency_code' => 'setCurrencyCode', - 'type' => 'setType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'merchant_id' => 'getMerchantId', - 'bank_name' => 'getBankName', - 'name' => 'getName', - 'routing_number' => 'getRoutingNumber', - 'account_number_suffix' => 'getAccountNumberSuffix', - 'currency_code' => 'getCurrencyCode', - 'type' => 'getType' - ); - - /** - * $id The bank account's Square-issued ID. - * @var string - */ - protected $id; - /** - * $merchant_id The Square-issued ID of the merchant associated with the bank account. - * @var string - */ - protected $merchant_id; - /** - * $bank_name The name of the bank that manages the account. - * @var string - */ - protected $bank_name; - /** - * $name The name associated with the bank account. - * @var string - */ - protected $name; - /** - * $routing_number The bank account's routing number. - * @var string - */ - protected $routing_number; - /** - * $account_number_suffix The last few digits of the bank account number. - * @var string - */ - protected $account_number_suffix; - /** - * $currency_code The currency code of the currency associated with the bank account, in ISO 4217 format. For example, the currency code for US dollars is USD. - * @var string - */ - protected $currency_code; - /** - * $type The bank account's type (for example, savings or checking). See [V1BankAccountType](#type-v1bankaccounttype) for possible values - * @var string - */ - protected $type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["merchant_id"])) { - $this->merchant_id = $data["merchant_id"]; - } else { - $this->merchant_id = null; - } - if (isset($data["bank_name"])) { - $this->bank_name = $data["bank_name"]; - } else { - $this->bank_name = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["routing_number"])) { - $this->routing_number = $data["routing_number"]; - } else { - $this->routing_number = null; - } - if (isset($data["account_number_suffix"])) { - $this->account_number_suffix = $data["account_number_suffix"]; - } else { - $this->account_number_suffix = null; - } - if (isset($data["currency_code"])) { - $this->currency_code = $data["currency_code"]; - } else { - $this->currency_code = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The bank account's Square-issued ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets merchant_id - * @return string - */ - public function getMerchantId() - { - return $this->merchant_id; - } - - /** - * Sets merchant_id - * @param string $merchant_id The Square-issued ID of the merchant associated with the bank account. - * @return $this - */ - public function setMerchantId($merchant_id) - { - $this->merchant_id = $merchant_id; - return $this; - } - /** - * Gets bank_name - * @return string - */ - public function getBankName() - { - return $this->bank_name; - } - - /** - * Sets bank_name - * @param string $bank_name The name of the bank that manages the account. - * @return $this - */ - public function setBankName($bank_name) - { - $this->bank_name = $bank_name; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name associated with the bank account. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets routing_number - * @return string - */ - public function getRoutingNumber() - { - return $this->routing_number; - } - - /** - * Sets routing_number - * @param string $routing_number The bank account's routing number. - * @return $this - */ - public function setRoutingNumber($routing_number) - { - $this->routing_number = $routing_number; - return $this; - } - /** - * Gets account_number_suffix - * @return string - */ - public function getAccountNumberSuffix() - { - return $this->account_number_suffix; - } - - /** - * Sets account_number_suffix - * @param string $account_number_suffix The last few digits of the bank account number. - * @return $this - */ - public function setAccountNumberSuffix($account_number_suffix) - { - $this->account_number_suffix = $account_number_suffix; - return $this; - } - /** - * Gets currency_code - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Sets currency_code - * @param string $currency_code The currency code of the currency associated with the bank account, in ISO 4217 format. For example, the currency code for US dollars is USD. - * @return $this - */ - public function setCurrencyCode($currency_code) - { - $this->currency_code = $currency_code; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The bank account's type (for example, savings or checking). See [V1BankAccountType](#type-v1bankaccounttype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1BankAccountType.php b/includes/classes/vendors/square/connect/lib/Model/V1BankAccountType.php deleted file mode 100644 index 951eb12ecc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1BankAccountType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerEvent.php b/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerEvent.php deleted file mode 100644 index 28d0a8593f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerEvent.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'employee_id' => 'string', - 'event_type' => 'string', - 'event_money' => '\SquareConnect\Model\V1Money', - 'created_at' => 'string', - 'description' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'employee_id' => 'employee_id', - 'event_type' => 'event_type', - 'event_money' => 'event_money', - 'created_at' => 'created_at', - 'description' => 'description' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'employee_id' => 'setEmployeeId', - 'event_type' => 'setEventType', - 'event_money' => 'setEventMoney', - 'created_at' => 'setCreatedAt', - 'description' => 'setDescription' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'employee_id' => 'getEmployeeId', - 'event_type' => 'getEventType', - 'event_money' => 'getEventMoney', - 'created_at' => 'getCreatedAt', - 'description' => 'getDescription' - ); - - /** - * $id The event's unique ID. - * @var string - */ - protected $id; - /** - * $employee_id The ID of the employee that created the event. - * @var string - */ - protected $employee_id; - /** - * $event_type The type of event that occurred. See [V1CashDrawerEventEventType](#type-v1cashdrawereventeventtype) for possible values - * @var string - */ - protected $event_type; - /** - * $event_money The amount of money that was added to or removed from the cash drawer because of the event. This value can be positive (for added money) or negative (for removed money). - * @var \SquareConnect\Model\V1Money - */ - protected $event_money; - /** - * $created_at The time when the event occurred, in ISO 8601 format. - * @var string - */ - protected $created_at; - /** - * $description An optional description of the event, entered by the employee that created it. - * @var string - */ - protected $description; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["event_type"])) { - $this->event_type = $data["event_type"]; - } else { - $this->event_type = null; - } - if (isset($data["event_money"])) { - $this->event_money = $data["event_money"]; - } else { - $this->event_money = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The event's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The ID of the employee that created the event. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets event_type - * @return string - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Sets event_type - * @param string $event_type The type of event that occurred. See [V1CashDrawerEventEventType](#type-v1cashdrawereventeventtype) for possible values - * @return $this - */ - public function setEventType($event_type) - { - $this->event_type = $event_type; - return $this; - } - /** - * Gets event_money - * @return \SquareConnect\Model\V1Money - */ - public function getEventMoney() - { - return $this->event_money; - } - - /** - * Sets event_money - * @param \SquareConnect\Model\V1Money $event_money The amount of money that was added to or removed from the cash drawer because of the event. This value can be positive (for added money) or negative (for removed money). - * @return $this - */ - public function setEventMoney($event_money) - { - $this->event_money = $event_money; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the event occurred, in ISO 8601 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description An optional description of the event, entered by the employee that created it. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerEventEventType.php b/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerEventEventType.php deleted file mode 100644 index aa40c8a83e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerEventEventType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerShift.php b/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerShift.php deleted file mode 100644 index 6cfa0d78a9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerShift.php +++ /dev/null @@ -1,741 +0,0 @@ - 'string', - 'event_type' => 'string', - 'opened_at' => 'string', - 'ended_at' => 'string', - 'closed_at' => 'string', - 'employee_ids' => 'string[]', - 'opening_employee_id' => 'string', - 'ending_employee_id' => 'string', - 'closing_employee_id' => 'string', - 'description' => 'string', - 'starting_cash_money' => '\SquareConnect\Model\V1Money', - 'cash_payment_money' => '\SquareConnect\Model\V1Money', - 'cash_refunds_money' => '\SquareConnect\Model\V1Money', - 'cash_paid_in_money' => '\SquareConnect\Model\V1Money', - 'cash_paid_out_money' => '\SquareConnect\Model\V1Money', - 'expected_cash_money' => '\SquareConnect\Model\V1Money', - 'closed_cash_money' => '\SquareConnect\Model\V1Money', - 'device' => '\SquareConnect\Model\Device', - 'events' => '\SquareConnect\Model\V1CashDrawerEvent[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'event_type' => 'event_type', - 'opened_at' => 'opened_at', - 'ended_at' => 'ended_at', - 'closed_at' => 'closed_at', - 'employee_ids' => 'employee_ids', - 'opening_employee_id' => 'opening_employee_id', - 'ending_employee_id' => 'ending_employee_id', - 'closing_employee_id' => 'closing_employee_id', - 'description' => 'description', - 'starting_cash_money' => 'starting_cash_money', - 'cash_payment_money' => 'cash_payment_money', - 'cash_refunds_money' => 'cash_refunds_money', - 'cash_paid_in_money' => 'cash_paid_in_money', - 'cash_paid_out_money' => 'cash_paid_out_money', - 'expected_cash_money' => 'expected_cash_money', - 'closed_cash_money' => 'closed_cash_money', - 'device' => 'device', - 'events' => 'events' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'event_type' => 'setEventType', - 'opened_at' => 'setOpenedAt', - 'ended_at' => 'setEndedAt', - 'closed_at' => 'setClosedAt', - 'employee_ids' => 'setEmployeeIds', - 'opening_employee_id' => 'setOpeningEmployeeId', - 'ending_employee_id' => 'setEndingEmployeeId', - 'closing_employee_id' => 'setClosingEmployeeId', - 'description' => 'setDescription', - 'starting_cash_money' => 'setStartingCashMoney', - 'cash_payment_money' => 'setCashPaymentMoney', - 'cash_refunds_money' => 'setCashRefundsMoney', - 'cash_paid_in_money' => 'setCashPaidInMoney', - 'cash_paid_out_money' => 'setCashPaidOutMoney', - 'expected_cash_money' => 'setExpectedCashMoney', - 'closed_cash_money' => 'setClosedCashMoney', - 'device' => 'setDevice', - 'events' => 'setEvents' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'event_type' => 'getEventType', - 'opened_at' => 'getOpenedAt', - 'ended_at' => 'getEndedAt', - 'closed_at' => 'getClosedAt', - 'employee_ids' => 'getEmployeeIds', - 'opening_employee_id' => 'getOpeningEmployeeId', - 'ending_employee_id' => 'getEndingEmployeeId', - 'closing_employee_id' => 'getClosingEmployeeId', - 'description' => 'getDescription', - 'starting_cash_money' => 'getStartingCashMoney', - 'cash_payment_money' => 'getCashPaymentMoney', - 'cash_refunds_money' => 'getCashRefundsMoney', - 'cash_paid_in_money' => 'getCashPaidInMoney', - 'cash_paid_out_money' => 'getCashPaidOutMoney', - 'expected_cash_money' => 'getExpectedCashMoney', - 'closed_cash_money' => 'getClosedCashMoney', - 'device' => 'getDevice', - 'events' => 'getEvents' - ); - - /** - * $id The shift's unique ID. - * @var string - */ - protected $id; - /** - * $event_type The shift's current state. See [V1CashDrawerShiftEventType](#type-v1cashdrawershifteventtype) for possible values - * @var string - */ - protected $event_type; - /** - * $opened_at The time when the shift began, in ISO 8601 format. - * @var string - */ - protected $opened_at; - /** - * $ended_at The time when the shift ended, in ISO 8601 format. - * @var string - */ - protected $ended_at; - /** - * $closed_at The time when the shift was closed, in ISO 8601 format. - * @var string - */ - protected $closed_at; - /** - * $employee_ids The IDs of all employees that were logged into Square Register at some point during the cash drawer shift. - * @var string[] - */ - protected $employee_ids; - /** - * $opening_employee_id The ID of the employee that started the cash drawer shift. - * @var string - */ - protected $opening_employee_id; - /** - * $ending_employee_id The ID of the employee that ended the cash drawer shift. - * @var string - */ - protected $ending_employee_id; - /** - * $closing_employee_id The ID of the employee that closed the cash drawer shift by auditing the cash drawer's contents. - * @var string - */ - protected $closing_employee_id; - /** - * $description A description of the cash drawer shift. - * @var string - */ - protected $description; - /** - * $starting_cash_money The amount of money in the cash drawer at the start of the shift. - * @var \SquareConnect\Model\V1Money - */ - protected $starting_cash_money; - /** - * $cash_payment_money The amount of money added to the cash drawer from cash payments. - * @var \SquareConnect\Model\V1Money - */ - protected $cash_payment_money; - /** - * $cash_refunds_money The amount of money removed from the cash drawer from cash refunds. This value is always negative or zero. - * @var \SquareConnect\Model\V1Money - */ - protected $cash_refunds_money; - /** - * $cash_paid_in_money The amount of money added to the cash drawer for reasons other than cash payments. - * @var \SquareConnect\Model\V1Money - */ - protected $cash_paid_in_money; - /** - * $cash_paid_out_money The amount of money removed from the cash drawer for reasons other than cash refunds. - * @var \SquareConnect\Model\V1Money - */ - protected $cash_paid_out_money; - /** - * $expected_cash_money The amount of money that should be in the cash drawer at the end of the shift, based on the shift's other money amounts. - * @var \SquareConnect\Model\V1Money - */ - protected $expected_cash_money; - /** - * $closed_cash_money The amount of money found in the cash drawer at the end of the shift by an auditing employee. - * @var \SquareConnect\Model\V1Money - */ - protected $closed_cash_money; - /** - * $device The device running Square Register that was connected to the cash drawer. - * @var \SquareConnect\Model\Device - */ - protected $device; - /** - * $events All of the events (payments, refunds, and so on) that involved the cash drawer during the shift. - * @var \SquareConnect\Model\V1CashDrawerEvent[] - */ - protected $events; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["event_type"])) { - $this->event_type = $data["event_type"]; - } else { - $this->event_type = null; - } - if (isset($data["opened_at"])) { - $this->opened_at = $data["opened_at"]; - } else { - $this->opened_at = null; - } - if (isset($data["ended_at"])) { - $this->ended_at = $data["ended_at"]; - } else { - $this->ended_at = null; - } - if (isset($data["closed_at"])) { - $this->closed_at = $data["closed_at"]; - } else { - $this->closed_at = null; - } - if (isset($data["employee_ids"])) { - $this->employee_ids = $data["employee_ids"]; - } else { - $this->employee_ids = null; - } - if (isset($data["opening_employee_id"])) { - $this->opening_employee_id = $data["opening_employee_id"]; - } else { - $this->opening_employee_id = null; - } - if (isset($data["ending_employee_id"])) { - $this->ending_employee_id = $data["ending_employee_id"]; - } else { - $this->ending_employee_id = null; - } - if (isset($data["closing_employee_id"])) { - $this->closing_employee_id = $data["closing_employee_id"]; - } else { - $this->closing_employee_id = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["starting_cash_money"])) { - $this->starting_cash_money = $data["starting_cash_money"]; - } else { - $this->starting_cash_money = null; - } - if (isset($data["cash_payment_money"])) { - $this->cash_payment_money = $data["cash_payment_money"]; - } else { - $this->cash_payment_money = null; - } - if (isset($data["cash_refunds_money"])) { - $this->cash_refunds_money = $data["cash_refunds_money"]; - } else { - $this->cash_refunds_money = null; - } - if (isset($data["cash_paid_in_money"])) { - $this->cash_paid_in_money = $data["cash_paid_in_money"]; - } else { - $this->cash_paid_in_money = null; - } - if (isset($data["cash_paid_out_money"])) { - $this->cash_paid_out_money = $data["cash_paid_out_money"]; - } else { - $this->cash_paid_out_money = null; - } - if (isset($data["expected_cash_money"])) { - $this->expected_cash_money = $data["expected_cash_money"]; - } else { - $this->expected_cash_money = null; - } - if (isset($data["closed_cash_money"])) { - $this->closed_cash_money = $data["closed_cash_money"]; - } else { - $this->closed_cash_money = null; - } - if (isset($data["device"])) { - $this->device = $data["device"]; - } else { - $this->device = null; - } - if (isset($data["events"])) { - $this->events = $data["events"]; - } else { - $this->events = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The shift's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets event_type - * @return string - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Sets event_type - * @param string $event_type The shift's current state. See [V1CashDrawerShiftEventType](#type-v1cashdrawershifteventtype) for possible values - * @return $this - */ - public function setEventType($event_type) - { - $this->event_type = $event_type; - return $this; - } - /** - * Gets opened_at - * @return string - */ - public function getOpenedAt() - { - return $this->opened_at; - } - - /** - * Sets opened_at - * @param string $opened_at The time when the shift began, in ISO 8601 format. - * @return $this - */ - public function setOpenedAt($opened_at) - { - $this->opened_at = $opened_at; - return $this; - } - /** - * Gets ended_at - * @return string - */ - public function getEndedAt() - { - return $this->ended_at; - } - - /** - * Sets ended_at - * @param string $ended_at The time when the shift ended, in ISO 8601 format. - * @return $this - */ - public function setEndedAt($ended_at) - { - $this->ended_at = $ended_at; - return $this; - } - /** - * Gets closed_at - * @return string - */ - public function getClosedAt() - { - return $this->closed_at; - } - - /** - * Sets closed_at - * @param string $closed_at The time when the shift was closed, in ISO 8601 format. - * @return $this - */ - public function setClosedAt($closed_at) - { - $this->closed_at = $closed_at; - return $this; - } - /** - * Gets employee_ids - * @return string[] - */ - public function getEmployeeIds() - { - return $this->employee_ids; - } - - /** - * Sets employee_ids - * @param string[] $employee_ids The IDs of all employees that were logged into Square Register at some point during the cash drawer shift. - * @return $this - */ - public function setEmployeeIds($employee_ids) - { - $this->employee_ids = $employee_ids; - return $this; - } - /** - * Gets opening_employee_id - * @return string - */ - public function getOpeningEmployeeId() - { - return $this->opening_employee_id; - } - - /** - * Sets opening_employee_id - * @param string $opening_employee_id The ID of the employee that started the cash drawer shift. - * @return $this - */ - public function setOpeningEmployeeId($opening_employee_id) - { - $this->opening_employee_id = $opening_employee_id; - return $this; - } - /** - * Gets ending_employee_id - * @return string - */ - public function getEndingEmployeeId() - { - return $this->ending_employee_id; - } - - /** - * Sets ending_employee_id - * @param string $ending_employee_id The ID of the employee that ended the cash drawer shift. - * @return $this - */ - public function setEndingEmployeeId($ending_employee_id) - { - $this->ending_employee_id = $ending_employee_id; - return $this; - } - /** - * Gets closing_employee_id - * @return string - */ - public function getClosingEmployeeId() - { - return $this->closing_employee_id; - } - - /** - * Sets closing_employee_id - * @param string $closing_employee_id The ID of the employee that closed the cash drawer shift by auditing the cash drawer's contents. - * @return $this - */ - public function setClosingEmployeeId($closing_employee_id) - { - $this->closing_employee_id = $closing_employee_id; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description A description of the cash drawer shift. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets starting_cash_money - * @return \SquareConnect\Model\V1Money - */ - public function getStartingCashMoney() - { - return $this->starting_cash_money; - } - - /** - * Sets starting_cash_money - * @param \SquareConnect\Model\V1Money $starting_cash_money The amount of money in the cash drawer at the start of the shift. - * @return $this - */ - public function setStartingCashMoney($starting_cash_money) - { - $this->starting_cash_money = $starting_cash_money; - return $this; - } - /** - * Gets cash_payment_money - * @return \SquareConnect\Model\V1Money - */ - public function getCashPaymentMoney() - { - return $this->cash_payment_money; - } - - /** - * Sets cash_payment_money - * @param \SquareConnect\Model\V1Money $cash_payment_money The amount of money added to the cash drawer from cash payments. - * @return $this - */ - public function setCashPaymentMoney($cash_payment_money) - { - $this->cash_payment_money = $cash_payment_money; - return $this; - } - /** - * Gets cash_refunds_money - * @return \SquareConnect\Model\V1Money - */ - public function getCashRefundsMoney() - { - return $this->cash_refunds_money; - } - - /** - * Sets cash_refunds_money - * @param \SquareConnect\Model\V1Money $cash_refunds_money The amount of money removed from the cash drawer from cash refunds. This value is always negative or zero. - * @return $this - */ - public function setCashRefundsMoney($cash_refunds_money) - { - $this->cash_refunds_money = $cash_refunds_money; - return $this; - } - /** - * Gets cash_paid_in_money - * @return \SquareConnect\Model\V1Money - */ - public function getCashPaidInMoney() - { - return $this->cash_paid_in_money; - } - - /** - * Sets cash_paid_in_money - * @param \SquareConnect\Model\V1Money $cash_paid_in_money The amount of money added to the cash drawer for reasons other than cash payments. - * @return $this - */ - public function setCashPaidInMoney($cash_paid_in_money) - { - $this->cash_paid_in_money = $cash_paid_in_money; - return $this; - } - /** - * Gets cash_paid_out_money - * @return \SquareConnect\Model\V1Money - */ - public function getCashPaidOutMoney() - { - return $this->cash_paid_out_money; - } - - /** - * Sets cash_paid_out_money - * @param \SquareConnect\Model\V1Money $cash_paid_out_money The amount of money removed from the cash drawer for reasons other than cash refunds. - * @return $this - */ - public function setCashPaidOutMoney($cash_paid_out_money) - { - $this->cash_paid_out_money = $cash_paid_out_money; - return $this; - } - /** - * Gets expected_cash_money - * @return \SquareConnect\Model\V1Money - */ - public function getExpectedCashMoney() - { - return $this->expected_cash_money; - } - - /** - * Sets expected_cash_money - * @param \SquareConnect\Model\V1Money $expected_cash_money The amount of money that should be in the cash drawer at the end of the shift, based on the shift's other money amounts. - * @return $this - */ - public function setExpectedCashMoney($expected_cash_money) - { - $this->expected_cash_money = $expected_cash_money; - return $this; - } - /** - * Gets closed_cash_money - * @return \SquareConnect\Model\V1Money - */ - public function getClosedCashMoney() - { - return $this->closed_cash_money; - } - - /** - * Sets closed_cash_money - * @param \SquareConnect\Model\V1Money $closed_cash_money The amount of money found in the cash drawer at the end of the shift by an auditing employee. - * @return $this - */ - public function setClosedCashMoney($closed_cash_money) - { - $this->closed_cash_money = $closed_cash_money; - return $this; - } - /** - * Gets device - * @return \SquareConnect\Model\Device - */ - public function getDevice() - { - return $this->device; - } - - /** - * Sets device - * @param \SquareConnect\Model\Device $device The device running Square Register that was connected to the cash drawer. - * @return $this - */ - public function setDevice($device) - { - $this->device = $device; - return $this; - } - /** - * Gets events - * @return \SquareConnect\Model\V1CashDrawerEvent[] - */ - public function getEvents() - { - return $this->events; - } - - /** - * Sets events - * @param \SquareConnect\Model\V1CashDrawerEvent[] $events All of the events (payments, refunds, and so on) that involved the cash drawer during the shift. - * @return $this - */ - public function setEvents($events) - { - $this->events = $events; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerShiftEventType.php b/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerShiftEventType.php deleted file mode 100644 index 461ca90962..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CashDrawerShiftEventType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Category.php b/includes/classes/vendors/square/connect/lib/Model/V1Category.php deleted file mode 100644 index 08c337fc04..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Category.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'name' => 'string', - 'v2_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'v2_id' => 'v2_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'v2_id' => 'setV2Id' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'v2_id' => 'getV2Id' - ); - - /** - * $id The category's unique ID. - * @var string - */ - protected $id; - /** - * $name The category's name. - * @var string - */ - protected $name; - /** - * $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @var string - */ - protected $v2_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["v2_id"])) { - $this->v2_id = $data["v2_id"]; - } else { - $this->v2_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The category's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The category's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets v2_id - * @return string - */ - public function getV2Id() - { - return $this->v2_id; - } - - /** - * Sets v2_id - * @param string $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @return $this - */ - public function setV2Id($v2_id) - { - $this->v2_id = $v2_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateCategoryRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateCategoryRequest.php deleted file mode 100644 index 4aa8285d31..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateCategoryRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Category' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Category - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Category - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Category $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateDiscountRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateDiscountRequest.php deleted file mode 100644 index 486badb86a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateDiscountRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Discount' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Discount - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Discount - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Discount $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateEmployeeRoleRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateEmployeeRoleRequest.php deleted file mode 100644 index 5865324b69..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateEmployeeRoleRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1EmployeeRole' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'employee_role' => 'employee_role' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'employee_role' => 'setEmployeeRole' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'employee_role' => 'getEmployeeRole' - ); - - /** - * $employee_role An EmployeeRole object with a name and permissions, and an optional owner flag. - * @var \SquareConnect\Model\V1EmployeeRole - */ - protected $employee_role; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["employee_role"])) { - $this->employee_role = $data["employee_role"]; - } else { - $this->employee_role = null; - } - } - } - /** - * Gets employee_role - * @return \SquareConnect\Model\V1EmployeeRole - */ - public function getEmployeeRole() - { - return $this->employee_role; - } - - /** - * Sets employee_role - * @param \SquareConnect\Model\V1EmployeeRole $employee_role An EmployeeRole object with a name and permissions, and an optional owner flag. - * @return $this - */ - public function setEmployeeRole($employee_role) - { - $this->employee_role = $employee_role; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateFeeRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateFeeRequest.php deleted file mode 100644 index 7da5eb9f26..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateFeeRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Fee' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Fee - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Fee - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Fee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateItemRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateItemRequest.php deleted file mode 100644 index cb41569cb4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateItemRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Item' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Item - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Item - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Item $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateModifierListRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateModifierListRequest.php deleted file mode 100644 index 5840ef33b0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateModifierListRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1ModifierList' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1ModifierList - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1ModifierList - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1ModifierList $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateModifierOptionRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateModifierOptionRequest.php deleted file mode 100644 index b79bd33450..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateModifierOptionRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1ModifierOption' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1ModifierOption - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1ModifierOption - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1ModifierOption $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreatePageRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreatePageRequest.php deleted file mode 100644 index d83b9f1d97..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreatePageRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Page' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Page - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Page - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Page $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateRefundRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateRefundRequest.php deleted file mode 100644 index 6b3c778386..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateRefundRequest.php +++ /dev/null @@ -1,278 +0,0 @@ - 'string', - 'type' => 'string', - 'reason' => 'string', - 'refunded_money' => '\SquareConnect\Model\V1Money', - 'request_idempotence_key' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'payment_id' => 'payment_id', - 'type' => 'type', - 'reason' => 'reason', - 'refunded_money' => 'refunded_money', - 'request_idempotence_key' => 'request_idempotence_key' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'payment_id' => 'setPaymentId', - 'type' => 'setType', - 'reason' => 'setReason', - 'refunded_money' => 'setRefundedMoney', - 'request_idempotence_key' => 'setRequestIdempotenceKey' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'payment_id' => 'getPaymentId', - 'type' => 'getType', - 'reason' => 'getReason', - 'refunded_money' => 'getRefundedMoney', - 'request_idempotence_key' => 'getRequestIdempotenceKey' - ); - - /** - * $payment_id The ID of the payment to refund. If you are creating a `PARTIAL` refund for a split tender payment, instead provide the id of the particular tender you want to refund. - * @var string - */ - protected $payment_id; - /** - * $type TThe type of refund (FULL or PARTIAL). See [V1CreateRefundRequestType](#type-v1createrefundrequesttype) for possible values - * @var string - */ - protected $type; - /** - * $reason The reason for the refund. - * @var string - */ - protected $reason; - /** - * $refunded_money The amount of money to refund. Required only for PARTIAL refunds. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_money; - /** - * $request_idempotence_key An optional key to ensure idempotence if you issue the same PARTIAL refund request more than once. - * @var string - */ - protected $request_idempotence_key; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["payment_id"])) { - $this->payment_id = $data["payment_id"]; - } else { - $this->payment_id = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["reason"])) { - $this->reason = $data["reason"]; - } else { - $this->reason = null; - } - if (isset($data["refunded_money"])) { - $this->refunded_money = $data["refunded_money"]; - } else { - $this->refunded_money = null; - } - if (isset($data["request_idempotence_key"])) { - $this->request_idempotence_key = $data["request_idempotence_key"]; - } else { - $this->request_idempotence_key = null; - } - } - } - /** - * Gets payment_id - * @return string - */ - public function getPaymentId() - { - return $this->payment_id; - } - - /** - * Sets payment_id - * @param string $payment_id The ID of the payment to refund. If you are creating a `PARTIAL` refund for a split tender payment, instead provide the id of the particular tender you want to refund. - * @return $this - */ - public function setPaymentId($payment_id) - { - $this->payment_id = $payment_id; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type TThe type of refund (FULL or PARTIAL). See [V1CreateRefundRequestType](#type-v1createrefundrequesttype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets reason - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Sets reason - * @param string $reason The reason for the refund. - * @return $this - */ - public function setReason($reason) - { - $this->reason = $reason; - return $this; - } - /** - * Gets refunded_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedMoney() - { - return $this->refunded_money; - } - - /** - * Sets refunded_money - * @param \SquareConnect\Model\V1Money $refunded_money The amount of money to refund. Required only for PARTIAL refunds. - * @return $this - */ - public function setRefundedMoney($refunded_money) - { - $this->refunded_money = $refunded_money; - return $this; - } - /** - * Gets request_idempotence_key - * @return string - */ - public function getRequestIdempotenceKey() - { - return $this->request_idempotence_key; - } - - /** - * Sets request_idempotence_key - * @param string $request_idempotence_key An optional key to ensure idempotence if you issue the same PARTIAL refund request more than once. - * @return $this - */ - public function setRequestIdempotenceKey($request_idempotence_key) - { - $this->request_idempotence_key = $request_idempotence_key; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateRefundRequestType.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateRefundRequestType.php deleted file mode 100644 index d61ce4c16d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateRefundRequestType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1CreateVariationRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1CreateVariationRequest.php deleted file mode 100644 index 0da3345388..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1CreateVariationRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Variation' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Variation - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Variation - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Variation $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteCategoryRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteCategoryRequest.php deleted file mode 100644 index 9a2d6029f2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteCategoryRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteDiscountRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteDiscountRequest.php deleted file mode 100644 index 8dcc7a1ea7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteDiscountRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteFeeRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteFeeRequest.php deleted file mode 100644 index 49eb9d7ab9..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteFeeRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteItemRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteItemRequest.php deleted file mode 100644 index badaad3ab0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteItemRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteModifierListRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteModifierListRequest.php deleted file mode 100644 index 4a08f3099f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteModifierListRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteModifierOptionRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteModifierOptionRequest.php deleted file mode 100644 index fcaba58196..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteModifierOptionRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeletePageCellRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeletePageCellRequest.php deleted file mode 100644 index e6560ac106..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeletePageCellRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'column' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'row' => 'row', - 'column' => 'column' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'row' => 'setRow', - 'column' => 'setColumn' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'row' => 'getRow', - 'column' => 'getColumn' - ); - - /** - * $row The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row. - * @var string - */ - protected $row; - /** - * $column The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column. - * @var string - */ - protected $column; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["row"])) { - $this->row = $data["row"]; - } else { - $this->row = null; - } - if (isset($data["column"])) { - $this->column = $data["column"]; - } else { - $this->column = null; - } - } - } - /** - * Gets row - * @return string - */ - public function getRow() - { - return $this->row; - } - - /** - * Sets row - * @param string $row The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row. - * @return $this - */ - public function setRow($row) - { - $this->row = $row; - return $this; - } - /** - * Gets column - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Sets column - * @param string $column The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column. - * @return $this - */ - public function setColumn($column) - { - $this->column = $column; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeletePageRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeletePageRequest.php deleted file mode 100644 index 99034d9987..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeletePageRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteTimecardRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteTimecardRequest.php deleted file mode 100644 index 107033f422..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteTimecardRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteTimecardResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteTimecardResponse.php deleted file mode 100644 index 76f3a432f0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteTimecardResponse.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DeleteVariationRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1DeleteVariationRequest.php deleted file mode 100644 index 9808263b88..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DeleteVariationRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Discount.php b/includes/classes/vendors/square/connect/lib/Model/V1Discount.php deleted file mode 100644 index af26b7a161..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Discount.php +++ /dev/null @@ -1,378 +0,0 @@ - 'string', - 'name' => 'string', - 'rate' => 'string', - 'amount_money' => '\SquareConnect\Model\V1Money', - 'discount_type' => 'string', - 'pin_required' => 'bool', - 'color' => 'string', - 'v2_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'rate' => 'rate', - 'amount_money' => 'amount_money', - 'discount_type' => 'discount_type', - 'pin_required' => 'pin_required', - 'color' => 'color', - 'v2_id' => 'v2_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'rate' => 'setRate', - 'amount_money' => 'setAmountMoney', - 'discount_type' => 'setDiscountType', - 'pin_required' => 'setPinRequired', - 'color' => 'setColor', - 'v2_id' => 'setV2Id' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'rate' => 'getRate', - 'amount_money' => 'getAmountMoney', - 'discount_type' => 'getDiscountType', - 'pin_required' => 'getPinRequired', - 'color' => 'getColor', - 'v2_id' => 'getV2Id' - ); - - /** - * $id The discount's unique ID. - * @var string - */ - protected $id; - /** - * $name The discount's name. - * @var string - */ - protected $name; - /** - * $rate The rate of the discount, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%. This rate is 0 if discount_type is VARIABLE_PERCENTAGE. - * @var string - */ - protected $rate; - /** - * $amount_money The amount of the discount. This amount is 0 if discount_type is VARIABLE_AMOUNT. This field is not included for rate-based discounts. - * @var \SquareConnect\Model\V1Money - */ - protected $amount_money; - /** - * $discount_type Indicates whether the discount is a FIXED value or entered at the time of sale. See [V1DiscountDiscountType](#type-v1discountdiscounttype) for possible values - * @var string - */ - protected $discount_type; - /** - * $pin_required Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment. - * @var bool - */ - protected $pin_required; - /** - * $color The color of the discount's display label in Square Point of Sale, if not the default color. The default color is 9da2a6. See [V1DiscountColor](#type-v1discountcolor) for possible values - * @var string - */ - protected $color; - /** - * $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @var string - */ - protected $v2_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["rate"])) { - $this->rate = $data["rate"]; - } else { - $this->rate = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["discount_type"])) { - $this->discount_type = $data["discount_type"]; - } else { - $this->discount_type = null; - } - if (isset($data["pin_required"])) { - $this->pin_required = $data["pin_required"]; - } else { - $this->pin_required = null; - } - if (isset($data["color"])) { - $this->color = $data["color"]; - } else { - $this->color = null; - } - if (isset($data["v2_id"])) { - $this->v2_id = $data["v2_id"]; - } else { - $this->v2_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The discount's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The discount's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets rate - * @return string - */ - public function getRate() - { - return $this->rate; - } - - /** - * Sets rate - * @param string $rate The rate of the discount, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%. This rate is 0 if discount_type is VARIABLE_PERCENTAGE. - * @return $this - */ - public function setRate($rate) - { - $this->rate = $rate; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\V1Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\V1Money $amount_money The amount of the discount. This amount is 0 if discount_type is VARIABLE_AMOUNT. This field is not included for rate-based discounts. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets discount_type - * @return string - */ - public function getDiscountType() - { - return $this->discount_type; - } - - /** - * Sets discount_type - * @param string $discount_type Indicates whether the discount is a FIXED value or entered at the time of sale. See [V1DiscountDiscountType](#type-v1discountdiscounttype) for possible values - * @return $this - */ - public function setDiscountType($discount_type) - { - $this->discount_type = $discount_type; - return $this; - } - /** - * Gets pin_required - * @return bool - */ - public function getPinRequired() - { - return $this->pin_required; - } - - /** - * Sets pin_required - * @param bool $pin_required Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment. - * @return $this - */ - public function setPinRequired($pin_required) - { - $this->pin_required = $pin_required; - return $this; - } - /** - * Gets color - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Sets color - * @param string $color The color of the discount's display label in Square Point of Sale, if not the default color. The default color is 9da2a6. See [V1DiscountColor](#type-v1discountcolor) for possible values - * @return $this - */ - public function setColor($color) - { - $this->color = $color; - return $this; - } - /** - * Gets v2_id - * @return string - */ - public function getV2Id() - { - return $this->v2_id; - } - - /** - * Sets v2_id - * @param string $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @return $this - */ - public function setV2Id($v2_id) - { - $this->v2_id = $v2_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DiscountColor.php b/includes/classes/vendors/square/connect/lib/Model/V1DiscountColor.php deleted file mode 100644 index 5eb2c2b89f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DiscountColor.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1DiscountDiscountType.php b/includes/classes/vendors/square/connect/lib/Model/V1DiscountDiscountType.php deleted file mode 100644 index 5e04e761fb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1DiscountDiscountType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Employee.php b/includes/classes/vendors/square/connect/lib/Model/V1Employee.php deleted file mode 100644 index 7ba79ed2ce..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Employee.php +++ /dev/null @@ -1,443 +0,0 @@ - 'string', - 'first_name' => 'string', - 'last_name' => 'string', - 'role_ids' => 'string[]', - 'authorized_location_ids' => 'string[]', - 'email' => 'string', - 'status' => 'string', - 'external_id' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'first_name' => 'first_name', - 'last_name' => 'last_name', - 'role_ids' => 'role_ids', - 'authorized_location_ids' => 'authorized_location_ids', - 'email' => 'email', - 'status' => 'status', - 'external_id' => 'external_id', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'first_name' => 'setFirstName', - 'last_name' => 'setLastName', - 'role_ids' => 'setRoleIds', - 'authorized_location_ids' => 'setAuthorizedLocationIds', - 'email' => 'setEmail', - 'status' => 'setStatus', - 'external_id' => 'setExternalId', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'first_name' => 'getFirstName', - 'last_name' => 'getLastName', - 'role_ids' => 'getRoleIds', - 'authorized_location_ids' => 'getAuthorizedLocationIds', - 'email' => 'getEmail', - 'status' => 'getStatus', - 'external_id' => 'getExternalId', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id The employee's unique ID. - * @var string - */ - protected $id; - /** - * $first_name The employee's first name. - * @var string - */ - protected $first_name; - /** - * $last_name The employee's last name. - * @var string - */ - protected $last_name; - /** - * $role_ids The ids of the employee's associated roles. Currently, you can specify only one or zero roles per employee. - * @var string[] - */ - protected $role_ids; - /** - * $authorized_location_ids The IDs of the locations the employee is allowed to clock in at. - * @var string[] - */ - protected $authorized_location_ids; - /** - * $email The employee's email address. - * @var string - */ - protected $email; - /** - * $status CWhether the employee is ACTIVE or INACTIVE. Inactive employees cannot sign in to Square Register.Merchants update this field from the Square Dashboard. See [V1EmployeeStatus](#type-v1employeestatus) for possible values - * @var string - */ - protected $status; - /** - * $external_id An ID the merchant can set to associate the employee with an entity in another system. - * @var string - */ - protected $external_id; - /** - * $created_at The time when the employee entity was created, in ISO 8601 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The time when the employee entity was most recently updated, in ISO 8601 format. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["first_name"])) { - $this->first_name = $data["first_name"]; - } else { - $this->first_name = null; - } - if (isset($data["last_name"])) { - $this->last_name = $data["last_name"]; - } else { - $this->last_name = null; - } - if (isset($data["role_ids"])) { - $this->role_ids = $data["role_ids"]; - } else { - $this->role_ids = null; - } - if (isset($data["authorized_location_ids"])) { - $this->authorized_location_ids = $data["authorized_location_ids"]; - } else { - $this->authorized_location_ids = null; - } - if (isset($data["email"])) { - $this->email = $data["email"]; - } else { - $this->email = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["external_id"])) { - $this->external_id = $data["external_id"]; - } else { - $this->external_id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The employee's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets first_name - * @return string - */ - public function getFirstName() - { - return $this->first_name; - } - - /** - * Sets first_name - * @param string $first_name The employee's first name. - * @return $this - */ - public function setFirstName($first_name) - { - $this->first_name = $first_name; - return $this; - } - /** - * Gets last_name - * @return string - */ - public function getLastName() - { - return $this->last_name; - } - - /** - * Sets last_name - * @param string $last_name The employee's last name. - * @return $this - */ - public function setLastName($last_name) - { - $this->last_name = $last_name; - return $this; - } - /** - * Gets role_ids - * @return string[] - */ - public function getRoleIds() - { - return $this->role_ids; - } - - /** - * Sets role_ids - * @param string[] $role_ids The ids of the employee's associated roles. Currently, you can specify only one or zero roles per employee. - * @return $this - */ - public function setRoleIds($role_ids) - { - $this->role_ids = $role_ids; - return $this; - } - /** - * Gets authorized_location_ids - * @return string[] - */ - public function getAuthorizedLocationIds() - { - return $this->authorized_location_ids; - } - - /** - * Sets authorized_location_ids - * @param string[] $authorized_location_ids The IDs of the locations the employee is allowed to clock in at. - * @return $this - */ - public function setAuthorizedLocationIds($authorized_location_ids) - { - $this->authorized_location_ids = $authorized_location_ids; - return $this; - } - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Sets email - * @param string $email The employee's email address. - * @return $this - */ - public function setEmail($email) - { - $this->email = $email; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status CWhether the employee is ACTIVE or INACTIVE. Inactive employees cannot sign in to Square Register.Merchants update this field from the Square Dashboard. See [V1EmployeeStatus](#type-v1employeestatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets external_id - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Sets external_id - * @param string $external_id An ID the merchant can set to associate the employee with an entity in another system. - * @return $this - */ - public function setExternalId($external_id) - { - $this->external_id = $external_id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the employee entity was created, in ISO 8601 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The time when the employee entity was most recently updated, in ISO 8601 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1EmployeeRole.php b/includes/classes/vendors/square/connect/lib/Model/V1EmployeeRole.php deleted file mode 100644 index 3af300f561..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1EmployeeRole.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'name' => 'string', - 'permissions' => 'string[]', - 'is_owner' => 'bool', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'permissions' => 'permissions', - 'is_owner' => 'is_owner', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'permissions' => 'setPermissions', - 'is_owner' => 'setIsOwner', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'permissions' => 'getPermissions', - 'is_owner' => 'getIsOwner', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id The role's unique ID, Can only be set by Square. - * @var string - */ - protected $id; - /** - * $name The role's merchant-defined name. - * @var string - */ - protected $name; - /** - * $permissions The role's permissions. See [V1EmployeeRolePermissions](#type-v1employeerolepermissions) for possible values - * @var string[] - */ - protected $permissions; - /** - * $is_owner If true, employees with this role have all permissions, regardless of the values indicated in permissions. - * @var bool - */ - protected $is_owner; - /** - * $created_at The time when the employee entity was created, in ISO 8601 format. Is set by Square when the Role is created. - * @var string - */ - protected $created_at; - /** - * $updated_at The time when the employee entity was most recently updated, in ISO 8601 format. Is set by Square when the Role updated. - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["permissions"])) { - $this->permissions = $data["permissions"]; - } else { - $this->permissions = null; - } - if (isset($data["is_owner"])) { - $this->is_owner = $data["is_owner"]; - } else { - $this->is_owner = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The role's unique ID, Can only be set by Square. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The role's merchant-defined name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets permissions - * @return string[] - */ - public function getPermissions() - { - return $this->permissions; - } - - /** - * Sets permissions - * @param string[] $permissions The role's permissions. See [V1EmployeeRolePermissions](#type-v1employeerolepermissions) for possible values - * @return $this - */ - public function setPermissions($permissions) - { - $this->permissions = $permissions; - return $this; - } - /** - * Gets is_owner - * @return bool - */ - public function getIsOwner() - { - return $this->is_owner; - } - - /** - * Sets is_owner - * @param bool $is_owner If true, employees with this role have all permissions, regardless of the values indicated in permissions. - * @return $this - */ - public function setIsOwner($is_owner) - { - $this->is_owner = $is_owner; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the employee entity was created, in ISO 8601 format. Is set by Square when the Role is created. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The time when the employee entity was most recently updated, in ISO 8601 format. Is set by Square when the Role updated. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1EmployeeRolePermissions.php b/includes/classes/vendors/square/connect/lib/Model/V1EmployeeRolePermissions.php deleted file mode 100644 index 14fea40d1a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1EmployeeRolePermissions.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1EmployeeStatus.php b/includes/classes/vendors/square/connect/lib/Model/V1EmployeeStatus.php deleted file mode 100644 index 99180ebd7c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1EmployeeStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Fee.php b/includes/classes/vendors/square/connect/lib/Model/V1Fee.php deleted file mode 100644 index ac43adfc50..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Fee.php +++ /dev/null @@ -1,444 +0,0 @@ - 'string', - 'name' => 'string', - 'rate' => 'string', - 'calculation_phase' => 'string', - 'adjustment_type' => 'string', - 'applies_to_custom_amounts' => 'bool', - 'enabled' => 'bool', - 'inclusion_type' => 'string', - 'type' => 'string', - 'v2_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'rate' => 'rate', - 'calculation_phase' => 'calculation_phase', - 'adjustment_type' => 'adjustment_type', - 'applies_to_custom_amounts' => 'applies_to_custom_amounts', - 'enabled' => 'enabled', - 'inclusion_type' => 'inclusion_type', - 'type' => 'type', - 'v2_id' => 'v2_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'rate' => 'setRate', - 'calculation_phase' => 'setCalculationPhase', - 'adjustment_type' => 'setAdjustmentType', - 'applies_to_custom_amounts' => 'setAppliesToCustomAmounts', - 'enabled' => 'setEnabled', - 'inclusion_type' => 'setInclusionType', - 'type' => 'setType', - 'v2_id' => 'setV2Id' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'rate' => 'getRate', - 'calculation_phase' => 'getCalculationPhase', - 'adjustment_type' => 'getAdjustmentType', - 'applies_to_custom_amounts' => 'getAppliesToCustomAmounts', - 'enabled' => 'getEnabled', - 'inclusion_type' => 'getInclusionType', - 'type' => 'getType', - 'v2_id' => 'getV2Id' - ); - - /** - * $id The fee's unique ID. - * @var string - */ - protected $id; - /** - * $name The fee's name. - * @var string - */ - protected $name; - /** - * $rate The rate of the fee, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%. - * @var string - */ - protected $rate; - /** - * $calculation_phase Forthcoming See [V1FeeCalculationPhase](#type-v1feecalculationphase) for possible values - * @var string - */ - protected $calculation_phase; - /** - * $adjustment_type The type of adjustment the fee applies to a payment. Currently, this value is TAX for all fees. See [V1FeeAdjustmentType](#type-v1feeadjustmenttype) for possible values - * @var string - */ - protected $adjustment_type; - /** - * $applies_to_custom_amounts If true, the fee applies to custom amounts entered into Square Point of Sale that are not associated with a particular item. - * @var bool - */ - protected $applies_to_custom_amounts; - /** - * $enabled If true, the fee is applied to all appropriate items. If false, the fee is not applied at all. - * @var bool - */ - protected $enabled; - /** - * $inclusion_type Whether the fee is ADDITIVE or INCLUSIVE. See [V1FeeInclusionType](#type-v1feeinclusiontype) for possible values - * @var string - */ - protected $inclusion_type; - /** - * $type In countries with multiple classifications for sales taxes, indicates which classification the fee falls under. Currently relevant only to Canadian merchants. See [V1FeeType](#type-v1feetype) for possible values - * @var string - */ - protected $type; - /** - * $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @var string - */ - protected $v2_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["rate"])) { - $this->rate = $data["rate"]; - } else { - $this->rate = null; - } - if (isset($data["calculation_phase"])) { - $this->calculation_phase = $data["calculation_phase"]; - } else { - $this->calculation_phase = null; - } - if (isset($data["adjustment_type"])) { - $this->adjustment_type = $data["adjustment_type"]; - } else { - $this->adjustment_type = null; - } - if (isset($data["applies_to_custom_amounts"])) { - $this->applies_to_custom_amounts = $data["applies_to_custom_amounts"]; - } else { - $this->applies_to_custom_amounts = null; - } - if (isset($data["enabled"])) { - $this->enabled = $data["enabled"]; - } else { - $this->enabled = null; - } - if (isset($data["inclusion_type"])) { - $this->inclusion_type = $data["inclusion_type"]; - } else { - $this->inclusion_type = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["v2_id"])) { - $this->v2_id = $data["v2_id"]; - } else { - $this->v2_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The fee's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The fee's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets rate - * @return string - */ - public function getRate() - { - return $this->rate; - } - - /** - * Sets rate - * @param string $rate The rate of the fee, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%. - * @return $this - */ - public function setRate($rate) - { - $this->rate = $rate; - return $this; - } - /** - * Gets calculation_phase - * @return string - */ - public function getCalculationPhase() - { - return $this->calculation_phase; - } - - /** - * Sets calculation_phase - * @param string $calculation_phase Forthcoming See [V1FeeCalculationPhase](#type-v1feecalculationphase) for possible values - * @return $this - */ - public function setCalculationPhase($calculation_phase) - { - $this->calculation_phase = $calculation_phase; - return $this; - } - /** - * Gets adjustment_type - * @return string - */ - public function getAdjustmentType() - { - return $this->adjustment_type; - } - - /** - * Sets adjustment_type - * @param string $adjustment_type The type of adjustment the fee applies to a payment. Currently, this value is TAX for all fees. See [V1FeeAdjustmentType](#type-v1feeadjustmenttype) for possible values - * @return $this - */ - public function setAdjustmentType($adjustment_type) - { - $this->adjustment_type = $adjustment_type; - return $this; - } - /** - * Gets applies_to_custom_amounts - * @return bool - */ - public function getAppliesToCustomAmounts() - { - return $this->applies_to_custom_amounts; - } - - /** - * Sets applies_to_custom_amounts - * @param bool $applies_to_custom_amounts If true, the fee applies to custom amounts entered into Square Point of Sale that are not associated with a particular item. - * @return $this - */ - public function setAppliesToCustomAmounts($applies_to_custom_amounts) - { - $this->applies_to_custom_amounts = $applies_to_custom_amounts; - return $this; - } - /** - * Gets enabled - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Sets enabled - * @param bool $enabled If true, the fee is applied to all appropriate items. If false, the fee is not applied at all. - * @return $this - */ - public function setEnabled($enabled) - { - $this->enabled = $enabled; - return $this; - } - /** - * Gets inclusion_type - * @return string - */ - public function getInclusionType() - { - return $this->inclusion_type; - } - - /** - * Sets inclusion_type - * @param string $inclusion_type Whether the fee is ADDITIVE or INCLUSIVE. See [V1FeeInclusionType](#type-v1feeinclusiontype) for possible values - * @return $this - */ - public function setInclusionType($inclusion_type) - { - $this->inclusion_type = $inclusion_type; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type In countries with multiple classifications for sales taxes, indicates which classification the fee falls under. Currently relevant only to Canadian merchants. See [V1FeeType](#type-v1feetype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets v2_id - * @return string - */ - public function getV2Id() - { - return $this->v2_id; - } - - /** - * Sets v2_id - * @param string $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @return $this - */ - public function setV2Id($v2_id) - { - $this->v2_id = $v2_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1FeeAdjustmentType.php b/includes/classes/vendors/square/connect/lib/Model/V1FeeAdjustmentType.php deleted file mode 100644 index 852ef6aad5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1FeeAdjustmentType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1FeeCalculationPhase.php b/includes/classes/vendors/square/connect/lib/Model/V1FeeCalculationPhase.php deleted file mode 100644 index 58dcd9c262..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1FeeCalculationPhase.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1FeeInclusionType.php b/includes/classes/vendors/square/connect/lib/Model/V1FeeInclusionType.php deleted file mode 100644 index 455c924b4b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1FeeInclusionType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1FeeType.php b/includes/classes/vendors/square/connect/lib/Model/V1FeeType.php deleted file mode 100644 index b15d24de2c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1FeeType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1InventoryEntry.php b/includes/classes/vendors/square/connect/lib/Model/V1InventoryEntry.php deleted file mode 100644 index c00f797370..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1InventoryEntry.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'quantity_on_hand' => 'float' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'variation_id' => 'variation_id', - 'quantity_on_hand' => 'quantity_on_hand' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'variation_id' => 'setVariationId', - 'quantity_on_hand' => 'setQuantityOnHand' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'variation_id' => 'getVariationId', - 'quantity_on_hand' => 'getQuantityOnHand' - ); - - /** - * $variation_id The variation that the entry corresponds to. - * @var string - */ - protected $variation_id; - /** - * $quantity_on_hand The current available quantity of the item variation. - * @var float - */ - protected $quantity_on_hand; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["variation_id"])) { - $this->variation_id = $data["variation_id"]; - } else { - $this->variation_id = null; - } - if (isset($data["quantity_on_hand"])) { - $this->quantity_on_hand = $data["quantity_on_hand"]; - } else { - $this->quantity_on_hand = null; - } - } - } - /** - * Gets variation_id - * @return string - */ - public function getVariationId() - { - return $this->variation_id; - } - - /** - * Sets variation_id - * @param string $variation_id The variation that the entry corresponds to. - * @return $this - */ - public function setVariationId($variation_id) - { - $this->variation_id = $variation_id; - return $this; - } - /** - * Gets quantity_on_hand - * @return float - */ - public function getQuantityOnHand() - { - return $this->quantity_on_hand; - } - - /** - * Sets quantity_on_hand - * @param float $quantity_on_hand The current available quantity of the item variation. - * @return $this - */ - public function setQuantityOnHand($quantity_on_hand) - { - $this->quantity_on_hand = $quantity_on_hand; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Item.php b/includes/classes/vendors/square/connect/lib/Model/V1Item.php deleted file mode 100644 index 5e923fef9b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Item.php +++ /dev/null @@ -1,675 +0,0 @@ - 'string', - 'name' => 'string', - 'description' => 'string', - 'type' => 'string', - 'color' => 'string', - 'abbreviation' => 'string', - 'visibility' => 'string', - 'available_online' => 'bool', - 'master_image' => '\SquareConnect\Model\V1ItemImage', - 'category' => '\SquareConnect\Model\V1Category', - 'variations' => '\SquareConnect\Model\V1Variation[]', - 'modifier_lists' => '\SquareConnect\Model\V1ModifierList[]', - 'fees' => '\SquareConnect\Model\V1Fee[]', - 'taxable' => 'bool', - 'category_id' => 'string', - 'available_for_pickup' => 'bool', - 'v2_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'description' => 'description', - 'type' => 'type', - 'color' => 'color', - 'abbreviation' => 'abbreviation', - 'visibility' => 'visibility', - 'available_online' => 'available_online', - 'master_image' => 'master_image', - 'category' => 'category', - 'variations' => 'variations', - 'modifier_lists' => 'modifier_lists', - 'fees' => 'fees', - 'taxable' => 'taxable', - 'category_id' => 'category_id', - 'available_for_pickup' => 'available_for_pickup', - 'v2_id' => 'v2_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'description' => 'setDescription', - 'type' => 'setType', - 'color' => 'setColor', - 'abbreviation' => 'setAbbreviation', - 'visibility' => 'setVisibility', - 'available_online' => 'setAvailableOnline', - 'master_image' => 'setMasterImage', - 'category' => 'setCategory', - 'variations' => 'setVariations', - 'modifier_lists' => 'setModifierLists', - 'fees' => 'setFees', - 'taxable' => 'setTaxable', - 'category_id' => 'setCategoryId', - 'available_for_pickup' => 'setAvailableForPickup', - 'v2_id' => 'setV2Id' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'description' => 'getDescription', - 'type' => 'getType', - 'color' => 'getColor', - 'abbreviation' => 'getAbbreviation', - 'visibility' => 'getVisibility', - 'available_online' => 'getAvailableOnline', - 'master_image' => 'getMasterImage', - 'category' => 'getCategory', - 'variations' => 'getVariations', - 'modifier_lists' => 'getModifierLists', - 'fees' => 'getFees', - 'taxable' => 'getTaxable', - 'category_id' => 'getCategoryId', - 'available_for_pickup' => 'getAvailableForPickup', - 'v2_id' => 'getV2Id' - ); - - /** - * $id The item's ID. Must be unique among all entity IDs ever provided on behalf of the merchant. You can never reuse an ID. This value can include alphanumeric characters, dashes (-), and underscores (_). - * @var string - */ - protected $id; - /** - * $name The item's name. - * @var string - */ - protected $name; - /** - * $description The item's description. - * @var string - */ - protected $description; - /** - * $type The item's type. This value is NORMAL for almost all items. See [V1ItemType](#type-v1itemtype) for possible values - * @var string - */ - protected $type; - /** - * $color The color of the discount's display label in Square Point of Sale, if not the default color. The default color is 9da2a6. See [V1ItemColor](#type-v1itemcolor) for possible values - * @var string - */ - protected $color; - /** - * $abbreviation The text of the item's display label in Square Point of Sale. Only up to the first five characters of the string are used. - * @var string - */ - protected $abbreviation; - /** - * $visibility Indicates whether the item is viewable from the merchant's online store (PUBLIC) or PRIVATE. See [V1ItemVisibility](#type-v1itemvisibility) for possible values - * @var string - */ - protected $visibility; - /** - * $available_online If true, the item can be added to shipping orders from the merchant's online store. - * @var bool - */ - protected $available_online; - /** - * $master_image The item's master image, if any. - * @var \SquareConnect\Model\V1ItemImage - */ - protected $master_image; - /** - * $category The category the item belongs to, if any. - * @var \SquareConnect\Model\V1Category - */ - protected $category; - /** - * $variations The item's variations. You must specify at least one variation. - * @var \SquareConnect\Model\V1Variation[] - */ - protected $variations; - /** - * $modifier_lists The modifier lists that apply to the item, if any. - * @var \SquareConnect\Model\V1ModifierList[] - */ - protected $modifier_lists; - /** - * $fees The fees that apply to the item, if any. - * @var \SquareConnect\Model\V1Fee[] - */ - protected $fees; - /** - * $taxable Deprecated. This field is not used. - * @var bool - */ - protected $taxable; - /** - * $category_id The ID of the item's category, if any. - * @var string - */ - protected $category_id; - /** - * $available_for_pickup If true, the item can be added to pickup orders from the merchant's online store. Default value: false - * @var bool - */ - protected $available_for_pickup; - /** - * $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @var string - */ - protected $v2_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["description"])) { - $this->description = $data["description"]; - } else { - $this->description = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["color"])) { - $this->color = $data["color"]; - } else { - $this->color = null; - } - if (isset($data["abbreviation"])) { - $this->abbreviation = $data["abbreviation"]; - } else { - $this->abbreviation = null; - } - if (isset($data["visibility"])) { - $this->visibility = $data["visibility"]; - } else { - $this->visibility = null; - } - if (isset($data["available_online"])) { - $this->available_online = $data["available_online"]; - } else { - $this->available_online = null; - } - if (isset($data["master_image"])) { - $this->master_image = $data["master_image"]; - } else { - $this->master_image = null; - } - if (isset($data["category"])) { - $this->category = $data["category"]; - } else { - $this->category = null; - } - if (isset($data["variations"])) { - $this->variations = $data["variations"]; - } else { - $this->variations = null; - } - if (isset($data["modifier_lists"])) { - $this->modifier_lists = $data["modifier_lists"]; - } else { - $this->modifier_lists = null; - } - if (isset($data["fees"])) { - $this->fees = $data["fees"]; - } else { - $this->fees = null; - } - if (isset($data["taxable"])) { - $this->taxable = $data["taxable"]; - } else { - $this->taxable = null; - } - if (isset($data["category_id"])) { - $this->category_id = $data["category_id"]; - } else { - $this->category_id = null; - } - if (isset($data["available_for_pickup"])) { - $this->available_for_pickup = $data["available_for_pickup"]; - } else { - $this->available_for_pickup = null; - } - if (isset($data["v2_id"])) { - $this->v2_id = $data["v2_id"]; - } else { - $this->v2_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The item's ID. Must be unique among all entity IDs ever provided on behalf of the merchant. You can never reuse an ID. This value can include alphanumeric characters, dashes (-), and underscores (_). - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The item's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets description - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Sets description - * @param string $description The item's description. - * @return $this - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The item's type. This value is NORMAL for almost all items. See [V1ItemType](#type-v1itemtype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets color - * @return string - */ - public function getColor() - { - return $this->color; - } - - /** - * Sets color - * @param string $color The color of the discount's display label in Square Point of Sale, if not the default color. The default color is 9da2a6. See [V1ItemColor](#type-v1itemcolor) for possible values - * @return $this - */ - public function setColor($color) - { - $this->color = $color; - return $this; - } - /** - * Gets abbreviation - * @return string - */ - public function getAbbreviation() - { - return $this->abbreviation; - } - - /** - * Sets abbreviation - * @param string $abbreviation The text of the item's display label in Square Point of Sale. Only up to the first five characters of the string are used. - * @return $this - */ - public function setAbbreviation($abbreviation) - { - $this->abbreviation = $abbreviation; - return $this; - } - /** - * Gets visibility - * @return string - */ - public function getVisibility() - { - return $this->visibility; - } - - /** - * Sets visibility - * @param string $visibility Indicates whether the item is viewable from the merchant's online store (PUBLIC) or PRIVATE. See [V1ItemVisibility](#type-v1itemvisibility) for possible values - * @return $this - */ - public function setVisibility($visibility) - { - $this->visibility = $visibility; - return $this; - } - /** - * Gets available_online - * @return bool - */ - public function getAvailableOnline() - { - return $this->available_online; - } - - /** - * Sets available_online - * @param bool $available_online If true, the item can be added to shipping orders from the merchant's online store. - * @return $this - */ - public function setAvailableOnline($available_online) - { - $this->available_online = $available_online; - return $this; - } - /** - * Gets master_image - * @return \SquareConnect\Model\V1ItemImage - */ - public function getMasterImage() - { - return $this->master_image; - } - - /** - * Sets master_image - * @param \SquareConnect\Model\V1ItemImage $master_image The item's master image, if any. - * @return $this - */ - public function setMasterImage($master_image) - { - $this->master_image = $master_image; - return $this; - } - /** - * Gets category - * @return \SquareConnect\Model\V1Category - */ - public function getCategory() - { - return $this->category; - } - - /** - * Sets category - * @param \SquareConnect\Model\V1Category $category The category the item belongs to, if any. - * @return $this - */ - public function setCategory($category) - { - $this->category = $category; - return $this; - } - /** - * Gets variations - * @return \SquareConnect\Model\V1Variation[] - */ - public function getVariations() - { - return $this->variations; - } - - /** - * Sets variations - * @param \SquareConnect\Model\V1Variation[] $variations The item's variations. You must specify at least one variation. - * @return $this - */ - public function setVariations($variations) - { - $this->variations = $variations; - return $this; - } - /** - * Gets modifier_lists - * @return \SquareConnect\Model\V1ModifierList[] - */ - public function getModifierLists() - { - return $this->modifier_lists; - } - - /** - * Sets modifier_lists - * @param \SquareConnect\Model\V1ModifierList[] $modifier_lists The modifier lists that apply to the item, if any. - * @return $this - */ - public function setModifierLists($modifier_lists) - { - $this->modifier_lists = $modifier_lists; - return $this; - } - /** - * Gets fees - * @return \SquareConnect\Model\V1Fee[] - */ - public function getFees() - { - return $this->fees; - } - - /** - * Sets fees - * @param \SquareConnect\Model\V1Fee[] $fees The fees that apply to the item, if any. - * @return $this - */ - public function setFees($fees) - { - $this->fees = $fees; - return $this; - } - /** - * Gets taxable - * @return bool - */ - public function getTaxable() - { - return $this->taxable; - } - - /** - * Sets taxable - * @param bool $taxable Deprecated. This field is not used. - * @return $this - */ - public function setTaxable($taxable) - { - $this->taxable = $taxable; - return $this; - } - /** - * Gets category_id - * @return string - */ - public function getCategoryId() - { - return $this->category_id; - } - - /** - * Sets category_id - * @param string $category_id The ID of the item's category, if any. - * @return $this - */ - public function setCategoryId($category_id) - { - $this->category_id = $category_id; - return $this; - } - /** - * Gets available_for_pickup - * @return bool - */ - public function getAvailableForPickup() - { - return $this->available_for_pickup; - } - - /** - * Sets available_for_pickup - * @param bool $available_for_pickup If true, the item can be added to pickup orders from the merchant's online store. Default value: false - * @return $this - */ - public function setAvailableForPickup($available_for_pickup) - { - $this->available_for_pickup = $available_for_pickup; - return $this; - } - /** - * Gets v2_id - * @return string - */ - public function getV2Id() - { - return $this->v2_id; - } - - /** - * Sets v2_id - * @param string $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @return $this - */ - public function setV2Id($v2_id) - { - $this->v2_id = $v2_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ItemColor.php b/includes/classes/vendors/square/connect/lib/Model/V1ItemColor.php deleted file mode 100644 index 232cbf1c20..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ItemColor.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ItemImage.php b/includes/classes/vendors/square/connect/lib/Model/V1ItemImage.php deleted file mode 100644 index 5a215ac9d4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ItemImage.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'url' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'url' => 'url' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'url' => 'setUrl' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'url' => 'getUrl' - ); - - /** - * $id The image's unique ID. - * @var string - */ - protected $id; - /** - * $url The image's publicly accessible URL. - * @var string - */ - protected $url; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["url"])) { - $this->url = $data["url"]; - } else { - $this->url = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The image's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets url - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Sets url - * @param string $url The image's publicly accessible URL. - * @return $this - */ - public function setUrl($url) - { - $this->url = $url; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ItemType.php b/includes/classes/vendors/square/connect/lib/Model/V1ItemType.php deleted file mode 100644 index ec2d96013d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ItemType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ItemVisibility.php b/includes/classes/vendors/square/connect/lib/Model/V1ItemVisibility.php deleted file mode 100644 index 6619c0b9bb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ItemVisibility.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListBankAccountsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListBankAccountsRequest.php deleted file mode 100644 index 1517f28f14..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListBankAccountsRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListBankAccountsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListBankAccountsResponse.php deleted file mode 100644 index 85ab6aac76..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListBankAccountsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1BankAccount[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1BankAccount[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1BankAccount[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1BankAccount[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListCashDrawerShiftsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListCashDrawerShiftsRequest.php deleted file mode 100644 index d0e9ab2757..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListCashDrawerShiftsRequest.php +++ /dev/null @@ -1,213 +0,0 @@ - 'string', - 'begin_time' => 'string', - 'end_time' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'begin_time' => 'begin_time', - 'end_time' => 'end_time' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime' - ); - - /** - * $order The order in which cash drawer shifts are listed in the response, based on their created_at field. Default value: ASC See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - /** - * $begin_time The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time minus 90 days. - * @var string - */ - protected $begin_time; - /** - * $end_time The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time. - * @var string - */ - protected $end_time; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - } - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order The order in which cash drawer shifts are listed in the response, based on their created_at field. Default value: ASC See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time minus 90 days. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListCashDrawerShiftsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListCashDrawerShiftsResponse.php deleted file mode 100644 index c0dcc2621f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListCashDrawerShiftsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1CashDrawerShift[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1CashDrawerShift[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1CashDrawerShift[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1CashDrawerShift[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListCategoriesRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListCategoriesRequest.php deleted file mode 100644 index b2c70e060d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListCategoriesRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListCategoriesResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListCategoriesResponse.php deleted file mode 100644 index 7668b55150..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListCategoriesResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Category[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Category[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Category[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Category[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListDiscountsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListDiscountsRequest.php deleted file mode 100644 index 1ecc161f2c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListDiscountsRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListDiscountsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListDiscountsResponse.php deleted file mode 100644 index de5c19562d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListDiscountsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Discount[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Discount[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Discount[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Discount[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeeRolesRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeeRolesRequest.php deleted file mode 100644 index 66d6318ece..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeeRolesRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'limit' => 'int', - 'batch_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'limit' => 'limit', - 'batch_token' => 'batch_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'limit' => 'setLimit', - 'batch_token' => 'setBatchToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'limit' => 'getLimit', - 'batch_token' => 'getBatchToken' - ); - - /** - * $order The order in which employees are listed in the response, based on their created_at field.Default value: ASC See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - /** - * $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. - * @var int - */ - protected $limit; - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - } - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order The order in which employees are listed in the response, based on their created_at field.Default value: ASC See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeeRolesResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeeRolesResponse.php deleted file mode 100644 index 9f55936651..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeeRolesResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1EmployeeRole[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1EmployeeRole[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1EmployeeRole[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1EmployeeRole[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesRequest.php deleted file mode 100644 index 7d65f07302..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesRequest.php +++ /dev/null @@ -1,410 +0,0 @@ - 'string', - 'begin_updated_at' => 'string', - 'end_updated_at' => 'string', - 'begin_created_at' => 'string', - 'end_created_at' => 'string', - 'status' => 'string', - 'external_id' => 'string', - 'limit' => 'int', - 'batch_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'begin_updated_at' => 'begin_updated_at', - 'end_updated_at' => 'end_updated_at', - 'begin_created_at' => 'begin_created_at', - 'end_created_at' => 'end_created_at', - 'status' => 'status', - 'external_id' => 'external_id', - 'limit' => 'limit', - 'batch_token' => 'batch_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'begin_updated_at' => 'setBeginUpdatedAt', - 'end_updated_at' => 'setEndUpdatedAt', - 'begin_created_at' => 'setBeginCreatedAt', - 'end_created_at' => 'setEndCreatedAt', - 'status' => 'setStatus', - 'external_id' => 'setExternalId', - 'limit' => 'setLimit', - 'batch_token' => 'setBatchToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'begin_updated_at' => 'getBeginUpdatedAt', - 'end_updated_at' => 'getEndUpdatedAt', - 'begin_created_at' => 'getBeginCreatedAt', - 'end_created_at' => 'getEndCreatedAt', - 'status' => 'getStatus', - 'external_id' => 'getExternalId', - 'limit' => 'getLimit', - 'batch_token' => 'getBatchToken' - ); - - /** - * $order The order in which employees are listed in the response, based on their created_at field. Default value: ASC See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - /** - * $begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format - * @var string - */ - protected $begin_updated_at; - /** - * $end_updated_at If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $end_updated_at; - /** - * $begin_created_at If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $begin_created_at; - /** - * $end_created_at If filtering results by their created_at field, the end of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $end_created_at; - /** - * $status If provided, the endpoint returns only employee entities with the specified status (ACTIVE or INACTIVE). See [V1ListEmployeesRequestStatus](#type-v1listemployeesrequeststatus) for possible values - * @var string - */ - protected $status; - /** - * $external_id If provided, the endpoint returns only employee entities with the specified external_id. - * @var string - */ - protected $external_id; - /** - * $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. - * @var int - */ - protected $limit; - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["begin_updated_at"])) { - $this->begin_updated_at = $data["begin_updated_at"]; - } else { - $this->begin_updated_at = null; - } - if (isset($data["end_updated_at"])) { - $this->end_updated_at = $data["end_updated_at"]; - } else { - $this->end_updated_at = null; - } - if (isset($data["begin_created_at"])) { - $this->begin_created_at = $data["begin_created_at"]; - } else { - $this->begin_created_at = null; - } - if (isset($data["end_created_at"])) { - $this->end_created_at = $data["end_created_at"]; - } else { - $this->end_created_at = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["external_id"])) { - $this->external_id = $data["external_id"]; - } else { - $this->external_id = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - } - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order The order in which employees are listed in the response, based on their created_at field. Default value: ASC See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets begin_updated_at - * @return string - */ - public function getBeginUpdatedAt() - { - return $this->begin_updated_at; - } - - /** - * Sets begin_updated_at - * @param string $begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format - * @return $this - */ - public function setBeginUpdatedAt($begin_updated_at) - { - $this->begin_updated_at = $begin_updated_at; - return $this; - } - /** - * Gets end_updated_at - * @return string - */ - public function getEndUpdatedAt() - { - return $this->end_updated_at; - } - - /** - * Sets end_updated_at - * @param string $end_updated_at If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setEndUpdatedAt($end_updated_at) - { - $this->end_updated_at = $end_updated_at; - return $this; - } - /** - * Gets begin_created_at - * @return string - */ - public function getBeginCreatedAt() - { - return $this->begin_created_at; - } - - /** - * Sets begin_created_at - * @param string $begin_created_at If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setBeginCreatedAt($begin_created_at) - { - $this->begin_created_at = $begin_created_at; - return $this; - } - /** - * Gets end_created_at - * @return string - */ - public function getEndCreatedAt() - { - return $this->end_created_at; - } - - /** - * Sets end_created_at - * @param string $end_created_at If filtering results by their created_at field, the end of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setEndCreatedAt($end_created_at) - { - $this->end_created_at = $end_created_at; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status If provided, the endpoint returns only employee entities with the specified status (ACTIVE or INACTIVE). See [V1ListEmployeesRequestStatus](#type-v1listemployeesrequeststatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets external_id - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Sets external_id - * @param string $external_id If provided, the endpoint returns only employee entities with the specified external_id. - * @return $this - */ - public function setExternalId($external_id) - { - $this->external_id = $external_id; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesRequestStatus.php b/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesRequestStatus.php deleted file mode 100644 index b889a17efe..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesRequestStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesResponse.php deleted file mode 100644 index dacde09e5f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListEmployeesResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1Employee[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Employee[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Employee[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Employee[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListFeesRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListFeesRequest.php deleted file mode 100644 index 1ef6fdcc2b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListFeesRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListFeesResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListFeesResponse.php deleted file mode 100644 index b1d0690f06..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListFeesResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Fee[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Fee[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Fee[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Fee[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListInventoryRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListInventoryRequest.php deleted file mode 100644 index 5ffab3c718..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListInventoryRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'int', - 'batch_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'limit' => 'limit', - 'batch_token' => 'batch_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'limit' => 'setLimit', - 'batch_token' => 'setBatchToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'limit' => 'getLimit', - 'batch_token' => 'getBatchToken' - ); - - /** - * $limit The maximum number of inventory entries to return in a single response. This value cannot exceed 1000. - * @var int - */ - protected $limit; - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - } - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum number of inventory entries to return in a single response. This value cannot exceed 1000. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListInventoryResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListInventoryResponse.php deleted file mode 100644 index 207823e674..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListInventoryResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1InventoryEntry[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1InventoryEntry[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1InventoryEntry[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1InventoryEntry[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListItemsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListItemsRequest.php deleted file mode 100644 index 9285a5cae0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListItemsRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'batch_token' => 'batch_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'batch_token' => 'setBatchToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'batch_token' => 'getBatchToken' - ); - - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - } - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListItemsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListItemsResponse.php deleted file mode 100644 index 21b8145186..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListItemsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Item[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Item[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Item[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Item[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListLocationsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListLocationsRequest.php deleted file mode 100644 index 7746356acb..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListLocationsRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListLocationsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListLocationsResponse.php deleted file mode 100644 index bedd5e1ea6..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListLocationsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Merchant[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Merchant[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Merchant[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Merchant[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListModifierListsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListModifierListsRequest.php deleted file mode 100644 index b4077aeb93..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListModifierListsRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListModifierListsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListModifierListsResponse.php deleted file mode 100644 index 0234e7ed18..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListModifierListsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1ModifierList[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1ModifierList[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1ModifierList[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1ModifierList[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListOrdersRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListOrdersRequest.php deleted file mode 100644 index e8d8ac0ab4..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListOrdersRequest.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'limit' => 'int', - 'batch_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'limit' => 'limit', - 'batch_token' => 'batch_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'limit' => 'setLimit', - 'batch_token' => 'setBatchToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'limit' => 'getLimit', - 'batch_token' => 'getBatchToken' - ); - - /** - * $order TThe order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - /** - * $limit The maximum number of payments to return in a single response. This value cannot exceed 200. - * @var int - */ - protected $limit; - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - } - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order TThe order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum number of payments to return in a single response. This value cannot exceed 200. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListOrdersResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListOrdersResponse.php deleted file mode 100644 index e75176fb8c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListOrdersResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1Order[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Order[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Order[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Order[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListPagesRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListPagesRequest.php deleted file mode 100644 index cc695144b5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListPagesRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListPagesResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListPagesResponse.php deleted file mode 100644 index 2a98ce344c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListPagesResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Page[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Page[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Page[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Page[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListPaymentsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListPaymentsRequest.php deleted file mode 100644 index 6b09d9c179..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListPaymentsRequest.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'begin_time' => 'string', - 'end_time' => 'string', - 'limit' => 'int', - 'batch_token' => 'string', - 'include_partial' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'limit' => 'limit', - 'batch_token' => 'batch_token', - 'include_partial' => 'include_partial' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'limit' => 'setLimit', - 'batch_token' => 'setBatchToken', - 'include_partial' => 'setIncludePartial' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'limit' => 'getLimit', - 'batch_token' => 'getBatchToken', - 'include_partial' => 'getIncludePartial' - ); - - /** - * $order The order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - /** - * $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. - * @var string - */ - protected $end_time; - /** - * $limit The maximum number of payments to return in a single response. This value cannot exceed 200. - * @var int - */ - protected $limit; - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - /** - * $include_partial Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed. - * @var bool - */ - protected $include_partial; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - if (isset($data["include_partial"])) { - $this->include_partial = $data["include_partial"]; - } else { - $this->include_partial = null; - } - } - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order The order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum number of payments to return in a single response. This value cannot exceed 200. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Gets include_partial - * @return bool - */ - public function getIncludePartial() - { - return $this->include_partial; - } - - /** - * Sets include_partial - * @param bool $include_partial Indicates whether or not to include partial payments in the response. Partial payments will have the tenders collected so far, but the itemizations will be empty until the payment is completed. - * @return $this - */ - public function setIncludePartial($include_partial) - { - $this->include_partial = $include_partial; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListPaymentsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListPaymentsResponse.php deleted file mode 100644 index 15696203fc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListPaymentsResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1Payment[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Payment[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Payment[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Payment[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListRefundsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListRefundsRequest.php deleted file mode 100644 index 5cc2b74edf..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListRefundsRequest.php +++ /dev/null @@ -1,278 +0,0 @@ - 'string', - 'begin_time' => 'string', - 'end_time' => 'string', - 'limit' => 'int', - 'batch_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'limit' => 'limit', - 'batch_token' => 'batch_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'limit' => 'setLimit', - 'batch_token' => 'setBatchToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'limit' => 'getLimit', - 'batch_token' => 'getBatchToken' - ); - - /** - * $order TThe order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - /** - * $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. - * @var string - */ - protected $end_time; - /** - * $limit The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods. - * @var int - */ - protected $limit; - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - } - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order TThe order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The approximate number of refunds to return in a single response. Default: 100. Max: 200. Response may contain more results than the prescribed limit when refunds are made simultaneously to multiple tenders in a payment or when refunds are generated in an exchange to account for the value of returned goods. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListRefundsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListRefundsResponse.php deleted file mode 100644 index 2eca46711a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListRefundsResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1Refund[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Refund[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Refund[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Refund[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsRequest.php deleted file mode 100644 index 409182960d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsRequest.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'begin_time' => 'string', - 'end_time' => 'string', - 'limit' => 'int', - 'status' => 'string', - 'batch_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'begin_time' => 'begin_time', - 'end_time' => 'end_time', - 'limit' => 'limit', - 'status' => 'status', - 'batch_token' => 'batch_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'begin_time' => 'setBeginTime', - 'end_time' => 'setEndTime', - 'limit' => 'setLimit', - 'status' => 'setStatus', - 'batch_token' => 'setBatchToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'begin_time' => 'getBeginTime', - 'end_time' => 'getEndTime', - 'limit' => 'getLimit', - 'status' => 'getStatus', - 'batch_token' => 'getBatchToken' - ); - - /** - * $order The order in which settlements are listed in the response. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - /** - * $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. - * @var string - */ - protected $begin_time; - /** - * $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. - * @var string - */ - protected $end_time; - /** - * $limit The maximum number of settlements to return in a single response. This value cannot exceed 200. - * @var int - */ - protected $limit; - /** - * $status Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED). See [V1ListSettlementsRequestStatus](#type-v1listsettlementsrequeststatus) for possible values - * @var string - */ - protected $status; - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["begin_time"])) { - $this->begin_time = $data["begin_time"]; - } else { - $this->begin_time = null; - } - if (isset($data["end_time"])) { - $this->end_time = $data["end_time"]; - } else { - $this->end_time = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - } - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order The order in which settlements are listed in the response. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets begin_time - * @return string - */ - public function getBeginTime() - { - return $this->begin_time; - } - - /** - * Sets begin_time - * @param string $begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. - * @return $this - */ - public function setBeginTime($begin_time) - { - $this->begin_time = $begin_time; - return $this; - } - /** - * Gets end_time - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Sets end_time - * @param string $end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. - * @return $this - */ - public function setEndTime($end_time) - { - $this->end_time = $end_time; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum number of settlements to return in a single response. This value cannot exceed 200. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED). See [V1ListSettlementsRequestStatus](#type-v1listsettlementsrequeststatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsRequestStatus.php b/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsRequestStatus.php deleted file mode 100644 index 5a9a36cef7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsRequestStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsResponse.php deleted file mode 100644 index fdd2663ccc..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListSettlementsResponse.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1Settlement[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Settlement[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Settlement[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Settlement[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardEventsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardEventsRequest.php deleted file mode 100644 index 2d82bcde62..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardEventsRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardEventsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardEventsResponse.php deleted file mode 100644 index 8bebae3bdf..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardEventsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1TimecardEvent[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1TimecardEvent[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1TimecardEvent[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1TimecardEvent[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardsRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardsRequest.php deleted file mode 100644 index ae3d47350f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardsRequest.php +++ /dev/null @@ -1,477 +0,0 @@ - 'string', - 'employee_id' => 'string', - 'begin_clockin_time' => 'string', - 'end_clockin_time' => 'string', - 'begin_clockout_time' => 'string', - 'end_clockout_time' => 'string', - 'begin_updated_at' => 'string', - 'end_updated_at' => 'string', - 'deleted' => 'bool', - 'limit' => 'int', - 'batch_token' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'order' => 'order', - 'employee_id' => 'employee_id', - 'begin_clockin_time' => 'begin_clockin_time', - 'end_clockin_time' => 'end_clockin_time', - 'begin_clockout_time' => 'begin_clockout_time', - 'end_clockout_time' => 'end_clockout_time', - 'begin_updated_at' => 'begin_updated_at', - 'end_updated_at' => 'end_updated_at', - 'deleted' => 'deleted', - 'limit' => 'limit', - 'batch_token' => 'batch_token' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'order' => 'setOrder', - 'employee_id' => 'setEmployeeId', - 'begin_clockin_time' => 'setBeginClockinTime', - 'end_clockin_time' => 'setEndClockinTime', - 'begin_clockout_time' => 'setBeginClockoutTime', - 'end_clockout_time' => 'setEndClockoutTime', - 'begin_updated_at' => 'setBeginUpdatedAt', - 'end_updated_at' => 'setEndUpdatedAt', - 'deleted' => 'setDeleted', - 'limit' => 'setLimit', - 'batch_token' => 'setBatchToken' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'order' => 'getOrder', - 'employee_id' => 'getEmployeeId', - 'begin_clockin_time' => 'getBeginClockinTime', - 'end_clockin_time' => 'getEndClockinTime', - 'begin_clockout_time' => 'getBeginClockoutTime', - 'end_clockout_time' => 'getEndClockoutTime', - 'begin_updated_at' => 'getBeginUpdatedAt', - 'end_updated_at' => 'getEndUpdatedAt', - 'deleted' => 'getDeleted', - 'limit' => 'getLimit', - 'batch_token' => 'getBatchToken' - ); - - /** - * $order The order in which timecards are listed in the response, based on their created_at field. See [SortOrder](#type-sortorder) for possible values - * @var string - */ - protected $order; - /** - * $employee_id If provided, the endpoint returns only timecards for the employee with the specified ID. - * @var string - */ - protected $employee_id; - /** - * $begin_clockin_time If filtering results by their clockin_time field, the beginning of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $begin_clockin_time; - /** - * $end_clockin_time If filtering results by their clockin_time field, the end of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $end_clockin_time; - /** - * $begin_clockout_time If filtering results by their clockout_time field, the beginning of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $begin_clockout_time; - /** - * $end_clockout_time If filtering results by their clockout_time field, the end of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $end_clockout_time; - /** - * $begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $begin_updated_at; - /** - * $end_updated_at If filtering results by their updated_at field, the end of the requested reporting period, in ISO 8601 format. - * @var string - */ - protected $end_updated_at; - /** - * $deleted If true, only deleted timecards are returned. If false, only valid timecards are returned.If you don't provide this parameter, both valid and deleted timecards are returned. - * @var bool - */ - protected $deleted; - /** - * $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. - * @var int - */ - protected $limit; - /** - * $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @var string - */ - protected $batch_token; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["order"])) { - $this->order = $data["order"]; - } else { - $this->order = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["begin_clockin_time"])) { - $this->begin_clockin_time = $data["begin_clockin_time"]; - } else { - $this->begin_clockin_time = null; - } - if (isset($data["end_clockin_time"])) { - $this->end_clockin_time = $data["end_clockin_time"]; - } else { - $this->end_clockin_time = null; - } - if (isset($data["begin_clockout_time"])) { - $this->begin_clockout_time = $data["begin_clockout_time"]; - } else { - $this->begin_clockout_time = null; - } - if (isset($data["end_clockout_time"])) { - $this->end_clockout_time = $data["end_clockout_time"]; - } else { - $this->end_clockout_time = null; - } - if (isset($data["begin_updated_at"])) { - $this->begin_updated_at = $data["begin_updated_at"]; - } else { - $this->begin_updated_at = null; - } - if (isset($data["end_updated_at"])) { - $this->end_updated_at = $data["end_updated_at"]; - } else { - $this->end_updated_at = null; - } - if (isset($data["deleted"])) { - $this->deleted = $data["deleted"]; - } else { - $this->deleted = null; - } - if (isset($data["limit"])) { - $this->limit = $data["limit"]; - } else { - $this->limit = null; - } - if (isset($data["batch_token"])) { - $this->batch_token = $data["batch_token"]; - } else { - $this->batch_token = null; - } - } - } - /** - * Gets order - * @return string - */ - public function getOrder() - { - return $this->order; - } - - /** - * Sets order - * @param string $order The order in which timecards are listed in the response, based on their created_at field. See [SortOrder](#type-sortorder) for possible values - * @return $this - */ - public function setOrder($order) - { - $this->order = $order; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id If provided, the endpoint returns only timecards for the employee with the specified ID. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets begin_clockin_time - * @return string - */ - public function getBeginClockinTime() - { - return $this->begin_clockin_time; - } - - /** - * Sets begin_clockin_time - * @param string $begin_clockin_time If filtering results by their clockin_time field, the beginning of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setBeginClockinTime($begin_clockin_time) - { - $this->begin_clockin_time = $begin_clockin_time; - return $this; - } - /** - * Gets end_clockin_time - * @return string - */ - public function getEndClockinTime() - { - return $this->end_clockin_time; - } - - /** - * Sets end_clockin_time - * @param string $end_clockin_time If filtering results by their clockin_time field, the end of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setEndClockinTime($end_clockin_time) - { - $this->end_clockin_time = $end_clockin_time; - return $this; - } - /** - * Gets begin_clockout_time - * @return string - */ - public function getBeginClockoutTime() - { - return $this->begin_clockout_time; - } - - /** - * Sets begin_clockout_time - * @param string $begin_clockout_time If filtering results by their clockout_time field, the beginning of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setBeginClockoutTime($begin_clockout_time) - { - $this->begin_clockout_time = $begin_clockout_time; - return $this; - } - /** - * Gets end_clockout_time - * @return string - */ - public function getEndClockoutTime() - { - return $this->end_clockout_time; - } - - /** - * Sets end_clockout_time - * @param string $end_clockout_time If filtering results by their clockout_time field, the end of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setEndClockoutTime($end_clockout_time) - { - $this->end_clockout_time = $end_clockout_time; - return $this; - } - /** - * Gets begin_updated_at - * @return string - */ - public function getBeginUpdatedAt() - { - return $this->begin_updated_at; - } - - /** - * Sets begin_updated_at - * @param string $begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setBeginUpdatedAt($begin_updated_at) - { - $this->begin_updated_at = $begin_updated_at; - return $this; - } - /** - * Gets end_updated_at - * @return string - */ - public function getEndUpdatedAt() - { - return $this->end_updated_at; - } - - /** - * Sets end_updated_at - * @param string $end_updated_at If filtering results by their updated_at field, the end of the requested reporting period, in ISO 8601 format. - * @return $this - */ - public function setEndUpdatedAt($end_updated_at) - { - $this->end_updated_at = $end_updated_at; - return $this; - } - /** - * Gets deleted - * @return bool - */ - public function getDeleted() - { - return $this->deleted; - } - - /** - * Sets deleted - * @param bool $deleted If true, only deleted timecards are returned. If false, only valid timecards are returned.If you don't provide this parameter, both valid and deleted timecards are returned. - * @return $this - */ - public function setDeleted($deleted) - { - $this->deleted = $deleted; - return $this; - } - /** - * Gets limit - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Sets limit - * @param int $limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. - * @return $this - */ - public function setLimit($limit) - { - $this->limit = $limit; - return $this; - } - /** - * Gets batch_token - * @return string - */ - public function getBatchToken() - { - return $this->batch_token; - } - - /** - * Sets batch_token - * @param string $batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint. - * @return $this - */ - public function setBatchToken($batch_token) - { - $this->batch_token = $batch_token; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardsResponse.php b/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardsResponse.php deleted file mode 100644 index 70552eda15..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ListTimecardsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Timecard[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'items' => 'items' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'items' => 'setItems' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'items' => 'getItems' - ); - - /** - * $items - * @var \SquareConnect\Model\V1Timecard[] - */ - protected $items; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["items"])) { - $this->items = $data["items"]; - } else { - $this->items = null; - } - } - } - /** - * Gets items - * @return \SquareConnect\Model\V1Timecard[] - */ - public function getItems() - { - return $this->items; - } - - /** - * Sets items - * @param \SquareConnect\Model\V1Timecard[] $items - * @return $this - */ - public function setItems($items) - { - $this->items = $items; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Merchant.php b/includes/classes/vendors/square/connect/lib/Model/V1Merchant.php deleted file mode 100644 index b7b6107e0f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Merchant.php +++ /dev/null @@ -1,609 +0,0 @@ - 'string', - 'name' => 'string', - 'email' => 'string', - 'account_type' => 'string', - 'account_capabilities' => 'string[]', - 'country_code' => 'string', - 'language_code' => 'string', - 'currency_code' => 'string', - 'business_name' => 'string', - 'business_address' => '\SquareConnect\Model\Address', - 'business_phone' => '\SquareConnect\Model\V1PhoneNumber', - 'business_type' => 'string', - 'shipping_address' => '\SquareConnect\Model\Address', - 'location_details' => '\SquareConnect\Model\V1MerchantLocationDetails', - 'market_url' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'email' => 'email', - 'account_type' => 'account_type', - 'account_capabilities' => 'account_capabilities', - 'country_code' => 'country_code', - 'language_code' => 'language_code', - 'currency_code' => 'currency_code', - 'business_name' => 'business_name', - 'business_address' => 'business_address', - 'business_phone' => 'business_phone', - 'business_type' => 'business_type', - 'shipping_address' => 'shipping_address', - 'location_details' => 'location_details', - 'market_url' => 'market_url' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'email' => 'setEmail', - 'account_type' => 'setAccountType', - 'account_capabilities' => 'setAccountCapabilities', - 'country_code' => 'setCountryCode', - 'language_code' => 'setLanguageCode', - 'currency_code' => 'setCurrencyCode', - 'business_name' => 'setBusinessName', - 'business_address' => 'setBusinessAddress', - 'business_phone' => 'setBusinessPhone', - 'business_type' => 'setBusinessType', - 'shipping_address' => 'setShippingAddress', - 'location_details' => 'setLocationDetails', - 'market_url' => 'setMarketUrl' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'email' => 'getEmail', - 'account_type' => 'getAccountType', - 'account_capabilities' => 'getAccountCapabilities', - 'country_code' => 'getCountryCode', - 'language_code' => 'getLanguageCode', - 'currency_code' => 'getCurrencyCode', - 'business_name' => 'getBusinessName', - 'business_address' => 'getBusinessAddress', - 'business_phone' => 'getBusinessPhone', - 'business_type' => 'getBusinessType', - 'shipping_address' => 'getShippingAddress', - 'location_details' => 'getLocationDetails', - 'market_url' => 'getMarketUrl' - ); - - /** - * $id The merchant account's unique identifier. - * @var string - */ - protected $id; - /** - * $name The name associated with the merchant account. - * @var string - */ - protected $name; - /** - * $email The email address associated with the merchant account. - * @var string - */ - protected $email; - /** - * $account_type Indicates whether the merchant account corresponds to a single-location account (LOCATION) or a business account (BUSINESS). This value is almost always LOCATION. See [V1MerchantAccountType](#type-v1merchantaccounttype) for possible values - * @var string - */ - protected $account_type; - /** - * $account_capabilities Capabilities that are enabled for the merchant's Square account. Capabilities that are not listed in this array are not enabled for the account. - * @var string[] - */ - protected $account_capabilities; - /** - * $country_code The country associated with the merchant account, in ISO 3166-1-alpha-2 format. - * @var string - */ - protected $country_code; - /** - * $language_code The language associated with the merchant account, in BCP 47 format. - * @var string - */ - protected $language_code; - /** - * $currency_code The currency associated with the merchant account, in ISO 4217 format. For example, the currency code for US dollars is USD. - * @var string - */ - protected $currency_code; - /** - * $business_name The name of the merchant's business. - * @var string - */ - protected $business_name; - /** - * $business_address The address of the merchant's business. - * @var \SquareConnect\Model\Address - */ - protected $business_address; - /** - * $business_phone The phone number of the merchant's business. - * @var \SquareConnect\Model\V1PhoneNumber - */ - protected $business_phone; - /** - * $business_type The type of business operated by the merchant. See [V1MerchantBusinessType](#type-v1merchantbusinesstype) for possible values - * @var string - */ - protected $business_type; - /** - * $shipping_address The merchant's shipping address. - * @var \SquareConnect\Model\Address - */ - protected $shipping_address; - /** - * $location_details Additional information for a single-location account specified by its associated business account, if it has one. - * @var \SquareConnect\Model\V1MerchantLocationDetails - */ - protected $location_details; - /** - * $market_url The URL of the merchant's online store. - * @var string - */ - protected $market_url; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["email"])) { - $this->email = $data["email"]; - } else { - $this->email = null; - } - if (isset($data["account_type"])) { - $this->account_type = $data["account_type"]; - } else { - $this->account_type = null; - } - if (isset($data["account_capabilities"])) { - $this->account_capabilities = $data["account_capabilities"]; - } else { - $this->account_capabilities = null; - } - if (isset($data["country_code"])) { - $this->country_code = $data["country_code"]; - } else { - $this->country_code = null; - } - if (isset($data["language_code"])) { - $this->language_code = $data["language_code"]; - } else { - $this->language_code = null; - } - if (isset($data["currency_code"])) { - $this->currency_code = $data["currency_code"]; - } else { - $this->currency_code = null; - } - if (isset($data["business_name"])) { - $this->business_name = $data["business_name"]; - } else { - $this->business_name = null; - } - if (isset($data["business_address"])) { - $this->business_address = $data["business_address"]; - } else { - $this->business_address = null; - } - if (isset($data["business_phone"])) { - $this->business_phone = $data["business_phone"]; - } else { - $this->business_phone = null; - } - if (isset($data["business_type"])) { - $this->business_type = $data["business_type"]; - } else { - $this->business_type = null; - } - if (isset($data["shipping_address"])) { - $this->shipping_address = $data["shipping_address"]; - } else { - $this->shipping_address = null; - } - if (isset($data["location_details"])) { - $this->location_details = $data["location_details"]; - } else { - $this->location_details = null; - } - if (isset($data["market_url"])) { - $this->market_url = $data["market_url"]; - } else { - $this->market_url = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The merchant account's unique identifier. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name associated with the merchant account. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Sets email - * @param string $email The email address associated with the merchant account. - * @return $this - */ - public function setEmail($email) - { - $this->email = $email; - return $this; - } - /** - * Gets account_type - * @return string - */ - public function getAccountType() - { - return $this->account_type; - } - - /** - * Sets account_type - * @param string $account_type Indicates whether the merchant account corresponds to a single-location account (LOCATION) or a business account (BUSINESS). This value is almost always LOCATION. See [V1MerchantAccountType](#type-v1merchantaccounttype) for possible values - * @return $this - */ - public function setAccountType($account_type) - { - $this->account_type = $account_type; - return $this; - } - /** - * Gets account_capabilities - * @return string[] - */ - public function getAccountCapabilities() - { - return $this->account_capabilities; - } - - /** - * Sets account_capabilities - * @param string[] $account_capabilities Capabilities that are enabled for the merchant's Square account. Capabilities that are not listed in this array are not enabled for the account. - * @return $this - */ - public function setAccountCapabilities($account_capabilities) - { - $this->account_capabilities = $account_capabilities; - return $this; - } - /** - * Gets country_code - * @return string - */ - public function getCountryCode() - { - return $this->country_code; - } - - /** - * Sets country_code - * @param string $country_code The country associated with the merchant account, in ISO 3166-1-alpha-2 format. - * @return $this - */ - public function setCountryCode($country_code) - { - $this->country_code = $country_code; - return $this; - } - /** - * Gets language_code - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Sets language_code - * @param string $language_code The language associated with the merchant account, in BCP 47 format. - * @return $this - */ - public function setLanguageCode($language_code) - { - $this->language_code = $language_code; - return $this; - } - /** - * Gets currency_code - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Sets currency_code - * @param string $currency_code The currency associated with the merchant account, in ISO 4217 format. For example, the currency code for US dollars is USD. - * @return $this - */ - public function setCurrencyCode($currency_code) - { - $this->currency_code = $currency_code; - return $this; - } - /** - * Gets business_name - * @return string - */ - public function getBusinessName() - { - return $this->business_name; - } - - /** - * Sets business_name - * @param string $business_name The name of the merchant's business. - * @return $this - */ - public function setBusinessName($business_name) - { - $this->business_name = $business_name; - return $this; - } - /** - * Gets business_address - * @return \SquareConnect\Model\Address - */ - public function getBusinessAddress() - { - return $this->business_address; - } - - /** - * Sets business_address - * @param \SquareConnect\Model\Address $business_address The address of the merchant's business. - * @return $this - */ - public function setBusinessAddress($business_address) - { - $this->business_address = $business_address; - return $this; - } - /** - * Gets business_phone - * @return \SquareConnect\Model\V1PhoneNumber - */ - public function getBusinessPhone() - { - return $this->business_phone; - } - - /** - * Sets business_phone - * @param \SquareConnect\Model\V1PhoneNumber $business_phone The phone number of the merchant's business. - * @return $this - */ - public function setBusinessPhone($business_phone) - { - $this->business_phone = $business_phone; - return $this; - } - /** - * Gets business_type - * @return string - */ - public function getBusinessType() - { - return $this->business_type; - } - - /** - * Sets business_type - * @param string $business_type The type of business operated by the merchant. See [V1MerchantBusinessType](#type-v1merchantbusinesstype) for possible values - * @return $this - */ - public function setBusinessType($business_type) - { - $this->business_type = $business_type; - return $this; - } - /** - * Gets shipping_address - * @return \SquareConnect\Model\Address - */ - public function getShippingAddress() - { - return $this->shipping_address; - } - - /** - * Sets shipping_address - * @param \SquareConnect\Model\Address $shipping_address The merchant's shipping address. - * @return $this - */ - public function setShippingAddress($shipping_address) - { - $this->shipping_address = $shipping_address; - return $this; - } - /** - * Gets location_details - * @return \SquareConnect\Model\V1MerchantLocationDetails - */ - public function getLocationDetails() - { - return $this->location_details; - } - - /** - * Sets location_details - * @param \SquareConnect\Model\V1MerchantLocationDetails $location_details Additional information for a single-location account specified by its associated business account, if it has one. - * @return $this - */ - public function setLocationDetails($location_details) - { - $this->location_details = $location_details; - return $this; - } - /** - * Gets market_url - * @return string - */ - public function getMarketUrl() - { - return $this->market_url; - } - - /** - * Sets market_url - * @param string $market_url The URL of the merchant's online store. - * @return $this - */ - public function setMarketUrl($market_url) - { - $this->market_url = $market_url; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1MerchantAccountType.php b/includes/classes/vendors/square/connect/lib/Model/V1MerchantAccountType.php deleted file mode 100644 index af69205e97..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1MerchantAccountType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1MerchantBusinessType.php b/includes/classes/vendors/square/connect/lib/Model/V1MerchantBusinessType.php deleted file mode 100644 index c26c57d14c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1MerchantBusinessType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1MerchantLocationDetails.php b/includes/classes/vendors/square/connect/lib/Model/V1MerchantLocationDetails.php deleted file mode 100644 index 3fbd6088e2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1MerchantLocationDetails.php +++ /dev/null @@ -1,147 +0,0 @@ - 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'nickname' => 'nickname' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'nickname' => 'setNickname' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'nickname' => 'getNickname' - ); - - /** - * $nickname The nickname assigned to the single-location account by the parent business. This value appears in the parent business's multi-location dashboard. - * @var string - */ - protected $nickname; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["nickname"])) { - $this->nickname = $data["nickname"]; - } else { - $this->nickname = null; - } - } - } - /** - * Gets nickname - * @return string - */ - public function getNickname() - { - return $this->nickname; - } - - /** - * Sets nickname - * @param string $nickname The nickname assigned to the single-location account by the parent business. This value appears in the parent business's multi-location dashboard. - * @return $this - */ - public function setNickname($nickname) - { - $this->nickname = $nickname; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ModifierList.php b/includes/classes/vendors/square/connect/lib/Model/V1ModifierList.php deleted file mode 100644 index 19d0923b78..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ModifierList.php +++ /dev/null @@ -1,279 +0,0 @@ - 'string', - 'name' => 'string', - 'selection_type' => 'string', - 'modifier_options' => '\SquareConnect\Model\V1ModifierOption[]', - 'v2_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'selection_type' => 'selection_type', - 'modifier_options' => 'modifier_options', - 'v2_id' => 'v2_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'selection_type' => 'setSelectionType', - 'modifier_options' => 'setModifierOptions', - 'v2_id' => 'setV2Id' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'selection_type' => 'getSelectionType', - 'modifier_options' => 'getModifierOptions', - 'v2_id' => 'getV2Id' - ); - - /** - * $id The modifier list's unique ID. - * @var string - */ - protected $id; - /** - * $name The modifier list's name. - * @var string - */ - protected $name; - /** - * $selection_type Indicates whether MULTIPLE options or a SINGLE option from the modifier list can be applied to a single item. See [V1ModifierListSelectionType](#type-v1modifierlistselectiontype) for possible values - * @var string - */ - protected $selection_type; - /** - * $modifier_options The options included in the modifier list. - * @var \SquareConnect\Model\V1ModifierOption[] - */ - protected $modifier_options; - /** - * $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @var string - */ - protected $v2_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["selection_type"])) { - $this->selection_type = $data["selection_type"]; - } else { - $this->selection_type = null; - } - if (isset($data["modifier_options"])) { - $this->modifier_options = $data["modifier_options"]; - } else { - $this->modifier_options = null; - } - if (isset($data["v2_id"])) { - $this->v2_id = $data["v2_id"]; - } else { - $this->v2_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The modifier list's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The modifier list's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets selection_type - * @return string - */ - public function getSelectionType() - { - return $this->selection_type; - } - - /** - * Sets selection_type - * @param string $selection_type Indicates whether MULTIPLE options or a SINGLE option from the modifier list can be applied to a single item. See [V1ModifierListSelectionType](#type-v1modifierlistselectiontype) for possible values - * @return $this - */ - public function setSelectionType($selection_type) - { - $this->selection_type = $selection_type; - return $this; - } - /** - * Gets modifier_options - * @return \SquareConnect\Model\V1ModifierOption[] - */ - public function getModifierOptions() - { - return $this->modifier_options; - } - - /** - * Sets modifier_options - * @param \SquareConnect\Model\V1ModifierOption[] $modifier_options The options included in the modifier list. - * @return $this - */ - public function setModifierOptions($modifier_options) - { - $this->modifier_options = $modifier_options; - return $this; - } - /** - * Gets v2_id - * @return string - */ - public function getV2Id() - { - return $this->v2_id; - } - - /** - * Sets v2_id - * @param string $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @return $this - */ - public function setV2Id($v2_id) - { - $this->v2_id = $v2_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ModifierListSelectionType.php b/includes/classes/vendors/square/connect/lib/Model/V1ModifierListSelectionType.php deleted file mode 100644 index 15e0ed4122..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ModifierListSelectionType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1ModifierOption.php b/includes/classes/vendors/square/connect/lib/Model/V1ModifierOption.php deleted file mode 100644 index 21033e439e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1ModifierOption.php +++ /dev/null @@ -1,345 +0,0 @@ - 'string', - 'name' => 'string', - 'price_money' => '\SquareConnect\Model\V1Money', - 'on_by_default' => 'bool', - 'ordinal' => 'int', - 'modifier_list_id' => 'string', - 'v2_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'price_money' => 'price_money', - 'on_by_default' => 'on_by_default', - 'ordinal' => 'ordinal', - 'modifier_list_id' => 'modifier_list_id', - 'v2_id' => 'v2_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'price_money' => 'setPriceMoney', - 'on_by_default' => 'setOnByDefault', - 'ordinal' => 'setOrdinal', - 'modifier_list_id' => 'setModifierListId', - 'v2_id' => 'setV2Id' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'price_money' => 'getPriceMoney', - 'on_by_default' => 'getOnByDefault', - 'ordinal' => 'getOrdinal', - 'modifier_list_id' => 'getModifierListId', - 'v2_id' => 'getV2Id' - ); - - /** - * $id The modifier option's unique ID. - * @var string - */ - protected $id; - /** - * $name The modifier option's name. - * @var string - */ - protected $name; - /** - * $price_money The modifier option's price. - * @var \SquareConnect\Model\V1Money - */ - protected $price_money; - /** - * $on_by_default If true, the modifier option is the default option in a modifier list for which selection_type is SINGLE. - * @var bool - */ - protected $on_by_default; - /** - * $ordinal Indicates the modifier option's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one modifier option in the same modifier list has the same ordinal value, those options are displayed in alphabetical order. - * @var int - */ - protected $ordinal; - /** - * $modifier_list_id The ID of the modifier list the option belongs to. - * @var string - */ - protected $modifier_list_id; - /** - * $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @var string - */ - protected $v2_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["price_money"])) { - $this->price_money = $data["price_money"]; - } else { - $this->price_money = null; - } - if (isset($data["on_by_default"])) { - $this->on_by_default = $data["on_by_default"]; - } else { - $this->on_by_default = null; - } - if (isset($data["ordinal"])) { - $this->ordinal = $data["ordinal"]; - } else { - $this->ordinal = null; - } - if (isset($data["modifier_list_id"])) { - $this->modifier_list_id = $data["modifier_list_id"]; - } else { - $this->modifier_list_id = null; - } - if (isset($data["v2_id"])) { - $this->v2_id = $data["v2_id"]; - } else { - $this->v2_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The modifier option's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The modifier option's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets price_money - * @return \SquareConnect\Model\V1Money - */ - public function getPriceMoney() - { - return $this->price_money; - } - - /** - * Sets price_money - * @param \SquareConnect\Model\V1Money $price_money The modifier option's price. - * @return $this - */ - public function setPriceMoney($price_money) - { - $this->price_money = $price_money; - return $this; - } - /** - * Gets on_by_default - * @return bool - */ - public function getOnByDefault() - { - return $this->on_by_default; - } - - /** - * Sets on_by_default - * @param bool $on_by_default If true, the modifier option is the default option in a modifier list for which selection_type is SINGLE. - * @return $this - */ - public function setOnByDefault($on_by_default) - { - $this->on_by_default = $on_by_default; - return $this; - } - /** - * Gets ordinal - * @return int - */ - public function getOrdinal() - { - return $this->ordinal; - } - - /** - * Sets ordinal - * @param int $ordinal Indicates the modifier option's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one modifier option in the same modifier list has the same ordinal value, those options are displayed in alphabetical order. - * @return $this - */ - public function setOrdinal($ordinal) - { - $this->ordinal = $ordinal; - return $this; - } - /** - * Gets modifier_list_id - * @return string - */ - public function getModifierListId() - { - return $this->modifier_list_id; - } - - /** - * Sets modifier_list_id - * @param string $modifier_list_id The ID of the modifier list the option belongs to. - * @return $this - */ - public function setModifierListId($modifier_list_id) - { - $this->modifier_list_id = $modifier_list_id; - return $this; - } - /** - * Gets v2_id - * @return string - */ - public function getV2Id() - { - return $this->v2_id; - } - - /** - * Sets v2_id - * @param string $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @return $this - */ - public function setV2Id($v2_id) - { - $this->v2_id = $v2_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Money.php b/includes/classes/vendors/square/connect/lib/Model/V1Money.php deleted file mode 100644 index f37dcc92f7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Money.php +++ /dev/null @@ -1,180 +0,0 @@ - 'int', - 'currency_code' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'amount' => 'amount', - 'currency_code' => 'currency_code' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'amount' => 'setAmount', - 'currency_code' => 'setCurrencyCode' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'amount' => 'getAmount', - 'currency_code' => 'getCurrencyCode' - ); - - /** - * $amount Amount in the lowest denominated value of this Currency. E.g. in USD these are cents, in JPY they are Yen (which do not have a 'cent' concept). - * @var int - */ - protected $amount; - /** - * $currency_code See [Currency](#type-currency) for possible values - * @var string - */ - protected $currency_code; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["amount"])) { - $this->amount = $data["amount"]; - } else { - $this->amount = null; - } - if (isset($data["currency_code"])) { - $this->currency_code = $data["currency_code"]; - } else { - $this->currency_code = null; - } - } - } - /** - * Gets amount - * @return int - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Sets amount - * @param int $amount Amount in the lowest denominated value of this Currency. E.g. in USD these are cents, in JPY they are Yen (which do not have a 'cent' concept). - * @return $this - */ - public function setAmount($amount) - { - $this->amount = $amount; - return $this; - } - /** - * Gets currency_code - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Sets currency_code - * @param string $currency_code See [Currency](#type-currency) for possible values - * @return $this - */ - public function setCurrencyCode($currency_code) - { - $this->currency_code = $currency_code; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Order.php b/includes/classes/vendors/square/connect/lib/Model/V1Order.php deleted file mode 100644 index b14c1b3606..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Order.php +++ /dev/null @@ -1,938 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'id' => 'string', - 'buyer_email' => 'string', - 'recipient_name' => 'string', - 'recipient_phone_number' => 'string', - 'state' => 'string', - 'shipping_address' => '\SquareConnect\Model\Address', - 'subtotal_money' => '\SquareConnect\Model\V1Money', - 'total_shipping_money' => '\SquareConnect\Model\V1Money', - 'total_tax_money' => '\SquareConnect\Model\V1Money', - 'total_price_money' => '\SquareConnect\Model\V1Money', - 'total_discount_money' => '\SquareConnect\Model\V1Money', - 'created_at' => 'string', - 'updated_at' => 'string', - 'expires_at' => 'string', - 'payment_id' => 'string', - 'buyer_note' => 'string', - 'completed_note' => 'string', - 'refunded_note' => 'string', - 'canceled_note' => 'string', - 'tender' => '\SquareConnect\Model\V1Tender', - 'order_history' => '\SquareConnect\Model\V1OrderHistoryEntry[]', - 'promo_code' => 'string', - 'btc_receive_address' => 'string', - 'btc_price_satoshi' => 'float' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'id' => 'id', - 'buyer_email' => 'buyer_email', - 'recipient_name' => 'recipient_name', - 'recipient_phone_number' => 'recipient_phone_number', - 'state' => 'state', - 'shipping_address' => 'shipping_address', - 'subtotal_money' => 'subtotal_money', - 'total_shipping_money' => 'total_shipping_money', - 'total_tax_money' => 'total_tax_money', - 'total_price_money' => 'total_price_money', - 'total_discount_money' => 'total_discount_money', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'expires_at' => 'expires_at', - 'payment_id' => 'payment_id', - 'buyer_note' => 'buyer_note', - 'completed_note' => 'completed_note', - 'refunded_note' => 'refunded_note', - 'canceled_note' => 'canceled_note', - 'tender' => 'tender', - 'order_history' => 'order_history', - 'promo_code' => 'promo_code', - 'btc_receive_address' => 'btc_receive_address', - 'btc_price_satoshi' => 'btc_price_satoshi' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'id' => 'setId', - 'buyer_email' => 'setBuyerEmail', - 'recipient_name' => 'setRecipientName', - 'recipient_phone_number' => 'setRecipientPhoneNumber', - 'state' => 'setState', - 'shipping_address' => 'setShippingAddress', - 'subtotal_money' => 'setSubtotalMoney', - 'total_shipping_money' => 'setTotalShippingMoney', - 'total_tax_money' => 'setTotalTaxMoney', - 'total_price_money' => 'setTotalPriceMoney', - 'total_discount_money' => 'setTotalDiscountMoney', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'expires_at' => 'setExpiresAt', - 'payment_id' => 'setPaymentId', - 'buyer_note' => 'setBuyerNote', - 'completed_note' => 'setCompletedNote', - 'refunded_note' => 'setRefundedNote', - 'canceled_note' => 'setCanceledNote', - 'tender' => 'setTender', - 'order_history' => 'setOrderHistory', - 'promo_code' => 'setPromoCode', - 'btc_receive_address' => 'setBtcReceiveAddress', - 'btc_price_satoshi' => 'setBtcPriceSatoshi' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'id' => 'getId', - 'buyer_email' => 'getBuyerEmail', - 'recipient_name' => 'getRecipientName', - 'recipient_phone_number' => 'getRecipientPhoneNumber', - 'state' => 'getState', - 'shipping_address' => 'getShippingAddress', - 'subtotal_money' => 'getSubtotalMoney', - 'total_shipping_money' => 'getTotalShippingMoney', - 'total_tax_money' => 'getTotalTaxMoney', - 'total_price_money' => 'getTotalPriceMoney', - 'total_discount_money' => 'getTotalDiscountMoney', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'expires_at' => 'getExpiresAt', - 'payment_id' => 'getPaymentId', - 'buyer_note' => 'getBuyerNote', - 'completed_note' => 'getCompletedNote', - 'refunded_note' => 'getRefundedNote', - 'canceled_note' => 'getCanceledNote', - 'tender' => 'getTender', - 'order_history' => 'getOrderHistory', - 'promo_code' => 'getPromoCode', - 'btc_receive_address' => 'getBtcReceiveAddress', - 'btc_price_satoshi' => 'getBtcPriceSatoshi' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $id The order's unique identifier. - * @var string - */ - protected $id; - /** - * $buyer_email The email address of the order's buyer. - * @var string - */ - protected $buyer_email; - /** - * $recipient_name The name of the order's buyer. - * @var string - */ - protected $recipient_name; - /** - * $recipient_phone_number The phone number to use for the order's delivery. - * @var string - */ - protected $recipient_phone_number; - /** - * $state Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1OrderState](#type-v1orderstate) for possible values - * @var string - */ - protected $state; - /** - * $shipping_address The address to ship the order to. - * @var \SquareConnect\Model\Address - */ - protected $shipping_address; - /** - * $subtotal_money The amount of all items purchased in the order, before taxes and shipping. - * @var \SquareConnect\Model\V1Money - */ - protected $subtotal_money; - /** - * $total_shipping_money The shipping cost for the order. - * @var \SquareConnect\Model\V1Money - */ - protected $total_shipping_money; - /** - * $total_tax_money The total of all taxes applied to the order. - * @var \SquareConnect\Model\V1Money - */ - protected $total_tax_money; - /** - * $total_price_money The total cost of the order. - * @var \SquareConnect\Model\V1Money - */ - protected $total_price_money; - /** - * $total_discount_money The total of all discounts applied to the order. - * @var \SquareConnect\Model\V1Money - */ - protected $total_discount_money; - /** - * $created_at The time when the order was created, in ISO 8601 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The time when the order was last modified, in ISO 8601 format. - * @var string - */ - protected $updated_at; - /** - * $expires_at The time when the order expires if no action is taken, in ISO 8601 format. - * @var string - */ - protected $expires_at; - /** - * $payment_id The unique identifier of the payment associated with the order. - * @var string - */ - protected $payment_id; - /** - * $buyer_note A note provided by the buyer when the order was created, if any. - * @var string - */ - protected $buyer_note; - /** - * $completed_note A note provided by the merchant when the order's state was set to COMPLETED, if any - * @var string - */ - protected $completed_note; - /** - * $refunded_note A note provided by the merchant when the order's state was set to REFUNDED, if any. - * @var string - */ - protected $refunded_note; - /** - * $canceled_note A note provided by the merchant when the order's state was set to CANCELED, if any. - * @var string - */ - protected $canceled_note; - /** - * $tender The tender used to pay for the order. - * @var \SquareConnect\Model\V1Tender - */ - protected $tender; - /** - * $order_history The history of actions associated with the order. - * @var \SquareConnect\Model\V1OrderHistoryEntry[] - */ - protected $order_history; - /** - * $promo_code The promo code provided by the buyer, if any. - * @var string - */ - protected $promo_code; - /** - * $btc_receive_address For Bitcoin transactions, the address that the buyer sent Bitcoin to. - * @var string - */ - protected $btc_receive_address; - /** - * $btc_price_satoshi For Bitcoin transactions, the price of the buyer's order in satoshi (100 million satoshi equals 1 BTC). - * @var float - */ - protected $btc_price_satoshi; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["buyer_email"])) { - $this->buyer_email = $data["buyer_email"]; - } else { - $this->buyer_email = null; - } - if (isset($data["recipient_name"])) { - $this->recipient_name = $data["recipient_name"]; - } else { - $this->recipient_name = null; - } - if (isset($data["recipient_phone_number"])) { - $this->recipient_phone_number = $data["recipient_phone_number"]; - } else { - $this->recipient_phone_number = null; - } - if (isset($data["state"])) { - $this->state = $data["state"]; - } else { - $this->state = null; - } - if (isset($data["shipping_address"])) { - $this->shipping_address = $data["shipping_address"]; - } else { - $this->shipping_address = null; - } - if (isset($data["subtotal_money"])) { - $this->subtotal_money = $data["subtotal_money"]; - } else { - $this->subtotal_money = null; - } - if (isset($data["total_shipping_money"])) { - $this->total_shipping_money = $data["total_shipping_money"]; - } else { - $this->total_shipping_money = null; - } - if (isset($data["total_tax_money"])) { - $this->total_tax_money = $data["total_tax_money"]; - } else { - $this->total_tax_money = null; - } - if (isset($data["total_price_money"])) { - $this->total_price_money = $data["total_price_money"]; - } else { - $this->total_price_money = null; - } - if (isset($data["total_discount_money"])) { - $this->total_discount_money = $data["total_discount_money"]; - } else { - $this->total_discount_money = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["expires_at"])) { - $this->expires_at = $data["expires_at"]; - } else { - $this->expires_at = null; - } - if (isset($data["payment_id"])) { - $this->payment_id = $data["payment_id"]; - } else { - $this->payment_id = null; - } - if (isset($data["buyer_note"])) { - $this->buyer_note = $data["buyer_note"]; - } else { - $this->buyer_note = null; - } - if (isset($data["completed_note"])) { - $this->completed_note = $data["completed_note"]; - } else { - $this->completed_note = null; - } - if (isset($data["refunded_note"])) { - $this->refunded_note = $data["refunded_note"]; - } else { - $this->refunded_note = null; - } - if (isset($data["canceled_note"])) { - $this->canceled_note = $data["canceled_note"]; - } else { - $this->canceled_note = null; - } - if (isset($data["tender"])) { - $this->tender = $data["tender"]; - } else { - $this->tender = null; - } - if (isset($data["order_history"])) { - $this->order_history = $data["order_history"]; - } else { - $this->order_history = null; - } - if (isset($data["promo_code"])) { - $this->promo_code = $data["promo_code"]; - } else { - $this->promo_code = null; - } - if (isset($data["btc_receive_address"])) { - $this->btc_receive_address = $data["btc_receive_address"]; - } else { - $this->btc_receive_address = null; - } - if (isset($data["btc_price_satoshi"])) { - $this->btc_price_satoshi = $data["btc_price_satoshi"]; - } else { - $this->btc_price_satoshi = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The order's unique identifier. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets buyer_email - * @return string - */ - public function getBuyerEmail() - { - return $this->buyer_email; - } - - /** - * Sets buyer_email - * @param string $buyer_email The email address of the order's buyer. - * @return $this - */ - public function setBuyerEmail($buyer_email) - { - $this->buyer_email = $buyer_email; - return $this; - } - /** - * Gets recipient_name - * @return string - */ - public function getRecipientName() - { - return $this->recipient_name; - } - - /** - * Sets recipient_name - * @param string $recipient_name The name of the order's buyer. - * @return $this - */ - public function setRecipientName($recipient_name) - { - $this->recipient_name = $recipient_name; - return $this; - } - /** - * Gets recipient_phone_number - * @return string - */ - public function getRecipientPhoneNumber() - { - return $this->recipient_phone_number; - } - - /** - * Sets recipient_phone_number - * @param string $recipient_phone_number The phone number to use for the order's delivery. - * @return $this - */ - public function setRecipientPhoneNumber($recipient_phone_number) - { - $this->recipient_phone_number = $recipient_phone_number; - return $this; - } - /** - * Gets state - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Sets state - * @param string $state Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1OrderState](#type-v1orderstate) for possible values - * @return $this - */ - public function setState($state) - { - $this->state = $state; - return $this; - } - /** - * Gets shipping_address - * @return \SquareConnect\Model\Address - */ - public function getShippingAddress() - { - return $this->shipping_address; - } - - /** - * Sets shipping_address - * @param \SquareConnect\Model\Address $shipping_address The address to ship the order to. - * @return $this - */ - public function setShippingAddress($shipping_address) - { - $this->shipping_address = $shipping_address; - return $this; - } - /** - * Gets subtotal_money - * @return \SquareConnect\Model\V1Money - */ - public function getSubtotalMoney() - { - return $this->subtotal_money; - } - - /** - * Sets subtotal_money - * @param \SquareConnect\Model\V1Money $subtotal_money The amount of all items purchased in the order, before taxes and shipping. - * @return $this - */ - public function setSubtotalMoney($subtotal_money) - { - $this->subtotal_money = $subtotal_money; - return $this; - } - /** - * Gets total_shipping_money - * @return \SquareConnect\Model\V1Money - */ - public function getTotalShippingMoney() - { - return $this->total_shipping_money; - } - - /** - * Sets total_shipping_money - * @param \SquareConnect\Model\V1Money $total_shipping_money The shipping cost for the order. - * @return $this - */ - public function setTotalShippingMoney($total_shipping_money) - { - $this->total_shipping_money = $total_shipping_money; - return $this; - } - /** - * Gets total_tax_money - * @return \SquareConnect\Model\V1Money - */ - public function getTotalTaxMoney() - { - return $this->total_tax_money; - } - - /** - * Sets total_tax_money - * @param \SquareConnect\Model\V1Money $total_tax_money The total of all taxes applied to the order. - * @return $this - */ - public function setTotalTaxMoney($total_tax_money) - { - $this->total_tax_money = $total_tax_money; - return $this; - } - /** - * Gets total_price_money - * @return \SquareConnect\Model\V1Money - */ - public function getTotalPriceMoney() - { - return $this->total_price_money; - } - - /** - * Sets total_price_money - * @param \SquareConnect\Model\V1Money $total_price_money The total cost of the order. - * @return $this - */ - public function setTotalPriceMoney($total_price_money) - { - $this->total_price_money = $total_price_money; - return $this; - } - /** - * Gets total_discount_money - * @return \SquareConnect\Model\V1Money - */ - public function getTotalDiscountMoney() - { - return $this->total_discount_money; - } - - /** - * Sets total_discount_money - * @param \SquareConnect\Model\V1Money $total_discount_money The total of all discounts applied to the order. - * @return $this - */ - public function setTotalDiscountMoney($total_discount_money) - { - $this->total_discount_money = $total_discount_money; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the order was created, in ISO 8601 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The time when the order was last modified, in ISO 8601 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets expires_at - * @return string - */ - public function getExpiresAt() - { - return $this->expires_at; - } - - /** - * Sets expires_at - * @param string $expires_at The time when the order expires if no action is taken, in ISO 8601 format. - * @return $this - */ - public function setExpiresAt($expires_at) - { - $this->expires_at = $expires_at; - return $this; - } - /** - * Gets payment_id - * @return string - */ - public function getPaymentId() - { - return $this->payment_id; - } - - /** - * Sets payment_id - * @param string $payment_id The unique identifier of the payment associated with the order. - * @return $this - */ - public function setPaymentId($payment_id) - { - $this->payment_id = $payment_id; - return $this; - } - /** - * Gets buyer_note - * @return string - */ - public function getBuyerNote() - { - return $this->buyer_note; - } - - /** - * Sets buyer_note - * @param string $buyer_note A note provided by the buyer when the order was created, if any. - * @return $this - */ - public function setBuyerNote($buyer_note) - { - $this->buyer_note = $buyer_note; - return $this; - } - /** - * Gets completed_note - * @return string - */ - public function getCompletedNote() - { - return $this->completed_note; - } - - /** - * Sets completed_note - * @param string $completed_note A note provided by the merchant when the order's state was set to COMPLETED, if any - * @return $this - */ - public function setCompletedNote($completed_note) - { - $this->completed_note = $completed_note; - return $this; - } - /** - * Gets refunded_note - * @return string - */ - public function getRefundedNote() - { - return $this->refunded_note; - } - - /** - * Sets refunded_note - * @param string $refunded_note A note provided by the merchant when the order's state was set to REFUNDED, if any. - * @return $this - */ - public function setRefundedNote($refunded_note) - { - $this->refunded_note = $refunded_note; - return $this; - } - /** - * Gets canceled_note - * @return string - */ - public function getCanceledNote() - { - return $this->canceled_note; - } - - /** - * Sets canceled_note - * @param string $canceled_note A note provided by the merchant when the order's state was set to CANCELED, if any. - * @return $this - */ - public function setCanceledNote($canceled_note) - { - $this->canceled_note = $canceled_note; - return $this; - } - /** - * Gets tender - * @return \SquareConnect\Model\V1Tender - */ - public function getTender() - { - return $this->tender; - } - - /** - * Sets tender - * @param \SquareConnect\Model\V1Tender $tender The tender used to pay for the order. - * @return $this - */ - public function setTender($tender) - { - $this->tender = $tender; - return $this; - } - /** - * Gets order_history - * @return \SquareConnect\Model\V1OrderHistoryEntry[] - */ - public function getOrderHistory() - { - return $this->order_history; - } - - /** - * Sets order_history - * @param \SquareConnect\Model\V1OrderHistoryEntry[] $order_history The history of actions associated with the order. - * @return $this - */ - public function setOrderHistory($order_history) - { - $this->order_history = $order_history; - return $this; - } - /** - * Gets promo_code - * @return string - */ - public function getPromoCode() - { - return $this->promo_code; - } - - /** - * Sets promo_code - * @param string $promo_code The promo code provided by the buyer, if any. - * @return $this - */ - public function setPromoCode($promo_code) - { - $this->promo_code = $promo_code; - return $this; - } - /** - * Gets btc_receive_address - * @return string - */ - public function getBtcReceiveAddress() - { - return $this->btc_receive_address; - } - - /** - * Sets btc_receive_address - * @param string $btc_receive_address For Bitcoin transactions, the address that the buyer sent Bitcoin to. - * @return $this - */ - public function setBtcReceiveAddress($btc_receive_address) - { - $this->btc_receive_address = $btc_receive_address; - return $this; - } - /** - * Gets btc_price_satoshi - * @return float - */ - public function getBtcPriceSatoshi() - { - return $this->btc_price_satoshi; - } - - /** - * Sets btc_price_satoshi - * @param float $btc_price_satoshi For Bitcoin transactions, the price of the buyer's order in satoshi (100 million satoshi equals 1 BTC). - * @return $this - */ - public function setBtcPriceSatoshi($btc_price_satoshi) - { - $this->btc_price_satoshi = $btc_price_satoshi; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1OrderHistoryEntry.php b/includes/classes/vendors/square/connect/lib/Model/V1OrderHistoryEntry.php deleted file mode 100644 index 0f23114f50..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1OrderHistoryEntry.php +++ /dev/null @@ -1,179 +0,0 @@ - 'string', - 'created_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'action' => 'action', - 'created_at' => 'created_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'action' => 'setAction', - 'created_at' => 'setCreatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'action' => 'getAction', - 'created_at' => 'getCreatedAt' - ); - - /** - * $action The type of action performed on the order. See [V1OrderHistoryEntryAction](#type-v1orderhistoryentryaction) for possible values - * @var string - */ - protected $action; - /** - * $created_at The time when the action was performed, in ISO 8601 format. - * @var string - */ - protected $created_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["action"])) { - $this->action = $data["action"]; - } else { - $this->action = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - } - } - /** - * Gets action - * @return string - */ - public function getAction() - { - return $this->action; - } - - /** - * Sets action - * @param string $action The type of action performed on the order. See [V1OrderHistoryEntryAction](#type-v1orderhistoryentryaction) for possible values - * @return $this - */ - public function setAction($action) - { - $this->action = $action; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the action was performed, in ISO 8601 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1OrderHistoryEntryAction.php b/includes/classes/vendors/square/connect/lib/Model/V1OrderHistoryEntryAction.php deleted file mode 100644 index 05d0e63ee8..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1OrderHistoryEntryAction.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1OrderState.php b/includes/classes/vendors/square/connect/lib/Model/V1OrderState.php deleted file mode 100644 index 6d0212f8d1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1OrderState.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Page.php b/includes/classes/vendors/square/connect/lib/Model/V1Page.php deleted file mode 100644 index 62ec96e101..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Page.php +++ /dev/null @@ -1,246 +0,0 @@ - 'string', - 'name' => 'string', - 'page_index' => 'int', - 'cells' => '\SquareConnect\Model\V1PageCell[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'page_index' => 'page_index', - 'cells' => 'cells' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'page_index' => 'setPageIndex', - 'cells' => 'setCells' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'page_index' => 'getPageIndex', - 'cells' => 'getCells' - ); - - /** - * $id The page's unique identifier. - * @var string - */ - protected $id; - /** - * $name The page's name, if any. - * @var string - */ - protected $name; - /** - * $page_index The page's position in the merchant's list of pages. Always an integer between 0 and 6, inclusive. - * @var int - */ - protected $page_index; - /** - * $cells The cells included on the page. - * @var \SquareConnect\Model\V1PageCell[] - */ - protected $cells; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["page_index"])) { - $this->page_index = $data["page_index"]; - } else { - $this->page_index = null; - } - if (isset($data["cells"])) { - $this->cells = $data["cells"]; - } else { - $this->cells = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The page's unique identifier. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The page's name, if any. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets page_index - * @return int - */ - public function getPageIndex() - { - return $this->page_index; - } - - /** - * Sets page_index - * @param int $page_index The page's position in the merchant's list of pages. Always an integer between 0 and 6, inclusive. - * @return $this - */ - public function setPageIndex($page_index) - { - $this->page_index = $page_index; - return $this; - } - /** - * Gets cells - * @return \SquareConnect\Model\V1PageCell[] - */ - public function getCells() - { - return $this->cells; - } - - /** - * Sets cells - * @param \SquareConnect\Model\V1PageCell[] $cells The cells included on the page. - * @return $this - */ - public function setCells($cells) - { - $this->cells = $cells; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PageCell.php b/includes/classes/vendors/square/connect/lib/Model/V1PageCell.php deleted file mode 100644 index 66df1cff60..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PageCell.php +++ /dev/null @@ -1,312 +0,0 @@ - 'string', - 'row' => 'int', - 'column' => 'int', - 'object_type' => 'string', - 'object_id' => 'string', - 'placeholder_type' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'page_id' => 'page_id', - 'row' => 'row', - 'column' => 'column', - 'object_type' => 'object_type', - 'object_id' => 'object_id', - 'placeholder_type' => 'placeholder_type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'page_id' => 'setPageId', - 'row' => 'setRow', - 'column' => 'setColumn', - 'object_type' => 'setObjectType', - 'object_id' => 'setObjectId', - 'placeholder_type' => 'setPlaceholderType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'page_id' => 'getPageId', - 'row' => 'getRow', - 'column' => 'getColumn', - 'object_type' => 'getObjectType', - 'object_id' => 'getObjectId', - 'placeholder_type' => 'getPlaceholderType' - ); - - /** - * $page_id The unique identifier of the page the cell is included on. - * @var string - */ - protected $page_id; - /** - * $row The row of the cell. Always an integer between 0 and 4, inclusive. - * @var int - */ - protected $row; - /** - * $column The column of the cell. Always an integer between 0 and 4, inclusive. - * @var int - */ - protected $column; - /** - * $object_type The type of entity represented in the cell (ITEM, DISCOUNT, CATEGORY, or PLACEHOLDER). See [V1PageCellObjectType](#type-v1pagecellobjecttype) for possible values - * @var string - */ - protected $object_type; - /** - * $object_id The unique identifier of the entity represented in the cell. Not present for cells with an object_type of PLACEHOLDER. - * @var string - */ - protected $object_id; - /** - * $placeholder_type For a cell with an object_type of PLACEHOLDER, this value indicates the cell's special behavior. See [V1PageCellPlaceholderType](#type-v1pagecellplaceholdertype) for possible values - * @var string - */ - protected $placeholder_type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["page_id"])) { - $this->page_id = $data["page_id"]; - } else { - $this->page_id = null; - } - if (isset($data["row"])) { - $this->row = $data["row"]; - } else { - $this->row = null; - } - if (isset($data["column"])) { - $this->column = $data["column"]; - } else { - $this->column = null; - } - if (isset($data["object_type"])) { - $this->object_type = $data["object_type"]; - } else { - $this->object_type = null; - } - if (isset($data["object_id"])) { - $this->object_id = $data["object_id"]; - } else { - $this->object_id = null; - } - if (isset($data["placeholder_type"])) { - $this->placeholder_type = $data["placeholder_type"]; - } else { - $this->placeholder_type = null; - } - } - } - /** - * Gets page_id - * @return string - */ - public function getPageId() - { - return $this->page_id; - } - - /** - * Sets page_id - * @param string $page_id The unique identifier of the page the cell is included on. - * @return $this - */ - public function setPageId($page_id) - { - $this->page_id = $page_id; - return $this; - } - /** - * Gets row - * @return int - */ - public function getRow() - { - return $this->row; - } - - /** - * Sets row - * @param int $row The row of the cell. Always an integer between 0 and 4, inclusive. - * @return $this - */ - public function setRow($row) - { - $this->row = $row; - return $this; - } - /** - * Gets column - * @return int - */ - public function getColumn() - { - return $this->column; - } - - /** - * Sets column - * @param int $column The column of the cell. Always an integer between 0 and 4, inclusive. - * @return $this - */ - public function setColumn($column) - { - $this->column = $column; - return $this; - } - /** - * Gets object_type - * @return string - */ - public function getObjectType() - { - return $this->object_type; - } - - /** - * Sets object_type - * @param string $object_type The type of entity represented in the cell (ITEM, DISCOUNT, CATEGORY, or PLACEHOLDER). See [V1PageCellObjectType](#type-v1pagecellobjecttype) for possible values - * @return $this - */ - public function setObjectType($object_type) - { - $this->object_type = $object_type; - return $this; - } - /** - * Gets object_id - * @return string - */ - public function getObjectId() - { - return $this->object_id; - } - - /** - * Sets object_id - * @param string $object_id The unique identifier of the entity represented in the cell. Not present for cells with an object_type of PLACEHOLDER. - * @return $this - */ - public function setObjectId($object_id) - { - $this->object_id = $object_id; - return $this; - } - /** - * Gets placeholder_type - * @return string - */ - public function getPlaceholderType() - { - return $this->placeholder_type; - } - - /** - * Sets placeholder_type - * @param string $placeholder_type For a cell with an object_type of PLACEHOLDER, this value indicates the cell's special behavior. See [V1PageCellPlaceholderType](#type-v1pagecellplaceholdertype) for possible values - * @return $this - */ - public function setPlaceholderType($placeholder_type) - { - $this->placeholder_type = $placeholder_type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PageCellObjectType.php b/includes/classes/vendors/square/connect/lib/Model/V1PageCellObjectType.php deleted file mode 100644 index f248de0234..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PageCellObjectType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PageCellPlaceholderType.php b/includes/classes/vendors/square/connect/lib/Model/V1PageCellPlaceholderType.php deleted file mode 100644 index 46ecb389f5..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PageCellPlaceholderType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Payment.php b/includes/classes/vendors/square/connect/lib/Model/V1Payment.php deleted file mode 100644 index bd231cb0e3..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Payment.php +++ /dev/null @@ -1,1004 +0,0 @@ - 'string', - 'merchant_id' => 'string', - 'created_at' => 'string', - 'creator_id' => 'string', - 'device' => '\SquareConnect\Model\Device', - 'payment_url' => 'string', - 'receipt_url' => 'string', - 'inclusive_tax_money' => '\SquareConnect\Model\V1Money', - 'additive_tax_money' => '\SquareConnect\Model\V1Money', - 'tax_money' => '\SquareConnect\Model\V1Money', - 'tip_money' => '\SquareConnect\Model\V1Money', - 'discount_money' => '\SquareConnect\Model\V1Money', - 'total_collected_money' => '\SquareConnect\Model\V1Money', - 'processing_fee_money' => '\SquareConnect\Model\V1Money', - 'net_total_money' => '\SquareConnect\Model\V1Money', - 'refunded_money' => '\SquareConnect\Model\V1Money', - 'swedish_rounding_money' => '\SquareConnect\Model\V1Money', - 'gross_sales_money' => '\SquareConnect\Model\V1Money', - 'net_sales_money' => '\SquareConnect\Model\V1Money', - 'inclusive_tax' => '\SquareConnect\Model\V1PaymentTax[]', - 'additive_tax' => '\SquareConnect\Model\V1PaymentTax[]', - 'tender' => '\SquareConnect\Model\V1Tender[]', - 'refunds' => '\SquareConnect\Model\V1Refund[]', - 'itemizations' => '\SquareConnect\Model\V1PaymentItemization[]', - 'surcharge_money' => '\SquareConnect\Model\V1Money', - 'surcharges' => '\SquareConnect\Model\V1PaymentSurcharge[]', - 'is_partial' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'merchant_id' => 'merchant_id', - 'created_at' => 'created_at', - 'creator_id' => 'creator_id', - 'device' => 'device', - 'payment_url' => 'payment_url', - 'receipt_url' => 'receipt_url', - 'inclusive_tax_money' => 'inclusive_tax_money', - 'additive_tax_money' => 'additive_tax_money', - 'tax_money' => 'tax_money', - 'tip_money' => 'tip_money', - 'discount_money' => 'discount_money', - 'total_collected_money' => 'total_collected_money', - 'processing_fee_money' => 'processing_fee_money', - 'net_total_money' => 'net_total_money', - 'refunded_money' => 'refunded_money', - 'swedish_rounding_money' => 'swedish_rounding_money', - 'gross_sales_money' => 'gross_sales_money', - 'net_sales_money' => 'net_sales_money', - 'inclusive_tax' => 'inclusive_tax', - 'additive_tax' => 'additive_tax', - 'tender' => 'tender', - 'refunds' => 'refunds', - 'itemizations' => 'itemizations', - 'surcharge_money' => 'surcharge_money', - 'surcharges' => 'surcharges', - 'is_partial' => 'is_partial' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'merchant_id' => 'setMerchantId', - 'created_at' => 'setCreatedAt', - 'creator_id' => 'setCreatorId', - 'device' => 'setDevice', - 'payment_url' => 'setPaymentUrl', - 'receipt_url' => 'setReceiptUrl', - 'inclusive_tax_money' => 'setInclusiveTaxMoney', - 'additive_tax_money' => 'setAdditiveTaxMoney', - 'tax_money' => 'setTaxMoney', - 'tip_money' => 'setTipMoney', - 'discount_money' => 'setDiscountMoney', - 'total_collected_money' => 'setTotalCollectedMoney', - 'processing_fee_money' => 'setProcessingFeeMoney', - 'net_total_money' => 'setNetTotalMoney', - 'refunded_money' => 'setRefundedMoney', - 'swedish_rounding_money' => 'setSwedishRoundingMoney', - 'gross_sales_money' => 'setGrossSalesMoney', - 'net_sales_money' => 'setNetSalesMoney', - 'inclusive_tax' => 'setInclusiveTax', - 'additive_tax' => 'setAdditiveTax', - 'tender' => 'setTender', - 'refunds' => 'setRefunds', - 'itemizations' => 'setItemizations', - 'surcharge_money' => 'setSurchargeMoney', - 'surcharges' => 'setSurcharges', - 'is_partial' => 'setIsPartial' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'merchant_id' => 'getMerchantId', - 'created_at' => 'getCreatedAt', - 'creator_id' => 'getCreatorId', - 'device' => 'getDevice', - 'payment_url' => 'getPaymentUrl', - 'receipt_url' => 'getReceiptUrl', - 'inclusive_tax_money' => 'getInclusiveTaxMoney', - 'additive_tax_money' => 'getAdditiveTaxMoney', - 'tax_money' => 'getTaxMoney', - 'tip_money' => 'getTipMoney', - 'discount_money' => 'getDiscountMoney', - 'total_collected_money' => 'getTotalCollectedMoney', - 'processing_fee_money' => 'getProcessingFeeMoney', - 'net_total_money' => 'getNetTotalMoney', - 'refunded_money' => 'getRefundedMoney', - 'swedish_rounding_money' => 'getSwedishRoundingMoney', - 'gross_sales_money' => 'getGrossSalesMoney', - 'net_sales_money' => 'getNetSalesMoney', - 'inclusive_tax' => 'getInclusiveTax', - 'additive_tax' => 'getAdditiveTax', - 'tender' => 'getTender', - 'refunds' => 'getRefunds', - 'itemizations' => 'getItemizations', - 'surcharge_money' => 'getSurchargeMoney', - 'surcharges' => 'getSurcharges', - 'is_partial' => 'getIsPartial' - ); - - /** - * $id The payment's unique identifier. - * @var string - */ - protected $id; - /** - * $merchant_id The unique identifier of the merchant that took the payment. - * @var string - */ - protected $merchant_id; - /** - * $created_at The time when the payment was created, in ISO 8601 format. Reflects the time of the first payment if the object represents an incomplete partial payment, and the time of the last or complete payment otherwise. - * @var string - */ - protected $created_at; - /** - * $creator_id The unique identifier of the Square account that took the payment. - * @var string - */ - protected $creator_id; - /** - * $device The device that took the payment. - * @var \SquareConnect\Model\Device - */ - protected $device; - /** - * $payment_url The URL of the payment's detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page. - * @var string - */ - protected $payment_url; - /** - * $receipt_url The URL of the receipt for the payment. Note that for split tender payments, this URL corresponds to the receipt for the first tender listed in the payment's tender field. Each Tender object has its own receipt_url field you can use to get the other receipts associated with a split tender payment. - * @var string - */ - protected $receipt_url; - /** - * $inclusive_tax_money The sum of all inclusive taxes associated with the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $inclusive_tax_money; - /** - * $additive_tax_money The sum of all additive taxes associated with the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $additive_tax_money; - /** - * $tax_money The total of all taxes applied to the payment. This is always the sum of inclusive_tax_money and additive_tax_money. - * @var \SquareConnect\Model\V1Money - */ - protected $tax_money; - /** - * $tip_money The total of all tips applied to the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $tip_money; - /** - * $discount_money The total of all discounts applied to the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $discount_money; - /** - * $total_collected_money The total of all discounts applied to the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $total_collected_money; - /** - * $processing_fee_money The total of all processing fees collected by Square for the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $processing_fee_money; - /** - * $net_total_money The amount to be deposited into the merchant's bank account for the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $net_total_money; - /** - * $refunded_money The total of all refunds applied to the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_money; - /** - * $swedish_rounding_money The total of all sales, including any applicable taxes, rounded to the smallest legal unit of currency (e.g., the nearest penny in USD, the nearest nickel in CAD) - * @var \SquareConnect\Model\V1Money - */ - protected $swedish_rounding_money; - /** - * $gross_sales_money The total of all sales, including any applicable taxes. - * @var \SquareConnect\Model\V1Money - */ - protected $gross_sales_money; - /** - * $net_sales_money The total of all sales, minus any applicable taxes. - * @var \SquareConnect\Model\V1Money - */ - protected $net_sales_money; - /** - * $inclusive_tax All of the inclusive taxes associated with the payment. - * @var \SquareConnect\Model\V1PaymentTax[] - */ - protected $inclusive_tax; - /** - * $additive_tax All of the additive taxes associated with the payment. - * @var \SquareConnect\Model\V1PaymentTax[] - */ - protected $additive_tax; - /** - * $tender All of the tenders associated with the payment. - * @var \SquareConnect\Model\V1Tender[] - */ - protected $tender; - /** - * $refunds All of the refunds applied to the payment. Note that the value of all refunds on a payment can exceed the value of all tenders if a merchant chooses to refund money to a tender after previously accepting returned goods as part of an exchange. - * @var \SquareConnect\Model\V1Refund[] - */ - protected $refunds; - /** - * $itemizations The items purchased in the payment. - * @var \SquareConnect\Model\V1PaymentItemization[] - */ - protected $itemizations; - /** - * $surcharge_money The total of all surcharges applied to the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $surcharge_money; - /** - * $surcharges A list of all surcharges associated with the payment. - * @var \SquareConnect\Model\V1PaymentSurcharge[] - */ - protected $surcharges; - /** - * $is_partial Indicates whether or not the payment is only partially paid for. If true, this payment will have the tenders collected so far, but the itemizations will be empty until the payment is completed. - * @var bool - */ - protected $is_partial; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["merchant_id"])) { - $this->merchant_id = $data["merchant_id"]; - } else { - $this->merchant_id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["creator_id"])) { - $this->creator_id = $data["creator_id"]; - } else { - $this->creator_id = null; - } - if (isset($data["device"])) { - $this->device = $data["device"]; - } else { - $this->device = null; - } - if (isset($data["payment_url"])) { - $this->payment_url = $data["payment_url"]; - } else { - $this->payment_url = null; - } - if (isset($data["receipt_url"])) { - $this->receipt_url = $data["receipt_url"]; - } else { - $this->receipt_url = null; - } - if (isset($data["inclusive_tax_money"])) { - $this->inclusive_tax_money = $data["inclusive_tax_money"]; - } else { - $this->inclusive_tax_money = null; - } - if (isset($data["additive_tax_money"])) { - $this->additive_tax_money = $data["additive_tax_money"]; - } else { - $this->additive_tax_money = null; - } - if (isset($data["tax_money"])) { - $this->tax_money = $data["tax_money"]; - } else { - $this->tax_money = null; - } - if (isset($data["tip_money"])) { - $this->tip_money = $data["tip_money"]; - } else { - $this->tip_money = null; - } - if (isset($data["discount_money"])) { - $this->discount_money = $data["discount_money"]; - } else { - $this->discount_money = null; - } - if (isset($data["total_collected_money"])) { - $this->total_collected_money = $data["total_collected_money"]; - } else { - $this->total_collected_money = null; - } - if (isset($data["processing_fee_money"])) { - $this->processing_fee_money = $data["processing_fee_money"]; - } else { - $this->processing_fee_money = null; - } - if (isset($data["net_total_money"])) { - $this->net_total_money = $data["net_total_money"]; - } else { - $this->net_total_money = null; - } - if (isset($data["refunded_money"])) { - $this->refunded_money = $data["refunded_money"]; - } else { - $this->refunded_money = null; - } - if (isset($data["swedish_rounding_money"])) { - $this->swedish_rounding_money = $data["swedish_rounding_money"]; - } else { - $this->swedish_rounding_money = null; - } - if (isset($data["gross_sales_money"])) { - $this->gross_sales_money = $data["gross_sales_money"]; - } else { - $this->gross_sales_money = null; - } - if (isset($data["net_sales_money"])) { - $this->net_sales_money = $data["net_sales_money"]; - } else { - $this->net_sales_money = null; - } - if (isset($data["inclusive_tax"])) { - $this->inclusive_tax = $data["inclusive_tax"]; - } else { - $this->inclusive_tax = null; - } - if (isset($data["additive_tax"])) { - $this->additive_tax = $data["additive_tax"]; - } else { - $this->additive_tax = null; - } - if (isset($data["tender"])) { - $this->tender = $data["tender"]; - } else { - $this->tender = null; - } - if (isset($data["refunds"])) { - $this->refunds = $data["refunds"]; - } else { - $this->refunds = null; - } - if (isset($data["itemizations"])) { - $this->itemizations = $data["itemizations"]; - } else { - $this->itemizations = null; - } - if (isset($data["surcharge_money"])) { - $this->surcharge_money = $data["surcharge_money"]; - } else { - $this->surcharge_money = null; - } - if (isset($data["surcharges"])) { - $this->surcharges = $data["surcharges"]; - } else { - $this->surcharges = null; - } - if (isset($data["is_partial"])) { - $this->is_partial = $data["is_partial"]; - } else { - $this->is_partial = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The payment's unique identifier. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets merchant_id - * @return string - */ - public function getMerchantId() - { - return $this->merchant_id; - } - - /** - * Sets merchant_id - * @param string $merchant_id The unique identifier of the merchant that took the payment. - * @return $this - */ - public function setMerchantId($merchant_id) - { - $this->merchant_id = $merchant_id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the payment was created, in ISO 8601 format. Reflects the time of the first payment if the object represents an incomplete partial payment, and the time of the last or complete payment otherwise. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets creator_id - * @return string - */ - public function getCreatorId() - { - return $this->creator_id; - } - - /** - * Sets creator_id - * @param string $creator_id The unique identifier of the Square account that took the payment. - * @return $this - */ - public function setCreatorId($creator_id) - { - $this->creator_id = $creator_id; - return $this; - } - /** - * Gets device - * @return \SquareConnect\Model\Device - */ - public function getDevice() - { - return $this->device; - } - - /** - * Sets device - * @param \SquareConnect\Model\Device $device The device that took the payment. - * @return $this - */ - public function setDevice($device) - { - $this->device = $device; - return $this; - } - /** - * Gets payment_url - * @return string - */ - public function getPaymentUrl() - { - return $this->payment_url; - } - - /** - * Sets payment_url - * @param string $payment_url The URL of the payment's detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page. - * @return $this - */ - public function setPaymentUrl($payment_url) - { - $this->payment_url = $payment_url; - return $this; - } - /** - * Gets receipt_url - * @return string - */ - public function getReceiptUrl() - { - return $this->receipt_url; - } - - /** - * Sets receipt_url - * @param string $receipt_url The URL of the receipt for the payment. Note that for split tender payments, this URL corresponds to the receipt for the first tender listed in the payment's tender field. Each Tender object has its own receipt_url field you can use to get the other receipts associated with a split tender payment. - * @return $this - */ - public function setReceiptUrl($receipt_url) - { - $this->receipt_url = $receipt_url; - return $this; - } - /** - * Gets inclusive_tax_money - * @return \SquareConnect\Model\V1Money - */ - public function getInclusiveTaxMoney() - { - return $this->inclusive_tax_money; - } - - /** - * Sets inclusive_tax_money - * @param \SquareConnect\Model\V1Money $inclusive_tax_money The sum of all inclusive taxes associated with the payment. - * @return $this - */ - public function setInclusiveTaxMoney($inclusive_tax_money) - { - $this->inclusive_tax_money = $inclusive_tax_money; - return $this; - } - /** - * Gets additive_tax_money - * @return \SquareConnect\Model\V1Money - */ - public function getAdditiveTaxMoney() - { - return $this->additive_tax_money; - } - - /** - * Sets additive_tax_money - * @param \SquareConnect\Model\V1Money $additive_tax_money The sum of all additive taxes associated with the payment. - * @return $this - */ - public function setAdditiveTaxMoney($additive_tax_money) - { - $this->additive_tax_money = $additive_tax_money; - return $this; - } - /** - * Gets tax_money - * @return \SquareConnect\Model\V1Money - */ - public function getTaxMoney() - { - return $this->tax_money; - } - - /** - * Sets tax_money - * @param \SquareConnect\Model\V1Money $tax_money The total of all taxes applied to the payment. This is always the sum of inclusive_tax_money and additive_tax_money. - * @return $this - */ - public function setTaxMoney($tax_money) - { - $this->tax_money = $tax_money; - return $this; - } - /** - * Gets tip_money - * @return \SquareConnect\Model\V1Money - */ - public function getTipMoney() - { - return $this->tip_money; - } - - /** - * Sets tip_money - * @param \SquareConnect\Model\V1Money $tip_money The total of all tips applied to the payment. - * @return $this - */ - public function setTipMoney($tip_money) - { - $this->tip_money = $tip_money; - return $this; - } - /** - * Gets discount_money - * @return \SquareConnect\Model\V1Money - */ - public function getDiscountMoney() - { - return $this->discount_money; - } - - /** - * Sets discount_money - * @param \SquareConnect\Model\V1Money $discount_money The total of all discounts applied to the payment. - * @return $this - */ - public function setDiscountMoney($discount_money) - { - $this->discount_money = $discount_money; - return $this; - } - /** - * Gets total_collected_money - * @return \SquareConnect\Model\V1Money - */ - public function getTotalCollectedMoney() - { - return $this->total_collected_money; - } - - /** - * Sets total_collected_money - * @param \SquareConnect\Model\V1Money $total_collected_money The total of all discounts applied to the payment. - * @return $this - */ - public function setTotalCollectedMoney($total_collected_money) - { - $this->total_collected_money = $total_collected_money; - return $this; - } - /** - * Gets processing_fee_money - * @return \SquareConnect\Model\V1Money - */ - public function getProcessingFeeMoney() - { - return $this->processing_fee_money; - } - - /** - * Sets processing_fee_money - * @param \SquareConnect\Model\V1Money $processing_fee_money The total of all processing fees collected by Square for the payment. - * @return $this - */ - public function setProcessingFeeMoney($processing_fee_money) - { - $this->processing_fee_money = $processing_fee_money; - return $this; - } - /** - * Gets net_total_money - * @return \SquareConnect\Model\V1Money - */ - public function getNetTotalMoney() - { - return $this->net_total_money; - } - - /** - * Sets net_total_money - * @param \SquareConnect\Model\V1Money $net_total_money The amount to be deposited into the merchant's bank account for the payment. - * @return $this - */ - public function setNetTotalMoney($net_total_money) - { - $this->net_total_money = $net_total_money; - return $this; - } - /** - * Gets refunded_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedMoney() - { - return $this->refunded_money; - } - - /** - * Sets refunded_money - * @param \SquareConnect\Model\V1Money $refunded_money The total of all refunds applied to the payment. - * @return $this - */ - public function setRefundedMoney($refunded_money) - { - $this->refunded_money = $refunded_money; - return $this; - } - /** - * Gets swedish_rounding_money - * @return \SquareConnect\Model\V1Money - */ - public function getSwedishRoundingMoney() - { - return $this->swedish_rounding_money; - } - - /** - * Sets swedish_rounding_money - * @param \SquareConnect\Model\V1Money $swedish_rounding_money The total of all sales, including any applicable taxes, rounded to the smallest legal unit of currency (e.g., the nearest penny in USD, the nearest nickel in CAD) - * @return $this - */ - public function setSwedishRoundingMoney($swedish_rounding_money) - { - $this->swedish_rounding_money = $swedish_rounding_money; - return $this; - } - /** - * Gets gross_sales_money - * @return \SquareConnect\Model\V1Money - */ - public function getGrossSalesMoney() - { - return $this->gross_sales_money; - } - - /** - * Sets gross_sales_money - * @param \SquareConnect\Model\V1Money $gross_sales_money The total of all sales, including any applicable taxes. - * @return $this - */ - public function setGrossSalesMoney($gross_sales_money) - { - $this->gross_sales_money = $gross_sales_money; - return $this; - } - /** - * Gets net_sales_money - * @return \SquareConnect\Model\V1Money - */ - public function getNetSalesMoney() - { - return $this->net_sales_money; - } - - /** - * Sets net_sales_money - * @param \SquareConnect\Model\V1Money $net_sales_money The total of all sales, minus any applicable taxes. - * @return $this - */ - public function setNetSalesMoney($net_sales_money) - { - $this->net_sales_money = $net_sales_money; - return $this; - } - /** - * Gets inclusive_tax - * @return \SquareConnect\Model\V1PaymentTax[] - */ - public function getInclusiveTax() - { - return $this->inclusive_tax; - } - - /** - * Sets inclusive_tax - * @param \SquareConnect\Model\V1PaymentTax[] $inclusive_tax All of the inclusive taxes associated with the payment. - * @return $this - */ - public function setInclusiveTax($inclusive_tax) - { - $this->inclusive_tax = $inclusive_tax; - return $this; - } - /** - * Gets additive_tax - * @return \SquareConnect\Model\V1PaymentTax[] - */ - public function getAdditiveTax() - { - return $this->additive_tax; - } - - /** - * Sets additive_tax - * @param \SquareConnect\Model\V1PaymentTax[] $additive_tax All of the additive taxes associated with the payment. - * @return $this - */ - public function setAdditiveTax($additive_tax) - { - $this->additive_tax = $additive_tax; - return $this; - } - /** - * Gets tender - * @return \SquareConnect\Model\V1Tender[] - */ - public function getTender() - { - return $this->tender; - } - - /** - * Sets tender - * @param \SquareConnect\Model\V1Tender[] $tender All of the tenders associated with the payment. - * @return $this - */ - public function setTender($tender) - { - $this->tender = $tender; - return $this; - } - /** - * Gets refunds - * @return \SquareConnect\Model\V1Refund[] - */ - public function getRefunds() - { - return $this->refunds; - } - - /** - * Sets refunds - * @param \SquareConnect\Model\V1Refund[] $refunds All of the refunds applied to the payment. Note that the value of all refunds on a payment can exceed the value of all tenders if a merchant chooses to refund money to a tender after previously accepting returned goods as part of an exchange. - * @return $this - */ - public function setRefunds($refunds) - { - $this->refunds = $refunds; - return $this; - } - /** - * Gets itemizations - * @return \SquareConnect\Model\V1PaymentItemization[] - */ - public function getItemizations() - { - return $this->itemizations; - } - - /** - * Sets itemizations - * @param \SquareConnect\Model\V1PaymentItemization[] $itemizations The items purchased in the payment. - * @return $this - */ - public function setItemizations($itemizations) - { - $this->itemizations = $itemizations; - return $this; - } - /** - * Gets surcharge_money - * @return \SquareConnect\Model\V1Money - */ - public function getSurchargeMoney() - { - return $this->surcharge_money; - } - - /** - * Sets surcharge_money - * @param \SquareConnect\Model\V1Money $surcharge_money The total of all surcharges applied to the payment. - * @return $this - */ - public function setSurchargeMoney($surcharge_money) - { - $this->surcharge_money = $surcharge_money; - return $this; - } - /** - * Gets surcharges - * @return \SquareConnect\Model\V1PaymentSurcharge[] - */ - public function getSurcharges() - { - return $this->surcharges; - } - - /** - * Sets surcharges - * @param \SquareConnect\Model\V1PaymentSurcharge[] $surcharges A list of all surcharges associated with the payment. - * @return $this - */ - public function setSurcharges($surcharges) - { - $this->surcharges = $surcharges; - return $this; - } - /** - * Gets is_partial - * @return bool - */ - public function getIsPartial() - { - return $this->is_partial; - } - - /** - * Sets is_partial - * @param bool $is_partial Indicates whether or not the payment is only partially paid for. If true, this payment will have the tenders collected so far, but the itemizations will be empty until the payment is completed. - * @return $this - */ - public function setIsPartial($is_partial) - { - $this->is_partial = $is_partial; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentDiscount.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentDiscount.php deleted file mode 100644 index 2ed2b6e249..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentDiscount.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'applied_money' => '\SquareConnect\Model\V1Money', - 'discount_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'applied_money' => 'applied_money', - 'discount_id' => 'discount_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'applied_money' => 'setAppliedMoney', - 'discount_id' => 'setDiscountId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'applied_money' => 'getAppliedMoney', - 'discount_id' => 'getDiscountId' - ); - - /** - * $name The discount's name. - * @var string - */ - protected $name; - /** - * $applied_money The amount of money that this discount adds to the payment (note that this value is always negative or zero). - * @var \SquareConnect\Model\V1Money - */ - protected $applied_money; - /** - * $discount_id The ID of the applied discount, if available. Discounts applied in older versions of Square Register might not have an ID. - * @var string - */ - protected $discount_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["discount_id"])) { - $this->discount_id = $data["discount_id"]; - } else { - $this->discount_id = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The discount's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\V1Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\V1Money $applied_money The amount of money that this discount adds to the payment (note that this value is always negative or zero). - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets discount_id - * @return string - */ - public function getDiscountId() - { - return $this->discount_id; - } - - /** - * Sets discount_id - * @param string $discount_id The ID of the applied discount, if available. Discounts applied in older versions of Square Register might not have an ID. - * @return $this - */ - public function setDiscountId($discount_id) - { - $this->discount_id = $discount_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemDetail.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemDetail.php deleted file mode 100644 index 266fc856ae..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemDetail.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'sku' => 'string', - 'item_id' => 'string', - 'item_variation_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'category_name' => 'category_name', - 'sku' => 'sku', - 'item_id' => 'item_id', - 'item_variation_id' => 'item_variation_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'category_name' => 'setCategoryName', - 'sku' => 'setSku', - 'item_id' => 'setItemId', - 'item_variation_id' => 'setItemVariationId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'category_name' => 'getCategoryName', - 'sku' => 'getSku', - 'item_id' => 'getItemId', - 'item_variation_id' => 'getItemVariationId' - ); - - /** - * $category_name The name of the item's merchant-defined category, if any. - * @var string - */ - protected $category_name; - /** - * $sku The item's merchant-defined SKU, if any. - * @var string - */ - protected $sku; - /** - * $item_id The unique ID of the item purchased, if any. - * @var string - */ - protected $item_id; - /** - * $item_variation_id The unique ID of the item variation purchased, if any. - * @var string - */ - protected $item_variation_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["category_name"])) { - $this->category_name = $data["category_name"]; - } else { - $this->category_name = null; - } - if (isset($data["sku"])) { - $this->sku = $data["sku"]; - } else { - $this->sku = null; - } - if (isset($data["item_id"])) { - $this->item_id = $data["item_id"]; - } else { - $this->item_id = null; - } - if (isset($data["item_variation_id"])) { - $this->item_variation_id = $data["item_variation_id"]; - } else { - $this->item_variation_id = null; - } - } - } - /** - * Gets category_name - * @return string - */ - public function getCategoryName() - { - return $this->category_name; - } - - /** - * Sets category_name - * @param string $category_name The name of the item's merchant-defined category, if any. - * @return $this - */ - public function setCategoryName($category_name) - { - $this->category_name = $category_name; - return $this; - } - /** - * Gets sku - * @return string - */ - public function getSku() - { - return $this->sku; - } - - /** - * Sets sku - * @param string $sku The item's merchant-defined SKU, if any. - * @return $this - */ - public function setSku($sku) - { - $this->sku = $sku; - return $this; - } - /** - * Gets item_id - * @return string - */ - public function getItemId() - { - return $this->item_id; - } - - /** - * Sets item_id - * @param string $item_id The unique ID of the item purchased, if any. - * @return $this - */ - public function setItemId($item_id) - { - $this->item_id = $item_id; - return $this; - } - /** - * Gets item_variation_id - * @return string - */ - public function getItemVariationId() - { - return $this->item_variation_id; - } - - /** - * Sets item_variation_id - * @param string $item_variation_id The unique ID of the item variation purchased, if any. - * @return $this - */ - public function setItemVariationId($item_variation_id) - { - $this->item_variation_id = $item_variation_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemization.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemization.php deleted file mode 100644 index ef4572951b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemization.php +++ /dev/null @@ -1,575 +0,0 @@ - 'string', - 'quantity' => 'float', - 'itemization_type' => 'string', - 'item_detail' => '\SquareConnect\Model\V1PaymentItemDetail', - 'notes' => 'string', - 'item_variation_name' => 'string', - 'total_money' => '\SquareConnect\Model\V1Money', - 'single_quantity_money' => '\SquareConnect\Model\V1Money', - 'gross_sales_money' => '\SquareConnect\Model\V1Money', - 'discount_money' => '\SquareConnect\Model\V1Money', - 'net_sales_money' => '\SquareConnect\Model\V1Money', - 'taxes' => '\SquareConnect\Model\V1PaymentTax[]', - 'discounts' => '\SquareConnect\Model\V1PaymentDiscount[]', - 'modifiers' => '\SquareConnect\Model\V1PaymentModifier[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'quantity' => 'quantity', - 'itemization_type' => 'itemization_type', - 'item_detail' => 'item_detail', - 'notes' => 'notes', - 'item_variation_name' => 'item_variation_name', - 'total_money' => 'total_money', - 'single_quantity_money' => 'single_quantity_money', - 'gross_sales_money' => 'gross_sales_money', - 'discount_money' => 'discount_money', - 'net_sales_money' => 'net_sales_money', - 'taxes' => 'taxes', - 'discounts' => 'discounts', - 'modifiers' => 'modifiers' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'quantity' => 'setQuantity', - 'itemization_type' => 'setItemizationType', - 'item_detail' => 'setItemDetail', - 'notes' => 'setNotes', - 'item_variation_name' => 'setItemVariationName', - 'total_money' => 'setTotalMoney', - 'single_quantity_money' => 'setSingleQuantityMoney', - 'gross_sales_money' => 'setGrossSalesMoney', - 'discount_money' => 'setDiscountMoney', - 'net_sales_money' => 'setNetSalesMoney', - 'taxes' => 'setTaxes', - 'discounts' => 'setDiscounts', - 'modifiers' => 'setModifiers' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'quantity' => 'getQuantity', - 'itemization_type' => 'getItemizationType', - 'item_detail' => 'getItemDetail', - 'notes' => 'getNotes', - 'item_variation_name' => 'getItemVariationName', - 'total_money' => 'getTotalMoney', - 'single_quantity_money' => 'getSingleQuantityMoney', - 'gross_sales_money' => 'getGrossSalesMoney', - 'discount_money' => 'getDiscountMoney', - 'net_sales_money' => 'getNetSalesMoney', - 'taxes' => 'getTaxes', - 'discounts' => 'getDiscounts', - 'modifiers' => 'getModifiers' - ); - - /** - * $name The item's name. - * @var string - */ - protected $name; - /** - * $quantity The quantity of the item purchased. This can be a decimal value. - * @var float - */ - protected $quantity; - /** - * $itemization_type The type of purchase that the itemization represents, such as an ITEM or CUSTOM_AMOUNT See [V1PaymentItemizationItemizationType](#type-v1paymentitemizationitemizationtype) for possible values - * @var string - */ - protected $itemization_type; - /** - * $item_detail Details of the item, including its unique identifier and the identifier of the item variation purchased. - * @var \SquareConnect\Model\V1PaymentItemDetail - */ - protected $item_detail; - /** - * $notes Notes entered by the merchant about the item at the time of payment, if any. - * @var string - */ - protected $notes; - /** - * $item_variation_name The name of the item variation purchased, if any. - * @var string - */ - protected $item_variation_name; - /** - * $total_money The total cost of the item, including all taxes and discounts. - * @var \SquareConnect\Model\V1Money - */ - protected $total_money; - /** - * $single_quantity_money The cost of a single unit of this item. - * @var \SquareConnect\Model\V1Money - */ - protected $single_quantity_money; - /** - * $gross_sales_money The total cost of the itemization and its modifiers, not including taxes or discounts. - * @var \SquareConnect\Model\V1Money - */ - protected $gross_sales_money; - /** - * $discount_money The total of all discounts applied to the itemization. This value is always negative or zero. - * @var \SquareConnect\Model\V1Money - */ - protected $discount_money; - /** - * $net_sales_money The sum of gross_sales_money and discount_money. - * @var \SquareConnect\Model\V1Money - */ - protected $net_sales_money; - /** - * $taxes All taxes applied to this itemization. - * @var \SquareConnect\Model\V1PaymentTax[] - */ - protected $taxes; - /** - * $discounts All discounts applied to this itemization. - * @var \SquareConnect\Model\V1PaymentDiscount[] - */ - protected $discounts; - /** - * $modifiers All modifier options applied to this itemization. - * @var \SquareConnect\Model\V1PaymentModifier[] - */ - protected $modifiers; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["quantity"])) { - $this->quantity = $data["quantity"]; - } else { - $this->quantity = null; - } - if (isset($data["itemization_type"])) { - $this->itemization_type = $data["itemization_type"]; - } else { - $this->itemization_type = null; - } - if (isset($data["item_detail"])) { - $this->item_detail = $data["item_detail"]; - } else { - $this->item_detail = null; - } - if (isset($data["notes"])) { - $this->notes = $data["notes"]; - } else { - $this->notes = null; - } - if (isset($data["item_variation_name"])) { - $this->item_variation_name = $data["item_variation_name"]; - } else { - $this->item_variation_name = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - if (isset($data["single_quantity_money"])) { - $this->single_quantity_money = $data["single_quantity_money"]; - } else { - $this->single_quantity_money = null; - } - if (isset($data["gross_sales_money"])) { - $this->gross_sales_money = $data["gross_sales_money"]; - } else { - $this->gross_sales_money = null; - } - if (isset($data["discount_money"])) { - $this->discount_money = $data["discount_money"]; - } else { - $this->discount_money = null; - } - if (isset($data["net_sales_money"])) { - $this->net_sales_money = $data["net_sales_money"]; - } else { - $this->net_sales_money = null; - } - if (isset($data["taxes"])) { - $this->taxes = $data["taxes"]; - } else { - $this->taxes = null; - } - if (isset($data["discounts"])) { - $this->discounts = $data["discounts"]; - } else { - $this->discounts = null; - } - if (isset($data["modifiers"])) { - $this->modifiers = $data["modifiers"]; - } else { - $this->modifiers = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The item's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets quantity - * @return float - */ - public function getQuantity() - { - return $this->quantity; - } - - /** - * Sets quantity - * @param float $quantity The quantity of the item purchased. This can be a decimal value. - * @return $this - */ - public function setQuantity($quantity) - { - $this->quantity = $quantity; - return $this; - } - /** - * Gets itemization_type - * @return string - */ - public function getItemizationType() - { - return $this->itemization_type; - } - - /** - * Sets itemization_type - * @param string $itemization_type The type of purchase that the itemization represents, such as an ITEM or CUSTOM_AMOUNT See [V1PaymentItemizationItemizationType](#type-v1paymentitemizationitemizationtype) for possible values - * @return $this - */ - public function setItemizationType($itemization_type) - { - $this->itemization_type = $itemization_type; - return $this; - } - /** - * Gets item_detail - * @return \SquareConnect\Model\V1PaymentItemDetail - */ - public function getItemDetail() - { - return $this->item_detail; - } - - /** - * Sets item_detail - * @param \SquareConnect\Model\V1PaymentItemDetail $item_detail Details of the item, including its unique identifier and the identifier of the item variation purchased. - * @return $this - */ - public function setItemDetail($item_detail) - { - $this->item_detail = $item_detail; - return $this; - } - /** - * Gets notes - * @return string - */ - public function getNotes() - { - return $this->notes; - } - - /** - * Sets notes - * @param string $notes Notes entered by the merchant about the item at the time of payment, if any. - * @return $this - */ - public function setNotes($notes) - { - $this->notes = $notes; - return $this; - } - /** - * Gets item_variation_name - * @return string - */ - public function getItemVariationName() - { - return $this->item_variation_name; - } - - /** - * Sets item_variation_name - * @param string $item_variation_name The name of the item variation purchased, if any. - * @return $this - */ - public function setItemVariationName($item_variation_name) - { - $this->item_variation_name = $item_variation_name; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\V1Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\V1Money $total_money The total cost of the item, including all taxes and discounts. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Gets single_quantity_money - * @return \SquareConnect\Model\V1Money - */ - public function getSingleQuantityMoney() - { - return $this->single_quantity_money; - } - - /** - * Sets single_quantity_money - * @param \SquareConnect\Model\V1Money $single_quantity_money The cost of a single unit of this item. - * @return $this - */ - public function setSingleQuantityMoney($single_quantity_money) - { - $this->single_quantity_money = $single_quantity_money; - return $this; - } - /** - * Gets gross_sales_money - * @return \SquareConnect\Model\V1Money - */ - public function getGrossSalesMoney() - { - return $this->gross_sales_money; - } - - /** - * Sets gross_sales_money - * @param \SquareConnect\Model\V1Money $gross_sales_money The total cost of the itemization and its modifiers, not including taxes or discounts. - * @return $this - */ - public function setGrossSalesMoney($gross_sales_money) - { - $this->gross_sales_money = $gross_sales_money; - return $this; - } - /** - * Gets discount_money - * @return \SquareConnect\Model\V1Money - */ - public function getDiscountMoney() - { - return $this->discount_money; - } - - /** - * Sets discount_money - * @param \SquareConnect\Model\V1Money $discount_money The total of all discounts applied to the itemization. This value is always negative or zero. - * @return $this - */ - public function setDiscountMoney($discount_money) - { - $this->discount_money = $discount_money; - return $this; - } - /** - * Gets net_sales_money - * @return \SquareConnect\Model\V1Money - */ - public function getNetSalesMoney() - { - return $this->net_sales_money; - } - - /** - * Sets net_sales_money - * @param \SquareConnect\Model\V1Money $net_sales_money The sum of gross_sales_money and discount_money. - * @return $this - */ - public function setNetSalesMoney($net_sales_money) - { - $this->net_sales_money = $net_sales_money; - return $this; - } - /** - * Gets taxes - * @return \SquareConnect\Model\V1PaymentTax[] - */ - public function getTaxes() - { - return $this->taxes; - } - - /** - * Sets taxes - * @param \SquareConnect\Model\V1PaymentTax[] $taxes All taxes applied to this itemization. - * @return $this - */ - public function setTaxes($taxes) - { - $this->taxes = $taxes; - return $this; - } - /** - * Gets discounts - * @return \SquareConnect\Model\V1PaymentDiscount[] - */ - public function getDiscounts() - { - return $this->discounts; - } - - /** - * Sets discounts - * @param \SquareConnect\Model\V1PaymentDiscount[] $discounts All discounts applied to this itemization. - * @return $this - */ - public function setDiscounts($discounts) - { - $this->discounts = $discounts; - return $this; - } - /** - * Gets modifiers - * @return \SquareConnect\Model\V1PaymentModifier[] - */ - public function getModifiers() - { - return $this->modifiers; - } - - /** - * Sets modifiers - * @param \SquareConnect\Model\V1PaymentModifier[] $modifiers All modifier options applied to this itemization. - * @return $this - */ - public function setModifiers($modifiers) - { - $this->modifiers = $modifiers; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemizationItemizationType.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemizationItemizationType.php deleted file mode 100644 index 2b0e52a81d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentItemizationItemizationType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentModifier.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentModifier.php deleted file mode 100644 index 93728107fa..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentModifier.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'applied_money' => '\SquareConnect\Model\V1Money', - 'modifier_option_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'applied_money' => 'applied_money', - 'modifier_option_id' => 'modifier_option_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'applied_money' => 'setAppliedMoney', - 'modifier_option_id' => 'setModifierOptionId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'applied_money' => 'getAppliedMoney', - 'modifier_option_id' => 'getModifierOptionId' - ); - - /** - * $name The modifier option's name. - * @var string - */ - protected $name; - /** - * $applied_money The amount of money that this modifier option adds to the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $applied_money; - /** - * $modifier_option_id TThe ID of the applied modifier option, if available. Modifier options applied in older versions of Square Register might not have an ID. - * @var string - */ - protected $modifier_option_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["modifier_option_id"])) { - $this->modifier_option_id = $data["modifier_option_id"]; - } else { - $this->modifier_option_id = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The modifier option's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\V1Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\V1Money $applied_money The amount of money that this modifier option adds to the payment. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets modifier_option_id - * @return string - */ - public function getModifierOptionId() - { - return $this->modifier_option_id; - } - - /** - * Sets modifier_option_id - * @param string $modifier_option_id TThe ID of the applied modifier option, if available. Modifier options applied in older versions of Square Register might not have an ID. - * @return $this - */ - public function setModifierOptionId($modifier_option_id) - { - $this->modifier_option_id = $modifier_option_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentSurcharge.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentSurcharge.php deleted file mode 100644 index 5e060a6f62..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentSurcharge.php +++ /dev/null @@ -1,377 +0,0 @@ - 'string', - 'applied_money' => '\SquareConnect\Model\V1Money', - 'rate' => 'string', - 'amount_money' => '\SquareConnect\Model\V1Money', - 'type' => 'string', - 'taxable' => 'bool', - 'taxes' => '\SquareConnect\Model\V1PaymentTax[]', - 'surcharge_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'applied_money' => 'applied_money', - 'rate' => 'rate', - 'amount_money' => 'amount_money', - 'type' => 'type', - 'taxable' => 'taxable', - 'taxes' => 'taxes', - 'surcharge_id' => 'surcharge_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'applied_money' => 'setAppliedMoney', - 'rate' => 'setRate', - 'amount_money' => 'setAmountMoney', - 'type' => 'setType', - 'taxable' => 'setTaxable', - 'taxes' => 'setTaxes', - 'surcharge_id' => 'setSurchargeId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'applied_money' => 'getAppliedMoney', - 'rate' => 'getRate', - 'amount_money' => 'getAmountMoney', - 'type' => 'getType', - 'taxable' => 'getTaxable', - 'taxes' => 'getTaxes', - 'surcharge_id' => 'getSurchargeId' - ); - - /** - * $name The name of the surcharge. - * @var string - */ - protected $name; - /** - * $applied_money The amount of money applied to the order as a result of the surcharge. - * @var \SquareConnect\Model\V1Money - */ - protected $applied_money; - /** - * $rate The amount of the surcharge as a percentage. The percentage is provided as a string representing the decimal equivalent of the percentage. For example, \"0.7\" corresponds to a 7% surcharge. Exactly one of rate or amount_money should be set. - * @var string - */ - protected $rate; - /** - * $amount_money The amount of the surcharge as a Money object. Exactly one of rate or amount_money should be set. - * @var \SquareConnect\Model\V1Money - */ - protected $amount_money; - /** - * $type Indicates the source of the surcharge. For example, if it was applied as an automatic gratuity for a large group. See [V1PaymentSurchargeType](#type-v1paymentsurchargetype) for possible values - * @var string - */ - protected $type; - /** - * $taxable Indicates whether the surcharge is taxable. - * @var bool - */ - protected $taxable; - /** - * $taxes The list of taxes that should be applied to the surcharge. - * @var \SquareConnect\Model\V1PaymentTax[] - */ - protected $taxes; - /** - * $surcharge_id A Square-issued unique identifier associated with the surcharge. - * @var string - */ - protected $surcharge_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["rate"])) { - $this->rate = $data["rate"]; - } else { - $this->rate = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["taxable"])) { - $this->taxable = $data["taxable"]; - } else { - $this->taxable = null; - } - if (isset($data["taxes"])) { - $this->taxes = $data["taxes"]; - } else { - $this->taxes = null; - } - if (isset($data["surcharge_id"])) { - $this->surcharge_id = $data["surcharge_id"]; - } else { - $this->surcharge_id = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The name of the surcharge. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\V1Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\V1Money $applied_money The amount of money applied to the order as a result of the surcharge. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets rate - * @return string - */ - public function getRate() - { - return $this->rate; - } - - /** - * Sets rate - * @param string $rate The amount of the surcharge as a percentage. The percentage is provided as a string representing the decimal equivalent of the percentage. For example, \"0.7\" corresponds to a 7% surcharge. Exactly one of rate or amount_money should be set. - * @return $this - */ - public function setRate($rate) - { - $this->rate = $rate; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\V1Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\V1Money $amount_money The amount of the surcharge as a Money object. Exactly one of rate or amount_money should be set. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type Indicates the source of the surcharge. For example, if it was applied as an automatic gratuity for a large group. See [V1PaymentSurchargeType](#type-v1paymentsurchargetype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets taxable - * @return bool - */ - public function getTaxable() - { - return $this->taxable; - } - - /** - * Sets taxable - * @param bool $taxable Indicates whether the surcharge is taxable. - * @return $this - */ - public function setTaxable($taxable) - { - $this->taxable = $taxable; - return $this; - } - /** - * Gets taxes - * @return \SquareConnect\Model\V1PaymentTax[] - */ - public function getTaxes() - { - return $this->taxes; - } - - /** - * Sets taxes - * @param \SquareConnect\Model\V1PaymentTax[] $taxes The list of taxes that should be applied to the surcharge. - * @return $this - */ - public function setTaxes($taxes) - { - $this->taxes = $taxes; - return $this; - } - /** - * Gets surcharge_id - * @return string - */ - public function getSurchargeId() - { - return $this->surcharge_id; - } - - /** - * Sets surcharge_id - * @param string $surcharge_id A Square-issued unique identifier associated with the surcharge. - * @return $this - */ - public function setSurchargeId($surcharge_id) - { - $this->surcharge_id = $surcharge_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentSurchargeType.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentSurchargeType.php deleted file mode 100644 index 7bd2d477de..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentSurchargeType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentTax.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentTax.php deleted file mode 100644 index 2ef1f5e652..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentTax.php +++ /dev/null @@ -1,311 +0,0 @@ - '\SquareConnect\Model\Error[]', - 'name' => 'string', - 'applied_money' => '\SquareConnect\Model\V1Money', - 'rate' => 'string', - 'inclusion_type' => 'string', - 'fee_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors', - 'name' => 'name', - 'applied_money' => 'applied_money', - 'rate' => 'rate', - 'inclusion_type' => 'inclusion_type', - 'fee_id' => 'fee_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors', - 'name' => 'setName', - 'applied_money' => 'setAppliedMoney', - 'rate' => 'setRate', - 'inclusion_type' => 'setInclusionType', - 'fee_id' => 'setFeeId' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors', - 'name' => 'getName', - 'applied_money' => 'getAppliedMoney', - 'rate' => 'getRate', - 'inclusion_type' => 'getInclusionType', - 'fee_id' => 'getFeeId' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - /** - * $name The merchant-defined name of the tax. - * @var string - */ - protected $name; - /** - * $applied_money The amount of money that this tax adds to the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $applied_money; - /** - * $rate The rate of the tax, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%. - * @var string - */ - protected $rate; - /** - * $inclusion_type Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1PaymentTaxInclusionType](#type-v1paymenttaxinclusiontype) for possible values - * @var string - */ - protected $inclusion_type; - /** - * $fee_id The ID of the tax, if available. Taxes applied in older versions of Square Register might not have an ID. - * @var string - */ - protected $fee_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["applied_money"])) { - $this->applied_money = $data["applied_money"]; - } else { - $this->applied_money = null; - } - if (isset($data["rate"])) { - $this->rate = $data["rate"]; - } else { - $this->rate = null; - } - if (isset($data["inclusion_type"])) { - $this->inclusion_type = $data["inclusion_type"]; - } else { - $this->inclusion_type = null; - } - if (isset($data["fee_id"])) { - $this->fee_id = $data["fee_id"]; - } else { - $this->fee_id = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The merchant-defined name of the tax. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets applied_money - * @return \SquareConnect\Model\V1Money - */ - public function getAppliedMoney() - { - return $this->applied_money; - } - - /** - * Sets applied_money - * @param \SquareConnect\Model\V1Money $applied_money The amount of money that this tax adds to the payment. - * @return $this - */ - public function setAppliedMoney($applied_money) - { - $this->applied_money = $applied_money; - return $this; - } - /** - * Gets rate - * @return string - */ - public function getRate() - { - return $this->rate; - } - - /** - * Sets rate - * @param string $rate The rate of the tax, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%. - * @return $this - */ - public function setRate($rate) - { - $this->rate = $rate; - return $this; - } - /** - * Gets inclusion_type - * @return string - */ - public function getInclusionType() - { - return $this->inclusion_type; - } - - /** - * Sets inclusion_type - * @param string $inclusion_type Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1PaymentTaxInclusionType](#type-v1paymenttaxinclusiontype) for possible values - * @return $this - */ - public function setInclusionType($inclusion_type) - { - $this->inclusion_type = $inclusion_type; - return $this; - } - /** - * Gets fee_id - * @return string - */ - public function getFeeId() - { - return $this->fee_id; - } - - /** - * Sets fee_id - * @param string $fee_id The ID of the tax, if available. Taxes applied in older versions of Square Register might not have an ID. - * @return $this - */ - public function setFeeId($fee_id) - { - $this->fee_id = $fee_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PaymentTaxInclusionType.php b/includes/classes/vendors/square/connect/lib/Model/V1PaymentTaxInclusionType.php deleted file mode 100644 index 6d907cac7f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PaymentTaxInclusionType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1PhoneNumber.php b/includes/classes/vendors/square/connect/lib/Model/V1PhoneNumber.php deleted file mode 100644 index efec161c84..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1PhoneNumber.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'number' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'calling_code' => 'calling_code', - 'number' => 'number' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'calling_code' => 'setCallingCode', - 'number' => 'setNumber' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'calling_code' => 'getCallingCode', - 'number' => 'getNumber' - ); - - /** - * $calling_code The phone number's international calling code. For US phone numbers, this value is +1. - * @var string - */ - protected $calling_code; - /** - * $number The phone number. - * @var string - */ - protected $number; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["calling_code"])) { - $this->calling_code = $data["calling_code"]; - } else { - $this->calling_code = null; - } - if (isset($data["number"])) { - $this->number = $data["number"]; - } else { - $this->number = null; - } - } - } - /** - * Gets calling_code - * @return string - */ - public function getCallingCode() - { - return $this->calling_code; - } - - /** - * Sets calling_code - * @param string $calling_code The phone number's international calling code. For US phone numbers, this value is +1. - * @return $this - */ - public function setCallingCode($calling_code) - { - $this->calling_code = $calling_code; - return $this; - } - /** - * Gets number - * @return string - */ - public function getNumber() - { - return $this->number; - } - - /** - * Sets number - * @param string $number The phone number. - * @return $this - */ - public function setNumber($number) - { - $this->number = $number; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Refund.php b/includes/classes/vendors/square/connect/lib/Model/V1Refund.php deleted file mode 100644 index f412bc9362..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Refund.php +++ /dev/null @@ -1,707 +0,0 @@ - 'string', - 'reason' => 'string', - 'refunded_money' => '\SquareConnect\Model\V1Money', - 'refunded_processing_fee_money' => '\SquareConnect\Model\V1Money', - 'refunded_tax_money' => '\SquareConnect\Model\V1Money', - 'refunded_additive_tax_money' => '\SquareConnect\Model\V1Money', - 'refunded_additive_tax' => '\SquareConnect\Model\V1PaymentTax[]', - 'refunded_inclusive_tax_money' => '\SquareConnect\Model\V1Money', - 'refunded_inclusive_tax' => '\SquareConnect\Model\V1PaymentTax[]', - 'refunded_tip_money' => '\SquareConnect\Model\V1Money', - 'refunded_discount_money' => '\SquareConnect\Model\V1Money', - 'refunded_surcharge_money' => '\SquareConnect\Model\V1Money', - 'refunded_surcharges' => '\SquareConnect\Model\V1PaymentSurcharge[]', - 'created_at' => 'string', - 'processed_at' => 'string', - 'payment_id' => 'string', - 'merchant_id' => 'string', - 'is_exchange' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'type' => 'type', - 'reason' => 'reason', - 'refunded_money' => 'refunded_money', - 'refunded_processing_fee_money' => 'refunded_processing_fee_money', - 'refunded_tax_money' => 'refunded_tax_money', - 'refunded_additive_tax_money' => 'refunded_additive_tax_money', - 'refunded_additive_tax' => 'refunded_additive_tax', - 'refunded_inclusive_tax_money' => 'refunded_inclusive_tax_money', - 'refunded_inclusive_tax' => 'refunded_inclusive_tax', - 'refunded_tip_money' => 'refunded_tip_money', - 'refunded_discount_money' => 'refunded_discount_money', - 'refunded_surcharge_money' => 'refunded_surcharge_money', - 'refunded_surcharges' => 'refunded_surcharges', - 'created_at' => 'created_at', - 'processed_at' => 'processed_at', - 'payment_id' => 'payment_id', - 'merchant_id' => 'merchant_id', - 'is_exchange' => 'is_exchange' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'type' => 'setType', - 'reason' => 'setReason', - 'refunded_money' => 'setRefundedMoney', - 'refunded_processing_fee_money' => 'setRefundedProcessingFeeMoney', - 'refunded_tax_money' => 'setRefundedTaxMoney', - 'refunded_additive_tax_money' => 'setRefundedAdditiveTaxMoney', - 'refunded_additive_tax' => 'setRefundedAdditiveTax', - 'refunded_inclusive_tax_money' => 'setRefundedInclusiveTaxMoney', - 'refunded_inclusive_tax' => 'setRefundedInclusiveTax', - 'refunded_tip_money' => 'setRefundedTipMoney', - 'refunded_discount_money' => 'setRefundedDiscountMoney', - 'refunded_surcharge_money' => 'setRefundedSurchargeMoney', - 'refunded_surcharges' => 'setRefundedSurcharges', - 'created_at' => 'setCreatedAt', - 'processed_at' => 'setProcessedAt', - 'payment_id' => 'setPaymentId', - 'merchant_id' => 'setMerchantId', - 'is_exchange' => 'setIsExchange' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'type' => 'getType', - 'reason' => 'getReason', - 'refunded_money' => 'getRefundedMoney', - 'refunded_processing_fee_money' => 'getRefundedProcessingFeeMoney', - 'refunded_tax_money' => 'getRefundedTaxMoney', - 'refunded_additive_tax_money' => 'getRefundedAdditiveTaxMoney', - 'refunded_additive_tax' => 'getRefundedAdditiveTax', - 'refunded_inclusive_tax_money' => 'getRefundedInclusiveTaxMoney', - 'refunded_inclusive_tax' => 'getRefundedInclusiveTax', - 'refunded_tip_money' => 'getRefundedTipMoney', - 'refunded_discount_money' => 'getRefundedDiscountMoney', - 'refunded_surcharge_money' => 'getRefundedSurchargeMoney', - 'refunded_surcharges' => 'getRefundedSurcharges', - 'created_at' => 'getCreatedAt', - 'processed_at' => 'getProcessedAt', - 'payment_id' => 'getPaymentId', - 'merchant_id' => 'getMerchantId', - 'is_exchange' => 'getIsExchange' - ); - - /** - * $type The type of refund See [V1RefundType](#type-v1refundtype) for possible values - * @var string - */ - protected $type; - /** - * $reason The merchant-specified reason for the refund. - * @var string - */ - protected $reason; - /** - * $refunded_money The amount of money refunded. This amount is always negative. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_money; - /** - * $refunded_processing_fee_money The amount of processing fee money refunded. This amount is always positive. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_processing_fee_money; - /** - * $refunded_tax_money The total amount of tax money refunded. This amount is always negative. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_tax_money; - /** - * $refunded_additive_tax_money The amount of additive tax money refunded. This amount is always negative. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_additive_tax_money; - /** - * $refunded_additive_tax All of the additive taxes associated with the refund. - * @var \SquareConnect\Model\V1PaymentTax[] - */ - protected $refunded_additive_tax; - /** - * $refunded_inclusive_tax_money The amount of inclusive tax money refunded. This amount is always negative. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_inclusive_tax_money; - /** - * $refunded_inclusive_tax All of the inclusive taxes associated with the refund. - * @var \SquareConnect\Model\V1PaymentTax[] - */ - protected $refunded_inclusive_tax; - /** - * $refunded_tip_money The amount of tip money refunded. This amount is always negative. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_tip_money; - /** - * $refunded_discount_money The amount of discount money refunded. This amount is always positive. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_discount_money; - /** - * $refunded_surcharge_money The amount of surcharge money refunded. This amount is always negative. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_surcharge_money; - /** - * $refunded_surcharges A list of all surcharges associated with the refund. - * @var \SquareConnect\Model\V1PaymentSurcharge[] - */ - protected $refunded_surcharges; - /** - * $created_at The time when the merchant initiated the refund for Square to process, in ISO 8601 format. - * @var string - */ - protected $created_at; - /** - * $processed_at The time when Square processed the refund on behalf of the merchant, in ISO 8601 format. - * @var string - */ - protected $processed_at; - /** - * $payment_id A Square-issued ID associated with the refund. For single-tender refunds, payment_id is the ID of the original payment ID. For split-tender refunds, payment_id is the ID of the original tender. For exchange-based refunds (is_exchange == true), payment_id is the ID of the original payment ID even if the payment includes other tenders. - * @var string - */ - protected $payment_id; - /** - * $merchant_id - * @var string - */ - protected $merchant_id; - /** - * $is_exchange Indicates whether or not the refund is associated with an exchange. If is_exchange is true, the refund reflects the value of goods returned in the exchange not the total money refunded. - * @var bool - */ - protected $is_exchange; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["reason"])) { - $this->reason = $data["reason"]; - } else { - $this->reason = null; - } - if (isset($data["refunded_money"])) { - $this->refunded_money = $data["refunded_money"]; - } else { - $this->refunded_money = null; - } - if (isset($data["refunded_processing_fee_money"])) { - $this->refunded_processing_fee_money = $data["refunded_processing_fee_money"]; - } else { - $this->refunded_processing_fee_money = null; - } - if (isset($data["refunded_tax_money"])) { - $this->refunded_tax_money = $data["refunded_tax_money"]; - } else { - $this->refunded_tax_money = null; - } - if (isset($data["refunded_additive_tax_money"])) { - $this->refunded_additive_tax_money = $data["refunded_additive_tax_money"]; - } else { - $this->refunded_additive_tax_money = null; - } - if (isset($data["refunded_additive_tax"])) { - $this->refunded_additive_tax = $data["refunded_additive_tax"]; - } else { - $this->refunded_additive_tax = null; - } - if (isset($data["refunded_inclusive_tax_money"])) { - $this->refunded_inclusive_tax_money = $data["refunded_inclusive_tax_money"]; - } else { - $this->refunded_inclusive_tax_money = null; - } - if (isset($data["refunded_inclusive_tax"])) { - $this->refunded_inclusive_tax = $data["refunded_inclusive_tax"]; - } else { - $this->refunded_inclusive_tax = null; - } - if (isset($data["refunded_tip_money"])) { - $this->refunded_tip_money = $data["refunded_tip_money"]; - } else { - $this->refunded_tip_money = null; - } - if (isset($data["refunded_discount_money"])) { - $this->refunded_discount_money = $data["refunded_discount_money"]; - } else { - $this->refunded_discount_money = null; - } - if (isset($data["refunded_surcharge_money"])) { - $this->refunded_surcharge_money = $data["refunded_surcharge_money"]; - } else { - $this->refunded_surcharge_money = null; - } - if (isset($data["refunded_surcharges"])) { - $this->refunded_surcharges = $data["refunded_surcharges"]; - } else { - $this->refunded_surcharges = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["processed_at"])) { - $this->processed_at = $data["processed_at"]; - } else { - $this->processed_at = null; - } - if (isset($data["payment_id"])) { - $this->payment_id = $data["payment_id"]; - } else { - $this->payment_id = null; - } - if (isset($data["merchant_id"])) { - $this->merchant_id = $data["merchant_id"]; - } else { - $this->merchant_id = null; - } - if (isset($data["is_exchange"])) { - $this->is_exchange = $data["is_exchange"]; - } else { - $this->is_exchange = null; - } - } - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of refund See [V1RefundType](#type-v1refundtype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets reason - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Sets reason - * @param string $reason The merchant-specified reason for the refund. - * @return $this - */ - public function setReason($reason) - { - $this->reason = $reason; - return $this; - } - /** - * Gets refunded_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedMoney() - { - return $this->refunded_money; - } - - /** - * Sets refunded_money - * @param \SquareConnect\Model\V1Money $refunded_money The amount of money refunded. This amount is always negative. - * @return $this - */ - public function setRefundedMoney($refunded_money) - { - $this->refunded_money = $refunded_money; - return $this; - } - /** - * Gets refunded_processing_fee_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedProcessingFeeMoney() - { - return $this->refunded_processing_fee_money; - } - - /** - * Sets refunded_processing_fee_money - * @param \SquareConnect\Model\V1Money $refunded_processing_fee_money The amount of processing fee money refunded. This amount is always positive. - * @return $this - */ - public function setRefundedProcessingFeeMoney($refunded_processing_fee_money) - { - $this->refunded_processing_fee_money = $refunded_processing_fee_money; - return $this; - } - /** - * Gets refunded_tax_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedTaxMoney() - { - return $this->refunded_tax_money; - } - - /** - * Sets refunded_tax_money - * @param \SquareConnect\Model\V1Money $refunded_tax_money The total amount of tax money refunded. This amount is always negative. - * @return $this - */ - public function setRefundedTaxMoney($refunded_tax_money) - { - $this->refunded_tax_money = $refunded_tax_money; - return $this; - } - /** - * Gets refunded_additive_tax_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedAdditiveTaxMoney() - { - return $this->refunded_additive_tax_money; - } - - /** - * Sets refunded_additive_tax_money - * @param \SquareConnect\Model\V1Money $refunded_additive_tax_money The amount of additive tax money refunded. This amount is always negative. - * @return $this - */ - public function setRefundedAdditiveTaxMoney($refunded_additive_tax_money) - { - $this->refunded_additive_tax_money = $refunded_additive_tax_money; - return $this; - } - /** - * Gets refunded_additive_tax - * @return \SquareConnect\Model\V1PaymentTax[] - */ - public function getRefundedAdditiveTax() - { - return $this->refunded_additive_tax; - } - - /** - * Sets refunded_additive_tax - * @param \SquareConnect\Model\V1PaymentTax[] $refunded_additive_tax All of the additive taxes associated with the refund. - * @return $this - */ - public function setRefundedAdditiveTax($refunded_additive_tax) - { - $this->refunded_additive_tax = $refunded_additive_tax; - return $this; - } - /** - * Gets refunded_inclusive_tax_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedInclusiveTaxMoney() - { - return $this->refunded_inclusive_tax_money; - } - - /** - * Sets refunded_inclusive_tax_money - * @param \SquareConnect\Model\V1Money $refunded_inclusive_tax_money The amount of inclusive tax money refunded. This amount is always negative. - * @return $this - */ - public function setRefundedInclusiveTaxMoney($refunded_inclusive_tax_money) - { - $this->refunded_inclusive_tax_money = $refunded_inclusive_tax_money; - return $this; - } - /** - * Gets refunded_inclusive_tax - * @return \SquareConnect\Model\V1PaymentTax[] - */ - public function getRefundedInclusiveTax() - { - return $this->refunded_inclusive_tax; - } - - /** - * Sets refunded_inclusive_tax - * @param \SquareConnect\Model\V1PaymentTax[] $refunded_inclusive_tax All of the inclusive taxes associated with the refund. - * @return $this - */ - public function setRefundedInclusiveTax($refunded_inclusive_tax) - { - $this->refunded_inclusive_tax = $refunded_inclusive_tax; - return $this; - } - /** - * Gets refunded_tip_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedTipMoney() - { - return $this->refunded_tip_money; - } - - /** - * Sets refunded_tip_money - * @param \SquareConnect\Model\V1Money $refunded_tip_money The amount of tip money refunded. This amount is always negative. - * @return $this - */ - public function setRefundedTipMoney($refunded_tip_money) - { - $this->refunded_tip_money = $refunded_tip_money; - return $this; - } - /** - * Gets refunded_discount_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedDiscountMoney() - { - return $this->refunded_discount_money; - } - - /** - * Sets refunded_discount_money - * @param \SquareConnect\Model\V1Money $refunded_discount_money The amount of discount money refunded. This amount is always positive. - * @return $this - */ - public function setRefundedDiscountMoney($refunded_discount_money) - { - $this->refunded_discount_money = $refunded_discount_money; - return $this; - } - /** - * Gets refunded_surcharge_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedSurchargeMoney() - { - return $this->refunded_surcharge_money; - } - - /** - * Sets refunded_surcharge_money - * @param \SquareConnect\Model\V1Money $refunded_surcharge_money The amount of surcharge money refunded. This amount is always negative. - * @return $this - */ - public function setRefundedSurchargeMoney($refunded_surcharge_money) - { - $this->refunded_surcharge_money = $refunded_surcharge_money; - return $this; - } - /** - * Gets refunded_surcharges - * @return \SquareConnect\Model\V1PaymentSurcharge[] - */ - public function getRefundedSurcharges() - { - return $this->refunded_surcharges; - } - - /** - * Sets refunded_surcharges - * @param \SquareConnect\Model\V1PaymentSurcharge[] $refunded_surcharges A list of all surcharges associated with the refund. - * @return $this - */ - public function setRefundedSurcharges($refunded_surcharges) - { - $this->refunded_surcharges = $refunded_surcharges; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the merchant initiated the refund for Square to process, in ISO 8601 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets processed_at - * @return string - */ - public function getProcessedAt() - { - return $this->processed_at; - } - - /** - * Sets processed_at - * @param string $processed_at The time when Square processed the refund on behalf of the merchant, in ISO 8601 format. - * @return $this - */ - public function setProcessedAt($processed_at) - { - $this->processed_at = $processed_at; - return $this; - } - /** - * Gets payment_id - * @return string - */ - public function getPaymentId() - { - return $this->payment_id; - } - - /** - * Sets payment_id - * @param string $payment_id A Square-issued ID associated with the refund. For single-tender refunds, payment_id is the ID of the original payment ID. For split-tender refunds, payment_id is the ID of the original tender. For exchange-based refunds (is_exchange == true), payment_id is the ID of the original payment ID even if the payment includes other tenders. - * @return $this - */ - public function setPaymentId($payment_id) - { - $this->payment_id = $payment_id; - return $this; - } - /** - * Gets merchant_id - * @return string - */ - public function getMerchantId() - { - return $this->merchant_id; - } - - /** - * Sets merchant_id - * @param string $merchant_id - * @return $this - */ - public function setMerchantId($merchant_id) - { - $this->merchant_id = $merchant_id; - return $this; - } - /** - * Gets is_exchange - * @return bool - */ - public function getIsExchange() - { - return $this->is_exchange; - } - - /** - * Sets is_exchange - * @param bool $is_exchange Indicates whether or not the refund is associated with an exchange. If is_exchange is true, the refund reflects the value of goods returned in the exchange not the total money refunded. - * @return $this - */ - public function setIsExchange($is_exchange) - { - $this->is_exchange = $is_exchange; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RefundType.php b/includes/classes/vendors/square/connect/lib/Model/V1RefundType.php deleted file mode 100644 index 05e600702b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RefundType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RemoveFeeRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RemoveFeeRequest.php deleted file mode 100644 index e8318d5c4e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RemoveFeeRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RemoveModifierListRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RemoveModifierListRequest.php deleted file mode 100644 index f5ff559a22..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RemoveModifierListRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveBankAccountRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveBankAccountRequest.php deleted file mode 100644 index 638cebf35e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveBankAccountRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveBusinessRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveBusinessRequest.php deleted file mode 100644 index 58c971b09b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveBusinessRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveCashDrawerShiftRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveCashDrawerShiftRequest.php deleted file mode 100644 index aa8b684537..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveCashDrawerShiftRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveEmployeeRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveEmployeeRequest.php deleted file mode 100644 index a926d0e7cd..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveEmployeeRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveEmployeeRoleRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveEmployeeRoleRequest.php deleted file mode 100644 index aef46cb5fa..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveEmployeeRoleRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveItemRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveItemRequest.php deleted file mode 100644 index 0e596f0864..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveItemRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveModifierListRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveModifierListRequest.php deleted file mode 100644 index 58be116ba1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveModifierListRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveOrderRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveOrderRequest.php deleted file mode 100644 index ddd6f5f856..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveOrderRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrievePaymentRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrievePaymentRequest.php deleted file mode 100644 index 87bb104a03..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrievePaymentRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveSettlementRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveSettlementRequest.php deleted file mode 100644 index d45692dd22..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveSettlementRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveTimecardRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1RetrieveTimecardRequest.php deleted file mode 100644 index b17d3e2c0f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1RetrieveTimecardRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Settlement.php b/includes/classes/vendors/square/connect/lib/Model/V1Settlement.php deleted file mode 100644 index 201ded031a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Settlement.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'status' => 'string', - 'total_money' => '\SquareConnect\Model\V1Money', - 'initiated_at' => 'string', - 'bank_account_id' => 'string', - 'entries' => '\SquareConnect\Model\V1SettlementEntry[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'status' => 'status', - 'total_money' => 'total_money', - 'initiated_at' => 'initiated_at', - 'bank_account_id' => 'bank_account_id', - 'entries' => 'entries' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'status' => 'setStatus', - 'total_money' => 'setTotalMoney', - 'initiated_at' => 'setInitiatedAt', - 'bank_account_id' => 'setBankAccountId', - 'entries' => 'setEntries' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'status' => 'getStatus', - 'total_money' => 'getTotalMoney', - 'initiated_at' => 'getInitiatedAt', - 'bank_account_id' => 'getBankAccountId', - 'entries' => 'getEntries' - ); - - /** - * $id The settlement's unique identifier. - * @var string - */ - protected $id; - /** - * $status The settlement's current status. See [V1SettlementStatus](#type-v1settlementstatus) for possible values - * @var string - */ - protected $status; - /** - * $total_money The amount of money involved in the settlement. A positive amount indicates a deposit, and a negative amount indicates a withdrawal. This amount is never zero. - * @var \SquareConnect\Model\V1Money - */ - protected $total_money; - /** - * $initiated_at The time when the settlement was submitted for deposit or withdrawal, in ISO 8601 format. - * @var string - */ - protected $initiated_at; - /** - * $bank_account_id The Square-issued unique identifier for the bank account associated with the settlement. - * @var string - */ - protected $bank_account_id; - /** - * $entries The entries included in this settlement. - * @var \SquareConnect\Model\V1SettlementEntry[] - */ - protected $entries; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["status"])) { - $this->status = $data["status"]; - } else { - $this->status = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - if (isset($data["initiated_at"])) { - $this->initiated_at = $data["initiated_at"]; - } else { - $this->initiated_at = null; - } - if (isset($data["bank_account_id"])) { - $this->bank_account_id = $data["bank_account_id"]; - } else { - $this->bank_account_id = null; - } - if (isset($data["entries"])) { - $this->entries = $data["entries"]; - } else { - $this->entries = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The settlement's unique identifier. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Sets status - * @param string $status The settlement's current status. See [V1SettlementStatus](#type-v1settlementstatus) for possible values - * @return $this - */ - public function setStatus($status) - { - $this->status = $status; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\V1Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\V1Money $total_money The amount of money involved in the settlement. A positive amount indicates a deposit, and a negative amount indicates a withdrawal. This amount is never zero. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Gets initiated_at - * @return string - */ - public function getInitiatedAt() - { - return $this->initiated_at; - } - - /** - * Sets initiated_at - * @param string $initiated_at The time when the settlement was submitted for deposit or withdrawal, in ISO 8601 format. - * @return $this - */ - public function setInitiatedAt($initiated_at) - { - $this->initiated_at = $initiated_at; - return $this; - } - /** - * Gets bank_account_id - * @return string - */ - public function getBankAccountId() - { - return $this->bank_account_id; - } - - /** - * Sets bank_account_id - * @param string $bank_account_id The Square-issued unique identifier for the bank account associated with the settlement. - * @return $this - */ - public function setBankAccountId($bank_account_id) - { - $this->bank_account_id = $bank_account_id; - return $this; - } - /** - * Gets entries - * @return \SquareConnect\Model\V1SettlementEntry[] - */ - public function getEntries() - { - return $this->entries; - } - - /** - * Sets entries - * @param \SquareConnect\Model\V1SettlementEntry[] $entries The entries included in this settlement. - * @return $this - */ - public function setEntries($entries) - { - $this->entries = $entries; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1SettlementEntry.php b/includes/classes/vendors/square/connect/lib/Model/V1SettlementEntry.php deleted file mode 100644 index 5f8c1c676f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1SettlementEntry.php +++ /dev/null @@ -1,245 +0,0 @@ - 'string', - 'type' => 'string', - 'amount_money' => '\SquareConnect\Model\V1Money', - 'fee_money' => '\SquareConnect\Model\V1Money' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'payment_id' => 'payment_id', - 'type' => 'type', - 'amount_money' => 'amount_money', - 'fee_money' => 'fee_money' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'payment_id' => 'setPaymentId', - 'type' => 'setType', - 'amount_money' => 'setAmountMoney', - 'fee_money' => 'setFeeMoney' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'payment_id' => 'getPaymentId', - 'type' => 'getType', - 'amount_money' => 'getAmountMoney', - 'fee_money' => 'getFeeMoney' - ); - - /** - * $payment_id The settlement's unique identifier. - * @var string - */ - protected $payment_id; - /** - * $type The settlement's current status. See [V1SettlementEntryType](#type-v1settlemententrytype) for possible values - * @var string - */ - protected $type; - /** - * $amount_money The total amount of money this entry contributes to the total settlement amount. - * @var \SquareConnect\Model\V1Money - */ - protected $amount_money; - /** - * $fee_money The amount of all Square fees associated with this settlement entry. This value is always negative or zero. - * @var \SquareConnect\Model\V1Money - */ - protected $fee_money; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["payment_id"])) { - $this->payment_id = $data["payment_id"]; - } else { - $this->payment_id = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["amount_money"])) { - $this->amount_money = $data["amount_money"]; - } else { - $this->amount_money = null; - } - if (isset($data["fee_money"])) { - $this->fee_money = $data["fee_money"]; - } else { - $this->fee_money = null; - } - } - } - /** - * Gets payment_id - * @return string - */ - public function getPaymentId() - { - return $this->payment_id; - } - - /** - * Sets payment_id - * @param string $payment_id The settlement's unique identifier. - * @return $this - */ - public function setPaymentId($payment_id) - { - $this->payment_id = $payment_id; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The settlement's current status. See [V1SettlementEntryType](#type-v1settlemententrytype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets amount_money - * @return \SquareConnect\Model\V1Money - */ - public function getAmountMoney() - { - return $this->amount_money; - } - - /** - * Sets amount_money - * @param \SquareConnect\Model\V1Money $amount_money The total amount of money this entry contributes to the total settlement amount. - * @return $this - */ - public function setAmountMoney($amount_money) - { - $this->amount_money = $amount_money; - return $this; - } - /** - * Gets fee_money - * @return \SquareConnect\Model\V1Money - */ - public function getFeeMoney() - { - return $this->fee_money; - } - - /** - * Sets fee_money - * @param \SquareConnect\Model\V1Money $fee_money The amount of all Square fees associated with this settlement entry. This value is always negative or zero. - * @return $this - */ - public function setFeeMoney($fee_money) - { - $this->fee_money = $fee_money; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1SettlementEntryType.php b/includes/classes/vendors/square/connect/lib/Model/V1SettlementEntryType.php deleted file mode 100644 index 42cdb35257..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1SettlementEntryType.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1SettlementStatus.php b/includes/classes/vendors/square/connect/lib/Model/V1SettlementStatus.php deleted file mode 100644 index 6e076bd40b..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1SettlementStatus.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Tender.php b/includes/classes/vendors/square/connect/lib/Model/V1Tender.php deleted file mode 100644 index 9eb337ef5e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Tender.php +++ /dev/null @@ -1,642 +0,0 @@ - 'string', - 'type' => 'string', - 'name' => 'string', - 'employee_id' => 'string', - 'receipt_url' => 'string', - 'card_brand' => 'string', - 'pan_suffix' => 'string', - 'entry_method' => 'string', - 'payment_note' => 'string', - 'total_money' => '\SquareConnect\Model\V1Money', - 'tendered_money' => '\SquareConnect\Model\V1Money', - 'tendered_at' => 'string', - 'settled_at' => 'string', - 'change_back_money' => '\SquareConnect\Model\V1Money', - 'refunded_money' => '\SquareConnect\Model\V1Money', - 'is_exchange' => 'bool' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'type' => 'type', - 'name' => 'name', - 'employee_id' => 'employee_id', - 'receipt_url' => 'receipt_url', - 'card_brand' => 'card_brand', - 'pan_suffix' => 'pan_suffix', - 'entry_method' => 'entry_method', - 'payment_note' => 'payment_note', - 'total_money' => 'total_money', - 'tendered_money' => 'tendered_money', - 'tendered_at' => 'tendered_at', - 'settled_at' => 'settled_at', - 'change_back_money' => 'change_back_money', - 'refunded_money' => 'refunded_money', - 'is_exchange' => 'is_exchange' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'type' => 'setType', - 'name' => 'setName', - 'employee_id' => 'setEmployeeId', - 'receipt_url' => 'setReceiptUrl', - 'card_brand' => 'setCardBrand', - 'pan_suffix' => 'setPanSuffix', - 'entry_method' => 'setEntryMethod', - 'payment_note' => 'setPaymentNote', - 'total_money' => 'setTotalMoney', - 'tendered_money' => 'setTenderedMoney', - 'tendered_at' => 'setTenderedAt', - 'settled_at' => 'setSettledAt', - 'change_back_money' => 'setChangeBackMoney', - 'refunded_money' => 'setRefundedMoney', - 'is_exchange' => 'setIsExchange' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'type' => 'getType', - 'name' => 'getName', - 'employee_id' => 'getEmployeeId', - 'receipt_url' => 'getReceiptUrl', - 'card_brand' => 'getCardBrand', - 'pan_suffix' => 'getPanSuffix', - 'entry_method' => 'getEntryMethod', - 'payment_note' => 'getPaymentNote', - 'total_money' => 'getTotalMoney', - 'tendered_money' => 'getTenderedMoney', - 'tendered_at' => 'getTenderedAt', - 'settled_at' => 'getSettledAt', - 'change_back_money' => 'getChangeBackMoney', - 'refunded_money' => 'getRefundedMoney', - 'is_exchange' => 'getIsExchange' - ); - - /** - * $id The tender's unique ID. - * @var string - */ - protected $id; - /** - * $type The type of tender. See [V1TenderType](#type-v1tendertype) for possible values - * @var string - */ - protected $type; - /** - * $name A human-readable description of the tender. - * @var string - */ - protected $name; - /** - * $employee_id The ID of the employee that processed the tender. - * @var string - */ - protected $employee_id; - /** - * $receipt_url The URL of the receipt for the tender. - * @var string - */ - protected $receipt_url; - /** - * $card_brand The brand of credit card provided. See [V1TenderCardBrand](#type-v1tendercardbrand) for possible values - * @var string - */ - protected $card_brand; - /** - * $pan_suffix The last four digits of the provided credit card's account number. - * @var string - */ - protected $pan_suffix; - /** - * $entry_method The tender's unique ID. See [V1TenderEntryMethod](#type-v1tenderentrymethod) for possible values - * @var string - */ - protected $entry_method; - /** - * $payment_note Notes entered by the merchant about the tender at the time of payment, if any. Typically only present for tender with the type: OTHER. - * @var string - */ - protected $payment_note; - /** - * $total_money The total amount of money provided in this form of tender. - * @var \SquareConnect\Model\V1Money - */ - protected $total_money; - /** - * $tendered_money The amount of total_money applied to the payment. - * @var \SquareConnect\Model\V1Money - */ - protected $tendered_money; - /** - * $tendered_at The time when the tender was created, in ISO 8601 format. - * @var string - */ - protected $tendered_at; - /** - * $settled_at The time when the tender was settled, in ISO 8601 format. - * @var string - */ - protected $settled_at; - /** - * $change_back_money The amount of total_money returned to the buyer as change. - * @var \SquareConnect\Model\V1Money - */ - protected $change_back_money; - /** - * $refunded_money The total of all refunds applied to this tender. This amount is always negative or zero. - * @var \SquareConnect\Model\V1Money - */ - protected $refunded_money; - /** - * $is_exchange Indicates whether or not the tender is associated with an exchange. If is_exchange is true, the tender represents the value of goods returned in an exchange not the actual money paid. The exchange value reduces the tender amounts needed to pay for items purchased in the exchange. - * @var bool - */ - protected $is_exchange; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["type"])) { - $this->type = $data["type"]; - } else { - $this->type = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["receipt_url"])) { - $this->receipt_url = $data["receipt_url"]; - } else { - $this->receipt_url = null; - } - if (isset($data["card_brand"])) { - $this->card_brand = $data["card_brand"]; - } else { - $this->card_brand = null; - } - if (isset($data["pan_suffix"])) { - $this->pan_suffix = $data["pan_suffix"]; - } else { - $this->pan_suffix = null; - } - if (isset($data["entry_method"])) { - $this->entry_method = $data["entry_method"]; - } else { - $this->entry_method = null; - } - if (isset($data["payment_note"])) { - $this->payment_note = $data["payment_note"]; - } else { - $this->payment_note = null; - } - if (isset($data["total_money"])) { - $this->total_money = $data["total_money"]; - } else { - $this->total_money = null; - } - if (isset($data["tendered_money"])) { - $this->tendered_money = $data["tendered_money"]; - } else { - $this->tendered_money = null; - } - if (isset($data["tendered_at"])) { - $this->tendered_at = $data["tendered_at"]; - } else { - $this->tendered_at = null; - } - if (isset($data["settled_at"])) { - $this->settled_at = $data["settled_at"]; - } else { - $this->settled_at = null; - } - if (isset($data["change_back_money"])) { - $this->change_back_money = $data["change_back_money"]; - } else { - $this->change_back_money = null; - } - if (isset($data["refunded_money"])) { - $this->refunded_money = $data["refunded_money"]; - } else { - $this->refunded_money = null; - } - if (isset($data["is_exchange"])) { - $this->is_exchange = $data["is_exchange"]; - } else { - $this->is_exchange = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The tender's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets type - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Sets type - * @param string $type The type of tender. See [V1TenderType](#type-v1tendertype) for possible values - * @return $this - */ - public function setType($type) - { - $this->type = $type; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name A human-readable description of the tender. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The ID of the employee that processed the tender. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets receipt_url - * @return string - */ - public function getReceiptUrl() - { - return $this->receipt_url; - } - - /** - * Sets receipt_url - * @param string $receipt_url The URL of the receipt for the tender. - * @return $this - */ - public function setReceiptUrl($receipt_url) - { - $this->receipt_url = $receipt_url; - return $this; - } - /** - * Gets card_brand - * @return string - */ - public function getCardBrand() - { - return $this->card_brand; - } - - /** - * Sets card_brand - * @param string $card_brand The brand of credit card provided. See [V1TenderCardBrand](#type-v1tendercardbrand) for possible values - * @return $this - */ - public function setCardBrand($card_brand) - { - $this->card_brand = $card_brand; - return $this; - } - /** - * Gets pan_suffix - * @return string - */ - public function getPanSuffix() - { - return $this->pan_suffix; - } - - /** - * Sets pan_suffix - * @param string $pan_suffix The last four digits of the provided credit card's account number. - * @return $this - */ - public function setPanSuffix($pan_suffix) - { - $this->pan_suffix = $pan_suffix; - return $this; - } - /** - * Gets entry_method - * @return string - */ - public function getEntryMethod() - { - return $this->entry_method; - } - - /** - * Sets entry_method - * @param string $entry_method The tender's unique ID. See [V1TenderEntryMethod](#type-v1tenderentrymethod) for possible values - * @return $this - */ - public function setEntryMethod($entry_method) - { - $this->entry_method = $entry_method; - return $this; - } - /** - * Gets payment_note - * @return string - */ - public function getPaymentNote() - { - return $this->payment_note; - } - - /** - * Sets payment_note - * @param string $payment_note Notes entered by the merchant about the tender at the time of payment, if any. Typically only present for tender with the type: OTHER. - * @return $this - */ - public function setPaymentNote($payment_note) - { - $this->payment_note = $payment_note; - return $this; - } - /** - * Gets total_money - * @return \SquareConnect\Model\V1Money - */ - public function getTotalMoney() - { - return $this->total_money; - } - - /** - * Sets total_money - * @param \SquareConnect\Model\V1Money $total_money The total amount of money provided in this form of tender. - * @return $this - */ - public function setTotalMoney($total_money) - { - $this->total_money = $total_money; - return $this; - } - /** - * Gets tendered_money - * @return \SquareConnect\Model\V1Money - */ - public function getTenderedMoney() - { - return $this->tendered_money; - } - - /** - * Sets tendered_money - * @param \SquareConnect\Model\V1Money $tendered_money The amount of total_money applied to the payment. - * @return $this - */ - public function setTenderedMoney($tendered_money) - { - $this->tendered_money = $tendered_money; - return $this; - } - /** - * Gets tendered_at - * @return string - */ - public function getTenderedAt() - { - return $this->tendered_at; - } - - /** - * Sets tendered_at - * @param string $tendered_at The time when the tender was created, in ISO 8601 format. - * @return $this - */ - public function setTenderedAt($tendered_at) - { - $this->tendered_at = $tendered_at; - return $this; - } - /** - * Gets settled_at - * @return string - */ - public function getSettledAt() - { - return $this->settled_at; - } - - /** - * Sets settled_at - * @param string $settled_at The time when the tender was settled, in ISO 8601 format. - * @return $this - */ - public function setSettledAt($settled_at) - { - $this->settled_at = $settled_at; - return $this; - } - /** - * Gets change_back_money - * @return \SquareConnect\Model\V1Money - */ - public function getChangeBackMoney() - { - return $this->change_back_money; - } - - /** - * Sets change_back_money - * @param \SquareConnect\Model\V1Money $change_back_money The amount of total_money returned to the buyer as change. - * @return $this - */ - public function setChangeBackMoney($change_back_money) - { - $this->change_back_money = $change_back_money; - return $this; - } - /** - * Gets refunded_money - * @return \SquareConnect\Model\V1Money - */ - public function getRefundedMoney() - { - return $this->refunded_money; - } - - /** - * Sets refunded_money - * @param \SquareConnect\Model\V1Money $refunded_money The total of all refunds applied to this tender. This amount is always negative or zero. - * @return $this - */ - public function setRefundedMoney($refunded_money) - { - $this->refunded_money = $refunded_money; - return $this; - } - /** - * Gets is_exchange - * @return bool - */ - public function getIsExchange() - { - return $this->is_exchange; - } - - /** - * Sets is_exchange - * @param bool $is_exchange Indicates whether or not the tender is associated with an exchange. If is_exchange is true, the tender represents the value of goods returned in an exchange not the actual money paid. The exchange value reduces the tender amounts needed to pay for items purchased in the exchange. - * @return $this - */ - public function setIsExchange($is_exchange) - { - $this->is_exchange = $is_exchange; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1TenderCardBrand.php b/includes/classes/vendors/square/connect/lib/Model/V1TenderCardBrand.php deleted file mode 100644 index 49bc2c5b76..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1TenderCardBrand.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1TenderEntryMethod.php b/includes/classes/vendors/square/connect/lib/Model/V1TenderEntryMethod.php deleted file mode 100644 index 6e4867f937..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1TenderEntryMethod.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1TenderType.php b/includes/classes/vendors/square/connect/lib/Model/V1TenderType.php deleted file mode 100644 index e20b7a53c1..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1TenderType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Timecard.php b/includes/classes/vendors/square/connect/lib/Model/V1Timecard.php deleted file mode 100644 index 1eeb13463f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Timecard.php +++ /dev/null @@ -1,510 +0,0 @@ - 'string', - 'employee_id' => 'string', - 'deleted' => 'bool', - 'clockin_time' => 'string', - 'clockout_time' => 'string', - 'clockin_location_id' => 'string', - 'clockout_location_id' => 'string', - 'created_at' => 'string', - 'updated_at' => 'string', - 'regular_seconds_worked' => 'float', - 'overtime_seconds_worked' => 'float', - 'doubletime_seconds_worked' => 'float' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'employee_id' => 'employee_id', - 'deleted' => 'deleted', - 'clockin_time' => 'clockin_time', - 'clockout_time' => 'clockout_time', - 'clockin_location_id' => 'clockin_location_id', - 'clockout_location_id' => 'clockout_location_id', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at', - 'regular_seconds_worked' => 'regular_seconds_worked', - 'overtime_seconds_worked' => 'overtime_seconds_worked', - 'doubletime_seconds_worked' => 'doubletime_seconds_worked' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'employee_id' => 'setEmployeeId', - 'deleted' => 'setDeleted', - 'clockin_time' => 'setClockinTime', - 'clockout_time' => 'setClockoutTime', - 'clockin_location_id' => 'setClockinLocationId', - 'clockout_location_id' => 'setClockoutLocationId', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'regular_seconds_worked' => 'setRegularSecondsWorked', - 'overtime_seconds_worked' => 'setOvertimeSecondsWorked', - 'doubletime_seconds_worked' => 'setDoubletimeSecondsWorked' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'employee_id' => 'getEmployeeId', - 'deleted' => 'getDeleted', - 'clockin_time' => 'getClockinTime', - 'clockout_time' => 'getClockoutTime', - 'clockin_location_id' => 'getClockinLocationId', - 'clockout_location_id' => 'getClockoutLocationId', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'regular_seconds_worked' => 'getRegularSecondsWorked', - 'overtime_seconds_worked' => 'getOvertimeSecondsWorked', - 'doubletime_seconds_worked' => 'getDoubletimeSecondsWorked' - ); - - /** - * $id The timecard's unique ID. - * @var string - */ - protected $id; - /** - * $employee_id The ID of the employee the timecard is associated with. - * @var string - */ - protected $employee_id; - /** - * $deleted If true, the timecard was deleted by the merchant, and it is no longer valid. - * @var bool - */ - protected $deleted; - /** - * $clockin_time The clock-in time for the timecard, in ISO 8601 format. - * @var string - */ - protected $clockin_time; - /** - * $clockout_time The clock-out time for the timecard, in ISO 8601 format. Provide this value only if importing timecard information from another system. - * @var string - */ - protected $clockout_time; - /** - * $clockin_location_id The ID of the location the employee clocked in from. We strongly reccomend providing a clockin_location_id. Square uses the clockin_location_id to determine a timecard’s timezone and overtime rules. - * @var string - */ - protected $clockin_location_id; - /** - * $clockout_location_id The ID of the location the employee clocked out from. Provide this value only if importing timecard information from another system. - * @var string - */ - protected $clockout_location_id; - /** - * $created_at The time when the timecard was created, in ISO 8601 format. - * @var string - */ - protected $created_at; - /** - * $updated_at The time when the timecard was most recently updated, in ISO 8601 format. - * @var string - */ - protected $updated_at; - /** - * $regular_seconds_worked The total number of regular (non-overtime) seconds worked in the timecard. - * @var float - */ - protected $regular_seconds_worked; - /** - * $overtime_seconds_worked The total number of overtime seconds worked in the timecard. - * @var float - */ - protected $overtime_seconds_worked; - /** - * $doubletime_seconds_worked The total number of doubletime seconds worked in the timecard. - * @var float - */ - protected $doubletime_seconds_worked; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["employee_id"])) { - $this->employee_id = $data["employee_id"]; - } else { - $this->employee_id = null; - } - if (isset($data["deleted"])) { - $this->deleted = $data["deleted"]; - } else { - $this->deleted = null; - } - if (isset($data["clockin_time"])) { - $this->clockin_time = $data["clockin_time"]; - } else { - $this->clockin_time = null; - } - if (isset($data["clockout_time"])) { - $this->clockout_time = $data["clockout_time"]; - } else { - $this->clockout_time = null; - } - if (isset($data["clockin_location_id"])) { - $this->clockin_location_id = $data["clockin_location_id"]; - } else { - $this->clockin_location_id = null; - } - if (isset($data["clockout_location_id"])) { - $this->clockout_location_id = $data["clockout_location_id"]; - } else { - $this->clockout_location_id = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - if (isset($data["regular_seconds_worked"])) { - $this->regular_seconds_worked = $data["regular_seconds_worked"]; - } else { - $this->regular_seconds_worked = null; - } - if (isset($data["overtime_seconds_worked"])) { - $this->overtime_seconds_worked = $data["overtime_seconds_worked"]; - } else { - $this->overtime_seconds_worked = null; - } - if (isset($data["doubletime_seconds_worked"])) { - $this->doubletime_seconds_worked = $data["doubletime_seconds_worked"]; - } else { - $this->doubletime_seconds_worked = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The timecard's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets employee_id - * @return string - */ - public function getEmployeeId() - { - return $this->employee_id; - } - - /** - * Sets employee_id - * @param string $employee_id The ID of the employee the timecard is associated with. - * @return $this - */ - public function setEmployeeId($employee_id) - { - $this->employee_id = $employee_id; - return $this; - } - /** - * Gets deleted - * @return bool - */ - public function getDeleted() - { - return $this->deleted; - } - - /** - * Sets deleted - * @param bool $deleted If true, the timecard was deleted by the merchant, and it is no longer valid. - * @return $this - */ - public function setDeleted($deleted) - { - $this->deleted = $deleted; - return $this; - } - /** - * Gets clockin_time - * @return string - */ - public function getClockinTime() - { - return $this->clockin_time; - } - - /** - * Sets clockin_time - * @param string $clockin_time The clock-in time for the timecard, in ISO 8601 format. - * @return $this - */ - public function setClockinTime($clockin_time) - { - $this->clockin_time = $clockin_time; - return $this; - } - /** - * Gets clockout_time - * @return string - */ - public function getClockoutTime() - { - return $this->clockout_time; - } - - /** - * Sets clockout_time - * @param string $clockout_time The clock-out time for the timecard, in ISO 8601 format. Provide this value only if importing timecard information from another system. - * @return $this - */ - public function setClockoutTime($clockout_time) - { - $this->clockout_time = $clockout_time; - return $this; - } - /** - * Gets clockin_location_id - * @return string - */ - public function getClockinLocationId() - { - return $this->clockin_location_id; - } - - /** - * Sets clockin_location_id - * @param string $clockin_location_id The ID of the location the employee clocked in from. We strongly reccomend providing a clockin_location_id. Square uses the clockin_location_id to determine a timecard’s timezone and overtime rules. - * @return $this - */ - public function setClockinLocationId($clockin_location_id) - { - $this->clockin_location_id = $clockin_location_id; - return $this; - } - /** - * Gets clockout_location_id - * @return string - */ - public function getClockoutLocationId() - { - return $this->clockout_location_id; - } - - /** - * Sets clockout_location_id - * @param string $clockout_location_id The ID of the location the employee clocked out from. Provide this value only if importing timecard information from another system. - * @return $this - */ - public function setClockoutLocationId($clockout_location_id) - { - $this->clockout_location_id = $clockout_location_id; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the timecard was created, in ISO 8601 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at The time when the timecard was most recently updated, in ISO 8601 format. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Gets regular_seconds_worked - * @return float - */ - public function getRegularSecondsWorked() - { - return $this->regular_seconds_worked; - } - - /** - * Sets regular_seconds_worked - * @param float $regular_seconds_worked The total number of regular (non-overtime) seconds worked in the timecard. - * @return $this - */ - public function setRegularSecondsWorked($regular_seconds_worked) - { - $this->regular_seconds_worked = $regular_seconds_worked; - return $this; - } - /** - * Gets overtime_seconds_worked - * @return float - */ - public function getOvertimeSecondsWorked() - { - return $this->overtime_seconds_worked; - } - - /** - * Sets overtime_seconds_worked - * @param float $overtime_seconds_worked The total number of overtime seconds worked in the timecard. - * @return $this - */ - public function setOvertimeSecondsWorked($overtime_seconds_worked) - { - $this->overtime_seconds_worked = $overtime_seconds_worked; - return $this; - } - /** - * Gets doubletime_seconds_worked - * @return float - */ - public function getDoubletimeSecondsWorked() - { - return $this->doubletime_seconds_worked; - } - - /** - * Sets doubletime_seconds_worked - * @param float $doubletime_seconds_worked The total number of doubletime seconds worked in the timecard. - * @return $this - */ - public function setDoubletimeSecondsWorked($doubletime_seconds_worked) - { - $this->doubletime_seconds_worked = $doubletime_seconds_worked; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1TimecardEvent.php b/includes/classes/vendors/square/connect/lib/Model/V1TimecardEvent.php deleted file mode 100644 index 74652f9101..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1TimecardEvent.php +++ /dev/null @@ -1,279 +0,0 @@ - 'string', - 'event_type' => 'string', - 'clockin_time' => 'string', - 'clockout_time' => 'string', - 'created_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'event_type' => 'event_type', - 'clockin_time' => 'clockin_time', - 'clockout_time' => 'clockout_time', - 'created_at' => 'created_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'event_type' => 'setEventType', - 'clockin_time' => 'setClockinTime', - 'clockout_time' => 'setClockoutTime', - 'created_at' => 'setCreatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'event_type' => 'getEventType', - 'clockin_time' => 'getClockinTime', - 'clockout_time' => 'getClockoutTime', - 'created_at' => 'getCreatedAt' - ); - - /** - * $id The event's unique ID. - * @var string - */ - protected $id; - /** - * $event_type The ID of the timecard to list events for. See [V1TimecardEventEventType](#type-v1timecardeventeventtype) for possible values - * @var string - */ - protected $event_type; - /** - * $clockin_time The time the employee clocked in, in ISO 8601 format. - * @var string - */ - protected $clockin_time; - /** - * $clockout_time The time the employee clocked out, in ISO 8601 format. - * @var string - */ - protected $clockout_time; - /** - * $created_at The time when the event was created, in ISO 8601 format. - * @var string - */ - protected $created_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["event_type"])) { - $this->event_type = $data["event_type"]; - } else { - $this->event_type = null; - } - if (isset($data["clockin_time"])) { - $this->clockin_time = $data["clockin_time"]; - } else { - $this->clockin_time = null; - } - if (isset($data["clockout_time"])) { - $this->clockout_time = $data["clockout_time"]; - } else { - $this->clockout_time = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The event's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets event_type - * @return string - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Sets event_type - * @param string $event_type The ID of the timecard to list events for. See [V1TimecardEventEventType](#type-v1timecardeventeventtype) for possible values - * @return $this - */ - public function setEventType($event_type) - { - $this->event_type = $event_type; - return $this; - } - /** - * Gets clockin_time - * @return string - */ - public function getClockinTime() - { - return $this->clockin_time; - } - - /** - * Sets clockin_time - * @param string $clockin_time The time the employee clocked in, in ISO 8601 format. - * @return $this - */ - public function setClockinTime($clockin_time) - { - $this->clockin_time = $clockin_time; - return $this; - } - /** - * Gets clockout_time - * @return string - */ - public function getClockoutTime() - { - return $this->clockout_time; - } - - /** - * Sets clockout_time - * @param string $clockout_time The time the employee clocked out, in ISO 8601 format. - * @return $this - */ - public function setClockoutTime($clockout_time) - { - $this->clockout_time = $clockout_time; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at The time when the event was created, in ISO 8601 format. - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1TimecardEventEventType.php b/includes/classes/vendors/square/connect/lib/Model/V1TimecardEventEventType.php deleted file mode 100644 index 8896ca248c..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1TimecardEventEventType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateCategoryRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateCategoryRequest.php deleted file mode 100644 index 62acc9b4b0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateCategoryRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Category' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Category - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Category - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Category $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateDiscountRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateDiscountRequest.php deleted file mode 100644 index 8f00318a8a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateDiscountRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Discount' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Discount - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Discount - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Discount $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateEmployeeRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateEmployeeRequest.php deleted file mode 100644 index 350691171e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateEmployeeRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1Employee' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Employee - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Employee - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Employee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateEmployeeRoleRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateEmployeeRoleRequest.php deleted file mode 100644 index 271993253f..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateEmployeeRoleRequest.php +++ /dev/null @@ -1,146 +0,0 @@ - '\SquareConnect\Model\V1EmployeeRole' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1EmployeeRole - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1EmployeeRole - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1EmployeeRole $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateFeeRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateFeeRequest.php deleted file mode 100644 index 4d2565eb5d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateFeeRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Fee' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Fee - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Fee - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Fee $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateItemRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateItemRequest.php deleted file mode 100644 index f5960d790e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateItemRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Item' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Item - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Item - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Item $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierListRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierListRequest.php deleted file mode 100644 index a8cc58de63..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierListRequest.php +++ /dev/null @@ -1,180 +0,0 @@ - 'string', - 'selection_type' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'name' => 'name', - 'selection_type' => 'selection_type' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'name' => 'setName', - 'selection_type' => 'setSelectionType' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'name' => 'getName', - 'selection_type' => 'getSelectionType' - ); - - /** - * $name The modifier list's name. - * @var string - */ - protected $name; - /** - * $selection_type Indicates whether multiple options from the modifier list can be applied to a single item. See [V1UpdateModifierListRequestSelectionType](#type-v1updatemodifierlistrequestselectiontype) for possible values - * @var string - */ - protected $selection_type; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["selection_type"])) { - $this->selection_type = $data["selection_type"]; - } else { - $this->selection_type = null; - } - } - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The modifier list's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets selection_type - * @return string - */ - public function getSelectionType() - { - return $this->selection_type; - } - - /** - * Sets selection_type - * @param string $selection_type Indicates whether multiple options from the modifier list can be applied to a single item. See [V1UpdateModifierListRequestSelectionType](#type-v1updatemodifierlistrequestselectiontype) for possible values - * @return $this - */ - public function setSelectionType($selection_type) - { - $this->selection_type = $selection_type; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierListRequestSelectionType.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierListRequestSelectionType.php deleted file mode 100644 index 6fca057b8a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierListRequestSelectionType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierOptionRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierOptionRequest.php deleted file mode 100644 index 7444d854f0..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateModifierOptionRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1ModifierOption' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1ModifierOption - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1ModifierOption - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1ModifierOption $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateOrderRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateOrderRequest.php deleted file mode 100644 index 3296ef4928..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateOrderRequest.php +++ /dev/null @@ -1,278 +0,0 @@ - 'string', - 'shipped_tracking_number' => 'string', - 'completed_note' => 'string', - 'refunded_note' => 'string', - 'canceled_note' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'action' => 'action', - 'shipped_tracking_number' => 'shipped_tracking_number', - 'completed_note' => 'completed_note', - 'refunded_note' => 'refunded_note', - 'canceled_note' => 'canceled_note' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'action' => 'setAction', - 'shipped_tracking_number' => 'setShippedTrackingNumber', - 'completed_note' => 'setCompletedNote', - 'refunded_note' => 'setRefundedNote', - 'canceled_note' => 'setCanceledNote' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'action' => 'getAction', - 'shipped_tracking_number' => 'getShippedTrackingNumber', - 'completed_note' => 'getCompletedNote', - 'refunded_note' => 'getRefundedNote', - 'canceled_note' => 'getCanceledNote' - ); - - /** - * $action The action to perform on the order (COMPLETE, CANCEL, or REFUND). See [V1UpdateOrderRequestAction](#type-v1updateorderrequestaction) for possible values - * @var string - */ - protected $action; - /** - * $shipped_tracking_number The tracking number of the shipment associated with the order. Only valid if action is COMPLETE. - * @var string - */ - protected $shipped_tracking_number; - /** - * $completed_note A merchant-specified note about the completion of the order. Only valid if action is COMPLETE. - * @var string - */ - protected $completed_note; - /** - * $refunded_note A merchant-specified note about the refunding of the order. Only valid if action is REFUND. - * @var string - */ - protected $refunded_note; - /** - * $canceled_note A merchant-specified note about the canceling of the order. Only valid if action is CANCEL. - * @var string - */ - protected $canceled_note; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["action"])) { - $this->action = $data["action"]; - } else { - $this->action = null; - } - if (isset($data["shipped_tracking_number"])) { - $this->shipped_tracking_number = $data["shipped_tracking_number"]; - } else { - $this->shipped_tracking_number = null; - } - if (isset($data["completed_note"])) { - $this->completed_note = $data["completed_note"]; - } else { - $this->completed_note = null; - } - if (isset($data["refunded_note"])) { - $this->refunded_note = $data["refunded_note"]; - } else { - $this->refunded_note = null; - } - if (isset($data["canceled_note"])) { - $this->canceled_note = $data["canceled_note"]; - } else { - $this->canceled_note = null; - } - } - } - /** - * Gets action - * @return string - */ - public function getAction() - { - return $this->action; - } - - /** - * Sets action - * @param string $action The action to perform on the order (COMPLETE, CANCEL, or REFUND). See [V1UpdateOrderRequestAction](#type-v1updateorderrequestaction) for possible values - * @return $this - */ - public function setAction($action) - { - $this->action = $action; - return $this; - } - /** - * Gets shipped_tracking_number - * @return string - */ - public function getShippedTrackingNumber() - { - return $this->shipped_tracking_number; - } - - /** - * Sets shipped_tracking_number - * @param string $shipped_tracking_number The tracking number of the shipment associated with the order. Only valid if action is COMPLETE. - * @return $this - */ - public function setShippedTrackingNumber($shipped_tracking_number) - { - $this->shipped_tracking_number = $shipped_tracking_number; - return $this; - } - /** - * Gets completed_note - * @return string - */ - public function getCompletedNote() - { - return $this->completed_note; - } - - /** - * Sets completed_note - * @param string $completed_note A merchant-specified note about the completion of the order. Only valid if action is COMPLETE. - * @return $this - */ - public function setCompletedNote($completed_note) - { - $this->completed_note = $completed_note; - return $this; - } - /** - * Gets refunded_note - * @return string - */ - public function getRefundedNote() - { - return $this->refunded_note; - } - - /** - * Sets refunded_note - * @param string $refunded_note A merchant-specified note about the refunding of the order. Only valid if action is REFUND. - * @return $this - */ - public function setRefundedNote($refunded_note) - { - $this->refunded_note = $refunded_note; - return $this; - } - /** - * Gets canceled_note - * @return string - */ - public function getCanceledNote() - { - return $this->canceled_note; - } - - /** - * Sets canceled_note - * @param string $canceled_note A merchant-specified note about the canceling of the order. Only valid if action is CANCEL. - * @return $this - */ - public function setCanceledNote($canceled_note) - { - $this->canceled_note = $canceled_note; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateOrderRequestAction.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateOrderRequestAction.php deleted file mode 100644 index 33f3548e75..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateOrderRequestAction.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdatePageCellRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdatePageCellRequest.php deleted file mode 100644 index 8907c9d583..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdatePageCellRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1PageCell' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1PageCell - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1PageCell - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1PageCell $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdatePageRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdatePageRequest.php deleted file mode 100644 index 6bb7d106d7..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdatePageRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Page' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Page - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Page - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Page $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateTimecardRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateTimecardRequest.php deleted file mode 100644 index a14db0ce2a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateTimecardRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Timecard' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Timecard - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Timecard - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Timecard $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1UpdateVariationRequest.php b/includes/classes/vendors/square/connect/lib/Model/V1UpdateVariationRequest.php deleted file mode 100644 index 4259919782..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1UpdateVariationRequest.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\V1Variation' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'body' => 'body' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'body' => 'setBody' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'body' => 'getBody' - ); - - /** - * $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @var \SquareConnect\Model\V1Variation - */ - protected $body; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["body"])) { - $this->body = $data["body"]; - } else { - $this->body = null; - } - } - } - /** - * Gets body - * @return \SquareConnect\Model\V1Variation - */ - public function getBody() - { - return $this->body; - } - - /** - * Sets body - * @param \SquareConnect\Model\V1Variation $body An object containing the fields to POST for the request. See the corresponding object definition for field details. - * @return $this - */ - public function setBody($body) - { - $this->body = $body; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1Variation.php b/includes/classes/vendors/square/connect/lib/Model/V1Variation.php deleted file mode 100644 index 8352c5f31d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1Variation.php +++ /dev/null @@ -1,510 +0,0 @@ - 'string', - 'name' => 'string', - 'item_id' => 'string', - 'ordinal' => 'int', - 'pricing_type' => 'string', - 'price_money' => '\SquareConnect\Model\V1Money', - 'sku' => 'string', - 'track_inventory' => 'bool', - 'inventory_alert_type' => 'string', - 'inventory_alert_threshold' => 'int', - 'user_data' => 'string', - 'v2_id' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'name' => 'name', - 'item_id' => 'item_id', - 'ordinal' => 'ordinal', - 'pricing_type' => 'pricing_type', - 'price_money' => 'price_money', - 'sku' => 'sku', - 'track_inventory' => 'track_inventory', - 'inventory_alert_type' => 'inventory_alert_type', - 'inventory_alert_threshold' => 'inventory_alert_threshold', - 'user_data' => 'user_data', - 'v2_id' => 'v2_id' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'name' => 'setName', - 'item_id' => 'setItemId', - 'ordinal' => 'setOrdinal', - 'pricing_type' => 'setPricingType', - 'price_money' => 'setPriceMoney', - 'sku' => 'setSku', - 'track_inventory' => 'setTrackInventory', - 'inventory_alert_type' => 'setInventoryAlertType', - 'inventory_alert_threshold' => 'setInventoryAlertThreshold', - 'user_data' => 'setUserData', - 'v2_id' => 'setV2Id' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'name' => 'getName', - 'item_id' => 'getItemId', - 'ordinal' => 'getOrdinal', - 'pricing_type' => 'getPricingType', - 'price_money' => 'getPriceMoney', - 'sku' => 'getSku', - 'track_inventory' => 'getTrackInventory', - 'inventory_alert_type' => 'getInventoryAlertType', - 'inventory_alert_threshold' => 'getInventoryAlertThreshold', - 'user_data' => 'getUserData', - 'v2_id' => 'getV2Id' - ); - - /** - * $id The item variation's unique ID. - * @var string - */ - protected $id; - /** - * $name The item variation's name. - * @var string - */ - protected $name; - /** - * $item_id The ID of the variation's associated item. - * @var string - */ - protected $item_id; - /** - * $ordinal Indicates the variation's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one variation for the same item has the same ordinal value, those variations are displayed in alphabetical order - * @var int - */ - protected $ordinal; - /** - * $pricing_type Indicates whether the item variation's price is fixed or determined at the time of sale. See [V1VariationPricingType](#type-v1variationpricingtype) for possible values - * @var string - */ - protected $pricing_type; - /** - * $price_money The item variation's price, if any. - * @var \SquareConnect\Model\V1Money - */ - protected $price_money; - /** - * $sku The item variation's SKU, if any. - * @var string - */ - protected $sku; - /** - * $track_inventory If true, inventory tracking is active for the variation. - * @var bool - */ - protected $track_inventory; - /** - * $inventory_alert_type Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its inventory_alert_threshold. See [V1VariationInventoryAlertType](#type-v1variationinventoryalerttype) for possible values - * @var string - */ - protected $inventory_alert_type; - /** - * $inventory_alert_threshold If the inventory quantity for the variation is less than or equal to this value and inventory_alert_type is LOW_QUANTITY, the variation displays an alert in the merchant dashboard. - * @var int - */ - protected $inventory_alert_threshold; - /** - * $user_data Arbitrary metadata associated with the variation. Cannot exceed 255 characters. - * @var string - */ - protected $user_data; - /** - * $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @var string - */ - protected $v2_id; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["name"])) { - $this->name = $data["name"]; - } else { - $this->name = null; - } - if (isset($data["item_id"])) { - $this->item_id = $data["item_id"]; - } else { - $this->item_id = null; - } - if (isset($data["ordinal"])) { - $this->ordinal = $data["ordinal"]; - } else { - $this->ordinal = null; - } - if (isset($data["pricing_type"])) { - $this->pricing_type = $data["pricing_type"]; - } else { - $this->pricing_type = null; - } - if (isset($data["price_money"])) { - $this->price_money = $data["price_money"]; - } else { - $this->price_money = null; - } - if (isset($data["sku"])) { - $this->sku = $data["sku"]; - } else { - $this->sku = null; - } - if (isset($data["track_inventory"])) { - $this->track_inventory = $data["track_inventory"]; - } else { - $this->track_inventory = null; - } - if (isset($data["inventory_alert_type"])) { - $this->inventory_alert_type = $data["inventory_alert_type"]; - } else { - $this->inventory_alert_type = null; - } - if (isset($data["inventory_alert_threshold"])) { - $this->inventory_alert_threshold = $data["inventory_alert_threshold"]; - } else { - $this->inventory_alert_threshold = null; - } - if (isset($data["user_data"])) { - $this->user_data = $data["user_data"]; - } else { - $this->user_data = null; - } - if (isset($data["v2_id"])) { - $this->v2_id = $data["v2_id"]; - } else { - $this->v2_id = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id The item variation's unique ID. - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Sets name - * @param string $name The item variation's name. - * @return $this - */ - public function setName($name) - { - $this->name = $name; - return $this; - } - /** - * Gets item_id - * @return string - */ - public function getItemId() - { - return $this->item_id; - } - - /** - * Sets item_id - * @param string $item_id The ID of the variation's associated item. - * @return $this - */ - public function setItemId($item_id) - { - $this->item_id = $item_id; - return $this; - } - /** - * Gets ordinal - * @return int - */ - public function getOrdinal() - { - return $this->ordinal; - } - - /** - * Sets ordinal - * @param int $ordinal Indicates the variation's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one variation for the same item has the same ordinal value, those variations are displayed in alphabetical order - * @return $this - */ - public function setOrdinal($ordinal) - { - $this->ordinal = $ordinal; - return $this; - } - /** - * Gets pricing_type - * @return string - */ - public function getPricingType() - { - return $this->pricing_type; - } - - /** - * Sets pricing_type - * @param string $pricing_type Indicates whether the item variation's price is fixed or determined at the time of sale. See [V1VariationPricingType](#type-v1variationpricingtype) for possible values - * @return $this - */ - public function setPricingType($pricing_type) - { - $this->pricing_type = $pricing_type; - return $this; - } - /** - * Gets price_money - * @return \SquareConnect\Model\V1Money - */ - public function getPriceMoney() - { - return $this->price_money; - } - - /** - * Sets price_money - * @param \SquareConnect\Model\V1Money $price_money The item variation's price, if any. - * @return $this - */ - public function setPriceMoney($price_money) - { - $this->price_money = $price_money; - return $this; - } - /** - * Gets sku - * @return string - */ - public function getSku() - { - return $this->sku; - } - - /** - * Sets sku - * @param string $sku The item variation's SKU, if any. - * @return $this - */ - public function setSku($sku) - { - $this->sku = $sku; - return $this; - } - /** - * Gets track_inventory - * @return bool - */ - public function getTrackInventory() - { - return $this->track_inventory; - } - - /** - * Sets track_inventory - * @param bool $track_inventory If true, inventory tracking is active for the variation. - * @return $this - */ - public function setTrackInventory($track_inventory) - { - $this->track_inventory = $track_inventory; - return $this; - } - /** - * Gets inventory_alert_type - * @return string - */ - public function getInventoryAlertType() - { - return $this->inventory_alert_type; - } - - /** - * Sets inventory_alert_type - * @param string $inventory_alert_type Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its inventory_alert_threshold. See [V1VariationInventoryAlertType](#type-v1variationinventoryalerttype) for possible values - * @return $this - */ - public function setInventoryAlertType($inventory_alert_type) - { - $this->inventory_alert_type = $inventory_alert_type; - return $this; - } - /** - * Gets inventory_alert_threshold - * @return int - */ - public function getInventoryAlertThreshold() - { - return $this->inventory_alert_threshold; - } - - /** - * Sets inventory_alert_threshold - * @param int $inventory_alert_threshold If the inventory quantity for the variation is less than or equal to this value and inventory_alert_type is LOW_QUANTITY, the variation displays an alert in the merchant dashboard. - * @return $this - */ - public function setInventoryAlertThreshold($inventory_alert_threshold) - { - $this->inventory_alert_threshold = $inventory_alert_threshold; - return $this; - } - /** - * Gets user_data - * @return string - */ - public function getUserData() - { - return $this->user_data; - } - - /** - * Sets user_data - * @param string $user_data Arbitrary metadata associated with the variation. Cannot exceed 255 characters. - * @return $this - */ - public function setUserData($user_data) - { - $this->user_data = $user_data; - return $this; - } - /** - * Gets v2_id - * @return string - */ - public function getV2Id() - { - return $this->v2_id; - } - - /** - * Sets v2_id - * @param string $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. - * @return $this - */ - public function setV2Id($v2_id) - { - $this->v2_id = $v2_id; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1VariationInventoryAlertType.php b/includes/classes/vendors/square/connect/lib/Model/V1VariationInventoryAlertType.php deleted file mode 100644 index fbbae8f67a..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1VariationInventoryAlertType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/V1VariationPricingType.php b/includes/classes/vendors/square/connect/lib/Model/V1VariationPricingType.php deleted file mode 100644 index d2c79c9ed2..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/V1VariationPricingType.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/VoidTransactionRequest.php b/includes/classes/vendors/square/connect/lib/Model/VoidTransactionRequest.php deleted file mode 100644 index fcf2f9d938..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/VoidTransactionRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/VoidTransactionResponse.php b/includes/classes/vendors/square/connect/lib/Model/VoidTransactionResponse.php deleted file mode 100644 index 516e06500e..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/VoidTransactionResponse.php +++ /dev/null @@ -1,147 +0,0 @@ - '\SquareConnect\Model\Error[]' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'errors' => 'errors' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'errors' => 'setErrors' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'errors' => 'getErrors' - ); - - /** - * $errors Any errors that occurred during the request. - * @var \SquareConnect\Model\Error[] - */ - protected $errors; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["errors"])) { - $this->errors = $data["errors"]; - } else { - $this->errors = null; - } - } - } - /** - * Gets errors - * @return \SquareConnect\Model\Error[] - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Sets errors - * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request. - * @return $this - */ - public function setErrors($errors) - { - $this->errors = $errors; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/Weekday.php b/includes/classes/vendors/square/connect/lib/Model/Weekday.php deleted file mode 100644 index e133b8bc07..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/Weekday.php +++ /dev/null @@ -1,117 +0,0 @@ -$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/Model/WorkweekConfig.php b/includes/classes/vendors/square/connect/lib/Model/WorkweekConfig.php deleted file mode 100644 index 88d78a3645..0000000000 --- a/includes/classes/vendors/square/connect/lib/Model/WorkweekConfig.php +++ /dev/null @@ -1,311 +0,0 @@ - 'string', - 'start_of_week' => 'string', - 'start_of_day_local_time' => 'string', - 'version' => 'int', - 'created_at' => 'string', - 'updated_at' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'id' => 'id', - 'start_of_week' => 'start_of_week', - 'start_of_day_local_time' => 'start_of_day_local_time', - 'version' => 'version', - 'created_at' => 'created_at', - 'updated_at' => 'updated_at' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'id' => 'setId', - 'start_of_week' => 'setStartOfWeek', - 'start_of_day_local_time' => 'setStartOfDayLocalTime', - 'version' => 'setVersion', - 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'id' => 'getId', - 'start_of_week' => 'getStartOfWeek', - 'start_of_day_local_time' => 'getStartOfDayLocalTime', - 'version' => 'getVersion', - 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt' - ); - - /** - * $id UUID for this object - * @var string - */ - protected $id; - /** - * $start_of_week The day of the week on which a business week cuts over for compensation purposes. See [Weekday](#type-weekday) for possible values - * @var string - */ - protected $start_of_week; - /** - * $start_of_day_local_time The local time at which a business week cuts over. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated). - * @var string - */ - protected $start_of_day_local_time; - /** - * $version Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If not provided, Square executes a blind write; potentially overwriting data from another write. - * @var int - */ - protected $version; - /** - * $created_at A read-only timestamp in RFC 3339 format; presented in UTC - * @var string - */ - protected $created_at; - /** - * $updated_at A read-only timestamp in RFC 3339 format; presented in UTC - * @var string - */ - protected $updated_at; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - if ($data != null) { - if (isset($data["id"])) { - $this->id = $data["id"]; - } else { - $this->id = null; - } - if (isset($data["start_of_week"])) { - $this->start_of_week = $data["start_of_week"]; - } else { - $this->start_of_week = null; - } - if (isset($data["start_of_day_local_time"])) { - $this->start_of_day_local_time = $data["start_of_day_local_time"]; - } else { - $this->start_of_day_local_time = null; - } - if (isset($data["version"])) { - $this->version = $data["version"]; - } else { - $this->version = null; - } - if (isset($data["created_at"])) { - $this->created_at = $data["created_at"]; - } else { - $this->created_at = null; - } - if (isset($data["updated_at"])) { - $this->updated_at = $data["updated_at"]; - } else { - $this->updated_at = null; - } - } - } - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Sets id - * @param string $id UUID for this object - * @return $this - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - /** - * Gets start_of_week - * @return string - */ - public function getStartOfWeek() - { - return $this->start_of_week; - } - - /** - * Sets start_of_week - * @param string $start_of_week The day of the week on which a business week cuts over for compensation purposes. See [Weekday](#type-weekday) for possible values - * @return $this - */ - public function setStartOfWeek($start_of_week) - { - $this->start_of_week = $start_of_week; - return $this; - } - /** - * Gets start_of_day_local_time - * @return string - */ - public function getStartOfDayLocalTime() - { - return $this->start_of_day_local_time; - } - - /** - * Sets start_of_day_local_time - * @param string $start_of_day_local_time The local time at which a business week cuts over. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated). - * @return $this - */ - public function setStartOfDayLocalTime($start_of_day_local_time) - { - $this->start_of_day_local_time = $start_of_day_local_time; - return $this; - } - /** - * Gets version - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Sets version - * @param int $version Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If not provided, Square executes a blind write; potentially overwriting data from another write. - * @return $this - */ - public function setVersion($version) - { - $this->version = $version; - return $this; - } - /** - * Gets created_at - * @return string - */ - public function getCreatedAt() - { - return $this->created_at; - } - - /** - * Sets created_at - * @param string $created_at A read-only timestamp in RFC 3339 format; presented in UTC - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->created_at = $created_at; - return $this; - } - /** - * Gets updated_at - * @return string - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - /** - * Sets updated_at - * @param string $updated_at A read-only timestamp in RFC 3339 format; presented in UTC - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->updated_at = $updated_at; - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->$offset); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return $this->$offset; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - $this->$offset = $value; - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->$offset); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } else { - return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); - } - } -} diff --git a/includes/classes/vendors/square/connect/lib/ObjectSerializer.php b/includes/classes/vendors/square/connect/lib/ObjectSerializer.php deleted file mode 100644 index 28ed150971..0000000000 --- a/includes/classes/vendors/square/connect/lib/ObjectSerializer.php +++ /dev/null @@ -1,255 +0,0 @@ -format(\DateTime::ISO8601); - } elseif (is_array($data)) { - foreach ($data as $property => $value) { - $data[$property] = self::sanitizeForSerialization($value); - } - $sanitized = $data; - } elseif (is_object($data)) { - $values = array(); - foreach (array_keys($data::$swaggerTypes) as $property) { - $getter = $data::$getters[$property]; - if ($data->$getter() !== null) { - $values[$data::$attributeMap[$property]] = self::sanitizeForSerialization($data->$getter()); - } - } - $sanitized = (object)$values; - } else { - $sanitized = (string)$data; - } - - return $sanitized; - } - - /** - * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif - * - * @param string $filename filename to be sanitized - * - * @return string the sanitized filename - */ - public function sanitizeFilename($filename) - { - if (preg_match("/.*[\/\\\\](.*)$/", $filename, $match)) { - return $match[1]; - } else { - return $filename; - } - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the path, by url-encoding. - * - * @param string $value a string which will be part of the path - * - * @return string the serialized object - */ - public function toPathValue($value) - { - return rawurlencode($this->toString($value)); - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the query, by imploding comma-separated if it's an object. - * If it's a string, pass through unchanged. It will be url-encoded - * later. - * - * @param object $object an object to be serialized to a string - * - * @return string the serialized object - */ - public function toQueryValue($object) - { - if (is_array($object)) { - return implode(',', $object); - } else { - return $this->toString($object); - } - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the header. If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 - * - * @param string $value a string which will be part of the header - * - * @return string the header string - */ - public function toHeaderValue($value) - { - return $this->toString($value); - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the http body (form parameter). If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 - * - * @param string $value the value of the form parameter - * - * @return string the form string - */ - public function toFormValue($value) - { - if ($value instanceof \SplFileObject) { - return $value->getRealPath(); - } else { - return $this->toString($value); - } - } - - /** - * Take value and turn it into a string suitable for inclusion in - * the parameter. If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 - * - * @param string $value the value of the parameter - * - * @return string the header string - */ - public function toString($value) - { - if ($value instanceof \DateTime) { // datetime in ISO8601 format - return $value->format(\DateTime::ISO8601); - } else { - return $value; - } - } - - /** - * Serialize an array to a string. - * - * @param array $collection collection to serialize to a string - * @param string $collectionFormat the format use for serialization (csv, - * ssv, tsv, pipes, multi) - * - * @return string - */ - public function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti=false) - { - if ($allowCollectionFormatMulti && ('multi' === $collectionFormat)) { - // http_build_query() almost does the job for us. We just - // need to fix the result of multidimensional arrays. - return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); - } - switch ($collectionFormat) { - case 'pipes': - return implode('|', $collection); - - case 'tsv': - return implode("\t", $collection); - - case 'ssv': - return implode(' ', $collection); - - case 'csv': - // Deliberate fall through. CSV is default format. - default: - return implode(',', $collection); - } - } - - /** - * Deserialize a JSON string into an object - * - * @param mixed $data object or primitive to be deserialized - * @param string $class class name is passed as a string - * @param string $httpHeaders HTTP headers - * - * @return object an instance of $class - */ - public static function deserialize($data, $class, $httpHeaders=null) - { - if (null === $data) { - $deserialized = null; - } elseif (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int] - $inner = substr($class, 4, -1); - $deserialized = array(); - if (strrpos($inner, ",") !== false) { - $subClass_array = explode(',', $inner, 2); - $subClass = $subClass_array[1]; - foreach ($data as $key => $value) { - $deserialized[$key] = self::deserialize($value, $subClass); - } - } - } elseif (strcasecmp(substr($class, -2), '[]') == 0) { - $subClass = substr($class, 0, -2); - $values = array(); - foreach ($data as $key => $value) { - $values[] = self::deserialize($value, $subClass); - } - $deserialized = $values; - } elseif ($class === 'ByteArray') { // byte array - $deserialized = unpack('C*', (string)$data); - } elseif ($class === '\DateTime') { - $deserialized = new \DateTime($data); - } elseif (in_array($class, array('DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'))) { - settype($data, $class); - $deserialized = $data; - } elseif ($class === '\SplFileObject') { - // determine file name - if (array_key_exists('Content-Disposition', $httpHeaders) && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) { - $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . sanitizeFilename($match[1]); - } else { - $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); - } - $deserialized = new \SplFileObject($filename, "w"); - $byte_written = $deserialized->fwrite($data); - error_log("[INFO] Written $byte_written byte to $filename. Please move the file to a proper folder or delete the temp file after processing.\n", 3, Configuration::getDefaultConfiguration()->getDebugFile()); - - } else { - $instance = new $class(); - foreach ($instance::$swaggerTypes as $property => $type) { - $propertySetter = $instance::$setters[$property]; - - if (!isset($propertySetter) || !isset($data->{$instance::$attributeMap[$property]})) { - continue; - } - - $propertyValue = $data->{$instance::$attributeMap[$property]}; - if (isset($propertyValue)) { - $instance->$propertySetter(self::deserialize($propertyValue, $type)); - } - } - $deserialized = $instance; - } - - return $deserialized; - } -} diff --git a/includes/classes/vendors/square/connect/lib/Util/CaseInsensitiveArray.php b/includes/classes/vendors/square/connect/lib/Util/CaseInsensitiveArray.php deleted file mode 100644 index a4afca888d..0000000000 --- a/includes/classes/vendors/square/connect/lib/Util/CaseInsensitiveArray.php +++ /dev/null @@ -1,34 +0,0 @@ - $v) { - $this->lower_dict[strtolower($i)] = $v; - } - parent::__construct($input); - } - - public function offsetSet($i, $v) { - $this->lower_dict[strtolower($i)] = $v; - parent::offsetSet($i, $v); - } - - public function offsetUnset($i) { - $this->lower_dict[strtolower($i)] = null; - parent::offsetUnset($i); - } - - public function offsetGet($i) { - if ($this->lower_dict[strtolower($i)]) { - return $this->lower_dict[strtolower($i)]; - } else if (parent::offsetGet($i)) { - return parent::offsetGet($i); - } else { - return null; - } - } -} \ No newline at end of file diff --git a/includes/languages/english/modules/payment/lang.square.php b/includes/languages/english/modules/payment/lang.square.php deleted file mode 100644 index ce77341d49..0000000000 --- a/includes/languages/english/modules/payment/lang.square.php +++ /dev/null @@ -1,70 +0,0 @@ - 'Accept credit cards in less than 5 minutes.
No monthly fees and no setup fees.
PCI Compliant. Customer never leaves your store!
Standard rates are 2.9% + $0.30 per transaction.
Funds are deposited in your bank account in 1-2 business days.

- Get more information, or Sign up for an account

- Log In To Your Square Account', - 'MODULE_PAYMENT_SQUARE_TEXT_ADMIN_TITLE' => 'Square', - 'MODULE_PAYMENT_SQUARE_TEXT_CATALOG_TITLE' => 'Credit Card', - 'MODULE_PAYMENT_SQUARE_TEXT_NOTICES_TO_CUSTOMER' => '', - 'MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_POSTCODE' => 'Postal Code:', - 'MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_NUMBER' => 'Card Number:', - 'MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_EXPIRES' => 'Expiry Date:', - 'MODULE_PAYMENT_SQUARE_TEXT_CVV' => 'CVV Number:', - 'MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_TYPE' => 'Credit Card Type:', - 'MODULE_PAYMENT_SQUARE_TEXT_ERROR' => '(SQ-ERR) Your transaction could not be completed because of an error: ', - 'MODULE_PAYMENT_SQUARE_TEXT_MISCONFIGURATION' => 'Your transaction could not be completed due to a misconfiguration in our store. Please report this error to the Store Owner: SQ-MISCONF', - 'MODULE_PAYMENT_SQUARE_TEXT_COMM_ERROR' => 'Unable to process payment due to a communications error. You may try again or contact us for assistance.', - 'MODULE_PAYMENT_SQUARE_ERROR_INVALID_CARD_DATA' => 'We could not initiate your transaction because of a problem with the card data you entered. Please correct the card data, or report this error to the Store Owner: SQ-NONCE-FAILURE', - 'MODULE_PAYMENT_SQUARE_ERROR_DECLINED' => 'Sorry, your payment could not be authorized. Please select an alternate method of payment.', - 'MODULE_PAYMENT_SQUARE_ENTRY_TRANSACTION_ACTIONS' => 'Actions', - 'MODULE_PAYMENT_SQUARE_TEXT_UPDATE_FAILED' => 'Sorry, the attempted transaction update failed unexpectedly. See logs for details.', - 'MODULE_PAYMENT_SQUARE_TEXT_REFUND_CONFIRM_ERROR' => 'Error: You requested to do a refund but did not check the Confirmation box.', - 'MODULE_PAYMENT_SQUARE_TEXT_INVALID_REFUND_AMOUNT' => 'Error: You requested a refund but entered an invalid amount.', - 'MODULE_PAYMENT_SQUARE_TEXT_REFUND_INITIATED' => 'Refunded ', - 'MODULE_PAYMENT_SQUARE_TEXT_CAPTURE_CONFIRM_ERROR' => 'Error: You requested to do a capture but did not check the Confirmation box.', - 'MODULE_PAYMENT_SQUARE_TEXT_TRANS_ID_REQUIRED_ERROR' => 'Error: You need to specify a Transaction ID.', - 'MODULE_PAYMENT_SQUARE_TEXT_CAPT_INITIATED' => 'Funds Capture initiated. Transaction ID: %s', - 'MODULE_PAYMENT_SQUARE_TEXT_VOID_CONFIRM_ERROR' => 'Error: You requested a Void but did not check the Confirmation box.', - 'MODULE_PAYMENT_SQUARE_TEXT_VOID_INITIATED' => 'Void Initiated. Transaction ID: %s', -]; - -// Check current directory to see if SquareWebpay is installed have include lang.square_webPay.php in case it changes before Square is fully removed from zen cart -// This prevents the duplication message as square_webPay defines all below as constants. -if (file_exists(dirname(__FILE__) . '/square_webPay.php') === false && file_exists(dirname(__FILE__) . '/lang.square_webPay.php') === false) { - $defineExtra = [ - 'MODULE_PAYMENT_SQUARE_ENTRY_TRANSACTION_SUMMARY' => 'Transaction Summary', - 'MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TITLE' => 'Refund Transaction', - 'MODULE_PAYMENT_SQUARE_ENTRY_REFUND' => 'You may refund money to the customer here:', - 'MODULE_PAYMENT_SQUARE_TEXT_REFUND_CONFIRM_CHECK' => 'Check this box to confirm your intent: ', - 'MODULE_PAYMENT_SQUARE_ENTRY_REFUND_AMOUNT_TEXT' => 'Enter the amount you wish to refund', - 'MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TEXT_COMMENTS' => 'Notes (will show on Order History):', - 'MODULE_PAYMENT_SQUARE_ENTRY_REFUND_DEFAULT_MESSAGE' => 'Refund Issued', - 'MODULE_PAYMENT_SQUARE_ENTRY_REFUND_SUFFIX' => 'You may refund an order within 120 days, up to the original amount tendered. You must supply the original transaction ID and tender ID
See the Square site for more information on Square refunds.', - 'MODULE_PAYMENT_SQUARE_ENTRY_REFUND_BUTTON_TEXT' => 'Do Refund', - 'MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TITLE' => 'Capture Transaction', - 'MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE' => 'You may capture previously-authorized funds here:', - 'MODULE_PAYMENT_SQUARE_TEXT_CAPTURE_CONFIRM_CHECK' => 'Check this box to confirm your intent: ', - 'MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TEXT_COMMENTS' => 'Notes (will show on Order History):', - 'MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_DEFAULT_MESSAGE' => '', - 'MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_SUFFIX' => 'Captures must be performed within 6 days of the original authorization. You may only capture an order ONCE.', - 'MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_BUTTON_TEXT' => 'Do Capture', - 'MODULE_PAYMENT_SQUARE_ENTRY_VOID_TITLE' => 'Voiding Transaction', - 'MODULE_PAYMENT_SQUARE_ENTRY_VOID' => 'You may void an authorization which has not been captured.', - 'MODULE_PAYMENT_SQUARE_TEXT_VOID_CONFIRM_CHECK' => 'Check this box to confirm your intent:', - 'MODULE_PAYMENT_SQUARE_ENTRY_VOID_TEXT_COMMENTS' => 'Notes (will show on Order History):', - 'MODULE_PAYMENT_SQUARE_ENTRY_VOID_DEFAULT_MESSAGE' => 'Transaction Cancelled', - 'MODULE_PAYMENT_SQUARE_ENTRY_VOID_SUFFIX' => '', - 'MODULE_PAYMENT_SQUARE_ENTRY_VOID_BUTTON_TEXT' => 'Do Void', - ]; - $define = array_merge($define, $defineExtra); -} - - -if (IS_ADMIN_FLAG === true) { - $define['MODULE_PAYMENT_SQUARE_TEXT_NEED_ACCESS_TOKEN'] = - 'ALERT: Access Token not set:
- 1. Make sure the OAuth Redirect URL in your Square Account "app" is set to
' . str_replace(array('index.php?main_page=index' => 'http://'), array('square_handler.php' => 'https://'), zen_catalog_href_link(FILENAME_DEFAULT)) . '

- 2. And then '; -} - -return $define; diff --git a/includes/modules/pages/checkout_payment/jscript_square.php b/includes/modules/pages/checkout_payment/jscript_square.php deleted file mode 100644 index 2e1d1fed45..0000000000 --- a/includes/modules/pages/checkout_payment/jscript_square.php +++ /dev/null @@ -1,113 +0,0 @@ -in_special_checkout() || empty($square) || !$square->enabled) { - return false; -} - -$jsurl = 'https://js.squareup.com/v2/paymentform'; -if (MODULE_PAYMENT_SQUARE_TESTING_MODE === 'Sandbox') { - $jsurl = 'https://js.squareupsandbox.com/v2/paymentform'; -} - -?> - - - - - diff --git a/includes/modules/payment/square.php b/includes/modules/payment/square.php deleted file mode 100644 index 5782e966ae..0000000000 --- a/includes/modules/payment/square.php +++ /dev/null @@ -1,1332 +0,0 @@ -code = 'square'; - $this->enabled = (defined('MODULE_PAYMENT_SQUARE_STATUS') && MODULE_PAYMENT_SQUARE_STATUS == 'True'); - $this->sort_order = defined('MODULE_PAYMENT_SQUARE_SORT_ORDER') ? MODULE_PAYMENT_SQUARE_SORT_ORDER : null; - $this->title = MODULE_PAYMENT_SQUARE_TEXT_CATALOG_TITLE; // Payment module title in Catalog - $this->description = 'Square Payments Module ' . $this->moduleVersion . ''; - $this->description .= '
[designed for API: ' . $this->apiVersion . ']'; - - if (IS_ADMIN_FLAG === true) { - $this->sdkApiVersion = (new \SquareConnect\Configuration())->getUserAgent(); - //$this->sdkApiVersion = (new \Square\SquareClient())->getSquareVersion(); - $this->description .= '
[using SDK: ' . $this->sdkApiVersion . ']'; - } - - $this->description .= '

' . MODULE_PAYMENT_SQUARE_TEXT_DESCRIPTION; - - if (IS_ADMIN_FLAG === true) { - $this->title = MODULE_PAYMENT_SQUARE_TEXT_ADMIN_TITLE; - if (defined('MODULE_PAYMENT_SQUARE_STATUS')) { - if (MODULE_PAYMENT_SQUARE_APPLICATION_ID == '') $this->title .= ' (not configured; API details needed)'; - if (MODULE_PAYMENT_SQUARE_ACCESS_TOKEN == '') { - $this->title .= ' (Access Token needed)'; - $this->description .= "\n" . '

' . sprintf(MODULE_PAYMENT_SQUARE_TEXT_NEED_ACCESS_TOKEN, $this->getAuthorizeURL()); - $this->description .= ''; - } - if (MODULE_PAYMENT_SQUARE_TESTING_MODE === 'Sandbox') $this->title .= ' (Sandbox mode)'; - $new_version_details = plugin_version_check_for_updates(156, $this->moduleVersion); - if ($new_version_details !== false) { - $this->title .= '' . ' - NOTE: A NEW VERSION OF THIS PLUGIN IS AVAILABLE. [Details]' . ''; - } - } - $this->tableCheckup(); - } - - // determine order-status for transactions - if (defined('MODULE_PAYMENT_SQUARE_ORDER_STATUS_ID') && (int)MODULE_PAYMENT_SQUARE_ORDER_STATUS_ID > 0) { - $this->order_status = MODULE_PAYMENT_SQUARE_ORDER_STATUS_ID; - } - // Reset order status to pending if capture pending: - if (defined('MODULE_PAYMENT_SQUARE_TRANSACTION_TYPE') && MODULE_PAYMENT_SQUARE_TRANSACTION_TYPE == 'authorize') { - $this->order_status = 1; - } - - $this->_logDir = DIR_FS_LOGS; - - // module can't work without a token; must be configured via OAUTH handshake - if (!defined('MODULE_PAYMENT_SQUARE_ACCESS_TOKEN') || ((MODULE_PAYMENT_SQUARE_ACCESS_TOKEN == '' || MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT == '') && MODULE_PAYMENT_SQUARE_TESTING_MODE == 'Live')) { - $this->enabled = false; - } - - // check for zone compliance and any other conditionals - if ($this->enabled && is_object($order)) $this->update_status(); - } - - - public function update_status() - { - global $order, $db; - if ($this->enabled == false || (int)MODULE_PAYMENT_SQUARE_ZONE == 0) { - return; - } - if (!isset($order->billing['country']['id'])) return; - - $check_flag = false; - $sql = "SELECT zone_id FROM " . TABLE_ZONES_TO_GEO_ZONES . " WHERE geo_zone_id = '" . (int)MODULE_PAYMENT_SQUARE_ZONE . "' AND zone_country_id = '" . (int)$order->billing['country']['id'] . "' ORDER BY zone_id"; - $checks = $db->Execute($sql); - foreach ($checks as $check) { - if ($check['zone_id'] < 1) { - $check_flag = true; - break; - } elseif ($check['zone_id'] == $order->billing['zone_id']) { - $check_flag = true; - break; - } - } - if ($check_flag == false) { - $this->enabled = false; - } - } - - public function javascript_validation() - { - return ''; - } - - public function selection() - { - // helper for auto-selecting the radio-button next to this module so the user doesn't have to make that choice - $onFocus = ' onfocus="methodSelect(\'pmt-' . $this->code . '\')"'; - - $selection = array( - 'id' => $this->code, - 'module' => $this->title, - 'fields' => array( - array( - 'field' => '
' . MODULE_PAYMENT_SQUARE_TEXT_NOTICES_TO_CUSTOMER . '
', - ), - array( - 'title' => MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_NUMBER, - 'field' => '
', - ), - array( - 'title' => MODULE_PAYMENT_SQUARE_TEXT_CVV, - 'field' => '
', - ), - array( - 'title' => MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_EXPIRES, - 'field' => '
', - ), - array( - 'title' => MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_POSTCODE, - 'field' => '
', - ), - array( - 'title' => '', - 'field' => '
', - ), - array( - 'title' => '', - 'field' => '' . - '' . - '' . - '', - ), - ), - ); - - return $selection; - } - - public function pre_confirmation_check() - { - global $messageStack; - if (!isset($_POST['nonce']) || trim($_POST['nonce']) == '') { - $messageStack->add_session('checkout_payment', MODULE_PAYMENT_SQUARE_ERROR_INVALID_CARD_DATA, 'error'); - zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false)); - } - } - - public function confirmation() - { - $confirmation = array( - 'fields' => array( - array( - 'title' => MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_TYPE, - 'field' => zen_output_string_protected($_POST[$this->code . '_cc_type']), - ), - array( - 'title' => MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_NUMBER, - 'field' => zen_output_string_protected($_POST[$this->code . '_cc_four']), - ), - array( - 'title' => MODULE_PAYMENT_SQUARE_TEXT_CREDIT_CARD_EXPIRES, - 'field' => zen_output_string_protected($_POST[$this->code . '_cc_exp']), - ), - ), - ); - - return $confirmation; - } - - public function process_button() - { - $process_button_string = zen_draw_hidden_field($this->code . '_nonce', $_POST['nonce']); - $process_button_string .= zen_draw_hidden_field('cc_type', zen_output_string_protected($_POST[$this->code . '_cc_type'])); - $process_button_string .= zen_draw_hidden_field('cc_four', zen_output_string_protected($_POST[$this->code . '_cc_four'])); - $process_button_string .= zen_draw_hidden_field('cc_expires', zen_output_string_protected($_POST[$this->code . '_cc_exp'])); - - return $process_button_string; - } - - public function before_process() - { - global $messageStack, $order, $currencies; - - if (!isset($_POST[$this->code . '_nonce']) || trim($_POST[$this->code . '_nonce']) == '') { - $messageStack->add_session('checkout_payment', MODULE_PAYMENT_SQUARE_ERROR_INVALID_CARD_DATA, 'error'); - zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false)); - } - - $order->info['cc_type'] = zen_output_string_protected($_POST['cc_type']); - $order->info['cc_number'] = zen_output_string_protected($_POST['cc_four']); - if (!strpos($order->info['cc_number'], 'XX')) { - $order->info['cc_number'] = 'XXXX' . zen_output_string_protected(substr($_POST['cc_four'], -4)); - } - $order->info['cc_expires'] = zen_output_string_protected($_POST['cc_expires']); - $order->info['cc_cvv'] = '***'; - - // get Square Location (since we need the ID and the currency for preparing the transaction) - $location = $this->getLocationDetails(); - - $payment_amount = $order->info['total']; - $currency_code = strtoupper($order->info['currency']); - - $this->currency_comment = ''; - - // force conversion to Square Location's currency: - if ($order->info['currency'] != $location->getCurrency() || $order->info['currency'] != DEFAULT_CURRENCY) { - $payment_amount = $currencies->rateAdjusted($order->info['total'], true, $location->getCurrency()); - $currency_code = $location->getCurrency(); - if ($order->info['currency'] != $location->getCurrency()) { - $this->currency_comment = '(Converted from: ' . round($order->info['total'] * $order->info['currency_value'], 2) . ' ' . $order->info['currency'] . ')'; - } - // Note: Add tax/shipping conversion as well if rewriting for Orders API integration - } - - $billing_address = array( - 'first_name' => (string)$order->billing['firstname'], - 'last_name' => (string)$order->billing['lastname'], - 'organization' => (string)$order->billing['company'], - 'address_line_1' => (string)$order->billing['street_address'], - 'address_line_2' => (string)$order->billing['suburb'], - 'locality' => (string)$order->billing['city'], - 'administrative_district_level_1' => (string)zen_get_zone_code($order->billing['country']['id'], $order->billing['zone_id'], $order->billing['state']), - 'postal_code' => (string)$order->billing['postcode'], - 'country' => (string)$order->billing['country']['iso_code_2'], - ); - if ($order->delivery !== false && !empty($order->delivery['street_address']) && !empty($order->delivery['country']['iso_code_2'])) { - $shipping_address = array( - 'first_name' => (string)$order->delivery['firstname'], - 'last_name' => (string)$order->delivery['lastname'], - 'organization' => (string)$order->delivery['company'], - 'address_line_1' => (string)$order->delivery['street_address'], - 'address_line_2' => (string)$order->delivery['suburb'], - 'locality' => (string)$order->delivery['city'], - 'administrative_district_level_1' => (string)zen_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], $order->delivery['state']), - 'postal_code' => (string)$order->delivery['postcode'], - 'country' => (string)$order->delivery['country']['iso_code_2'], - ); - } - - $payment_request = new \SquareConnect\Model\ZenCartConnectCreatePaymentRequest(); - $money = new \SquareConnect\Model\Money(); - $money->setAmount($this->convert_to_cents($payment_amount, $currency_code))->setCurrency((string)$currency_code); - $payment_request->setAmountMoney($money); - $payment_request->setIdempotencyKey(uniqid()); - $payment_request->setSourceId((string)$_POST[$this->code . '_nonce']); - $payment_request->setReferenceId((string)(substr(zen_session_id(), 0, 40))); - $payment_request->setLocationId($location->getId()); - - // brief additional information transmitted as a "note", to max of 500 characters: - $extraNotes = defined('MODULES_PAYMENT_SQUARE_TEXT_ITEMS_ORDERED') ? MODULES_PAYMENT_SQUARE_TEXT_ITEMS_ORDERED : 'Ordered:'; - if (count($order->products) < 100) { - for ($i = 0, $j = count($order->products); $i < $j; $i++) { - if ($i > 0 && $i < $j) $extraNotes .= ', '; - $extraNotes .= '(' . $order->products[$i]['qty'] . ') ' . $order->products[$i]['name']; - } - } - if ($order->delivery !== false && !empty($order->delivery['street_address']) && !empty($order->delivery['country']['iso_code_2'])) { - $extraNotes .= '; '; - $extraNotes .= defined('MODULES_PAYMENT_SQUARE_TEXT_DELIVERY_ADDRESS') ? MODULES_PAYMENT_SQUARE_TEXT_DELIVERY_ADDRESS : 'Deliver To: '; - $extraNotes .= $order->delivery['street_address'] . ', ' . $order->delivery['city'] . ', ' . $order->delivery['state'] . ' ' . $order->delivery['postcode'] . ' tel:' . $order->customer['telephone']; - } - // Use Notes to identify customer and store name - $note = htmlentities(trim($order->billing['firstname'] . ' ' . $order->billing['lastname'] . '; ' . $extraNotes . ' ' . $this->currency_comment . ' ' . STORE_NAME)); - $payment_request->setNote((string)substr($note, 0, 500)); - - $payment_request->setBuyerEmailAddress(substr($order->customer['email_address'], 0, 255)); - $payment_request->setBillingAddress(new \SquareConnect\Model\Address($billing_address)); - - if (!empty($shipping_address)) { - $payment_request->setShippingAddress(new \SquareConnect\Model\Address($shipping_address)); - } - - if (MODULE_PAYMENT_SQUARE_TRANSACTION_TYPE === 'authorize') { - $payment_request->setAutocomplete(false); - } - - // Skipping these since they would have to be generated after the Order is actually saved by Zen Cart, which is not part of the current workflow. - // $payment_request->setReceiptNumber(); - // $payment_request->setReceiptUrl(); - - // beta - // $payment_request->setStatementDescriptionIdentifier(substr(STORE_NAME, 0, 20)); - - try { - $this->getAccessToken(); - $api_instance = new \SquareConnect\Api\PaymentsApi($this->_apiConnection); - $result = $api_instance->createPayment($payment_request); - $errors_object = $result->getErrors(); - $payment = $result->getPayment(); - $this->logTransactionData($payment, $payment_request, (string)$errors_object); - } catch (\SquareConnect\ApiException $e) { - $errors_object = $e->getResponseBody()->errors; - $error = $this->parse_error_response($errors_object); - $this->logTransactionData(array($e->getCode() => $e->getMessage()), $payment_request, print_r($e->getResponseBody(), true)); - - // location configuration error - if ($error['category'] === 'INVALID_REQUEST_ERROR' && strpos($error['detail'], 'retrieve nonce')) { - trigger_error("Square Connect [nonce] error. \nResponse Body:\n" . print_r($e->getResponseBody(), true) . "\nResponse Headers:\n" . print_r($e->getResponseHeaders(), true), E_USER_NOTICE); - $messageStack->add_session('checkout_payment', MODULE_PAYMENT_SQUARE_TEXT_ERROR . ' Payment token expired or has already been submitted. Please check transaction history.', 'error'); - zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false)); - } else - - if ($error['category'] === 'INVALID_REQUEST_ERROR') { - trigger_error("Square Connect [configuration] error. \nResponse Body:\n" . print_r($e->getResponseBody(), true) . "\nResponse Headers:\n" . print_r($e->getResponseHeaders(), true), E_USER_NOTICE); - $messageStack->add_session('checkout_payment', MODULE_PAYMENT_SQUARE_TEXT_MISCONFIGURATION, 'error'); - zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false)); - } else - - // only display payment-related errors to customers - if ($error['category'] !== 'PAYMENT_METHOD_ERROR') { - trigger_error("Square Connect error. \nResponse Body:\n" . print_r($e->getResponseBody(), true) . "\nResponse Headers:\n" . print_r($e->getResponseHeaders(), true), E_USER_NOTICE); - $messageStack->add_session('checkout_payment', MODULE_PAYMENT_SQUARE_TEXT_COMM_ERROR, 'error'); - zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false)); - } - } - - // analyze for errors - if (!empty($errors_object)) { - $error = $this->parse_error_response($errors_object); - $messageStack->add_session('checkout_payment', MODULE_PAYMENT_SQUARE_TEXT_ERROR . ' [' . $error['detail'] . ']', 'error'); - zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false)); - } - - // success - if ($payment->getId() && in_array($payment->getStatus(), array('COMPLETED', 'APPROVED'))) { - $this->transaction_date = $payment->getCreatedAt(); - $this->auth_code = $payment->getOrderId(); // the order_id assigned by Square, used for lookups later - $this->transaction_id = $payment->getId(); // The payment_id is used for refund requests - - return true; - } - - // if we get here, send a generic 'declined' message response - $messageStack->add_session('checkout_payment', MODULE_PAYMENT_SQUARE_ERROR_DECLINED, 'error'); - zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false)); - } - - /** - * Update the order-status history data with the transaction id and tender id from the transaction. - * - * @return boolean - */ - public function after_process() - { - global $insert_id, $order, $currencies; - - $comments = 'Credit Card payment. TransID: ' . $this->transaction_id . "\n" . $this->transaction_date . $this->currency_comment . "\nOID: " . $this->auth_code; - zen_update_orders_history($insert_id, $comments, null, $this->order_status, -1); - - $sql_data_array = array( - 'order_id' => $insert_id, - 'location_id' => $this->getLocationDetails()->getId(), - 'payment_id' => $this->transaction_id, - 'sq_order' => $this->auth_code, - 'created_at' => 'now()', - ); - zen_db_perform(TABLE_SQUARE_PAYMENTS, $sql_data_array); - - return true; - } - - /** - * Prepare admin-page components - * - * @param int $order_id - * @return string - */ - public function admin_notification($order_id) - { - $records = $this->lookupOrderDetails($order_id); - if (empty($records)) return ''; - $transaction = $records[0]; - if (empty($transaction) || !$transaction->getId()) return ''; - $output = ''; - require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/square_support/square_admin_notification.php'); - - return $output; - } - -//////////////////////////////////// - - /** - * Create Square Configuration for making all connections - */ - protected function setSquareConfig() - { - if (empty($this->_sqConfig)) { - $this->_sqConfig = \SquareConnect\Configuration::getDefaultConfiguration(); - - //$this->_sqConfig->setDebug(true)->setDebugFile(DIR_FS_LOGS . '/squareDebug.txt'); - - if (MODULE_PAYMENT_SQUARE_TESTING_MODE === 'Sandbox') { - $this->_sqConfig->setHost('https://connect.squareupsandbox.com'); - } - - \SquareConnect\Configuration::setDefaultConfiguration($this->_sqConfig); - } - } - - /** - * Create Square API Client connection for all communications - */ - protected function setApiClient() - { - if (empty($this->_sqConfig)) { - $this->setSquareConfig(); - } - if (empty($this->_apiConnection)) { - $this->_apiConnection = new \SquareConnect\ApiClient($this->_sqConfig); - } - } - - /** - * If access token is valid, set it for connections, else start renewal process - * @return string - */ - protected function getAccessToken() - { - $this->token_refresh_check(); - $access_token = (string)(MODULE_PAYMENT_SQUARE_TESTING_MODE === 'Live' ? MODULE_PAYMENT_SQUARE_ACCESS_TOKEN : MODULE_PAYMENT_SQUARE_SANDBOX_TOKEN); - - $this->setApiClient(); - - // set token into Square Config for subsequent API calls - $this->_sqConfig->setAccessToken($access_token); - - return $access_token; - } - - /** - * Test for token expiration - * - * @param string $difference - * @return bool - * @throws Exception - */ - protected function isTokenExpired($difference = '') - { - if (MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT == '') return true; - $expiry = new DateTime(MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT); // formatted as '2016-08-10T19:42:08Z' - - // to be useful, we have to allow time for a customer to checkout. Opting generously for 1 hour here. - if ($difference == '') $difference = '+1 hour'; - $now = new DateTime($difference); - - return $expiry < $now; - } - - /** - * Check if token needs refresh (ie: recently expired, or nearly expired) - * Called by payment module and by cron job - * - * @return string - * @throws Exception - */ - public function token_refresh_check() - { - if (MODULE_PAYMENT_SQUARE_APPLICATION_ID == '') return 'not configured'; - - $token = MODULE_PAYMENT_SQUARE_ACCESS_TOKEN; - - // if we have no token, alert that we need to get one - if (trim($token) == '') { - if (IS_ADMIN_FLAG === true) { - global $messageStack; - $messageStack->add_session(sprintf(MODULE_PAYMENT_SQUARE_TEXT_NEED_ACCESS_TOKEN, $this->getAuthorizeURL()), 'error'); - } - $this->disableDueToInvalidAccessToken(); - return 'failure'; - } - - // refreshes can't be done if the token has expired longer than 15 days. - if ($this->isTokenExpired('-15 days')) { - $this->disableDueToInvalidAccessToken(); - return 'failure'; - } - - // ideal refresh threshold is 3 weeks out - $refresh_threshold = new DateTime('+3 weeks'); - - // if expiry is less than (threshold) away, refresh (ie: refresh weekly) - $expiry = new DateTime(MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT); - if ($expiry < $refresh_threshold) { - $result = $this->renewOAuthToken(); - if ($result) { - return 'refreshed'; - } - return 'not refreshed'; - } - - return 'not expired'; - } - - /** - * Disable this payment module if access token is invalid or expired - */ - protected function disableDueToInvalidAccessToken() - { - if (MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT == '' || MODULE_PAYMENT_SQUARE_ACCESS_TOKEN == '') return; - global $db; - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = 'False' WHERE configuration_key = 'MODULE_PAYMENT_SQUARE_STATUS'"); - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = '' WHERE configuration_key = 'MODULE_PAYMENT_SQUARE_ACCESS_TOKEN'"); - $msg = "This is an alert from your Zen Cart store.\n\nYour Square Payment Module access-token has expired, or cannot be refreshed automatically. Please login to your store Admin, go to the Payment Module settings, click on the Square module, and click the button to Re/Authorize your account.\n\nSquare Payments are disabled until a new valid token can be established."; - $msg .= "\n\n" . ' The token expired on ' . MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT; - zen_mail(STORE_NAME, STORE_OWNER_EMAIL_ADDRESS, 'Square Payment Module Problem: Critical', $msg, STORE_NAME, EMAIL_FROM, array('EMAIL_MESSAGE_HTML' => $msg), 'payment_module_error'); - if (IS_ADMIN_FLAG !== true) trigger_error('Square Payment Module token expired' . (MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT != '' - ? ' on ' . MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT - : '') . '. Payment module has been disabled. Please login to Admin and re-authorize the module.', - E_USER_ERROR); - } - - /** - * Disconnect all auth to Square account (useful for troubleshooting, and linking to a different account) - */ - protected function resetTokensAndDisconnectFromSquare($include_sandbox = false) - { - global $db; - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = 'False' WHERE configuration_key = 'MODULE_PAYMENT_SQUARE_STATUS'"); - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = '' WHERE configuration_key in ('MODULE_PAYMENT_SQUARE_ACCESS_TOKEN', 'MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT', 'MODULE_PAYMENT_SQUARE_REFRESH_TOKEN')"); - if ($include_sandbox) { - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = '' WHERE configuration_key in ('MODULE_PAYMENT_SQUARE_SANDBOX_TOKEN')"); - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = 'Live' WHERE configuration_key = 'MODULE_PAYMENT_SQUARE_TESTING_MODE'"); - } - } - - /** - * Store access token to db once a valid replacement token has been received - * @param \SquareConnect\Model\ObtainTokenResponse $response - * @return bool - */ - private function saveAccessToken(\SquareConnect\Model\ObtainTokenResponse $response) - { - global $db; - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = '" . $response->getAccessToken() . "' WHERE configuration_key = 'MODULE_PAYMENT_SQUARE_ACCESS_TOKEN'"); - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = '" . $response->getExpiresAt() . "' WHERE configuration_key = 'MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT'"); - $db->Execute("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value = '" . $response->getRefreshToken() . "' WHERE configuration_key = 'MODULE_PAYMENT_SQUARE_REFRESH_TOKEN'"); - } - - /** - * Generate the oauth URL for making an authorize request for the account - * - * @return string - */ - public function getAuthorizeURL() - { - $url = 'https://connect.squareup.com/oauth2/authorize?'; - - if (MODULE_PAYMENT_SQUARE_TESTING_MODE === 'Sandbox') { - $url = 'https://connect.squareupsandbox.com/oauth2/authorize?'; - } - - $params = http_build_query( - array( - 'client_id' => MODULE_PAYMENT_SQUARE_APPLICATION_ID, - 'scope' => 'MERCHANT_PROFILE_READ PAYMENTS_WRITE PAYMENTS_READ ORDERS_WRITE ORDERS_READ CUSTOMERS_WRITE CUSTOMERS_READ ITEMS_WRITE ITEMS_READ', - 'state' => uniqid(), - ) - ); - - return $url . $params; - } - - /** - * Part of the Oauth handshake: exchanges auth code for auth token - * - * @param $token_redeem_code - * @throws Exception - */ - public function exchangeForToken($token_redeem_code) - { - $this->setApiClient(); - $oauthApi = new SquareConnect\Api\OAuthApi($this->_apiConnection); - - $body = new \SquareConnect\Model\ObtainTokenRequest( - array( - 'client_id' => MODULE_PAYMENT_SQUARE_APPLICATION_ID, - 'client_secret' => MODULE_PAYMENT_SQUARE_APPLICATION_SECRET, - 'code' => $token_redeem_code, - ) - ); - $body->setGrantType('authorization_code'); - - try { - $response = $oauthApi->obtainToken($body); - } catch (Exception $e) { - trigger_error('Exception when calling OAuthApi->obtainToken: ' . $e->getMessage()); - throw new Exception('Error Processing Request: Could not exchange auth token!', 1); - } - - $this->saveAccessToken($response); - echo 'Token set. You may now continue configuring the module. '; - } - - /** - * Renew OAuth access token using a refresh token. - */ - protected function renewOAuthToken() - { - $refreshToken = MODULE_PAYMENT_SQUARE_REFRESH_TOKEN; - - if (empty($refreshToken)) { - $this->resetTokensAndDisconnectFromSquare($sandbox = true); - $GLOBALS['messageStack']->add('FATAL ERROR: No refresh token found. Please re-authorize your Square account via the Admin console.'); - } - - $this->setApiClient(); - $oauthApi = new SquareConnect\Api\OAuthApi($this->_apiConnection); - - $body = new \SquareConnect\Model\ObtainTokenRequest( - array( - 'client_id' => MODULE_PAYMENT_SQUARE_APPLICATION_ID, - 'client_secret' => MODULE_PAYMENT_SQUARE_APPLICATION_SECRET, - ) - ); - $body->setGrantType("refresh_token"); - $body->setRefreshToken($refreshToken); - - try { - $response = $oauthApi->obtainToken($body); - } catch (Exception $e) { - trigger_error('Exception when calling OAuthApi->obtainToken: ' . $e->getMessage()); - throw new Exception('Error Processing Request: Token renewal failed!', 1); - } - - $this->saveAccessToken($response); - - return $response->getAccessToken(); - } - - /** - * Lookup and return location information, whether from configured setting, or by lookup from Square directly - * - * @return string | \SquareConnect\Model\Location - */ - protected function getLocationDetails() - { - $location = new \SquareConnect\Model\Location; - - $data = trim((string)MODULE_PAYMENT_SQUARE_LOCATION); - - // this splits it out from stored format of: LocationName:[LocationID]:CurrencyCode - preg_match('/(.+(?setName($matches[1]); - $location->setId($matches[2]); - $location->setCurrency($matches[3]); - - if (empty($data)) { - $locations = $this->getLocationsList(); - if (empty($locations)) return ''; - $location = $locations[0]; - } - - return $location; - } - - protected function getLocationsList() - { - if (MODULE_PAYMENT_SQUARE_ACCESS_TOKEN == '') return null; - - $this->getAccessToken(); - $api_instance = new SquareConnect\Api\LocationsApi($this->_apiConnection); - try { - $result = $api_instance->listLocations(); - return $result->getLocations(); - - } catch (Exception $e) { - trigger_error('Exception when calling LocationsApi->listLocations: ' . $e->getMessage(), E_USER_NOTICE); - - return array(); - } - } - - public function getLocationsPulldownArray() - { - $locations = $this->getLocationsList(); - if (empty($locations)) return array(); - $locations_pulldown = array(); - - foreach ($locations as $key => $value) { - // This causes this to be saved as: LocationName:[LocationID]:CurrencyCode - $locations_pulldown[] = array( - 'id' => $value->getName() . ':[' . $value->getId() . ']:' . $value->getCurrency(), - 'text' => $value->getName(), - ); - } - - return $locations_pulldown; - } - - /** - * Retrieve all payments for this year - * - * @param $order_id - * @return \SquareConnect\Model\Payment | array | \SquareConnect\Model\Payment[] - */ - protected function getAllPayments() - { - $this->getAccessToken(); - $location = $this->getLocationDetails(); - - $request = new \SquareConnect\Model\ListPaymentsRequest(array('location_id' => $location->getId())); - - try { - $api_instance = new \SquareConnect\Api\PaymentsApi($this->_apiConnection); - $result = $api_instance->listPayments($request); - return $result->getPayments(); - - } catch (\SquareConnect\ApiException $e) { - return new \SquareConnect\Model\Payment; - } - } - - /** - * fetch live order details - * - * @param $order_id - * @return \SquareConnect\Model\Order | array | \SquareConnect\Model\Order[] - */ - protected function lookupOrderDetails($order_id) - { - global $db; - $sql = "SELECT * from " . TABLE_SQUARE_PAYMENTS . " WHERE order_id = " . (int)$order_id . " ORDER BY id LIMIT 1"; - $order = $db->Execute($sql); - - if ($order->EOF) { - return new \SquareConnect\Model\Order; - } - - $this->getAccessToken(); - $location = $this->getLocationDetails(); - - $ids = array(); - foreach(array('tender_id', 'transaction_id', 'payment_id', 'sq_order') as $key) { - if (!empty($order->fields[$key])) { - $ids[] = $order->fields[$key]; - } - } - $request = new \SquareConnect\Model\BatchRetrieveOrdersRequest(array('order_ids' => $ids)); - - try { - $api_instance = new \SquareConnect\Api\OrdersApi($this->_apiConnection); - $result = $api_instance->batchRetrieveOrders($location->getId(), $request); - return $result->getOrders(); - - } catch (\SquareConnect\ApiException $e) { - return new \SquareConnect\Model\Order; - } - } - - /** - * fetch original payment details for an order - * - * @param $order_id - * @return \SquareConnect\Model\Order[] - */ - protected function lookupPaymentForOrder($order_id) - { - $records = $this->lookupOrderDetails($order_id); - - if (empty($records)) { - return (new \SquareConnect\Model\BatchRetrieveOrdersResponse(['orders' => new \SquareConnect\Model\Order()]))->getOrders(); - } - - return $records[0]; - } - - /** - * @TODO - this is unused, but is similar to the admin_notification lookup/display loop - */ - public function transactionDetails($order_id) - { - global $currencies; - - $transaction = $this->lookupOrderDetails($order_id); - $payments = $transaction->getTenders(); - $payment_created_at = null; - $this->transaction_status = ''; - foreach ($payments as $payment) { - $this->transaction_status = $payment->getCardDetails()->getStatus(); - if (!$payment_created_at) $payment_created_at = $payment->getCreatedAt(); - $currency_code = $payment->getAmountMoney()->getCurrency(); - $amount = $currencies->format($this->convert_from_cents($payment->getAmountMoney()->getAmount(), $currency_code), false, $currency_code); - $date = $payment->getCreatedAt(); - $id = $payment->getId(); - } - $refunds = $transaction->getRefunds(); - if (count($refunds)) { - foreach ($refunds as $refund) { - $currency_code = $refund->getAmountMoney()->getCurrency(); - $amount = $currencies->format($this->convert_from_cents($refund->getAmountMoney()->getAmount(), $currency_code), false, $currency_code); - $date = $refund->getCreatedAt(); - $id = $refund->getId(); - $status = $refund->getStatus(); - } - } - } - - /** - * format purchase amount - * Monetary amounts are specified in the smallest unit of the applicable currency. ie: for USD the amount is in cents. - */ - protected function convert_to_cents($amount, $currency_code = null) - { - global $currencies, $order; - if (empty($currency_code)) $currency_code = (isset($order) && isset($order->info['currency'])) - ? $order->info['currency'] : $this->gateway_currency; - $decimal_places = $currencies->get_decimal_places($currency_code); - - // if this currency is "already" in cents, just use the amount directly - if ((int)$decimal_places === 0) return (int)$amount; - -// For compatibility with older than PHP 5.6, we must comment out the following several lines, and use only the pow() call instead of the ** exponentiation operator - // if (version_compare(PHP_VERSION, '5.6.0', '<')) { - // old PHP way - return (int)(string)(round($amount, $decimal_places) * pow(10, $decimal_places)); - // } - // modern way - // return (int)(string)(round($amount, $decimal_places) * 10 ** $decimal_places); - } - - protected function convert_from_cents($amount, $currency_code = null) - { - global $currencies, $order; - if (empty($currency_code)) $currency_code = (isset($order) && isset($order->info['currency'])) - ? $order->info['currency'] : $this->gateway_currency; - $decimal_places = $currencies->get_decimal_places($currency_code); - - // if this currency is "already" in cents, just use the amount directly - if ((int)$decimal_places === 0) return (int)$amount; - -// For compatibility with older than PHP 5.6, we must comment out the following several lines, and use only the pow() call instead of the ** exponentiation operator - // if (version_compare(PHP_VERSION, '5.6.0', '<')) { - // old PHP way - return ((int)$amount / pow(10, $decimal_places)); - // } - - // modern way - // return ((int)$amount / 10 ** $decimal_places); - } - - public function check() - { - global $db; - if (!isset($this->_check)) { - $check_query = $db->Execute("SELECT configuration_value FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = 'MODULE_PAYMENT_SQUARE_STATUS'"); - $this->_check = $check_query->RecordCount(); - } - if ($this->_check > 0) $this->install(); // install any missing keys - - return $this->_check; - } - - /** Install required configuration keys */ - public function install() - { - global $db; - - if (!defined('MODULE_PAYMENT_SQUARE_STATUS')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Square Module', 'MODULE_PAYMENT_SQUARE_STATUS', 'True', 'Do you want to accept Square payments?', '6', '0', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now())"); - if (!defined('MODULE_PAYMENT_SQUARE_APPLICATION_ID')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function) VALUES ('Application ID', 'MODULE_PAYMENT_SQUARE_APPLICATION_ID', 'sq0idp-', 'Enter the Application ID from your App settings', '6', '0', now(), 'zen_cfg_password_display')"); - if (!defined('MODULE_PAYMENT_SQUARE_APPLICATION_SECRET')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function) VALUES ('Application Secret (OAuth)', 'MODULE_PAYMENT_SQUARE_APPLICATION_SECRET', 'sq0csp-', 'Enter the Application Secret from your App OAuth settings', '6', '0', now(), 'zen_cfg_password_display')"); - if (!defined('MODULE_PAYMENT_SQUARE_TRANSACTION_TYPE')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Transaction Type', 'MODULE_PAYMENT_SQUARE_TRANSACTION_TYPE', 'purchase', 'Should payments be [authorized] only, or be completed [purchases]?
NOTE: If you use [authorize] then you must manually capture each payment within 6 days or it will be voided automatically.', '6', '0', 'zen_cfg_select_option(array(\'authorize\', \'purchase\'), ', now())"); - if (!defined('MODULE_PAYMENT_SQUARE_LOCATION')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, set_function) VALUES ('
Location ID', 'MODULE_PAYMENT_SQUARE_LOCATION', '', 'Enter the (Store) Location ID from your account settings. You can have multiple locations configured in your account; this setting lets you specify which location your sales should be attributed to. If you want to enable Apple Pay support, this location must already be verified for Apple Pay in your Square account.', '6', '0', now(), 'zen_cfg_pull_down_square_locations(')"); - if (!defined('MODULE_PAYMENT_SQUARE_SORT_ORDER')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('
Sort order of display.', 'MODULE_PAYMENT_SQUARE_SORT_ORDER', '0', 'Sort order of displaying payment options to the customer. Lowest is displayed first.', '6', '0', now())"); - if (!defined('MODULE_PAYMENT_SQUARE_ZONE')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Payment Zone', 'MODULE_PAYMENT_SQUARE_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())"); - if (!defined('MODULE_PAYMENT_SQUARE_ORDER_STATUS_ID')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) VALUES ('Set Order Status', 'MODULE_PAYMENT_SQUARE_ORDER_STATUS_ID', '2', 'Set the status of Paid orders made with this payment module to this value', '6', '0', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())"); - if (!defined('MODULE_PAYMENT_SQUARE_REFUNDED_ORDER_STATUS_ID')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) VALUES ('Set Refunded Order Status', 'MODULE_PAYMENT_SQUARE_REFUNDED_ORDER_STATUS_ID', '1', 'Set the status of refunded orders to this value', '6', '0', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())"); - if (!defined('MODULE_PAYMENT_SQUARE_LOGGING')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Log Mode', 'MODULE_PAYMENT_SQUARE_LOGGING', 'Log on Failures and Email on Failures', 'Would you like to enable debug mode? A complete detailed log of failed transactions may be emailed to the store owner.', '6', '0', 'zen_cfg_select_option(array(\'Off\', \'Log Always\', \'Log on Failures\', \'Log Always and Email on Failures\', \'Log on Failures and Email on Failures\', \'Email Always\', \'Email on Failures\'), ', now())"); - if (!defined('MODULE_PAYMENT_SQUARE_ACCESS_TOKEN')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function) VALUES ('Live Merchant Token', 'MODULE_PAYMENT_SQUARE_ACCESS_TOKEN', '', 'Enter the Access Token for Live transactions from your account settings', '6', '0', now(), 'zen_cfg_password_display')"); - if (!defined('MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function) VALUES ('Square Token TTL (read only)', 'MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT', '', 'DO NOT EDIT', '6', '0', now(), '')"); - if (!defined('MODULE_PAYMENT_SQUARE_REFRESH_TOKEN')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function) VALUES ('Square Refresh Token (read only)', 'MODULE_PAYMENT_SQUARE_REFRESH_TOKEN', '', 'DO NOT EDIT', '6', '0', now(), '')"); - // DEVELOPER USE ONLY - if (!defined('MODULE_PAYMENT_SQUARE_SANDBOX_TOKEN')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function) VALUES ('Sandbox Merchant Token', 'MODULE_PAYMENT_SQUARE_SANDBOX_TOKEN', 'sandbox-sq0atb-abcdefghijklmnop', 'Enter the Sandbox Access Token from your account settings', '6', '0', now(), 'zen_cfg_password_display')"); - if (!defined('MODULE_PAYMENT_SQUARE_TESTING_MODE')) $db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Sandbox/Live Mode', 'MODULE_PAYMENT_SQUARE_TESTING_MODE', 'Live', 'Use [Live] for real transactions
Use [Sandbox] for developer testing', '6', '0', 'zen_cfg_select_option(array(\'Live\', \'Sandbox\'), ', now())"); - - $db->Execute('DELETE FROM ' . TABLE_CONFIGURATION . " WHERE configuration_key='MODULE_PAYMENT_SQUARE_REFRESH_EXPIRES_AT'"); - - $this->tableCheckup(); - } - - public function remove() - { - global $db; - $db->Execute("DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_key LIKE 'MODULE\_PAYMENT\_SQUARE\_%'"); - } - - public function keys() - { - $keys = array( - 'MODULE_PAYMENT_SQUARE_STATUS', - 'MODULE_PAYMENT_SQUARE_APPLICATION_ID', - 'MODULE_PAYMENT_SQUARE_APPLICATION_SECRET', - 'MODULE_PAYMENT_SQUARE_TRANSACTION_TYPE', - 'MODULE_PAYMENT_SQUARE_LOCATION', - 'MODULE_PAYMENT_SQUARE_SORT_ORDER', - 'MODULE_PAYMENT_SQUARE_ZONE', - 'MODULE_PAYMENT_SQUARE_ORDER_STATUS_ID', - 'MODULE_PAYMENT_SQUARE_REFUNDED_ORDER_STATUS_ID', - 'MODULE_PAYMENT_SQUARE_LOGGING', - ); - - if (isset($_GET['sandbox'])) { - // Developer use only - $keys = array_merge($keys, array( - 'MODULE_PAYMENT_SQUARE_ACCESS_TOKEN', - 'MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT', - 'MODULE_PAYMENT_SQUARE_REFRESH_TOKEN', - 'MODULE_PAYMENT_SQUARE_TESTING_MODE', - 'MODULE_PAYMENT_SQUARE_SANDBOX_TOKEN', - ) - ); - } - - return $keys; - } - - function help() { - return array('link' => 'https://docs.zen-cart.com/user/payment/square/'); - } - - /** - * Check and fix table structure if appropriate - * - * Note: The tender_id and transaction_id fields are no longer populated; but are left behind in older installs for lookup of history - */ - protected function tableCheckup() - { - global $db, $sniffer; - if (!$sniffer->table_exists(TABLE_SQUARE_PAYMENTS)) { - $sql = " - CREATE TABLE `" . TABLE_SQUARE_PAYMENTS . "` ( - `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, - `order_id` int(11) UNSIGNED NOT NULL, - `location_id` varchar(40) NOT NULL, - `payment_id` varchar(255) DEFAULT NULL, - `sq_order` varchar(255) DEFAULT NULL, - `action` varchar(40), - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) - )"; - $db->Execute($sql); - } - $fieldOkay1 = (method_exists($sniffer, 'field_exists')) ? $sniffer->field_exists(TABLE_SQUARE_PAYMENTS, 'payment_id') : false; - if ($fieldOkay1 !== true) { - $db->Execute("ALTER TABLE " . TABLE_SQUARE_PAYMENTS . " ADD payment_id varchar(255) DEFAULT NULL AFTER location_id"); - } - $fieldOkay2 = (method_exists($sniffer, 'field_exists')) ? $sniffer->field_exists(TABLE_SQUARE_PAYMENTS, 'sq_order') : false; - if ($fieldOkay2 !== true) { - $db->Execute("ALTER TABLE " . TABLE_SQUARE_PAYMENTS . " ADD sq_order varchar(255) DEFAULT NULL AFTER payment_id"); - } - if (method_exists($sniffer, 'field_exists') && $sniffer->field_exists(TABLE_SQUARE_PAYMENTS, 'transaction_id')) { - $db->Execute("ALTER TABLE " . TABLE_SQUARE_PAYMENTS . " MODIFY transaction_id varchar(255) DEFAULT NULL"); - } - } - - /** - * Log transaction errors if enabled - * - * @param array $response - * @param array $payload - * @param string $errors - */ - private function logTransactionData($response, $payload, $errors = '') - { - global $db; - $logMessage = date('M-d-Y h:i:s') . - "\n=================================\n\n" . - ($errors != '' ? 'Error Dump: ' . $errors . "\n\n" : '') . - 'Payment ID assigned: ' . $response['id'] . "\n" . - 'Sent to Square: ' . print_r($payload, true) . "\n\n" . - 'Results Received back from Square: ' . print_r($response, true) . "\n\n"; - - if (strstr(MODULE_PAYMENT_SQUARE_LOGGING, 'Log Always') || ($errors != '' && strstr(MODULE_PAYMENT_SQUARE_LOGGING, 'Log on Failures'))) { - $key = $response['id'] . '_' . time() . '_' . zen_create_random_value(4); - $file = $this->_logDir . '/' . 'Square_' . $key . '.log'; - if ($fp = @fopen($file, 'a')) { - fwrite($fp, $logMessage); - fclose($fp); - } - } - if (($errors != '' && stristr(MODULE_PAYMENT_SQUARE_LOGGING, 'Email on Failures')) || strstr(MODULE_PAYMENT_SQUARE_LOGGING, 'Email Always')) { - zen_mail(STORE_NAME, STORE_OWNER_EMAIL_ADDRESS, 'Square Alert (' . (IS_ADMIN_FLAG === true ? 'admin' : 'customer') . ' transaction error) ' . date('M-d-Y h:i:s'), $logMessage, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, - array('EMAIL_MESSAGE_HTML' => nl2br($logMessage)), 'debug'); - } - } - - /** - * Refund all or part of an order - */ - public function _doRefund($oID, $amount = null, $currency_code = null) - { - global $db, $messageStack, $currencies; - - $new_order_status = $this->getNewOrderStatus($oID, 'refund', (int)MODULE_PAYMENT_SQUARE_REFUNDED_ORDER_STATUS_ID); - if ($new_order_status == 0) $new_order_status = 1; - - $proceedToRefund = true; - - if (!isset($_POST['refconfirm']) || $_POST['refconfirm'] != 'on') { - $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_REFUND_CONFIRM_ERROR, 'error'); - $proceedToRefund = false; - } - if (isset($_POST['buttonrefund']) && $_POST['buttonrefund'] == MODULE_PAYMENT_SQUARE_ENTRY_REFUND_BUTTON_TEXT) { - $amount = preg_replace('/[^0-9.,]/', '', $_POST['refamt']); - if (empty($amount)) { - $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_INVALID_REFUND_AMOUNT, 'error'); - $proceedToRefund = false; - } - } - if (!$proceedToRefund) return false; - - $refundNote = strip_tags(zen_db_input($_POST['refnote'])); - - $record = $this->lookupPaymentForOrder($oID); - if (!method_exists($record, 'getTenders')) { - $messageStack->add_session('ERROR: Could not look up details. Probable bad record number, or incorrect Square account credentials.', 'error'); - return false; - } - $transactions = $record->getTenders(); - - $payment = $transactions[0]; - $currency_code = $payment->getAmountMoney()->getCurrency(); - - $refund_details = array( - 'amount_money' => array( - 'amount' => $this->convert_to_cents($amount, $currency_code), - 'currency' => $currency_code, - ), - 'payment_id' => $payment->getId(), - 'reason' => substr(htmlentities(trim($refundNote)), 0, 60), - 'idempotency_key' => uniqid(), - ); - $request_body = new \SquareConnect\Model\RefundPaymentRequest($refund_details); - $this->logTransactionData(array('comment' => 'Creating refund request'), $refund_details); - - $this->getAccessToken(); - $api_instance = new SquareConnect\Api\RefundsApi($this->_apiConnection); - try { - $result = $api_instance->refundPayment($request_body); - $errors_object = $result->getErrors(); - $transaction = $result->getRefund(); - $this->logTransactionData(['refund request' => 'payment ' . $payment->getId(), 'id' => '[refund]'], $refund_details, (string)$errors_object); - - $currency_code = $transaction->getAmountMoney()->getCurrency(); - $amount = $currencies->format($transaction->getAmountMoney()->getAmount() / (pow(10, $currencies->get_decimal_places($currency_code))), false, $currency_code); - - $comments = 'REFUNDED: ' . $amount . "\n" . $refundNote; - zen_update_orders_history($oID, $comments, null, $new_order_status, 0); - - $messageStack->add_session(sprintf(MODULE_PAYMENT_SQUARE_TEXT_REFUND_INITIATED . $amount), 'success'); - - return true; - - } catch (\SquareConnect\ApiException $e) { - $errors_object = $e->getResponseBody()->errors; - $this->logTransactionData(array($e->getCode() => $e->getMessage()), $refund_details, print_r($e->getResponseBody(), true)); - trigger_error("Square Connect error (REFUNDING). \nResponse Body:\n" . print_r($e->getResponseBody(), true) . "\nResponse Headers:\n" . print_r($e->getResponseHeaders(), true), E_USER_NOTICE); -// $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_COMM_ERROR, 'error'); - } - - if (is_array($errors_object) && count($errors_object)) { - $error = $this->parse_error_response($errors_object); - $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_UPDATE_FAILED . ' [' . $error['detail'] . ']', 'error'); - } - return false; - } - - /** - * Capture a previously-authorized transaction. - */ - public function _doCapt($oID, $type = 'Complete', $amount = null, $currency = null) - { - global $messageStack; - - $new_order_status = $this->getNewOrderStatus($oID, 'capture', (int)MODULE_PAYMENT_SQUARE_ORDER_STATUS_ID); - if ($new_order_status == 0) $new_order_status = 1; - - $captureNote = strip_tags(zen_db_input($_POST['captnote'])); - - $proceedToCapture = true; - if (!isset($_POST['captconfirm']) || $_POST['captconfirm'] != 'on') { - $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_CAPTURE_CONFIRM_ERROR, 'error'); - $proceedToCapture = false; - } - - if (!$proceedToCapture) return false; - - $record = $this->lookupPaymentForOrder($oID); - if (!method_exists($record, 'getTenders')) { - $messageStack->add_session('ERROR: Could not look up details. Probable bad record number, or incorrect Square account credentials.', 'error'); - return false; - } - $transactions = $record->getTenders(); - $transaction = $transactions[0]; - $payment_id = $transaction->getPaymentId(); - - $this->getAccessToken(); - - $api_instance = new \SquareConnect\Api\PaymentsApi($this->_apiConnection); - - try { - $result = $api_instance->completePayment($payment_id, new \SquareConnect\Model\CompletePaymentRequest([])); - $errors_object = $result->getErrors(); - $this->logTransactionData(array('capture request' => 'payment ' . $payment_id, 'id' => '[capture]'), array(), (string)$errors_object); - - $comments = 'FUNDS COLLECTED. Trans ID: ' . $payment_id . "\n" . 'Time: ' . date('Y-m-D h:i:s') . "\n" . $captureNote; - zen_update_orders_history($oID, $comments, null, $new_order_status, 0); - - $messageStack->add_session(sprintf(MODULE_PAYMENT_SQUARE_TEXT_CAPT_INITIATED, $payment_id), 'success'); - - return true; - - } catch (\SquareConnect\ApiException $e) { - $errors_object = $e->getResponseBody()->errors; - $this->logTransactionData(array($e->getCode() => $e->getMessage()), array(), print_r($e->getResponseBody(), true)); - trigger_error("Square Connect error (CAPTURE attempt). \nResponse Body:\n" . print_r($e->getResponseBody(), true) . "\nResponse Headers:\n" . print_r($e->getResponseHeaders(), true), E_USER_NOTICE); -// $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_COMM_ERROR, 'error'); - } - - if (is_array($errors_object) && count($errors_object)) { - $error = $this->parse_error_response($errors_object); - $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_UPDATE_FAILED . ' [' . $error['detail'] . ']', 'error'); - } - return false; - } - - /** - * Void/Cancel a not-yet-captured/completed authorized transaction. - */ - public function _doVoid($oID, $note = '') - { - global $messageStack; - - $new_order_status = $this->getNewOrderStatus($oID, 'void', (int)MODULE_PAYMENT_SQUARE_REFUNDED_ORDER_STATUS_ID); - if ($new_order_status == 0) $new_order_status = 1; - - $voidNote = strip_tags(zen_db_input($_POST['voidnote'] . $note)); - - $proceedToVoid = true; - if (isset($_POST['ordervoid']) && $_POST['ordervoid'] == MODULE_PAYMENT_SQUARE_ENTRY_VOID_BUTTON_TEXT) { - if (!isset($_POST['voidconfirm']) || $_POST['voidconfirm'] != 'on') { - $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_VOID_CONFIRM_ERROR, 'error'); - $proceedToVoid = false; - } - } - if (!$proceedToVoid) return false; - - $record = $this->lookupPaymentForOrder($oID); - if (!method_exists($record, 'getTenders')) { - $messageStack->add_session('ERROR: Could not look up details. Probable bad record number, or incorrect Square account credentials.', 'error'); - return false; - } - $transactions = $record->getTenders(); - $transaction = $transactions[0]; - $payment_id = $transaction->getPaymentId(); - - $this->getAccessToken(); - $api_instance = new \SquareConnect\Api\PaymentsApi($this->_apiConnection); - try { - $result = $api_instance->cancelPayment($payment_id); - $errors_object = $result->getErrors(); - $this->logTransactionData(array('void request' => 'payment ' . $payment_id, 'id' => '[void]'), array(), (string)$errors_object); - - $comments = 'VOIDED. Trans ID: ' . $payment_id . "\n" . $voidNote; - zen_update_orders_history($oID, $comments, null, $new_order_status, 0); - - $messageStack->add_session(sprintf(MODULE_PAYMENT_SQUARE_TEXT_VOID_INITIATED, $payment_id), 'success'); - - return true; - - } catch (\SquareConnect\ApiException $e) { - $errors_object = $e->getResponseBody()->errors; - $this->logTransactionData(array($e->getCode() => $e->getMessage()), array(), print_r($e->getResponseBody(), true)); - trigger_error("Square Connect error (VOID attempt). \nResponse Body:\n" . print_r($e->getResponseBody(), true) . "\nResponse Headers:\n" . print_r($e->getResponseHeaders(), true), E_USER_NOTICE); -// $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_COMM_ERROR, 'error'); - } - - if (is_array($errors_object) && count($errors_object)) { - $msg = $this->parse_error_response($errors_object); - $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_UPDATE_FAILED . ' [' . $msg['detail'] . ']', 'error'); - } - return false; - } - - protected function getNewOrderStatus($order_id, $action, $default) - { - //global $order; - //@TODO: fetch current order status and determine best status to set this to, based on $action - - return $default; - } - - /** - * @param $error_object - * @return array - */ - protected function parse_error_response($error_object) - { - $msg = ''; - $first_category = null; - $first_code = null; - if (!empty($error_object)) { - foreach ($error_object as $err) { - $category = method_exists($err, 'getCategory') ? $err->getCategory() : $err->category; - $code = method_exists($err, 'getCode') ? $err->getCode() : $err->code; - $detail = method_exists($err, 'getDetail') ? $err->getDetail() : $err->detail; - $msg .= "$code: $detail\n"; - if (is_null($first_category)) $first_category = $category; - if (is_null($first_code)) $first_code = $code; - } - } - $msg = trim($msg, "\n"); - $msg = str_replace("\n", "\n
", $msg); - - $this->transaction_messages = $msg; - - return array('detail' => $msg, 'category' => $first_category, 'code' => $first_code); - } -} - -// helper for Square admin configuration: locations selector -function zen_cfg_pull_down_square_locations($location, $key = '') -{ - $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value'); - $class = new square; - $pulldown = $class->getLocationsPulldownArray(); - - return zen_draw_pull_down_menu($name, $pulldown, $location); -} - -///////////////////////////// - -// for backward compatibility prior to v1.5.7; -if (!function_exists('zen_update_orders_history')) -{ - function zen_update_orders_history($orders_id, $message = '', $updated_by = null, $orders_new_status = -1, $notify_customer = -1) - { - $data = array( - 'orders_id' => (int)$orders_id, - 'orders_status_id' => (int)$orders_new_status, - 'customer_notified' => (int)$notify_customer, - 'comments' => zen_db_input($message), - ); - zen_db_perform (TABLE_ORDERS_STATUS_HISTORY, $data); - } -} diff --git a/includes/modules/payment/square_support/ZenCartConnectCreatePaymentRequest.php b/includes/modules/payment/square_support/ZenCartConnectCreatePaymentRequest.php deleted file mode 100644 index c7be2c8024..0000000000 --- a/includes/modules/payment/square_support/ZenCartConnectCreatePaymentRequest.php +++ /dev/null @@ -1,167 +0,0 @@ - 'string', - 'idempotency_key' => 'string', - 'amount_money' => '\SquareConnect\Model\Money', - 'tip_money' => '\SquareConnect\Model\Money', - 'app_fee_money' => '\SquareConnect\Model\Money', - 'delay_duration' => 'string', - 'autocomplete' => 'bool', - 'order_id' => 'string', - 'customer_id' => 'string', - 'auxiliary_info' => 'array', - 'location_id' => 'string', - 'reference_id' => 'string', - 'verification_token' => 'string', - 'accept_partial_authorization' => 'bool', - 'buyer_email_address' => 'string', - 'billing_address' => '\SquareConnect\Model\Address', - 'shipping_address' => '\SquareConnect\Model\Address', - 'note' => 'string', - 'statement_description_identifier' => 'string' - ); - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - static $attributeMap = array( - 'source_id' => 'source_id', - 'idempotency_key' => 'idempotency_key', - 'amount_money' => 'amount_money', - 'tip_money' => 'tip_money', - 'app_fee_money' => 'app_fee_money', - 'delay_duration' => 'delay_duration', - 'autocomplete' => 'autocomplete', - 'order_id' => 'order_id', - 'customer_id' => 'customer_id', - 'auxiliary_info' => 'auxiliary_info', - 'location_id' => 'location_id', - 'reference_id' => 'reference_id', - 'verification_token' => 'verification_token', - 'accept_partial_authorization' => 'accept_partial_authorization', - 'buyer_email_address' => 'buyer_email_address', - 'billing_address' => 'billing_address', - 'shipping_address' => 'shipping_address', - 'note' => 'note', - 'statement_description_identifier' => 'statement_description_identifier' - ); - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - static $setters = array( - 'source_id' => 'setSourceId', - 'idempotency_key' => 'setIdempotencyKey', - 'amount_money' => 'setAmountMoney', - 'tip_money' => 'setTipMoney', - 'app_fee_money' => 'setAppFeeMoney', - 'delay_duration' => 'setDelayDuration', - 'autocomplete' => 'setAutocomplete', - 'order_id' => 'setOrderId', - 'customer_id' => 'setCustomerId', - 'auxiliary_info' => 'setAuxiliaryInfo', - 'location_id' => 'setLocationId', - 'reference_id' => 'setReferenceId', - 'verification_token' => 'setVerificationToken', - 'accept_partial_authorization' => 'setAcceptPartialAuthorization', - 'buyer_email_address' => 'setBuyerEmailAddress', - 'billing_address' => 'setBillingAddress', - 'shipping_address' => 'setShippingAddress', - 'note' => 'setNote', - 'statement_description_identifier' => 'setStatementDescriptionIdentifier' - ); - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - static $getters = array( - 'source_id' => 'getSourceId', - 'idempotency_key' => 'getIdempotencyKey', - 'amount_money' => 'getAmountMoney', - 'tip_money' => 'getTipMoney', - 'app_fee_money' => 'getAppFeeMoney', - 'delay_duration' => 'getDelayDuration', - 'autocomplete' => 'getAutocomplete', - 'order_id' => 'getOrderId', - 'customer_id' => 'getCustomerId', - 'auxiliary_info' => 'getAuxiliaryInfo', - 'location_id' => 'getLocationId', - 'reference_id' => 'getReferenceId', - 'verification_token' => 'getVerificationToken', - 'accept_partial_authorization' => 'getAcceptPartialAuthorization', - 'buyer_email_address' => 'getBuyerEmailAddress', - 'billing_address' => 'getBillingAddress', - 'shipping_address' => 'getShippingAddress', - 'note' => 'getNote', - 'statement_description_identifier' => 'getStatementDescriptionIdentifier' - ); - - /** verified integration id - * @var string - */ - protected $integration_id = 'sqi_b0110fe6bf154f09805ac8b7f5f27fb4'; - - /** - * Constructor - * @param mixed[] $data Associated array of property value initializing the model - */ - public function __construct(array $data = null) - { - parent::__construct($data); - - if ($data != null) { - if (isset($data["integration_id"])) { - $this->integration_id = $data["integration_id"]; - } - } - } - - /** - * Gets integration_id - * @return array - */ - public function getAuxiliaryInfo() - { - return array(['key' => 'integration_id', 'value' => $this->integration_id]); - } - - /** - * Sets integration_id - * @param string $integration_id - * @return $this - */ - public function setAuxiliaryInfo($integration_id) - { - $this->integration_id = $integration_id; - return $this; - } -} diff --git a/square_handler.php b/square_handler.php deleted file mode 100644 index 0420a1ad9b..0000000000 --- a/square_handler.php +++ /dev/null @@ -1,42 +0,0 @@ -exchangeForToken($_GET['code']); - exit(0); -} -if ($mode === 'cli') { - if (!defined('MODULE_PAYMENT_SQUARE_STATUS') || MODULE_PAYMENT_SQUARE_STATUS !== 'True') { - if ($verbose) echo 'MODULE DISABLED'; - http_response_code(417); - exit(1); - } - $is_browser = (isset($_SERVER['HTTP_HOST']) || PHP_SAPI !== 'cli'); - $result = $square->token_refresh_check(); - if ($verbose) echo $result; - if ($result === 'failure') { - if (!$is_browser) echo 'Square Token Refresh Failure. See logs.'; - http_response_code(417); - exit(1); - } -} -exit(0);