From f0e2c2880554a6c86f177cefe74c7613ff79a90c Mon Sep 17 00:00:00 2001
From: Connect API Specification Generator
Date: Wed, 23 Sep 2020 18:08:11 +0000
Subject: [PATCH 1/3] Release 4.20200923.4
---
CHANGES.md | 14 ++++
docs/CreatePaymentRequest.md | 2 +-
docs/DeviceDetails.md | 1 +
docs/DisputesApi.md | 6 +-
docs/InvoiceStatus.md | 2 +
docs/InvoicesApi.md | 10 +--
docs/ListPaymentRefundsRequest.md | 1 +
docs/ListPaymentsRequest.md | 3 +-
docs/OrderLineItem.md | 2 +-
docs/OrdersApi.md | 6 +-
docs/PaymentsApi.md | 14 ++--
docs/RefundsApi.md | 6 +-
package.json | 2 +-
src/ApiClient.js | 4 +-
src/api/ApplePayApi.js | 2 +-
src/api/BankAccountsApi.js | 6 +-
src/api/CashDrawersApi.js | 6 +-
src/api/CatalogApi.js | 24 +++---
src/api/CheckoutApi.js | 2 +-
src/api/CustomerGroupsApi.js | 10 +--
src/api/CustomerSegmentsApi.js | 4 +-
src/api/CustomersApi.js | 20 ++---
src/api/DevicesApi.js | 6 +-
src/api/DisputesApi.js | 28 +++----
src/api/EmployeesApi.js | 4 +-
src/api/InventoryApi.js | 14 ++--
src/api/InvoicesApi.js | 36 ++++-----
src/api/LaborApi.js | 32 ++++----
src/api/LocationsApi.js | 8 +-
src/api/LoyaltyApi.js | 26 +++---
src/api/MerchantsApi.js | 4 +-
src/api/MobileAuthorizationApi.js | 2 +-
src/api/OAuthApi.js | 6 +-
src/api/OrdersApi.js | 24 +++---
src/api/PaymentsApi.js | 33 ++++----
src/api/RefundsApi.js | 15 ++--
src/api/SubscriptionsApi.js | 12 +--
src/api/TeamApi.js | 16 ++--
src/api/TerminalApi.js | 8 +-
src/api/TransactionsApi.js | 14 ++--
src/api/V1EmployeesApi.js | 32 ++++----
src/api/V1ItemsApi.js | 80 +++++++++----------
src/api/V1LocationsApi.js | 4 +-
src/api/V1TransactionsApi.js | 22 ++---
src/index.js | 2 +-
src/model/CreatePaymentRequest.js | 4 +-
src/model/DeviceDetails.js | 9 +++
src/model/InvoiceStatus.js | 7 +-
src/model/ListPaymentRefundsRequest.js | 9 +++
src/model/ListPaymentsRequest.js | 11 ++-
src/model/OrderLineItem.js | 4 +-
test/api/CatalogApi.spec.js | 2 +-
test/api/LocationsApi.spec.js | 2 +-
test/api/ReportingApi.spec.js | 6 --
.../AdditionalRecipientReceivable.spec.js | 2 +-
...dditionalRecipientReceivableRefund.spec.js | 2 +-
...lRecipientReceivableRefundsRequest.spec.js | 2 +-
...RecipientReceivableRefundsResponse.spec.js | 2 +-
...itionalRecipientReceivablesRequest.spec.js | 2 +-
...tionalRecipientReceivablesResponse.spec.js | 2 +-
test/model/MethodErrorCodes.spec.js | 2 +-
61 files changed, 349 insertions(+), 294 deletions(-)
diff --git a/CHANGES.md b/CHANGES.md
index f81a5eb..4b1eb52 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,5 +1,19 @@
# Change Log
+## Version 4.20200923.4 (2020-09-23T00:00)
+## Existing API updates
+* Invoices API (beta)
+ * [InvoiceStatus](https://developer.squareup.com/reference/square_2020-09-23/enums/InvoiceStatus) enum. Added the `PAYMENT_PENDING` value. Previously, the Invoices API returned a `PAID` or `PARTIALLY_PAID` status for invoices in a payment pending state. Now, the Invoices API returns a `PAYMENT_PENDING` status for all invoices in a payment pending state, including those previously returned as `PAID` or `PARTIALLY_PAID`.
+* Payments API
+ * [ListPayment](https://developer.squareup.com/reference/square_2020-09-23/payments-api/list-payments). The endpoint now supports the `limit` parameter.
+* Refunds API
+ * [ListPaymentRefunds](https://developer.squareup.com/reference/square_2020-09-23/refunds-api/list-payment-refunds). The endpoint now supports the `limit` parameter.
+* [DeviceDetails](https://developer.squareup.com/reference/square_2020-09-23/objects/DeviceDetails#definition__property-device_installation_id). The object now includes the `device_installation_id` field.
+## Documentation updates
+* [Payment status.](https://developer.squareup.com/docs/payments-api/take-payments#payment-status) Added details about the `Payment.status` changes and how the status relates to the seller receiving the funds.
+* [Refund status.](https://developer.squareup.com/docs/payments-api/refund-payments#refund-status) Added details about the `PaymentRefund.status` changes and how the status relates to the cardholder receiving the funds.
+* [CreateRefund errors.](https://developer.squareup.com/docs/payments-api/error-codes#createrefund-errors) Added documentation for the `REFUND_DECLINED` error code.
+
## Version 4.20200826.3 (2020-08-26T00:00)
## Existing API updates
* Orders API
diff --git a/docs/CreatePaymentRequest.md b/docs/CreatePaymentRequest.md
index 5da1b5c..756df8b 100644
--- a/docs/CreatePaymentRequest.md
+++ b/docs/CreatePaymentRequest.md
@@ -8,7 +8,7 @@ Creates a payment from the source (nonce, card on file, etc.) The `PAYMENTS_WRI
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source_id** | **String** | 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. |
-**idempotency_key** | **String** | 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. |
+**idempotency_key** | **String** | 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 Note: The number of allowed characters might be less than the stated maximum, if multi-byte characters are used. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. |
**amount_money** | [**Money**](Money.md) | 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. |
**tip_money** | [**Money**](Money.md) | 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. | [optional]
**app_fee_money** | [**Money**](Money.md) | 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). | [optional]
diff --git a/docs/DeviceDetails.md b/docs/DeviceDetails.md
index 6d5c346..e39d58f 100644
--- a/docs/DeviceDetails.md
+++ b/docs/DeviceDetails.md
@@ -8,6 +8,7 @@ Details about the device that took the payment.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**device_id** | **String** | Square-issued ID of the device. | [optional]
+**device_installation_id** | **String** | Square-issued installation ID for the device. | [optional]
**device_name** | **String** | The name of the device set by the merchant. | [optional]
diff --git a/docs/DisputesApi.md b/docs/DisputesApi.md
index 9440f28..9bcc270 100644
--- a/docs/DisputesApi.md
+++ b/docs/DisputesApi.md
@@ -21,7 +21,7 @@ Method | HTTP request | Description
AcceptDispute
-Accepts loss on a dispute. Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED. Square debits the disputed amount from the seller’s Square account. If the Square account balance does not have sufficient funds, Square debits the associated bank account. For an overview of the Disputes API, see [Overview](/docs/disputes-api/overview).
+Accepts loss on a dispute. Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED. Square debits the disputed amount from the seller’s Square account. If the Square account balance does not have sufficient funds, Square debits the associated bank account.
### Example
```javascript
@@ -70,7 +70,7 @@ Name | Type | Description | Notes
CreateDisputeEvidenceText
-Uploads text to use as evidence for a dispute challenge. For more information, see [Challenge a Dispute](/docs/disputes-api/process-disputes#challenge-a-dispute).
+Uploads text to use as evidence for a dispute challenge.
### Example
```javascript
@@ -378,7 +378,7 @@ Name | Type | Description | Notes
SubmitEvidence
-Submits evidence to the cardholder's bank. Before submitting evidence, Square compiles all available evidence. This includes evidence uploaded using the [CreateDisputeEvidenceFile](/reference/square/disputes-api/create-dispute-evidence-file) and [CreateDisputeEvidenceText](/reference/square/disputes-api/create-dispute-evidence-text) endpoints, and evidence automatically provided by Square, when available. For more information, see [Challenge a Dispute](/docs/disputes-api/process-disputes#challenge-a-dispute).
+Submits evidence to the cardholder's bank. Before submitting evidence, Square compiles all available evidence. This includes evidence uploaded using the [CreateDisputeEvidenceFile](/reference/square/disputes-api/create-dispute-evidence-file) and [CreateDisputeEvidenceText](/reference/square/disputes-api/create-dispute-evidence-text) endpoints, and evidence automatically provided by Square, when available.
### Example
```javascript
diff --git a/docs/InvoiceStatus.md b/docs/InvoiceStatus.md
index b87f755..aca666d 100644
--- a/docs/InvoiceStatus.md
+++ b/docs/InvoiceStatus.md
@@ -21,4 +21,6 @@
* `FAILED` (value: `"FAILED"`)
+* `PAYMENT_PENDING` (value: `"PAYMENT_PENDING"`)
+
diff --git a/docs/InvoicesApi.md b/docs/InvoicesApi.md
index 8632c91..2b456ae 100644
--- a/docs/InvoicesApi.md
+++ b/docs/InvoicesApi.md
@@ -73,7 +73,7 @@ Name | Type | Description | Notes
CreateInvoice
-Creates a draft [invoice](#type-invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file). For more information, see [Manage Invoices Using the Invoices API](/docs/invoices-api/overview).
+Creates a draft [invoice](#type-invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file).
### Example
```javascript
@@ -224,7 +224,7 @@ Name | Type | Description | Notes
ListInvoices
-Returns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices. For more information about retrieving invoices, see [Retrieve invoices](/docs/invoices-api/overview#retrieve-invoices).
+Returns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices.
### Example
```javascript
@@ -279,7 +279,7 @@ Name | Type | Description | Notes
PublishInvoice
-Publishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address, charges the customer's card on file, or does nothing. Square also makes the invoice available on a Square-hosted invoice page. The invoice `status` also changes from `DRAFT` to a status based on the invoice configuration. For example, the status changes to `UNPAID` if Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the invoice amount). For more information, see [Create and publish an invoice](/docs/invoices-api/overview#create-and-publish-an-invoice).
+Publishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address, charges the customer's card on file, or does nothing. Square also makes the invoice available on a Square-hosted invoice page. The invoice `status` also changes from `DRAFT` to a status based on the invoice configuration. For example, the status changes to `UNPAID` if Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the invoice amount).
### Example
```javascript
@@ -331,7 +331,7 @@ Name | Type | Description | Notes
SearchInvoices
-Searches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices. For more information about retrieving invoices, see [Retrieve invoices](/docs/invoices-api/overview#retrieve-invoices).
+Searches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices.
### Example
```javascript
@@ -380,7 +380,7 @@ Name | Type | Description | Notes
UpdateInvoice
-Updates an invoice by modifying field values, clearing field values, or both as specified in the request. There are no restrictions to updating an invoice in a draft state. However, there are guidelines for updating a published invoice. For more information, see [Update an invoice](/docs/invoices-api/overview#update-an-invoice).
+Updates an invoice by modifying field values, clearing field values, or both as specified in the request. There are no restrictions to updating an invoice in a draft state. However, there are guidelines for updating a published invoice.
### Example
```javascript
diff --git a/docs/ListPaymentRefundsRequest.md b/docs/ListPaymentRefundsRequest.md
index cecbebe..b7a9311 100644
--- a/docs/ListPaymentRefundsRequest.md
+++ b/docs/ListPaymentRefundsRequest.md
@@ -14,5 +14,6 @@ Name | Type | Description | Notes
**location_id** | **String** | Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. | [optional]
**status** | **String** | 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]
**source_type** | **String** | 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]
+**limit** | **Number** | 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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100` | [optional]
diff --git a/docs/ListPaymentsRequest.md b/docs/ListPaymentsRequest.md
index 6ed0499..b5d32d3 100644
--- a/docs/ListPaymentsRequest.md
+++ b/docs/ListPaymentsRequest.md
@@ -11,9 +11,10 @@ Name | Type | Description | Notes
**end_time** | **String** | Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. | [optional]
**sort_order** | **String** | The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). | [optional]
**cursor** | **String** | 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]
-**location_id** | **String** | Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. | [optional]
+**location_id** | **String** | Limit results to the location supplied. By default, results are returned for the default (main) location associated with the merchant. | [optional]
**total** | **Number** | The exact amount in the total_money for a `Payment`. | [optional]
**last_4** | **String** | The last 4 digits of `Payment` card. | [optional]
**card_brand** | **String** | The brand of `Payment` card. For example, `VISA` | [optional]
+**limit** | **Number** | 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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100` | [optional]
diff --git a/docs/OrderLineItem.md b/docs/OrderLineItem.md
index 1a25d7a..11a659c 100644
--- a/docs/OrderLineItem.md
+++ b/docs/OrderLineItem.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**uid** | **String** | Unique ID that identifies the line item only within this order. | [optional] [beta]
**name** | **String** | The name of the line item. | [optional]
-**quantity** | **String** | 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\"`. |
+**quantity** | **String** | The quantity purchased, formatted as a decimal number. For example: `\"3\"`. Line items with a quantity of `\"0\"` will be automatically removed upon paying for or otherwise completing the order. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`. |
**quantity_unit** | [**OrderQuantityUnit**](OrderQuantityUnit.md) | The unit and precision that this line item's quantity is measured in. | [optional]
**note** | **String** | The note of the line item. | [optional]
**catalog_object_id** | **String** | The `CatalogItemVariation` id applied to this line item. | [optional]
diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md
index b917ff8..795da0f 100644
--- a/docs/OrdersApi.md
+++ b/docs/OrdersApi.md
@@ -115,7 +115,7 @@ Name | Type | Description | Notes
CreateOrder
-Creates a new [Order](#type-order) which can include information on products for purchase and settings to apply to the purchase. To pay for a created order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. You can modify open orders using the [UpdateOrder](#endpoint-orders-updateorder) endpoint. To learn more about the Orders API, see the [Orders API Overview](/orders-api/what-it-does).
+Creates a new [Order](#type-order) which can include information on products for purchase and settings to apply to the purchase. To pay for a created order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. You can modify open orders using the [UpdateOrder](#endpoint-orders-updateorder) endpoint.
### Example
```javascript
@@ -164,7 +164,7 @@ Name | Type | Description | Notes
PayOrder
-Pay for an [order](#type-order) using one or more approved [payments](#type-payment), or settle an order with a total of `0`. The total of the `payment_ids` listed in the request must be equal to the order total. Orders with a total amount of `0` can be marked as paid by specifying an empty array of `payment_ids` in the request. To be used with PayOrder, a payment must: - Reference the order by specifying the `order_id` when [creating the payment](#endpoint-payments-createpayment). Any approved payments that reference the same `order_id` not specified in the `payment_ids` will be canceled. - Be approved with [delayed capture](/payments-api/take-payments#delayed-capture). Using a delayed capture payment with PayOrder will complete the approved payment. Learn how to [pay for orders with a single payment using the Payments API](/orders-api/pay-for-orders).
+Pay for an [order](#type-order) using one or more approved [payments](#type-payment), or settle an order with a total of `0`. The total of the `payment_ids` listed in the request must be equal to the order total. Orders with a total amount of `0` can be marked as paid by specifying an empty array of `payment_ids` in the request. To be used with PayOrder, a payment must: - Reference the order by specifying the `order_id` when [creating the payment](#endpoint-payments-createpayment). Any approved payments that reference the same `order_id` not specified in the `payment_ids` will be canceled. - Be approved with [delayed capture](/payments-api/take-payments#delayed-capture). Using a delayed capture payment with PayOrder will complete the approved payment.
### Example
```javascript
@@ -264,7 +264,7 @@ Name | Type | Description | Notes
UpdateOrder
-Updates an open [Order](#type-order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An UpdateOrder request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - If deleting fields, the [dot notation paths](/orders-api/manage-orders#on-dot-notation) identifying fields to clear. To pay for an order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. To learn more about the Orders API, see the [Orders API Overview](/orders-api/what-it-does).
+Updates an open [Order](#type-order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An UpdateOrder request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - If deleting fields, the [dot notation paths](/orders-api/manage-orders#on-dot-notation) identifying fields to clear. To pay for an order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide.
### Example
```javascript
diff --git a/docs/PaymentsApi.md b/docs/PaymentsApi.md
index e04067b..0ecd5ca 100644
--- a/docs/PaymentsApi.md
+++ b/docs/PaymentsApi.md
@@ -18,7 +18,7 @@ Method | HTTP request | Description
CancelPayment
-Cancels (voids) a payment. If you set `autocomplete` to false when creating a payment, you can cancel the payment using this endpoint. For more information, see [Delayed Payments](/payments-api/take-payments#delayed-payments).
+Cancels (voids) a payment. If you set `autocomplete` to false when creating a payment, you can cancel the payment using this endpoint.
### Example
```javascript
@@ -114,7 +114,7 @@ Name | Type | Description | Notes
CompletePayment
-Completes (captures) a payment. By default, payments are set to complete immediately after they are created. If you set autocomplete to false when creating a payment, you can complete (capture) the payment using this endpoint. For more information, see [Delayed Payments](/payments-api/take-payments#delayed-payments).
+Completes (captures) a payment. By default, payments are set to complete immediately after they are created. If you set autocomplete to false when creating a payment, you can complete (capture) the payment using this endpoint.
### Example
```javascript
@@ -162,7 +162,7 @@ Name | Type | Description | Notes
CreatePayment
-Charges a payment source, for example, a card represented by customer's card on file or a card nonce. In addition to the payment source, the request must also include the amount to accept for the payment. There are several optional parameters that you can include in the request. For example, tip money, whether to autocomplete the payment, or a reference ID to correlate this payment with another system. For more information about these payment options, see [Take Payments](/payments-api/take-payments). The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees.
+Charges a payment source, for example, a card represented by customer's card on file or a card nonce. In addition to the payment source, the request must also include the amount to accept for the payment. There are several optional parameters that you can include in the request. For example, tip money, whether to autocomplete the payment, or a reference ID to correlate this payment with another system. The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees.
### Example
```javascript
@@ -276,10 +276,11 @@ var opts = {
'endTime': "endTime_example", // String | Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time.
'sortOrder': "sortOrder_example", // String | The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default).
'cursor': "cursor_example", // String | 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.
- 'locationId': "locationId_example", // String | Limit results to the location supplied. By default, results are returned for all locations associated with the merchant.
+ 'locationId': "locationId_example", // String | Limit results to the location supplied. By default, results are returned for the default (main) location associated with the merchant.
'total': 789, // Number | The exact amount in the total_money for a `Payment`.
'last4': "last4_example", // String | The last 4 digits of `Payment` card.
- 'cardBrand': "cardBrand_example" // String | The brand of `Payment` card. For example, `VISA`
+ 'cardBrand': "cardBrand_example", // String | The brand of `Payment` card. For example, `VISA`
+ 'limit': 56 // Number | 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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100`
};
apiInstance.listPayments(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
@@ -297,10 +298,11 @@ Name | Type | Description | Notes
**endTime** | **String**| Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. | [optional]
**sortOrder** | **String**| The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). | [optional]
**cursor** | **String**| 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]
- **locationId** | **String**| Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. | [optional]
+ **locationId** | **String**| Limit results to the location supplied. By default, results are returned for the default (main) location associated with the merchant. | [optional]
**total** | **Number**| The exact amount in the total_money for a `Payment`. | [optional]
**last4** | **String**| The last 4 digits of `Payment` card. | [optional]
**cardBrand** | **String**| The brand of `Payment` card. For example, `VISA` | [optional]
+ **limit** | **Number**| 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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100` | [optional]
### Return type
diff --git a/docs/RefundsApi.md b/docs/RefundsApi.md
index a4595fe..84e0005 100644
--- a/docs/RefundsApi.md
+++ b/docs/RefundsApi.md
@@ -83,7 +83,8 @@ var opts = {
'cursor': "cursor_example", // String | 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.
'locationId': "locationId_example", // String | Limit results to the location supplied. By default, results are returned for all locations associated with the merchant.
'status': "status_example", // String | 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.
- 'sourceType': "sourceType_example" // String | 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.
+ 'sourceType': "sourceType_example", // String | 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.
+ 'limit': 56 // Number | 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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100`
};
apiInstance.listPaymentRefunds(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
@@ -104,6 +105,7 @@ Name | Type | Description | Notes
**locationId** | **String**| Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. | [optional]
**status** | **String**| 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]
**sourceType** | **String**| 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]
+ **limit** | **Number**| 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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100` | [optional]
### Return type
@@ -124,7 +126,7 @@ Name | Type | Description | Notes
RefundPayment
-Refunds a payment. You can refund the entire payment amount or a portion of it. For more information, see [Payments and Refunds Overview](/payments-api/overview).
+Refunds a payment. You can refund the entire payment amount or a portion of it.
### Example
```javascript
diff --git a/package.json b/package.json
index b371b04..3a0688d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "square-connect",
- "version": "4.20200826.3",
+ "version": "4.20200923.4",
"description": "JavaScript client library for the Square Connect v2 API",
"keywords": [
"square",
diff --git a/src/ApiClient.js b/src/ApiClient.js
index 259839c..ddfe9a3 100644
--- a/src/ApiClient.js
+++ b/src/ApiClient.js
@@ -17,7 +17,7 @@ var HeaderUtils = require('./lib/HeaderUtils');
/**
* @module ApiClient
- * @version 4.20200826.3
+ * @version 4.20200923.4
*/
/**
@@ -49,7 +49,7 @@ var exports = function() {
* @default {}
*/
this.defaultHeaders = {
- 'User-Agent': 'Square-Connect-Javascript/4.20200826.3'
+ 'User-Agent': 'Square-Connect-Javascript/4.20200923.4'
};
/**
* The default HTTP timeout for all API calls.
diff --git a/src/api/ApplePayApi.js b/src/api/ApplePayApi.js
index df743be..3fe2197 100644
--- a/src/api/ApplePayApi.js
+++ b/src/api/ApplePayApi.js
@@ -53,7 +53,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/BankAccountsApi.js b/src/api/BankAccountsApi.js
index ecd3911..5756789 100644
--- a/src/api/BankAccountsApi.js
+++ b/src/api/BankAccountsApi.js
@@ -55,7 +55,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -108,7 +108,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -162,7 +162,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/CashDrawersApi.js b/src/api/CashDrawersApi.js
index c412cc5..b0c466c 100644
--- a/src/api/CashDrawersApi.js
+++ b/src/api/CashDrawersApi.js
@@ -68,7 +68,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -137,7 +137,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -203,7 +203,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/CatalogApi.js b/src/api/CatalogApi.js
index 740c291..97abe9c 100644
--- a/src/api/CatalogApi.js
+++ b/src/api/CatalogApi.js
@@ -71,7 +71,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -123,7 +123,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -175,7 +175,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -221,7 +221,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -273,7 +273,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -325,7 +325,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -384,7 +384,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -439,7 +439,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -491,7 +491,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -543,7 +543,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -595,7 +595,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -647,7 +647,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/CheckoutApi.js b/src/api/CheckoutApi.js
index f8c5f96..215d517 100644
--- a/src/api/CheckoutApi.js
+++ b/src/api/CheckoutApi.js
@@ -60,7 +60,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/CustomerGroupsApi.js b/src/api/CustomerGroupsApi.js
index 35eb1fb..dcc579d 100644
--- a/src/api/CustomerGroupsApi.js
+++ b/src/api/CustomerGroupsApi.js
@@ -59,7 +59,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -113,7 +113,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -164,7 +164,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -219,7 +219,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -279,7 +279,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/CustomerSegmentsApi.js b/src/api/CustomerSegmentsApi.js
index 9d086d3..203280a 100644
--- a/src/api/CustomerSegmentsApi.js
+++ b/src/api/CustomerSegmentsApi.js
@@ -52,7 +52,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -107,7 +107,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/CustomersApi.js b/src/api/CustomersApi.js
index abc2539..025dc53 100644
--- a/src/api/CustomersApi.js
+++ b/src/api/CustomersApi.js
@@ -74,7 +74,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -127,7 +127,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -186,7 +186,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -240,7 +240,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -300,7 +300,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -355,7 +355,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -419,7 +419,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -473,7 +473,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -525,7 +525,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -584,7 +584,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/DevicesApi.js b/src/api/DevicesApi.js
index 620b72c..20a9b06 100644
--- a/src/api/DevicesApi.js
+++ b/src/api/DevicesApi.js
@@ -56,7 +56,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -110,7 +110,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -165,7 +165,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/DisputesApi.js b/src/api/DisputesApi.js
index 1a60945..b23610d 100644
--- a/src/api/DisputesApi.js
+++ b/src/api/DisputesApi.js
@@ -42,7 +42,7 @@ module.exports = function(apiClient) {
/**
* AcceptDispute
* Note: This endpoint is in beta.
- * Accepts loss on a dispute. Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED. Square debits the disputed amount from the seller’s Square account. If the Square account balance does not have sufficient funds, Square debits the associated bank account. For an overview of the Disputes API, see [Overview](/docs/disputes-api/overview).
+ * Accepts loss on a dispute. Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED. Square debits the disputed amount from the seller’s Square account. If the Square account balance does not have sufficient funds, Square debits the associated bank account.
* @param {String} disputeId ID of the dispute you want to accept.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AcceptDisputeResponse} and HTTP response
*/
@@ -62,7 +62,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -81,7 +81,7 @@ module.exports = function(apiClient) {
/**
* AcceptDispute
- * Accepts loss on a dispute. Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED. Square debits the disputed amount from the seller’s Square account. If the Square account balance does not have sufficient funds, Square debits the associated bank account. For an overview of the Disputes API, see [Overview](/docs/disputes-api/overview).
+ * Accepts loss on a dispute. Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED. Square debits the disputed amount from the seller’s Square account. If the Square account balance does not have sufficient funds, Square debits the associated bank account.
* @param {String} disputeId ID of the dispute you want to accept.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AcceptDisputeResponse}
*/
@@ -96,7 +96,7 @@ module.exports = function(apiClient) {
/**
* CreateDisputeEvidenceText
* Note: This endpoint is in beta.
- * Uploads text to use as evidence for a dispute challenge. For more information, see [Challenge a Dispute](/docs/disputes-api/process-disputes#challenge-a-dispute).
+ * Uploads text to use as evidence for a dispute challenge.
* @param {String} disputeId The ID of the dispute you want to upload evidence for.
* @param {module:model/CreateDisputeEvidenceTextRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateDisputeEvidenceTextResponse} and HTTP response
@@ -122,7 +122,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -141,7 +141,7 @@ module.exports = function(apiClient) {
/**
* CreateDisputeEvidenceText
- * Uploads text to use as evidence for a dispute challenge. For more information, see [Challenge a Dispute](/docs/disputes-api/process-disputes#challenge-a-dispute).
+ * Uploads text to use as evidence for a dispute challenge.
* @param {String} disputeId The ID of the dispute you want to upload evidence for.
* @param {module:model/CreateDisputeEvidenceTextRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateDisputeEvidenceTextResponse}
@@ -177,7 +177,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -232,7 +232,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -296,7 +296,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -351,7 +351,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -412,7 +412,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -447,7 +447,7 @@ module.exports = function(apiClient) {
/**
* SubmitEvidence
* Note: This endpoint is in beta.
- * Submits evidence to the cardholder's bank. Before submitting evidence, Square compiles all available evidence. This includes evidence uploaded using the [CreateDisputeEvidenceFile](/reference/square/disputes-api/create-dispute-evidence-file) and [CreateDisputeEvidenceText](/reference/square/disputes-api/create-dispute-evidence-text) endpoints, and evidence automatically provided by Square, when available. For more information, see [Challenge a Dispute](/docs/disputes-api/process-disputes#challenge-a-dispute).
+ * Submits evidence to the cardholder's bank. Before submitting evidence, Square compiles all available evidence. This includes evidence uploaded using the [CreateDisputeEvidenceFile](/reference/square/disputes-api/create-dispute-evidence-file) and [CreateDisputeEvidenceText](/reference/square/disputes-api/create-dispute-evidence-text) endpoints, and evidence automatically provided by Square, when available.
* @param {String} disputeId The ID of the dispute you want to submit evidence for.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubmitEvidenceResponse} and HTTP response
*/
@@ -467,7 +467,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -486,7 +486,7 @@ module.exports = function(apiClient) {
/**
* SubmitEvidence
- * Submits evidence to the cardholder's bank. Before submitting evidence, Square compiles all available evidence. This includes evidence uploaded using the [CreateDisputeEvidenceFile](/reference/square/disputes-api/create-dispute-evidence-file) and [CreateDisputeEvidenceText](/reference/square/disputes-api/create-dispute-evidence-text) endpoints, and evidence automatically provided by Square, when available. For more information, see [Challenge a Dispute](/docs/disputes-api/process-disputes#challenge-a-dispute).
+ * Submits evidence to the cardholder's bank. Before submitting evidence, Square compiles all available evidence. This includes evidence uploaded using the [CreateDisputeEvidenceFile](/reference/square/disputes-api/create-dispute-evidence-file) and [CreateDisputeEvidenceText](/reference/square/disputes-api/create-dispute-evidence-text) endpoints, and evidence automatically provided by Square, when available.
* @param {String} disputeId The ID of the dispute you want to submit evidence for.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubmitEvidenceResponse}
*/
diff --git a/src/api/EmployeesApi.js b/src/api/EmployeesApi.js
index b9c457d..27e803d 100644
--- a/src/api/EmployeesApi.js
+++ b/src/api/EmployeesApi.js
@@ -59,7 +59,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -118,7 +118,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/InventoryApi.js b/src/api/InventoryApi.js
index 6e13654..1f2233d 100644
--- a/src/api/InventoryApi.js
+++ b/src/api/InventoryApi.js
@@ -61,7 +61,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -113,7 +113,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -165,7 +165,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -218,7 +218,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -277,7 +277,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -339,7 +339,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -395,7 +395,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/InvoicesApi.js b/src/api/InvoicesApi.js
index 1fa8705..83a873b 100644
--- a/src/api/InvoicesApi.js
+++ b/src/api/InvoicesApi.js
@@ -72,7 +72,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -107,7 +107,7 @@ module.exports = function(apiClient) {
/**
* CreateInvoice
* Note: This endpoint is in beta.
- * Creates a draft [invoice](#type-invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file). For more information, see [Manage Invoices Using the Invoices API](/docs/invoices-api/overview).
+ * Creates a draft [invoice](#type-invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file).
* @param {module:model/CreateInvoiceRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateInvoiceResponse} and HTTP response
*/
@@ -126,7 +126,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -145,7 +145,7 @@ module.exports = function(apiClient) {
/**
* CreateInvoice
- * Creates a draft [invoice](#type-invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file). For more information, see [Manage Invoices Using the Invoices API](/docs/invoices-api/overview).
+ * Creates a draft [invoice](#type-invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file).
* @param {module:model/CreateInvoiceRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateInvoiceResponse}
*/
@@ -184,7 +184,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -240,7 +240,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -274,7 +274,7 @@ module.exports = function(apiClient) {
/**
* ListInvoices
* Note: This endpoint is in beta.
- * Returns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices. For more information about retrieving invoices, see [Retrieve invoices](/docs/invoices-api/overview#retrieve-invoices).
+ * Returns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices.
* @param {String} locationId The ID of the location for which to list invoices.
* @param {Object} opts Optional parameters
* @param {String} opts.cursor A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for your original query. For more information, see [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination).
@@ -300,7 +300,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -319,7 +319,7 @@ module.exports = function(apiClient) {
/**
* ListInvoices
- * Returns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices. For more information about retrieving invoices, see [Retrieve invoices](/docs/invoices-api/overview#retrieve-invoices).
+ * Returns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices.
* @param {String} locationId The ID of the location for which to list invoices.
* @param {Object} opts Optional parameters
* @param {String} opts.cursor A pagination cursor returned by a previous call to this endpoint. Provide this cursor to retrieve the next set of results for your original query. For more information, see [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination).
@@ -337,7 +337,7 @@ module.exports = function(apiClient) {
/**
* PublishInvoice
* Note: This endpoint is in beta.
- * Publishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address, charges the customer's card on file, or does nothing. Square also makes the invoice available on a Square-hosted invoice page. The invoice `status` also changes from `DRAFT` to a status based on the invoice configuration. For example, the status changes to `UNPAID` if Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the invoice amount). For more information, see [Create and publish an invoice](/docs/invoices-api/overview#create-and-publish-an-invoice).
+ * Publishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address, charges the customer's card on file, or does nothing. Square also makes the invoice available on a Square-hosted invoice page. The invoice `status` also changes from `DRAFT` to a status based on the invoice configuration. For example, the status changes to `UNPAID` if Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the invoice amount).
* @param {String} invoiceId The id of the invoice to publish.
* @param {module:model/PublishInvoiceRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PublishInvoiceResponse} and HTTP response
@@ -363,7 +363,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -382,7 +382,7 @@ module.exports = function(apiClient) {
/**
* PublishInvoice
- * Publishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address, charges the customer's card on file, or does nothing. Square also makes the invoice available on a Square-hosted invoice page. The invoice `status` also changes from `DRAFT` to a status based on the invoice configuration. For example, the status changes to `UNPAID` if Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the invoice amount). For more information, see [Create and publish an invoice](/docs/invoices-api/overview#create-and-publish-an-invoice).
+ * Publishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address, charges the customer's card on file, or does nothing. Square also makes the invoice available on a Square-hosted invoice page. The invoice `status` also changes from `DRAFT` to a status based on the invoice configuration. For example, the status changes to `UNPAID` if Square emails the invoice or `PARTIALLY_PAID` if Square charge a card on file for a portion of the invoice amount).
* @param {String} invoiceId The id of the invoice to publish.
* @param {module:model/PublishInvoiceRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PublishInvoiceResponse}
@@ -398,7 +398,7 @@ module.exports = function(apiClient) {
/**
* SearchInvoices
* Note: This endpoint is in beta.
- * Searches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices. For more information about retrieving invoices, see [Retrieve invoices](/docs/invoices-api/overview#retrieve-invoices).
+ * Searches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices.
* @param {module:model/SearchInvoicesRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SearchInvoicesResponse} and HTTP response
*/
@@ -417,7 +417,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -436,7 +436,7 @@ module.exports = function(apiClient) {
/**
* SearchInvoices
- * Searches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices. For more information about retrieving invoices, see [Retrieve invoices](/docs/invoices-api/overview#retrieve-invoices).
+ * Searches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to fetch the next set of invoices.
* @param {module:model/SearchInvoicesRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SearchInvoicesResponse}
*/
@@ -451,7 +451,7 @@ module.exports = function(apiClient) {
/**
* UpdateInvoice
* Note: This endpoint is in beta.
- * Updates an invoice by modifying field values, clearing field values, or both as specified in the request. There are no restrictions to updating an invoice in a draft state. However, there are guidelines for updating a published invoice. For more information, see [Update an invoice](/docs/invoices-api/overview#update-an-invoice).
+ * Updates an invoice by modifying field values, clearing field values, or both as specified in the request. There are no restrictions to updating an invoice in a draft state. However, there are guidelines for updating a published invoice.
* @param {String} invoiceId The id of the invoice to update.
* @param {module:model/UpdateInvoiceRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateInvoiceResponse} and HTTP response
@@ -477,7 +477,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -496,7 +496,7 @@ module.exports = function(apiClient) {
/**
* UpdateInvoice
- * Updates an invoice by modifying field values, clearing field values, or both as specified in the request. There are no restrictions to updating an invoice in a draft state. However, there are guidelines for updating a published invoice. For more information, see [Update an invoice](/docs/invoices-api/overview#update-an-invoice).
+ * Updates an invoice by modifying field values, clearing field values, or both as specified in the request. There are no restrictions to updating an invoice in a draft state. However, there are guidelines for updating a published invoice.
* @param {String} invoiceId The id of the invoice to update.
* @param {module:model/UpdateInvoiceRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateInvoiceResponse}
diff --git a/src/api/LaborApi.js b/src/api/LaborApi.js
index 4d39a46..03e5e22 100644
--- a/src/api/LaborApi.js
+++ b/src/api/LaborApi.js
@@ -73,7 +73,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -125,7 +125,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -178,7 +178,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -231,7 +231,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -284,7 +284,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -339,7 +339,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -392,7 +392,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -445,7 +445,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -499,7 +499,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -558,7 +558,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -615,7 +615,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -670,7 +670,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -724,7 +724,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -783,7 +783,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -843,7 +843,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -903,7 +903,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/LocationsApi.js b/src/api/LocationsApi.js
index 4d9a2b6..06a159b 100644
--- a/src/api/LocationsApi.js
+++ b/src/api/LocationsApi.js
@@ -58,7 +58,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -104,7 +104,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -156,7 +156,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -216,7 +216,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/LoyaltyApi.js b/src/api/LoyaltyApi.js
index 7fa00cd..9e1eb68 100644
--- a/src/api/LoyaltyApi.js
+++ b/src/api/LoyaltyApi.js
@@ -81,7 +81,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -142,7 +142,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -203,7 +203,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -257,7 +257,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -310,7 +310,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -364,7 +364,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -411,7 +411,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -470,7 +470,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -525,7 +525,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -579,7 +579,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -632,7 +632,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -685,7 +685,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -738,7 +738,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/MerchantsApi.js b/src/api/MerchantsApi.js
index 4868d3d..32a848c 100644
--- a/src/api/MerchantsApi.js
+++ b/src/api/MerchantsApi.js
@@ -51,7 +51,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -105,7 +105,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/MobileAuthorizationApi.js b/src/api/MobileAuthorizationApi.js
index 3a26c72..8de3d70 100644
--- a/src/api/MobileAuthorizationApi.js
+++ b/src/api/MobileAuthorizationApi.js
@@ -53,7 +53,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/OAuthApi.js b/src/api/OAuthApi.js
index c1a1883..4504f72 100644
--- a/src/api/OAuthApi.js
+++ b/src/api/OAuthApi.js
@@ -57,7 +57,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -118,7 +118,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -171,7 +171,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/OrdersApi.js b/src/api/OrdersApi.js
index 96973e2..9f3e923 100644
--- a/src/api/OrdersApi.js
+++ b/src/api/OrdersApi.js
@@ -63,7 +63,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -116,7 +116,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -149,7 +149,7 @@ module.exports = function(apiClient) {
/**
* CreateOrder
- * Creates a new [Order](#type-order) which can include information on products for purchase and settings to apply to the purchase. To pay for a created order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. You can modify open orders using the [UpdateOrder](#endpoint-orders-updateorder) endpoint. To learn more about the Orders API, see the [Orders API Overview](/orders-api/what-it-does).
+ * Creates a new [Order](#type-order) which can include information on products for purchase and settings to apply to the purchase. To pay for a created order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. You can modify open orders using the [UpdateOrder](#endpoint-orders-updateorder) endpoint.
* @param {module:model/CreateOrderRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateOrderResponse} and HTTP response
*/
@@ -168,7 +168,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -187,7 +187,7 @@ module.exports = function(apiClient) {
/**
* CreateOrder
- * Creates a new [Order](#type-order) which can include information on products for purchase and settings to apply to the purchase. To pay for a created order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. You can modify open orders using the [UpdateOrder](#endpoint-orders-updateorder) endpoint. To learn more about the Orders API, see the [Orders API Overview](/orders-api/what-it-does).
+ * Creates a new [Order](#type-order) which can include information on products for purchase and settings to apply to the purchase. To pay for a created order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. You can modify open orders using the [UpdateOrder](#endpoint-orders-updateorder) endpoint.
* @param {module:model/CreateOrderRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateOrderResponse}
*/
@@ -202,7 +202,7 @@ module.exports = function(apiClient) {
/**
* PayOrder
* Note: This endpoint is in beta.
- * Pay for an [order](#type-order) using one or more approved [payments](#type-payment), or settle an order with a total of `0`. The total of the `payment_ids` listed in the request must be equal to the order total. Orders with a total amount of `0` can be marked as paid by specifying an empty array of `payment_ids` in the request. To be used with PayOrder, a payment must: - Reference the order by specifying the `order_id` when [creating the payment](#endpoint-payments-createpayment). Any approved payments that reference the same `order_id` not specified in the `payment_ids` will be canceled. - Be approved with [delayed capture](/payments-api/take-payments#delayed-capture). Using a delayed capture payment with PayOrder will complete the approved payment. Learn how to [pay for orders with a single payment using the Payments API](/orders-api/pay-for-orders).
+ * Pay for an [order](#type-order) using one or more approved [payments](#type-payment), or settle an order with a total of `0`. The total of the `payment_ids` listed in the request must be equal to the order total. Orders with a total amount of `0` can be marked as paid by specifying an empty array of `payment_ids` in the request. To be used with PayOrder, a payment must: - Reference the order by specifying the `order_id` when [creating the payment](#endpoint-payments-createpayment). Any approved payments that reference the same `order_id` not specified in the `payment_ids` will be canceled. - Be approved with [delayed capture](/payments-api/take-payments#delayed-capture). Using a delayed capture payment with PayOrder will complete the approved payment.
* @param {String} orderId The ID of the order being paid.
* @param {module:model/PayOrderRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PayOrderResponse} and HTTP response
@@ -228,7 +228,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -247,7 +247,7 @@ module.exports = function(apiClient) {
/**
* PayOrder
- * Pay for an [order](#type-order) using one or more approved [payments](#type-payment), or settle an order with a total of `0`. The total of the `payment_ids` listed in the request must be equal to the order total. Orders with a total amount of `0` can be marked as paid by specifying an empty array of `payment_ids` in the request. To be used with PayOrder, a payment must: - Reference the order by specifying the `order_id` when [creating the payment](#endpoint-payments-createpayment). Any approved payments that reference the same `order_id` not specified in the `payment_ids` will be canceled. - Be approved with [delayed capture](/payments-api/take-payments#delayed-capture). Using a delayed capture payment with PayOrder will complete the approved payment. Learn how to [pay for orders with a single payment using the Payments API](/orders-api/pay-for-orders).
+ * Pay for an [order](#type-order) using one or more approved [payments](#type-payment), or settle an order with a total of `0`. The total of the `payment_ids` listed in the request must be equal to the order total. Orders with a total amount of `0` can be marked as paid by specifying an empty array of `payment_ids` in the request. To be used with PayOrder, a payment must: - Reference the order by specifying the `order_id` when [creating the payment](#endpoint-payments-createpayment). Any approved payments that reference the same `order_id` not specified in the `payment_ids` will be canceled. - Be approved with [delayed capture](/payments-api/take-payments#delayed-capture). Using a delayed capture payment with PayOrder will complete the approved payment.
* @param {String} orderId The ID of the order being paid.
* @param {module:model/PayOrderRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PayOrderResponse}
@@ -281,7 +281,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -315,7 +315,7 @@ module.exports = function(apiClient) {
/**
* UpdateOrder
* Note: This endpoint is in beta.
- * Updates an open [Order](#type-order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An UpdateOrder request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - If deleting fields, the [dot notation paths](/orders-api/manage-orders#on-dot-notation) identifying fields to clear. To pay for an order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. To learn more about the Orders API, see the [Orders API Overview](/orders-api/what-it-does).
+ * Updates an open [Order](#type-order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An UpdateOrder request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - If deleting fields, the [dot notation paths](/orders-api/manage-orders#on-dot-notation) identifying fields to clear. To pay for an order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide.
* @param {String} orderId The ID of the order to update.
* @param {module:model/UpdateOrderRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateOrderResponse} and HTTP response
@@ -341,7 +341,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -360,7 +360,7 @@ module.exports = function(apiClient) {
/**
* UpdateOrder
- * Updates an open [Order](#type-order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An UpdateOrder request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - If deleting fields, the [dot notation paths](/orders-api/manage-orders#on-dot-notation) identifying fields to clear. To pay for an order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide. To learn more about the Orders API, see the [Orders API Overview](/orders-api/what-it-does).
+ * Updates an open [Order](#type-order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An UpdateOrder request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. - If deleting fields, the [dot notation paths](/orders-api/manage-orders#on-dot-notation) identifying fields to clear. To pay for an order, please refer to the [Pay for Orders](/orders-api/pay-for-orders) guide.
* @param {String} orderId The ID of the order to update.
* @param {module:model/UpdateOrderRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateOrderResponse}
diff --git a/src/api/PaymentsApi.js b/src/api/PaymentsApi.js
index 1658d08..e687a62 100644
--- a/src/api/PaymentsApi.js
+++ b/src/api/PaymentsApi.js
@@ -40,7 +40,7 @@ module.exports = function(apiClient) {
/**
* CancelPayment
- * Cancels (voids) a payment. If you set `autocomplete` to false when creating a payment, you can cancel the payment using this endpoint. For more information, see [Delayed Payments](/payments-api/take-payments#delayed-payments).
+ * Cancels (voids) a payment. If you set `autocomplete` to false when creating a payment, you can cancel the payment using this endpoint.
* @param {String} paymentId `payment_id` identifying the payment to be canceled.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CancelPaymentResponse} and HTTP response
*/
@@ -60,7 +60,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -79,7 +79,7 @@ module.exports = function(apiClient) {
/**
* CancelPayment
- * Cancels (voids) a payment. If you set `autocomplete` to false when creating a payment, you can cancel the payment using this endpoint. For more information, see [Delayed Payments](/payments-api/take-payments#delayed-payments).
+ * Cancels (voids) a payment. If you set `autocomplete` to false when creating a payment, you can cancel the payment using this endpoint.
* @param {String} paymentId `payment_id` identifying the payment to be canceled.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CancelPaymentResponse}
*/
@@ -112,7 +112,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -145,7 +145,7 @@ module.exports = function(apiClient) {
/**
* CompletePayment
- * Completes (captures) a payment. By default, payments are set to complete immediately after they are created. If you set autocomplete to false when creating a payment, you can complete (capture) the payment using this endpoint. For more information, see [Delayed Payments](/payments-api/take-payments#delayed-payments).
+ * Completes (captures) a payment. By default, payments are set to complete immediately after they are created. If you set autocomplete to false when creating a payment, you can complete (capture) the payment using this endpoint.
* @param {String} paymentId Unique ID identifying the payment to be completed.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CompletePaymentResponse} and HTTP response
*/
@@ -165,7 +165,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -184,7 +184,7 @@ module.exports = function(apiClient) {
/**
* CompletePayment
- * Completes (captures) a payment. By default, payments are set to complete immediately after they are created. If you set autocomplete to false when creating a payment, you can complete (capture) the payment using this endpoint. For more information, see [Delayed Payments](/payments-api/take-payments#delayed-payments).
+ * Completes (captures) a payment. By default, payments are set to complete immediately after they are created. If you set autocomplete to false when creating a payment, you can complete (capture) the payment using this endpoint.
* @param {String} paymentId Unique ID identifying the payment to be completed.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CompletePaymentResponse}
*/
@@ -198,7 +198,7 @@ module.exports = function(apiClient) {
/**
* CreatePayment
- * Charges a payment source, for example, a card represented by customer's card on file or a card nonce. In addition to the payment source, the request must also include the amount to accept for the payment. There are several optional parameters that you can include in the request. For example, tip money, whether to autocomplete the payment, or a reference ID to correlate this payment with another system. For more information about these payment options, see [Take Payments](/payments-api/take-payments). The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees.
+ * Charges a payment source, for example, a card represented by customer's card on file or a card nonce. In addition to the payment source, the request must also include the amount to accept for the payment. There are several optional parameters that you can include in the request. For example, tip money, whether to autocomplete the payment, or a reference ID to correlate this payment with another system. The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees.
* @param {module:model/CreatePaymentRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreatePaymentResponse} and HTTP response
*/
@@ -217,7 +217,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -236,7 +236,7 @@ module.exports = function(apiClient) {
/**
* CreatePayment
- * Charges a payment source, for example, a card represented by customer's card on file or a card nonce. In addition to the payment source, the request must also include the amount to accept for the payment. There are several optional parameters that you can include in the request. For example, tip money, whether to autocomplete the payment, or a reference ID to correlate this payment with another system. For more information about these payment options, see [Take Payments](/payments-api/take-payments). The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees.
+ * Charges a payment source, for example, a card represented by customer's card on file or a card nonce. In addition to the payment source, the request must also include the amount to accept for the payment. There are several optional parameters that you can include in the request. For example, tip money, whether to autocomplete the payment, or a reference ID to correlate this payment with another system. The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees.
* @param {module:model/CreatePaymentRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreatePaymentResponse}
*/
@@ -270,7 +270,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -309,10 +309,11 @@ module.exports = function(apiClient) {
* @param {String} opts.endTime Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time.
* @param {String} opts.sortOrder The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default).
* @param {String} opts.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.
- * @param {String} opts.locationId Limit results to the location supplied. By default, results are returned for all locations associated with the merchant.
+ * @param {String} opts.locationId Limit results to the location supplied. By default, results are returned for the default (main) location associated with the merchant.
* @param {Number} opts.total The exact amount in the total_money for a `Payment`.
* @param {String} opts.last4 The last 4 digits of `Payment` card.
* @param {String} opts.cardBrand The brand of `Payment` card. For example, `VISA`
+ * @param {Number} opts.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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100`
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPaymentsResponse} and HTTP response
*/
this.listPaymentsWithHttpInfo = function(opts) {
@@ -330,11 +331,12 @@ module.exports = function(apiClient) {
'location_id': opts['locationId'],
'total': opts['total'],
'last_4': opts['last4'],
- 'card_brand': opts['cardBrand']
+ 'card_brand': opts['cardBrand'],
+ 'limit': opts['limit']
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -359,10 +361,11 @@ module.exports = function(apiClient) {
* @param {String} opts.endTime Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time.
* @param {String} opts.sortOrder The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default).
* @param {String} opts.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.
- * @param {String} opts.locationId Limit results to the location supplied. By default, results are returned for all locations associated with the merchant.
+ * @param {String} opts.locationId Limit results to the location supplied. By default, results are returned for the default (main) location associated with the merchant.
* @param {Number} opts.total The exact amount in the total_money for a `Payment`.
* @param {String} opts.last4 The last 4 digits of `Payment` card.
* @param {String} opts.cardBrand The brand of `Payment` card. For example, `VISA`
+ * @param {Number} opts.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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100`
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPaymentsResponse}
*/
this.listPayments = function(opts) {
diff --git a/src/api/RefundsApi.js b/src/api/RefundsApi.js
index b3f832a..d365c1b 100644
--- a/src/api/RefundsApi.js
+++ b/src/api/RefundsApi.js
@@ -56,7 +56,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -98,6 +98,7 @@ module.exports = function(apiClient) {
* @param {String} opts.locationId Limit results to the location supplied. By default, results are returned for all locations associated with the merchant.
* @param {String} opts.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.
* @param {String} opts.sourceType 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.
+ * @param {Number} opts.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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100`
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPaymentRefundsResponse} and HTTP response
*/
this.listPaymentRefundsWithHttpInfo = function(opts) {
@@ -114,11 +115,12 @@ module.exports = function(apiClient) {
'cursor': opts['cursor'],
'location_id': opts['locationId'],
'status': opts['status'],
- 'source_type': opts['sourceType']
+ 'source_type': opts['sourceType'],
+ 'limit': opts['limit']
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -146,6 +148,7 @@ module.exports = function(apiClient) {
* @param {String} opts.locationId Limit results to the location supplied. By default, results are returned for all locations associated with the merchant.
* @param {String} opts.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.
* @param {String} opts.sourceType 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.
+ * @param {Number} opts.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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100`
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPaymentRefundsResponse}
*/
this.listPaymentRefunds = function(opts) {
@@ -158,7 +161,7 @@ module.exports = function(apiClient) {
/**
* RefundPayment
- * Refunds a payment. You can refund the entire payment amount or a portion of it. For more information, see [Payments and Refunds Overview](/payments-api/overview).
+ * Refunds a payment. You can refund the entire payment amount or a portion of it.
* @param {module:model/RefundPaymentRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefundPaymentResponse} and HTTP response
*/
@@ -177,7 +180,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -196,7 +199,7 @@ module.exports = function(apiClient) {
/**
* RefundPayment
- * Refunds a payment. You can refund the entire payment amount or a portion of it. For more information, see [Payments and Refunds Overview](/payments-api/overview).
+ * Refunds a payment. You can refund the entire payment amount or a portion of it.
* @param {module:model/RefundPaymentRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefundPaymentResponse}
*/
diff --git a/src/api/SubscriptionsApi.js b/src/api/SubscriptionsApi.js
index ee295ed..21d2d0c 100644
--- a/src/api/SubscriptionsApi.js
+++ b/src/api/SubscriptionsApi.js
@@ -62,7 +62,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -115,7 +115,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -175,7 +175,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -232,7 +232,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -285,7 +285,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -345,7 +345,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/TeamApi.js b/src/api/TeamApi.js
index b4da2d7..44faffa 100644
--- a/src/api/TeamApi.js
+++ b/src/api/TeamApi.js
@@ -65,7 +65,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -117,7 +117,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -169,7 +169,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -222,7 +222,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -275,7 +275,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -327,7 +327,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -386,7 +386,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -446,7 +446,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/TerminalApi.js b/src/api/TerminalApi.js
index 2054f5c..24b7885 100644
--- a/src/api/TerminalApi.js
+++ b/src/api/TerminalApi.js
@@ -59,7 +59,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -112,7 +112,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -166,7 +166,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -219,7 +219,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/TransactionsApi.js b/src/api/TransactionsApi.js
index ad97244..3576e62 100644
--- a/src/api/TransactionsApi.js
+++ b/src/api/TransactionsApi.js
@@ -70,7 +70,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -132,7 +132,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -201,7 +201,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -268,7 +268,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -338,7 +338,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -405,7 +405,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -468,7 +468,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/V1EmployeesApi.js b/src/api/V1EmployeesApi.js
index 9075a6c..e1e1263 100644
--- a/src/api/V1EmployeesApi.js
+++ b/src/api/V1EmployeesApi.js
@@ -56,7 +56,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -108,7 +108,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -162,7 +162,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -217,7 +217,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -280,7 +280,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -338,7 +338,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -407,7 +407,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -471,7 +471,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -543,7 +543,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -616,7 +616,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -670,7 +670,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -723,7 +723,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -778,7 +778,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -837,7 +837,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -897,7 +897,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -959,7 +959,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/V1ItemsApi.js b/src/api/V1ItemsApi.js
index 62951a2..6094a8f 100644
--- a/src/api/V1ItemsApi.js
+++ b/src/api/V1ItemsApi.js
@@ -79,7 +79,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -150,7 +150,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -221,7 +221,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -284,7 +284,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -346,7 +346,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -408,7 +408,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -470,7 +470,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -532,7 +532,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -601,7 +601,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -664,7 +664,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -733,7 +733,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -797,7 +797,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -860,7 +860,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -923,7 +923,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -986,7 +986,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1049,7 +1049,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1119,7 +1119,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1183,7 +1183,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1252,7 +1252,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1325,7 +1325,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1382,7 +1382,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1437,7 +1437,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1492,7 +1492,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1553,7 +1553,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1615,7 +1615,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1672,7 +1672,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1727,7 +1727,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1796,7 +1796,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1867,7 +1867,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1931,7 +1931,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -1994,7 +1994,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2063,7 +2063,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2133,7 +2133,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2203,7 +2203,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2273,7 +2273,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2343,7 +2343,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2420,7 +2420,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2491,7 +2491,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2561,7 +2561,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -2638,7 +2638,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/V1LocationsApi.js b/src/api/V1LocationsApi.js
index 319a3de..5191ecc 100644
--- a/src/api/V1LocationsApi.js
+++ b/src/api/V1LocationsApi.js
@@ -48,7 +48,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -95,7 +95,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/api/V1TransactionsApi.js b/src/api/V1TransactionsApi.js
index 30ee72b..0baf51e 100644
--- a/src/api/V1TransactionsApi.js
+++ b/src/api/V1TransactionsApi.js
@@ -65,7 +65,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -121,7 +121,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -182,7 +182,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -253,7 +253,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -325,7 +325,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -398,7 +398,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -467,7 +467,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -528,7 +528,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -589,7 +589,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -650,7 +650,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
@@ -717,7 +717,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
- headerParams['Square-Version'] = '2020-08-26';
+ headerParams['Square-Version'] = '2020-09-23';
var formParams = {
};
diff --git a/src/index.js b/src/index.js
index 512d746..7752d65 100644
--- a/src/index.js
+++ b/src/index.js
@@ -831,7 +831,7 @@ var V1TransactionsApi = require('./api/V1TransactionsApi');
*
*
* @module index
- * @version 4.20200826.3
+ * @version 4.20200923.4
*/
module.exports = {
/**
diff --git a/src/model/CreatePaymentRequest.js b/src/model/CreatePaymentRequest.js
index 5db2d47..446f6a3 100644
--- a/src/model/CreatePaymentRequest.js
+++ b/src/model/CreatePaymentRequest.js
@@ -29,7 +29,7 @@ var Money = require('./Money');
* @alias module:model/CreatePaymentRequest
* @class
* @param sourceId {String} 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.
- * @param idempotencyKey {String} 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.
+ * @param idempotencyKey {String} 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 Note: The number of allowed characters might be less than the stated maximum, if multi-byte characters are used. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information.
* @param amountMoney {module:model/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 exports = function(sourceId, idempotencyKey, amountMoney) {
@@ -130,7 +130,7 @@ exports.constructFromObject = function(data, obj) {
*/
exports.prototype['source_id'] = undefined;
/**
- * 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.
+ * 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 Note: The number of allowed characters might be less than the stated maximum, if multi-byte characters are used. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information.
* @member {String} idempotency_key
*/
exports.prototype['idempotency_key'] = undefined;
diff --git a/src/model/DeviceDetails.js b/src/model/DeviceDetails.js
index acce8c8..ea742ba 100644
--- a/src/model/DeviceDetails.js
+++ b/src/model/DeviceDetails.js
@@ -32,6 +32,7 @@ var exports = function() {
+
};
/**
@@ -47,6 +48,9 @@ exports.constructFromObject = function(data, obj) {
if (data.hasOwnProperty('device_id')) {
obj['device_id'] = ApiClient.convertToType(data['device_id'], 'String');
+ }
+ if (data.hasOwnProperty('device_installation_id')) {
+ obj['device_installation_id'] = ApiClient.convertToType(data['device_installation_id'], 'String');
}
if (data.hasOwnProperty('device_name')) {
obj['device_name'] = ApiClient.convertToType(data['device_name'], 'String');
@@ -60,6 +64,11 @@ exports.constructFromObject = function(data, obj) {
* @member {String} device_id
*/
exports.prototype['device_id'] = undefined;
+/**
+ * Square-issued installation ID for the device.
+ * @member {String} device_installation_id
+ */
+exports.prototype['device_installation_id'] = undefined;
/**
* The name of the device set by the merchant.
* @member {String} device_name
diff --git a/src/model/InvoiceStatus.js b/src/model/InvoiceStatus.js
index f526533..9ba3768 100644
--- a/src/model/InvoiceStatus.js
+++ b/src/model/InvoiceStatus.js
@@ -64,7 +64,12 @@ var exports = {
* value: "FAILED"
* @const
*/
- "FAILED": "FAILED"};
+ "FAILED": "FAILED",
+ /**
+ * value: "PAYMENT_PENDING"
+ * @const
+ */
+ "PAYMENT_PENDING": "PAYMENT_PENDING"};
/**
* Returns a InvoiceStatus
enum value from a Javascript object name.
diff --git a/src/model/ListPaymentRefundsRequest.js b/src/model/ListPaymentRefundsRequest.js
index 0edd9a4..a466135 100644
--- a/src/model/ListPaymentRefundsRequest.js
+++ b/src/model/ListPaymentRefundsRequest.js
@@ -37,6 +37,7 @@ var exports = function() {
+
};
/**
@@ -70,6 +71,9 @@ exports.constructFromObject = function(data, obj) {
}
if (data.hasOwnProperty('source_type')) {
obj['source_type'] = ApiClient.convertToType(data['source_type'], 'String');
+ }
+ if (data.hasOwnProperty('limit')) {
+ obj['limit'] = ApiClient.convertToType(data['limit'], 'Number');
}
}
return obj;
@@ -110,6 +114,11 @@ exports.prototype['status'] = undefined;
* @member {String} source_type
*/
exports.prototype['source_type'] = undefined;
+/**
+ * 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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100`
+ * @member {Number} limit
+ */
+exports.prototype['limit'] = undefined;
diff --git a/src/model/ListPaymentsRequest.js b/src/model/ListPaymentsRequest.js
index d68ef7c..07e76e0 100644
--- a/src/model/ListPaymentsRequest.js
+++ b/src/model/ListPaymentsRequest.js
@@ -38,6 +38,7 @@ var exports = function() {
+
};
/**
@@ -74,6 +75,9 @@ exports.constructFromObject = function(data, obj) {
}
if (data.hasOwnProperty('card_brand')) {
obj['card_brand'] = ApiClient.convertToType(data['card_brand'], 'String');
+ }
+ if (data.hasOwnProperty('limit')) {
+ obj['limit'] = ApiClient.convertToType(data['limit'], 'Number');
}
}
return obj;
@@ -100,7 +104,7 @@ exports.prototype['sort_order'] = undefined;
*/
exports.prototype['cursor'] = undefined;
/**
- * Limit results to the location supplied. By default, results are returned for all locations associated with the merchant.
+ * Limit results to the location supplied. By default, results are returned for the default (main) location associated with the merchant.
* @member {String} location_id
*/
exports.prototype['location_id'] = undefined;
@@ -119,6 +123,11 @@ exports.prototype['last_4'] = undefined;
* @member {String} card_brand
*/
exports.prototype['card_brand'] = undefined;
+/**
+ * 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. If the supplied value is greater than 100, at most 100 results will be returned. Default: `100`
+ * @member {Number} limit
+ */
+exports.prototype['limit'] = undefined;
diff --git a/src/model/OrderLineItem.js b/src/model/OrderLineItem.js
index 4d260ec..3b0bf52 100644
--- a/src/model/OrderLineItem.js
+++ b/src/model/OrderLineItem.js
@@ -31,7 +31,7 @@ var OrderQuantityUnit = require('./OrderQuantityUnit');
* Represents a line item in an order. Each line item describes a different product to purchase, with its own quantity and price details.
* @alias module:model/OrderLineItem
* @class
- * @param quantity {String} 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\"`.
+ * @param quantity {String} The quantity purchased, formatted as a decimal number. For example: `\"3\"`. Line items with a quantity of `\"0\"` will be automatically removed upon paying for or otherwise completing the order. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`.
*/
var exports = function(quantity) {
var _this = this;
@@ -132,7 +132,7 @@ exports.prototype['uid'] = undefined;
*/
exports.prototype['name'] = undefined;
/**
- * 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\"`.
+ * The quantity purchased, formatted as a decimal number. For example: `\"3\"`. Line items with a quantity of `\"0\"` will be automatically removed upon paying for or otherwise completing the order. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`.
* @member {String} quantity
*/
exports.prototype['quantity'] = undefined;
diff --git a/test/api/CatalogApi.spec.js b/test/api/CatalogApi.spec.js
index ff656d0..56f8425 100644
--- a/test/api/CatalogApi.spec.js
+++ b/test/api/CatalogApi.spec.js
@@ -130,7 +130,7 @@ describe('CatalogApi', function () {
});
describe('batchDeleteCatalogObjects', function () {
- xit('should call batchDeleteCatalogObjects successfully', async function () {
+ it('should call batchDeleteCatalogObjects successfully', async function () {
const milkItem = {idempotency_key: generateIdempotencyKey()};
milkItem['object'] = getMilkItem;
diff --git a/test/api/LocationsApi.spec.js b/test/api/LocationsApi.spec.js
index 1464117..5ee22bd 100644
--- a/test/api/LocationsApi.spec.js
+++ b/test/api/LocationsApi.spec.js
@@ -13,7 +13,7 @@ describe('LocationsApi', function () {
this.api = new SquareConnect.LocationsApi();
});
- xit('should list locations', async function () {
+ it('should list locations', async function () {
const resp = await this.api.listLocations()
.catch(handleUnexpectedError);
diff --git a/test/api/ReportingApi.spec.js b/test/api/ReportingApi.spec.js
index 90e06f4..86db4e2 100644
--- a/test/api/ReportingApi.spec.js
+++ b/test/api/ReportingApi.spec.js
@@ -19,7 +19,6 @@ function addDays(startDate, numberOfDays) {
describe('ReportingApi', function () {
beforeEach(function () {
- /*
this.account = accounts.production;
this.locationId = this.account.location_id
@@ -28,11 +27,9 @@ describe('ReportingApi', function () {
oauth2.accessToken = this.account.access_token;
this.api = new SquareConnect.ReportingApi();
- */
});
it('should call listAdditionalRecipientReceivableRefunds successfully', async function () {
- /*
const now = new Date();
const response = await this.api.listAdditionalRecipientReceivableRefunds(this.locationId, {
begin_time: addDays(now, -30),
@@ -41,11 +38,9 @@ describe('ReportingApi', function () {
}).catch(handleUnexpectedError);
expect(response.errors).not.to.exist;
- */
});
it('should call listAdditionalRecipientReceivables successfully', async function () {
- /*
const now = new Date();
const response = await this.api.listAdditionalRecipientReceivables(this.locationId, {
begin_time: addDays(now, -30),
@@ -54,6 +49,5 @@ describe('ReportingApi', function () {
}).catch(handleUnexpectedError);
expect(response.errors).not.to.exist;
- */
});
});
diff --git a/test/model/AdditionalRecipientReceivable.spec.js b/test/model/AdditionalRecipientReceivable.spec.js
index 5745455..f527528 100644
--- a/test/model/AdditionalRecipientReceivable.spec.js
+++ b/test/model/AdditionalRecipientReceivable.spec.js
@@ -16,7 +16,7 @@ const SquareConnect = require('../../src/index');
describe('AdditionalRecipientReceivable', function() {
beforeEach(function() {
- //this.api = new SquareConnect.AdditionalRecipientReceivable();
+ this.api = new SquareConnect.AdditionalRecipientReceivable();
});
it('should create an instance of AdditionalRecipientReceivable', function() {
diff --git a/test/model/AdditionalRecipientReceivableRefund.spec.js b/test/model/AdditionalRecipientReceivableRefund.spec.js
index 0e4384e..94f1206 100644
--- a/test/model/AdditionalRecipientReceivableRefund.spec.js
+++ b/test/model/AdditionalRecipientReceivableRefund.spec.js
@@ -16,7 +16,7 @@ const SquareConnect = require('../../src/index');
describe('AdditionalRecipientReceivableRefund', function() {
beforeEach(function() {
- //this.api = new SquareConnect.AdditionalRecipientReceivableRefund();
+ this.api = new SquareConnect.AdditionalRecipientReceivableRefund();
});
it('should create an instance of AdditionalRecipientReceivableRefund', function() {
diff --git a/test/model/ListAdditionalRecipientReceivableRefundsRequest.spec.js b/test/model/ListAdditionalRecipientReceivableRefundsRequest.spec.js
index 6aaa2e2..9bdb92b 100644
--- a/test/model/ListAdditionalRecipientReceivableRefundsRequest.spec.js
+++ b/test/model/ListAdditionalRecipientReceivableRefundsRequest.spec.js
@@ -16,7 +16,7 @@ const SquareConnect = require('../../src/index');
describe('ListAdditionalRecipientReceivableRefundsRequest', function() {
beforeEach(function() {
- //this.api = new SquareConnect.ListAdditionalRecipientReceivableRefundsRequest();
+ this.api = new SquareConnect.ListAdditionalRecipientReceivableRefundsRequest();
});
it('should create an instance of ListAdditionalRecipientReceivableRefundsRequest', function() {
diff --git a/test/model/ListAdditionalRecipientReceivableRefundsResponse.spec.js b/test/model/ListAdditionalRecipientReceivableRefundsResponse.spec.js
index 29ede45..e3bedf9 100644
--- a/test/model/ListAdditionalRecipientReceivableRefundsResponse.spec.js
+++ b/test/model/ListAdditionalRecipientReceivableRefundsResponse.spec.js
@@ -16,7 +16,7 @@ const SquareConnect = require('../../src/index');
describe('ListAdditionalRecipientReceivableRefundsResponse', function() {
beforeEach(function() {
- //this.api = new SquareConnect.ListAdditionalRecipientReceivableRefundsResponse();
+ this.api = new SquareConnect.ListAdditionalRecipientReceivableRefundsResponse();
});
it('should create an instance of ListAdditionalRecipientReceivableRefundsResponse', function() {
diff --git a/test/model/ListAdditionalRecipientReceivablesRequest.spec.js b/test/model/ListAdditionalRecipientReceivablesRequest.spec.js
index 78ec9e9..5dbc5d7 100644
--- a/test/model/ListAdditionalRecipientReceivablesRequest.spec.js
+++ b/test/model/ListAdditionalRecipientReceivablesRequest.spec.js
@@ -16,7 +16,7 @@ const SquareConnect = require('../../src/index');
describe('ListAdditionalRecipientReceivablesRequest', function() {
beforeEach(function() {
- //this.api = new SquareConnect.ListAdditionalRecipientReceivablesRequest();
+ this.api = new SquareConnect.ListAdditionalRecipientReceivablesRequest();
});
it('should create an instance of ListAdditionalRecipientReceivablesRequest', function() {
diff --git a/test/model/ListAdditionalRecipientReceivablesResponse.spec.js b/test/model/ListAdditionalRecipientReceivablesResponse.spec.js
index 80b5518..6241163 100644
--- a/test/model/ListAdditionalRecipientReceivablesResponse.spec.js
+++ b/test/model/ListAdditionalRecipientReceivablesResponse.spec.js
@@ -16,7 +16,7 @@ const SquareConnect = require('../../src/index');
describe('ListAdditionalRecipientReceivablesResponse', function() {
beforeEach(function() {
- //this.api = new SquareConnect.ListAdditionalRecipientReceivablesResponse();
+ this.api = new SquareConnect.ListAdditionalRecipientReceivablesResponse();
});
it('should create an instance of ListAdditionalRecipientReceivablesResponse', function() {
diff --git a/test/model/MethodErrorCodes.spec.js b/test/model/MethodErrorCodes.spec.js
index af22d30..928c907 100644
--- a/test/model/MethodErrorCodes.spec.js
+++ b/test/model/MethodErrorCodes.spec.js
@@ -15,7 +15,7 @@ const SquareConnect = require('../../src/index');
describe('MethodErrorCodes', function() {
beforeEach(function() {
- //this.api = new SquareConnect.MethodErrorCodes();
+ this.api = new SquareConnect.MethodErrorCodes();
});
it('should create an instance of MethodErrorCodes', function() {
From 08516728bdc855a23e5f2fc3334a7ea931959f04 Mon Sep 17 00:00:00 2001
From: Jessie De La Cruz Santos
Date: Wed, 23 Sep 2020 11:35:02 -0700
Subject: [PATCH 2/3] Fix Tests
---
test/api/LocationsApi.spec.js | 2 +-
test/api/ReportingApi.spec.js | 53 -----------------------------
test/model/MethodErrorCodes.spec.js | 32 -----------------
3 files changed, 1 insertion(+), 86 deletions(-)
delete mode 100644 test/api/ReportingApi.spec.js
delete mode 100644 test/model/MethodErrorCodes.spec.js
diff --git a/test/api/LocationsApi.spec.js b/test/api/LocationsApi.spec.js
index 5ee22bd..00239e1 100644
--- a/test/api/LocationsApi.spec.js
+++ b/test/api/LocationsApi.spec.js
@@ -9,7 +9,7 @@ describe('LocationsApi', function () {
beforeEach(function () {
const defaultClient = SquareConnect.ApiClient.instance;
const oauth2 = defaultClient.authentications['oauth2'];
- oauth2.accessToken = accounts.sandbox.access_token;
+ oauth2.accessToken = accounts.production.access_token;
this.api = new SquareConnect.LocationsApi();
});
diff --git a/test/api/ReportingApi.spec.js b/test/api/ReportingApi.spec.js
deleted file mode 100644
index 86db4e2..0000000
--- a/test/api/ReportingApi.spec.js
+++ /dev/null
@@ -1,53 +0,0 @@
-const SquareConnect = require('../../src/index');
-const {
- accounts,
- expect,
- handleUnexpectedError
-} = require('../support/setup');
-
-function addDays(startDate, numberOfDays) {
- return new Date(
- startDate.getFullYear(),
- startDate.getMonth(),
- startDate.getDate() + numberOfDays,
- startDate.getHours(),
- startDate.getMinutes(),
- startDate.getSeconds()
- );
-}
-
-describe('ReportingApi', function () {
-
- beforeEach(function () {
- this.account = accounts.production;
- this.locationId = this.account.location_id
-
- const defaultClient = SquareConnect.ApiClient.instance;
- const oauth2 = defaultClient.authentications['oauth2'];
- oauth2.accessToken = this.account.access_token;
-
- this.api = new SquareConnect.ReportingApi();
- });
-
- it('should call listAdditionalRecipientReceivableRefunds successfully', async function () {
- const now = new Date();
- const response = await this.api.listAdditionalRecipientReceivableRefunds(this.locationId, {
- begin_time: addDays(now, -30),
- end_time: now,
- sort_order: 'DESC'
- }).catch(handleUnexpectedError);
-
- expect(response.errors).not.to.exist;
- });
-
- it('should call listAdditionalRecipientReceivables successfully', async function () {
- const now = new Date();
- const response = await this.api.listAdditionalRecipientReceivables(this.locationId, {
- begin_time: addDays(now, -30),
- end_time: now,
- sort_order: 'DESC'
- }).catch(handleUnexpectedError);
-
- expect(response.errors).not.to.exist;
- });
-});
diff --git a/test/model/MethodErrorCodes.spec.js b/test/model/MethodErrorCodes.spec.js
deleted file mode 100644
index 928c907..0000000
--- a/test/model/MethodErrorCodes.spec.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Square Connect API
- * Client library for accessing the Square Connect APIs
- *
- * OpenAPI spec version: 2.0
- * Contact: developers@squareup.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.3.0-SNAPSHOT
- *
- */
-const SquareConnect = require('../../src/index');
-
-describe('MethodErrorCodes', function() {
- beforeEach(function() {
- this.api = new SquareConnect.MethodErrorCodes();
- });
-
- it('should create an instance of MethodErrorCodes', function() {
- // uncomment below and update the code to test MethodErrorCodes
- //var instane = new SquareConnect.MethodErrorCodes();
- //expect(instance).to.be.a(SquareConnect.MethodErrorCodes);
- });
-
- it('should have the property value (base name: "value")', function() {
- // uncomment below and update the code to test the property value
- //var instane = new SquareConnect.MethodErrorCodes();
- //expect(instance).to.be();
- });
-});
From a10bee47975b91076c1bb92b5693b936ee385da5 Mon Sep 17 00:00:00 2001
From: Jessie De La Cruz Santos
Date: Wed, 23 Sep 2020 11:44:06 -0700
Subject: [PATCH 3/3] Update
---
test/api/LocationsApi.spec.js | 2 +-
.../AdditionalRecipientReceivable.spec.js | 59 -------------------
...dditionalRecipientReceivableRefund.spec.js | 59 -------------------
...lRecipientReceivableRefundsRequest.spec.js | 49 ---------------
...RecipientReceivableRefundsResponse.spec.js | 44 --------------
...itionalRecipientReceivablesRequest.spec.js | 49 ---------------
...tionalRecipientReceivablesResponse.spec.js | 44 --------------
7 files changed, 1 insertion(+), 305 deletions(-)
delete mode 100644 test/model/AdditionalRecipientReceivable.spec.js
delete mode 100644 test/model/AdditionalRecipientReceivableRefund.spec.js
delete mode 100644 test/model/ListAdditionalRecipientReceivableRefundsRequest.spec.js
delete mode 100644 test/model/ListAdditionalRecipientReceivableRefundsResponse.spec.js
delete mode 100644 test/model/ListAdditionalRecipientReceivablesRequest.spec.js
delete mode 100644 test/model/ListAdditionalRecipientReceivablesResponse.spec.js
diff --git a/test/api/LocationsApi.spec.js b/test/api/LocationsApi.spec.js
index 00239e1..13ce102 100644
--- a/test/api/LocationsApi.spec.js
+++ b/test/api/LocationsApi.spec.js
@@ -20,6 +20,6 @@ describe('LocationsApi', function () {
const locations = resp.locations;
expect(locations).to.exist;
const locationIds = locations.map(location => location.id);
- expect(locationIds).to.include(accounts.sandbox.location_id);
+ expect(locationIds).to.include(accounts.production.location_id);
});
});
diff --git a/test/model/AdditionalRecipientReceivable.spec.js b/test/model/AdditionalRecipientReceivable.spec.js
deleted file mode 100644
index f527528..0000000
--- a/test/model/AdditionalRecipientReceivable.spec.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Square Connect API
- * Client library for accessing the Square Connect APIs
- *
- * OpenAPI spec version: 2.0
- * Contact: developers@squareup.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.3.0-SNAPSHOT
- *
- */
-
-const SquareConnect = require('../../src/index');
-
-describe('AdditionalRecipientReceivable', function() {
- beforeEach(function() {
- this.api = new SquareConnect.AdditionalRecipientReceivable();
- });
-
- it('should create an instance of AdditionalRecipientReceivable', function() {
- // uncomment below and update the code to test AdditionalRecipientReceivable
- //var instane = new SquareConnect.AdditionalRecipientReceivable();
- //expect(instance).to.be.a(SquareConnect.AdditionalRecipientReceivable);
- });
-
- it('should have the property id (base name: "id")', function() {
- // uncomment below and update the code to test the property id
- //var instane = new SquareConnect.AdditionalRecipientReceivable();
- //expect(instance).to.be();
- });
- it('should have the property transactionId (base name: "transaction_id")', function() {
- // uncomment below and update the code to test the property transactionId
- //var instane = new SquareConnect.AdditionalRecipientReceivable();
- //expect(instance).to.be();
- });
- it('should have the property transactionLocationId (base name: "transaction_location_id")', function() {
- // uncomment below and update the code to test the property transactionLocationId
- //var instane = new SquareConnect.AdditionalRecipientReceivable();
- //expect(instance).to.be();
- });
- it('should have the property amountMoney (base name: "amount_money")', function() {
- // uncomment below and update the code to test the property amountMoney
- //var instane = new SquareConnect.AdditionalRecipientReceivable();
- //expect(instance).to.be();
- });
- it('should have the property createdAt (base name: "created_at")', function() {
- // uncomment below and update the code to test the property createdAt
- //var instane = new SquareConnect.AdditionalRecipientReceivable();
- //expect(instance).to.be();
- });
- it('should have the property refunds (base name: "refunds")', function() {
- // uncomment below and update the code to test the property refunds
- //var instane = new SquareConnect.AdditionalRecipientReceivable();
- //expect(instance).to.be();
- });
-});
-
diff --git a/test/model/AdditionalRecipientReceivableRefund.spec.js b/test/model/AdditionalRecipientReceivableRefund.spec.js
deleted file mode 100644
index 94f1206..0000000
--- a/test/model/AdditionalRecipientReceivableRefund.spec.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Square Connect API
- * Client library for accessing the Square Connect APIs
- *
- * OpenAPI spec version: 2.0
- * Contact: developers@squareup.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.3.0-SNAPSHOT
- *
- */
-
-const SquareConnect = require('../../src/index');
-
-describe('AdditionalRecipientReceivableRefund', function() {
- beforeEach(function() {
- this.api = new SquareConnect.AdditionalRecipientReceivableRefund();
- });
-
- it('should create an instance of AdditionalRecipientReceivableRefund', function() {
- // uncomment below and update the code to test AdditionalRecipientReceivableRefund
- //var instane = new SquareConnect.AdditionalRecipientReceivableRefund();
- //expect(instance).to.be.a(SquareConnect.AdditionalRecipientReceivableRefund);
- });
-
- it('should have the property id (base name: "id")', function() {
- // uncomment below and update the code to test the property id
- //var instane = new SquareConnect.AdditionalRecipientReceivableRefund();
- //expect(instance).to.be();
- });
- it('should have the property receivableId (base name: "receivable_id")', function() {
- // uncomment below and update the code to test the property receivableId
- //var instane = new SquareConnect.AdditionalRecipientReceivableRefund();
- //expect(instance).to.be();
- });
- it('should have the property refundId (base name: "refund_id")', function() {
- // uncomment below and update the code to test the property refundId
- //var instane = new SquareConnect.AdditionalRecipientReceivableRefund();
- //expect(instance).to.be();
- });
- it('should have the property transactionLocationId (base name: "transaction_location_id")', function() {
- // uncomment below and update the code to test the property transactionLocationId
- //var instane = new SquareConnect.AdditionalRecipientReceivableRefund();
- //expect(instance).to.be();
- });
- it('should have the property amountMoney (base name: "amount_money")', function() {
- // uncomment below and update the code to test the property amountMoney
- //var instane = new SquareConnect.AdditionalRecipientReceivableRefund();
- //expect(instance).to.be();
- });
- it('should have the property createdAt (base name: "created_at")', function() {
- // uncomment below and update the code to test the property createdAt
- //var instane = new SquareConnect.AdditionalRecipientReceivableRefund();
- //expect(instance).to.be();
- });
-});
-
diff --git a/test/model/ListAdditionalRecipientReceivableRefundsRequest.spec.js b/test/model/ListAdditionalRecipientReceivableRefundsRequest.spec.js
deleted file mode 100644
index 9bdb92b..0000000
--- a/test/model/ListAdditionalRecipientReceivableRefundsRequest.spec.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Square Connect API
- * Client library for accessing the Square Connect APIs
- *
- * OpenAPI spec version: 2.0
- * Contact: developers@squareup.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.3.0-SNAPSHOT
- *
- */
-
-const SquareConnect = require('../../src/index');
-
-describe('ListAdditionalRecipientReceivableRefundsRequest', function() {
- beforeEach(function() {
- this.api = new SquareConnect.ListAdditionalRecipientReceivableRefundsRequest();
- });
-
- it('should create an instance of ListAdditionalRecipientReceivableRefundsRequest', function() {
- // uncomment below and update the code to test ListAdditionalRecipientReceivableRefundsRequest
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsRequest();
- //expect(instance).to.be.a(SquareConnect.ListAdditionalRecipientReceivableRefundsRequest);
- });
-
- it('should have the property beginTime (base name: "begin_time")', function() {
- // uncomment below and update the code to test the property beginTime
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsRequest();
- //expect(instance).to.be();
- });
- it('should have the property endTime (base name: "end_time")', function() {
- // uncomment below and update the code to test the property endTime
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsRequest();
- //expect(instance).to.be();
- });
- it('should have the property sortOrder (base name: "sort_order")', function() {
- // uncomment below and update the code to test the property sortOrder
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsRequest();
- //expect(instance).to.be();
- });
- it('should have the property cursor (base name: "cursor")', function() {
- // uncomment below and update the code to test the property cursor
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsRequest();
- //expect(instance).to.be();
- });
-});
-
diff --git a/test/model/ListAdditionalRecipientReceivableRefundsResponse.spec.js b/test/model/ListAdditionalRecipientReceivableRefundsResponse.spec.js
deleted file mode 100644
index e3bedf9..0000000
--- a/test/model/ListAdditionalRecipientReceivableRefundsResponse.spec.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Square Connect API
- * Client library for accessing the Square Connect APIs
- *
- * OpenAPI spec version: 2.0
- * Contact: developers@squareup.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.3.0-SNAPSHOT
- *
- */
-
-const SquareConnect = require('../../src/index');
-
-describe('ListAdditionalRecipientReceivableRefundsResponse', function() {
- beforeEach(function() {
- this.api = new SquareConnect.ListAdditionalRecipientReceivableRefundsResponse();
- });
-
- it('should create an instance of ListAdditionalRecipientReceivableRefundsResponse', function() {
- // uncomment below and update the code to test ListAdditionalRecipientReceivableRefundsResponse
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsResponse();
- //expect(instance).to.be.a(SquareConnect.ListAdditionalRecipientReceivableRefundsResponse);
- });
-
- it('should have the property errors (base name: "errors")', function() {
- // uncomment below and update the code to test the property errors
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsResponse();
- //expect(instance).to.be();
- });
- it('should have the property receivableRefunds (base name: "receivable_refunds")', function() {
- // uncomment below and update the code to test the property receivableRefunds
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsResponse();
- //expect(instance).to.be();
- });
- it('should have the property cursor (base name: "cursor")', function() {
- // uncomment below and update the code to test the property cursor
- //var instane = new SquareConnect.ListAdditionalRecipientReceivableRefundsResponse();
- //expect(instance).to.be();
- });
-});
-
diff --git a/test/model/ListAdditionalRecipientReceivablesRequest.spec.js b/test/model/ListAdditionalRecipientReceivablesRequest.spec.js
deleted file mode 100644
index 5dbc5d7..0000000
--- a/test/model/ListAdditionalRecipientReceivablesRequest.spec.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Square Connect API
- * Client library for accessing the Square Connect APIs
- *
- * OpenAPI spec version: 2.0
- * Contact: developers@squareup.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.3.0-SNAPSHOT
- *
- */
-
-const SquareConnect = require('../../src/index');
-
-describe('ListAdditionalRecipientReceivablesRequest', function() {
- beforeEach(function() {
- this.api = new SquareConnect.ListAdditionalRecipientReceivablesRequest();
- });
-
- it('should create an instance of ListAdditionalRecipientReceivablesRequest', function() {
- // uncomment below and update the code to test ListAdditionalRecipientReceivablesRequest
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesRequest();
- //expect(instance).to.be.a(SquareConnect.ListAdditionalRecipientReceivablesRequest);
- });
-
- it('should have the property beginTime (base name: "begin_time")', function() {
- // uncomment below and update the code to test the property beginTime
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesRequest();
- //expect(instance).to.be();
- });
- it('should have the property endTime (base name: "end_time")', function() {
- // uncomment below and update the code to test the property endTime
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesRequest();
- //expect(instance).to.be();
- });
- it('should have the property sortOrder (base name: "sort_order")', function() {
- // uncomment below and update the code to test the property sortOrder
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesRequest();
- //expect(instance).to.be();
- });
- it('should have the property cursor (base name: "cursor")', function() {
- // uncomment below and update the code to test the property cursor
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesRequest();
- //expect(instance).to.be();
- });
-});
-
diff --git a/test/model/ListAdditionalRecipientReceivablesResponse.spec.js b/test/model/ListAdditionalRecipientReceivablesResponse.spec.js
deleted file mode 100644
index 6241163..0000000
--- a/test/model/ListAdditionalRecipientReceivablesResponse.spec.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Square Connect API
- * Client library for accessing the Square Connect APIs
- *
- * OpenAPI spec version: 2.0
- * Contact: developers@squareup.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.3.0-SNAPSHOT
- *
- */
-
-const SquareConnect = require('../../src/index');
-
-describe('ListAdditionalRecipientReceivablesResponse', function() {
- beforeEach(function() {
- this.api = new SquareConnect.ListAdditionalRecipientReceivablesResponse();
- });
-
- it('should create an instance of ListAdditionalRecipientReceivablesResponse', function() {
- // uncomment below and update the code to test ListAdditionalRecipientReceivablesResponse
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesResponse();
- //expect(instance).to.be.a(SquareConnect.ListAdditionalRecipientReceivablesResponse);
- });
-
- it('should have the property errors (base name: "errors")', function() {
- // uncomment below and update the code to test the property errors
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesResponse();
- //expect(instance).to.be();
- });
- it('should have the property receivables (base name: "receivables")', function() {
- // uncomment below and update the code to test the property receivables
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesResponse();
- //expect(instance).to.be();
- });
- it('should have the property cursor (base name: "cursor")', function() {
- // uncomment below and update the code to test the property cursor
- //var instane = new SquareConnect.ListAdditionalRecipientReceivablesResponse();
- //expect(instance).to.be();
- });
-});
-