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 #94 from square/release/3.20200422.2
Browse files Browse the repository at this point in the history
Release 3.20200422.2
  • Loading branch information
lindzeng authored Apr 25, 2020
2 parents c0cf49e + a57f4b8 commit ed539f9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions docs/ObtainTokenRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]


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": "3.20200422.1",
"version": "3.20200422.2",
"description": "JavaScript client library for the Square Connect v2 API",
"keywords": [
"square",
Expand Down
4 changes: 2 additions & 2 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var HeaderUtils = require('./lib/HeaderUtils');

/**
* @module ApiClient
* @version 3.20200422.1
* @version 3.20200422.2
*/

/**
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ var V1TransactionsApi = require('./api/V1TransactionsApi');
* </pre>
* </p>
* @module index
* @version 3.20200422.1
* @version 3.20200422.2
*/
module.exports = {
/**
Expand Down
9 changes: 0 additions & 9 deletions src/model/ObtainTokenRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var exports = function(clientId, clientSecret, grantType) {
_this['grant_type'] = grantType;



};

/**
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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.<String>} scopes
*/
exports.prototype['scopes'] = undefined;



Expand Down

0 comments on commit ed539f9

Please sign in to comment.