Skip to content

Commit 17b7ea4

Browse files
authored
Merge pull request #104 from square/release/21.1.0.20220720
Generated PR for Release: 21.1.0.20220720
2 parents b289ce3 + e16393f commit 17b7ea4

5 files changed

Lines changed: 7 additions & 3 deletions

File tree

doc/models/obtain-token-request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| `migration_token` | `String` | Optional | A legacy OAuth access token obtained using a Connect API version prior<br>to 2019-03-13. This parameter is required if `grant_type` is set to<br>`migration_token` to indicate that the application wants to get a replacement<br>OAuth access token. The response also returns a refresh token.<br>For more information, see [Migrate to Using Refresh Tokens](https://developer.squareup.com/docs/oauth-api/migrate-to-refresh-tokens).<br>**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `1024` |
1919
| `scopes` | `Array<String>` | Optional | A JSON list of strings representing the permissions that the application is requesting.<br>For example, "`["MERCHANT_PROFILE_READ","PAYMENTS_READ","BANK_ACCOUNTS_READ"]`".<br><br>The access token returned in the response is granted the permissions<br>that comprise the intersection between the requested list of permissions and those<br>that belong to the provided refresh token. |
2020
| `short_lived` | `TrueClass\|FalseClass` | Optional | A Boolean indicating a request for a short-lived access token.<br><br>The short-lived access token returned in the response expires in 24 hours. |
21+
| `code_verifier` | `String` | Optional | Must be provided when using PKCE OAuth flow. The `code_verifier` will be used to verify against the<br>`code_challenge` associated with the `authorization_code`. |
2122

2223
## Example (as JSON)
2324

doc/models/obtain-token-response.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
| `refresh_token` | `String` | Optional | A refresh token. OAuth refresh tokens are 64 bytes long.<br>For more information, see [Refresh, Revoke, and Limit the Scope of OAuth Tokens](https://developer.squareup.com/docs/oauth-api/refresh-revoke-limit-scope).<br>**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `1024` |
2020
| `short_lived` | `TrueClass\|FalseClass` | Optional | A Boolean indicating that the access token is a short-lived access token.<br>The short-lived access token returned in the response expires in 24 hours. |
2121
| `errors` | [`Array<Error Hash>`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. |
22+
| `refresh_token_expires_at` | `String` | Optional | The date when the `refresh_token` expires, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format.<br>**Constraints**: *Minimum Length*: `20`, *Maximum Length*: `48` |
23+
| `app_subscription_id` | `String` | Optional | The subscription id of a v2 subscription the merchant signed up<br>for. The subscription id is only present if the merchant signed up for a subscription during authorization. |
24+
| `app_plan_id` | `String` | Optional | The plan id of a v2 subscription plan the merchant signed up<br>for. The plan id is only present if the merchant signed up for a subscription plan during authorization. |
2225

2326
## Example (as JSON)
2427

lib/square/api/base_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def execute_request(request, binary: false)
4545
end
4646

4747
def get_user_agent
48-
user_agent = 'Square-Ruby-SDK/21.0.0.20220720 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
48+
user_agent = 'Square-Ruby-SDK/21.1.0.20220720 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
4949
user_agent['{engine}'] = RUBY_ENGINE
5050
user_agent['{engine-version}'] = RUBY_ENGINE_VERSION
5151
user_agent['{os-info}'] = RUBY_PLATFORM

lib/square/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Client
44
attr_reader :config
55

66
def sdk_version
7-
'21.0.0.20220720'
7+
'21.1.0.20220720'
88
end
99

1010
def square_version

square.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'square.rb'
3-
s.version = '21.0.0.20220720'
3+
s.version = '21.1.0.20220720'
44
s.summary = 'square'
55
s.description = 'Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.'
66
s.authors = ['Square Developer Platform']

0 commit comments

Comments
 (0)