Skip to content

Commit 7aa98bb

Browse files
author
Xiao Hu
authored
Merge pull request #106 from square/release/22.1.0.20220823
Generated PR for Release: 22.1.0.20220823
2 parents 91774b2 + 4ebc53b commit 7aa98bb

7 files changed

Lines changed: 35 additions & 10 deletions

File tree

doc/client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
55

66
| Parameter | Type | Description |
77
| --- | --- | --- |
8-
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2022-08-17'` |
8+
| `square_version` | `String` | Square Connect API versions<br>*Default*: `'2022-08-23'` |
99
| `access_token` | `String` | The OAuth 2.0 Access Token to use for API requests. |
1010
| `custom_url` | `String` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
1111
| `environment` | `string` | The API environment. <br> **Default: `production`** |
@@ -24,7 +24,7 @@ The API client can be initialized as follows:
2424

2525
```ruby
2626
client = Square::Client.new(
27-
square_version: '2022-08-17',
27+
square_version: '2022-08-23',
2828
access_token: 'AccessToken',
2929
environment: 'production',
3030
custom_url: 'https://connect.squareup.com',

doc/models/buy-now-pay-later-details.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ Additional details about a Buy Now Pay Later payment type.
1111

1212
| Name | Type | Tags | Description |
1313
| --- | --- | --- | --- |
14-
| `brand` | `String` | Optional | The brand used for the Buy Now Pay Later payment.<br>The brand can be `AFTERPAY` or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
14+
| `brand` | `String` | Optional | The brand used for the Buy Now Pay Later payment.<br>The brand can be `AFTERPAY`, `CLEARPAY` or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
1515
| `afterpay_details` | [`Afterpay Details Hash`](../../doc/models/afterpay-details.md) | Optional | Additional details about Afterpay payments. |
16+
| `clearpay_details` | [`Clearpay Details Hash`](../../doc/models/clearpay-details.md) | Optional | Additional details about Clearpay payments. |
1617

1718
## Example (as JSON)
1819

1920
```json
2021
{
2122
"brand": null,
22-
"afterpay_details": null
23+
"afterpay_details": null,
24+
"clearpay_details": null
2325
}
2426
```
2527

doc/models/clearpay-details.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
# Clearpay Details
3+
4+
Additional details about Clearpay payments.
5+
6+
## Structure
7+
8+
`Clearpay Details`
9+
10+
## Fields
11+
12+
| Name | Type | Tags | Description |
13+
| --- | --- | --- | --- |
14+
| `email_address` | `String` | Optional | Email address on the buyer's Clearpay account.<br>**Constraints**: *Maximum Length*: `255` |
15+
16+
## Example (as JSON)
17+
18+
```json
19+
{
20+
"email_address": null
21+
}
22+
```
23+

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/22.0.0.20220817 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
48+
user_agent = 'Square-Ruby-SDK/22.1.0.20220823 ({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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Client
44
attr_reader :config
55

66
def sdk_version
7-
'22.0.0.20220817'
7+
'22.1.0.20220823'
88
end
99

1010
def square_version
@@ -242,7 +242,7 @@ def initialize(connection: nil, adapter: :net_http_persistent, timeout: 60,
242242
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
243243
retry_methods: %i[get put], environment: 'production',
244244
custom_url: 'https://connect.squareup.com',
245-
square_version: '2022-08-17', access_token: '',
245+
square_version: '2022-08-23', access_token: '',
246246
user_agent_detail: '', additional_headers: {}, config: nil)
247247
@config = if config.nil?
248248
Configuration.new(connection: connection, adapter: adapter,

lib/square/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize(connection: nil, adapter: :net_http_persistent, timeout: 60,
2020
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
2121
retry_methods: %i[get put], environment: 'production',
2222
custom_url: 'https://connect.squareup.com',
23-
square_version: '2022-08-17', access_token: '',
23+
square_version: '2022-08-23', access_token: '',
2424
user_agent_detail: '', additional_headers: {})
2525
# The Faraday connection object passed by the SDK user for making requests
2626
@connection = connection

square.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Gem::Specification.new do |s|
22
s.name = 'square.rb'
3-
s.version = '22.0.0.20220817'
3+
s.version = '22.1.0.20220823'
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']
77
s.email = 'developers@squareup.com'
88
s.homepage = 'https://squareup.com/developers'
99
s.license = 'Apache-2.0'
1010
s.add_dependency('logging', '~> 2.3')
11-
s.add_dependency('faraday', '~> 2.0', '< 2.5.0')
11+
s.add_dependency('faraday', '~> 2.0', '>= 2.0.1')
1212
s.add_dependency('faraday-follow_redirects', '~> 0.2')
1313
s.add_dependency('faraday-multipart', '~> 1.0')
1414
s.add_dependency('faraday-gzip', '~> 0.1')

0 commit comments

Comments
 (0)