diff --git a/CHANGES.md b/CHANGES.md index a81e3b9..a9f4cdd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,12 @@ # Change Log +## Version 3.20200422.2 (2020-04-25) +## Existing API updates + +* **OAuth API** + * [Obtain Token](${SQUARE_TECH_REF}/oauth-api/revoke-token) endpoint: Removed the `scopes` property from the request body. + + ## Version 3.20200422.1 (2020-04-22) ## API releases * **Customer Segments API (beta).** `limit` field removed from **ListCustomerSegments** endpoint. diff --git a/docs/ObtainTokenRequest.md b/docs/ObtainTokenRequest.md index 9c59273..a3d0d41 100644 --- a/docs/ObtainTokenRequest.md +++ b/docs/ObtainTokenRequest.md @@ -15,3 +15,4 @@ Name | Type | Description | Notes **refresh_token** | **String** | A valid refresh token for generating a new OAuth access token. A valid refresh token is required if `grant_type` is set to `refresh_token` , to indicate the application wants a replacement for an expired OAuth access token. | [optional] **migration_token** | **String** | Legacy OAuth access token obtained using a Connect API version prior to 2019-03-13. This parameter is required if `grant_type` is set to `migration_token` to indicate that the application wants to get a replacement OAuth access token. The response also returns a refresh token. For more information, see [Migrate to Using Refresh Tokens](https://developer.squareup.com/docs/authz/oauth/migration). | [optional] + diff --git a/package.json b/package.json index 5233be7..0ee28ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "square-connect", - "version": "3.20200422.1", + "version": "3.20200422.2", "description": "JavaScript client library for the Square Connect v2 API", "keywords": [ "square", diff --git a/src/ApiClient.js b/src/ApiClient.js index 55db7ad..c877e6a 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -17,7 +17,7 @@ var HeaderUtils = require('./lib/HeaderUtils'); /** * @module ApiClient - * @version 3.20200422.1 + * @version 3.20200422.2 */ /** @@ -49,7 +49,7 @@ var exports = function() { * @default {} */ this.defaultHeaders = { - 'User-Agent': 'Square-Connect-Javascript/3.20200422.1' + 'User-Agent': 'Square-Connect-Javascript/3.20200422.2' }; /** * The default HTTP timeout for all API calls. diff --git a/src/index.js b/src/index.js index ef470b4..d76abdb 100644 --- a/src/index.js +++ b/src/index.js @@ -688,7 +688,7 @@ var V1TransactionsApi = require('./api/V1TransactionsApi'); * *
* @module index - * @version 3.20200422.1 + * @version 3.20200422.2 */ module.exports = { /** diff --git a/src/model/ObtainTokenRequest.js b/src/model/ObtainTokenRequest.js index 7e71112..8c3a203 100644 --- a/src/model/ObtainTokenRequest.js +++ b/src/model/ObtainTokenRequest.js @@ -40,7 +40,6 @@ var exports = function(clientId, clientSecret, grantType) { _this['grant_type'] = grantType; - }; /** @@ -74,9 +73,6 @@ exports.constructFromObject = function(data, obj) { } if (data.hasOwnProperty('migration_token')) { obj['migration_token'] = ApiClient.convertToType(data['migration_token'], 'String'); - } - if (data.hasOwnProperty('scopes')) { - obj['scopes'] = ApiClient.convertToType(data['scopes'], ['String']); } } return obj; @@ -117,11 +113,6 @@ exports.prototype['refresh_token'] = undefined; * @member {String} migration_token */ exports.prototype['migration_token'] = undefined; -/** - * __OPTIONAL__ A JSON list of strings that are the permissions the application is requesting. For example: \"`[\"MERCHANT_PROFILE_READ\",\"PAYMENTS_READ\",\"BANK_ACCOUNTS_READ\"]`\" The access token returned in the response will be granted the permissions that comprise the intersection between the given list of permissions, and those that belong to the provided refresh token. - * @member {Array.