Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #83 from square/release/2.20200122.0
Browse files Browse the repository at this point in the history
Release 2.20200122.0
  • Loading branch information
jessdelacruzsantos authored Jan 22, 2020
2 parents fbea923 + be3ad5e commit 143c5d4
Show file tree
Hide file tree
Showing 1,081 changed files with 1,273 additions and 1,270 deletions.
12 changes: 9 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log

## Version 2.20191217.0 (2019-12-17)
## Version 2.20200122.0 (2020-01-22)
* New field: The **Employee** object now has an `is_owner` field.
* New field: The **Card** enumeration has a new `SQUARE_CAPITAL_CARD` enum value to support a Square one-time Installments payment.

* New request body field constraint: The **Refund Payment** request now required a non-empty string when the `payment_id` is supplied.


## Version 2.3.0-20191217 (2019-12-17)
!!!important
Square is excited to announce the public release of customized SDKs for [Java](https://github.com/square/square-java-sdk) and [.NET](https://github.com/square/square-dotnet-sdk). For more information, see [Square SDKs](/sdks).
!!!
Expand All @@ -9,8 +16,7 @@ Square is excited to announce the public release of customized SDKs for [Java](h

* __Beta release:__ SDKs updated to support the new [CashDrawerShifts](cashdrawershift-api/reporting) API.

* Square now follows the semantic versioning scheme for all SDKs except PHP and Node.js. This versioning scheme uses three numbers to delineate MAJOR, MINOR, and PATCH versions of our SDK. In addition, the SDK version also includes the API version so you know what Square API version the SDK is related to. For more information, see [Versioning and SDKs](build-basics/versioning-overview#versioning-and-sdks).
* Java, .Net, Python, and Ruby SDKs are now version 4.0.0. Java and .Net SDKs have breaking changes in version 4.0.0. Ruby and Python do not have breaking changes.
* Square now follows the semantic versioning scheme that uses three numbers to delineate MAJOR, MINOR, and PATCH versions of our SDK. In addition, the SDK version also includes the API version so you know what Square API version the SDK is related to. For more information, see [Versioning and SDKs](build-basics/versioning-overview#versioning-and-sdks).


## Version 2.20191120.0 (2019-11-20)
Expand Down
2 changes: 2 additions & 0 deletions docs/CardBrand.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@

* `SQUARE_GIFT_CARD` (value: `"SQUARE_GIFT_CARD"`)

* `SQUARE_CAPITAL_CARD` (value: `"SQUARE_CAPITAL_CARD"`)


1 change: 1 addition & 0 deletions docs/Employee.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**phone_number** | **String** | The employee's phone number in E.164 format, i.e. \"+12125554250\" | [optional]
**location_ids** | **[String]** | A list of location IDs where this employee has access to. | [optional]
**status** | **String** | Specifies the status of the employees being fetched. See [EmployeeStatus](#type-employeestatus) for possible values | [optional]
**is_owner** | **Boolean** | Whether this employee is the owner of the merchant. Each merchant has one owner employee, and that employee has full authority over the account. | [optional]
**created_at** | **String** | A read-only timestamp in RFC 3339 format. | [optional]
**updated_at** | **String** | A read-only timestamp in RFC 3339 format. | [optional]

Expand Down
6 changes: 0 additions & 6 deletions docs/ErrorCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@

* `API_VERSION_INCOMPATIBLE` (value: `"API_VERSION_INCOMPATIBLE"`)

* `INVALID_URL` (value: `"INVALID_URL"`)

* `HTTPS_ONLY` (value: `"HTTPS_ONLY"`)

* `UNREACHABLE_URL` (value: `"UNREACHABLE_URL"`)

* `CARD_DECLINED` (value: `"CARD_DECLINED"`)

* `VERIFY_CVV_FAILURE` (value: `"VERIFY_CVV_FAILURE"`)
Expand Down
2 changes: 1 addition & 1 deletion docs/RefundPaymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**idempotency_key** | **String** | A unique string that identifies this RefundPayment request. Key can be any valid string but must be unique for every RefundPayment request. For more information, see [Idempotency keys](https://developer.squareup.com/docs/working-with-apis/idempotency). |
**amount_money** | [**Money**](Money.md) | The amount of money to refund. Cannot be more than the `total_money` value of the payment minus the total amount of all previously completed refunds for this payment. Must be specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The currency code must match the currency associated with the business that is charging the card. |
**app_fee_money** | [**Money**](Money.md) | Amount of money the developer will contribute to help cover the refunded amount. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. Value cannot be more than the `amount_money`. You can specify this parameter in a refund request only if the same parameter was also included when taking the payment. This is part of the application fee scenario the API supports. For more information, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees) | [optional]
**payment_id** | **String** | Unique ID of the payment being refunded. | [optional]
**payment_id** | **String** | Unique ID of the payment being refunded. |
**reason** | **String** | A description of the reason for the refund. | [optional]


4 changes: 2 additions & 2 deletions docs/V1ListSettlementsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**order** | **String** | TThe order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values | [optional]
**order** | **String** | The order in which settlements are listed in the response. See [SortOrder](#type-sortorder) for possible values | [optional]
**begin_time** | **String** | The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. | [optional]
**end_time** | **String** | The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. | [optional]
**limit** | **Number** | The maximum number of payments to return in a single response. This value cannot exceed 200. | [optional]
**limit** | **Number** | The maximum number of settlements to return in a single response. This value cannot exceed 200. | [optional]
**status** | **String** | Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED). See [V1ListSettlementsRequestStatus](#type-v1listsettlementsrequeststatus) for possible values | [optional]
**batch_token** | **String** | A pagination cursor to retrieve the next set of results for your original query to the endpoint. | [optional]

Expand Down
12 changes: 6 additions & 6 deletions docs/V1TransactionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new SquareConnect.V1TransactionsApi();

var locationId = "locationId_example"; // String | The ID of the location to list settlements for.
var locationId = "locationId_example"; // String | The ID of the location to list settlements for. If you specify me, this endpoint returns settlements aggregated from all of the business's locations.

var opts = {
'order': "order_example", // String | TThe order in which payments are listed in the response.
'order': "order_example", // String | The order in which settlements are listed in the response.
'beginTime': "beginTime_example", // String | The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
'endTime': "endTime_example", // String | The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
'limit': 56, // Number | The maximum number of payments to return in a single response. This value cannot exceed 200.
'limit': 56, // Number | The maximum number of settlements to return in a single response. This value cannot exceed 200.
'status': "status_example", // String | Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED).
'batchToken': "batchToken_example" // String | A pagination cursor to retrieve the next set of results for your original query to the endpoint.
};
Expand All @@ -335,11 +335,11 @@ apiInstance.listSettlements(locationId, opts).then(function(data) {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**locationId** | **String**| The ID of the location to list settlements for. |
**order** | **String**| TThe order in which payments are listed in the response. | [optional]
**locationId** | **String**| The ID of the location to list settlements for. If you specify me, this endpoint returns settlements aggregated from all of the business's locations. |
**order** | **String**| The order in which settlements are listed in the response. | [optional]
**beginTime** | **String**| The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. | [optional]
**endTime** | **String**| The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. | [optional]
**limit** | **Number**| The maximum number of payments to return in a single response. This value cannot exceed 200. | [optional]
**limit** | **Number**| The maximum number of settlements to return in a single response. This value cannot exceed 200. | [optional]
**status** | **String**| Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED). | [optional]
**batchToken** | **String**| A pagination cursor to retrieve the next set of results for your original query to the endpoint. | [optional]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "square-connect",
"version": "2.20191217.0",
"version": "2.20200122.0",
"description": "JavaScript client library for the Square Connect v2 API",
"keywords": [
"square",
Expand Down
6 changes: 3 additions & 3 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.20191217.0-SNAPSHOT
* Swagger Codegen version: 2.3.0-SNAPSHOT
*
*/
var superagent = require('superagent');
Expand All @@ -17,7 +17,7 @@ var HeaderUtils = require('./lib/HeaderUtils');

/**
* @module ApiClient
* @version 2.20191217.0
* @version 2.20200122.0
*/

/**
Expand Down Expand Up @@ -49,7 +49,7 @@ var exports = function() {
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'Square-Connect-Javascript/2.20191217.0'
'User-Agent': 'Square-Connect-Javascript/2.20200122.0'
};
/**
* The default HTTP timeout for all API calls.
Expand Down
4 changes: 2 additions & 2 deletions src/api/ApplePayApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.20191217.0-SNAPSHOT
* Swagger Codegen version: 2.3.0-SNAPSHOT
*
*/
var ApiClient = require('../ApiClient');
Expand Down Expand Up @@ -53,7 +53,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down
8 changes: 4 additions & 4 deletions src/api/CashDrawersApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.20191217.0-SNAPSHOT
* Swagger Codegen version: 2.3.0-SNAPSHOT
*
*/
var ApiClient = require('../ApiClient');
Expand Down Expand Up @@ -69,7 +69,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -139,7 +139,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -206,7 +206,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down
24 changes: 12 additions & 12 deletions src/api/CatalogApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.20191217.0-SNAPSHOT
* Swagger Codegen version: 2.3.0-SNAPSHOT
*
*/
var ApiClient = require('../ApiClient');
Expand Down Expand Up @@ -69,7 +69,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -121,7 +121,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -173,7 +173,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -219,7 +219,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -271,7 +271,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -323,7 +323,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -382,7 +382,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -436,7 +436,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -488,7 +488,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -540,7 +540,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down Expand Up @@ -592,7 +592,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down
4 changes: 2 additions & 2 deletions src/api/CheckoutApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.20191217.0-SNAPSHOT
* Swagger Codegen version: 2.3.0-SNAPSHOT
*
*/
var ApiClient = require('../ApiClient');
Expand Down Expand Up @@ -60,7 +60,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2019-12-17';
headerParams['Square-Version'] = '2020-01-22';

var formParams = {
};
Expand Down
Loading

0 comments on commit 143c5d4

Please sign in to comment.