Skip to content

Commit a04a48e

Browse files
author
Wolfgang Schuster
authored
Merge pull request #84 from square/release/17.2.0.20220216
Generated PR for Release: 17.2.0.20220216
2 parents 1f5f34b + 915db3a commit a04a48e

43 files changed

Lines changed: 224 additions & 120 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc/api/inventory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ body['changes'][0]['physical_count']['catalog_object_type'] = 'catalog_object_ty
134134
body['changes'][0]['physical_count']['state'] = 'IN_STOCK'
135135
body['changes'][0]['physical_count']['location_id'] = 'C6W5YS5QM06F5'
136136
body['changes'][0]['physical_count']['quantity'] = '53'
137-
body['changes'][0]['physical_count']['employee_id'] = 'LRK57NSQ5X7PUD05'
137+
body['changes'][0]['physical_count']['team_member_id'] = 'LRK57NSQ5X7PUD05'
138138
body['changes'][0]['physical_count']['occurred_at'] = '2016-11-16T22:25:24.878Z'
139139
body['changes'][0]['adjustment'] = {}
140140
body['changes'][0]['adjustment']['id'] = 'id6'
@@ -293,7 +293,7 @@ body['changes'][0]['physical_count']['catalog_object_type'] = 'catalog_object_ty
293293
body['changes'][0]['physical_count']['state'] = 'IN_STOCK'
294294
body['changes'][0]['physical_count']['location_id'] = 'C6W5YS5QM06F5'
295295
body['changes'][0]['physical_count']['quantity'] = '53'
296-
body['changes'][0]['physical_count']['employee_id'] = 'LRK57NSQ5X7PUD05'
296+
body['changes'][0]['physical_count']['team_member_id'] = 'LRK57NSQ5X7PUD05'
297297
body['changes'][0]['physical_count']['occurred_at'] = '2016-11-16T22:25:24.878Z'
298298
body['changes'][0]['adjustment'] = {}
299299
body['changes'][0]['adjustment']['id'] = 'id6'

doc/api/merchants.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ merchants_api = client.merchants
1616

1717
# List Merchants
1818

19-
Returns `Merchant` information for a given access token.
19+
Provides details about the merchant associated with a given access token.
2020

21-
If you don't know a `Merchant` ID, you can use this endpoint to retrieve the merchant ID for an access token.
22-
You can specify your personal access token to get your own merchant information or specify an OAuth token
23-
to get the information for the merchant that granted you access.
21+
The access token used to connect your application to a Square seller is associated
22+
with a single merchant. That means that `ListMerchants` returns a list
23+
with a single `Merchant` object. You can specify your personal access token
24+
to get your own merchant information or specify an OAuth token to get the
25+
information for the merchant that granted your application access.
2426

2527
If you know the merchant ID, you can also use the [RetrieveMerchant](/doc/api/merchants.md#retrieve-merchant)
26-
endpoint to get the merchant information.
28+
endpoint to retrieve the merchant information.
2729

2830
```python
2931
def list_merchants(self,
@@ -56,7 +58,7 @@ elif result.is_error():
5658

5759
# Retrieve Merchant
5860

59-
Retrieve a `Merchant` object for the given `merchant_id`.
61+
Retrieves the `Merchant` object for the given `merchant_id`.
6062

6163
```python
6264
def retrieve_merchant(self,

doc/client.md

Lines changed: 3 additions & 3 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-01-20'` |
8+
| `square_version` | `string` | Square Connect API versions<br>*Default*: `'2022-02-16'` |
99
| `custom_url` | `string` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
1010
| `environment` | `string` | The API environment. <br> **Default: `production`** |
1111
| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |
@@ -24,7 +24,7 @@ The API client can be initialized as follows:
2424
from square.client import Client
2525

2626
client = Client(
27-
square_version='2022-01-20',
27+
square_version='2022-02-16',
2828
environment='production',
2929
custom_url = 'https://connect.squareup.com',)
3030
```
@@ -48,7 +48,7 @@ API calls return an `ApiResponse` object that includes the following fields:
4848
from square.client import Client
4949

5050
client = Client(
51-
square_version='2022-01-20',)
51+
square_version='2022-02-16',)
5252

5353
locations_api = client.locations
5454
result = locations_api.list_locations()

doc/models/afterpay-details.md

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

doc/models/batch-change-inventory-request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
{
2222
"physical_count": {
2323
"catalog_object_id": "W62UWFY35CWMYGVWK6TWJDNI",
24-
"employee_id": "LRK57NSQ5X7PUD05",
2524
"location_id": "C6W5YS5QM06F5",
2625
"occurred_at": "2016-11-16T22:25:24.878Z",
2726
"quantity": "53",
2827
"reference_id": "1536bfbf-efed-48bf-b17d-a197141b2a92",
29-
"state": "IN_STOCK"
28+
"state": "IN_STOCK",
29+
"team_member_id": "LRK57NSQ5X7PUD05"
3030
},
3131
"type": "PHYSICAL_COUNT"
3232
}

doc/models/batch-retrieve-inventory-changes-response.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"catalog_object_id": "W62UWFY35CWMYGVWK6TWJDNI",
2424
"catalog_object_type": "ITEM_VARIATION",
2525
"created_at": "2016-11-16T22:25:24.878Z",
26-
"employee_id": "LRK57NSQ5X7PUD05",
2726
"id": "46YDTW253DWGGK9HMAE6XCAO",
2827
"location_id": "C6W5YS5QM06F5",
2928
"occurred_at": "2016-11-16T22:24:49.028Z",
@@ -34,7 +33,8 @@
3433
"name": "Square Point of Sale 4.37",
3534
"product": "SQUARE_POS"
3635
},
37-
"state": "IN_STOCK"
36+
"state": "IN_STOCK",
37+
"team_member_id": "LRK57NSQ5X7PUD05"
3838
},
3939
"type": "PHYSICAL_COUNT"
4040
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# Buy Now Pay Later Details
3+
4+
Additional details about a Buy Now Pay Later payment type.
5+
6+
## Structure
7+
8+
`Buy Now Pay Later Details`
9+
10+
## Fields
11+
12+
| Name | Type | Tags | Description |
13+
| --- | --- | --- | --- |
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` |
15+
| `afterpay_details` | [`Afterpay Details`](/doc/models/afterpay-details.md) | Optional | Additional details about Afterpay payments. |
16+
17+
## Example (as JSON)
18+
19+
```json
20+
{
21+
"brand": "brand4",
22+
"afterpay_details": {
23+
"email_address": "email_address4"
24+
}
25+
}
26+
```
27+

doc/models/card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ details are determined by the payment token generated by Web Payments SDK.
2020
| `cardholder_name` | `string` | Optional | The name of the cardholder.<br>**Constraints**: *Maximum Length*: `96` |
2121
| `billing_address` | [`Address`](/doc/models/address.md) | Optional | Represents a postal address in a country.<br>For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). |
2222
| `fingerprint` | `string` | Optional | Intended as a Square-assigned identifier, based<br>on the card number, to identify the card across multiple locations within a<br>single application.<br>**Constraints**: *Maximum Length*: `255` |
23-
| `customer_id` | `string` | Optional | The ID of a customer created using the Customers API to be associated with the card. |
23+
| `customer_id` | `string` | Optional | **Required** The ID of a customer created using the Customers API to be associated with the card. |
2424
| `merchant_id` | `string` | Optional | The ID of the merchant associated with the card. |
2525
| `reference_id` | `string` | Optional | An optional user-defined reference ID that associates this card with<br>another entity in an external system. For example, a customer ID from an<br>external customer management system.<br>**Constraints**: *Maximum Length*: `128` |
2626
| `enabled` | `bool` | Optional | Indicates whether or not a card can be used for payments. |

doc/models/create-customer-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Defines the body parameters that can be included in a request to the
2323
| `reference_id` | `string` | Optional | An optional second ID used to associate the customer profile with an<br>entity in another system. |
2424
| `note` | `string` | Optional | A custom note associated with the customer profile. |
2525
| `birthday` | `string` | Optional | The birthday associated with the customer profile, in RFC 3339 format. The year is optional. The timezone and time are not allowed.<br>For example, `0000-09-21T00:00:00-00:00` represents a birthday on September 21 and `1998-09-21T00:00:00-00:00` represents a birthday on September 21, 1998.<br>You can also specify this value in `YYYY-MM-DD` format. |
26-
| `tax_ids` | [`Customer Tax Ids`](/doc/models/customer-tax-ids.md) | Optional | Represents the tax ID associated with a customer profile. The corresponding `tax_ids` field is available only for customers of sellers in France, Ireland, or the United Kingdom.<br>For more information, see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids). |
26+
| `tax_ids` | [`Customer Tax Ids`](/doc/models/customer-tax-ids.md) | Optional | Represents the tax ID associated with a [customer profile](/doc/models/customer.md). The corresponding `tax_ids` field is available only for customers of sellers in EU countries or the United Kingdom.<br>For more information, see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids). |
2727

2828
## Example (as JSON)
2929

doc/models/create-loyalty-account-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A request to create a new loyalty account.
1111

1212
| Name | Type | Tags | Description |
1313
| --- | --- | --- | --- |
14-
| `loyalty_account` | [`Loyalty Account`](/doc/models/loyalty-account.md) | Required | Describes a loyalty account. For more information, see<br>[Manage Loyalty Accounts Using the Loyalty API](https://developer.squareup.com/docs/loyalty-api/overview). |
14+
| `loyalty_account` | [`Loyalty Account`](/doc/models/loyalty-account.md) | Required | Describes a loyalty account in a [loyalty program](/doc/models/loyalty-program.md). For more information, see<br>[Manage Loyalty Accounts Using the Loyalty API](https://developer.squareup.com/docs/loyalty-api/overview). |
1515
| `idempotency_key` | `string` | Required | A unique string that identifies this `CreateLoyaltyAccount` request.<br>Keys can be any valid string, but must be unique for every request.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `128` |
1616

1717
## Example (as JSON)

0 commit comments

Comments
 (0)