You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,51 @@
1
1
# Change Log
2
2
3
+
## Version 10.0.0.20210421 (2021-04-21)
4
+
## New API releases
5
+
6
+
## Existing API updates
7
+
8
+
***Subscriptions API:**
9
+
*[ResumeSubscription.](https://developer.squareup.com/reference/square_2021-04-21/subscriptions-api/resume-subscription) This new endpoint enables applications to resume [deactivated subscriptions.](https://developer.squareup.com/docs/subscriptions-api/overview#deactivated-subscriptions) After a subscription is created, there are events that can make a subscription non-billable, causing Square to deactivate the subscription. A seller can also resume deactivated subscriptions in the Seller Dashboard. Applications can call [ListSubscriptionEvents](https://developer.squareup.com/reference/square_2021-04-21/subscriptions-api/list-subscription-events) to determine why Square deactivated a subscription.
* New `version` field (beta). This field represents the current version of the customer profile. You can include it in your `UpdateCustomer` and `DeleteCustomer` requests to enable optimistic concurrency. For more information, see [Customer profile versions and optimistic concurrency support.](https://developer.squareup.com/docs/customers-api/what-it-does#customer-profile-versions-and-optimistic-concurrency-support)
15
+
* The `groups` field and corresponding `CustomerGroupInfo` object are retired.
16
+
17
+
*[Customer webhooks](https://developer.squareup.com/docs/customers-api/use-the-api/customer-webhooks) have moved to the [general availability](https://developer.squareup.com/docs/build-basics/api-lifecycle#general-availability) (GA) state. Event notifications now include the `version` field (beta).
18
+
19
+
***Invoices API:**
20
+
21
+
* The [Invoices API](https://developer.squareup.com/docs/invoices-api/overview) has moved to the GA state.
* A new required `accepted_payment_methods` field that defines the methods of payment that customers can use to pay an invoice on the Square-hosted invoice page. Valid values are defined in the new [InvoiceAcceptedPaymentMethods](https://developer.squareup.com/reference/square_2021-04-21/objects/InvoiceAcceptedPaymentMethods) enum. For more information, see the [migration notes.](https://developer.squareup.com/docs/invoices-api/overview#migration-notes)
25
+
* A new `subscription_id` field, which is included in invoices created for subscription billing.
26
+
27
+
***Loyalty API:** (beta)
28
+
29
+
*[RetrieveLoyaltyProgram](https://developer.squareup.com/reference/square_2021-04-21/loyalty-api/retrieve-loyalty-program) endpoint. This new endpoint accepts a program ID or the `main` keyword and returns the loyalty program in a seller's account. For more information, see [Retrieve a loyalty program.](https://developer.squareup.com/docs/loyalty-api/overview#retrieve-loyalty-program) This endpoint is preferred over the `ListLoyaltyPrograms` endpoint.
30
+
31
+
* Introduced a new mapping implementation for loyalty accounts:
32
+
*[LoyaltyAccount](https://developer.squareup.com/reference/square_2021-04-21/objects/LoyaltyAccount) object. Added the `mapping` field (of type `LoyaltyAccountMapping`), which is used to associate the loyalty account with a buyer. This field is recommended over the `mappings` field.
33
+
*[LoyaltyAccountMapping](https://developer.squareup.com/reference/square_2021-04-21/objects/LoyaltyAccountMapping) object. Added the `phone_number` field to represent a phone number mapping. This field is recommended over the `type` and `value` fields.
34
+
35
+
* A new [loyalty.program.created](https://developer.squareup.com/reference/square_2021-04-21/webhooks/loyalty.program.created) webhook. Square now publishes an event notification when a loyalty program is created in the Square Seller Dashboard.
36
+
37
+
***Inventory API:**
38
+
*[InventoryChange](https://developer.squareup.com/reference/square_2021-04-21/objects/InventoryChange) can now have its own measurement unit.
39
+
40
+
***Catalog API:**
41
+
*[CatalogItem](https://developer.squareup.com/reference/square_2021-04-21/objects/CatalogItem) introduces the `sort_name` attribute that can take Japanese writing scripts to sort items by. When it is unspecified, the regular `name` attribute is used for sorting.
42
+
*[CatalogPricingRule](https://developer.squareup.com/reference/square_2021-04-21/objects/CatalogCatalogPricingRule) has the new `customer_group_ids_any` attribute included to support automatic application of discounts to specified product set purchased by members of any of the customer groups identified by the `customer_group_ids_any` attribute values.
43
+
***Team API**
44
+
* New [Team webhooks](https://developer.squareup.com/reference/square_2021-04-21/team-api/webhooks): `team_member.created`, `team_member.updated`, `team_member.wage_setting.updated` to notify on created and updated team members and wage settings.
Copy file name to clipboardExpand all lines: doc/api/bookings.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,7 +228,7 @@ def retrieve_booking(self,
228
228
229
229
| Parameter | Type | Tags | Description |
230
230
| --- | --- | --- | --- |
231
-
|`booking_id`|`string`| Template, Required | The ID of the [Booking](#type-booking) object representing the to-be-retrieved booking. |
231
+
|`booking_id`|`string`| Template, Required | The ID of the [Booking](/doc/models/booking.md) object representing the to-be-retrieved booking. |
232
232
233
233
## Response Type
234
234
@@ -262,7 +262,7 @@ def update_booking(self,
262
262
263
263
| Parameter | Type | Tags | Description |
264
264
| --- | --- | --- | --- |
265
-
|`booking_id`|`string`| Template, Required | The ID of the [Booking](#type-booking) object representing the to-be-updated booking. |
265
+
|`booking_id`|`string`| Template, Required | The ID of the [Booking](/doc/models/booking.md) object representing the to-be-updated booking. |
266
266
|`body`|[`Update Booking Request`](/doc/models/update-booking-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
267
267
268
268
## Response Type
@@ -305,7 +305,7 @@ def cancel_booking(self,
305
305
306
306
| Parameter | Type | Tags | Description |
307
307
| --- | --- | --- | --- |
308
-
|`booking_id`|`string`| Template, Required | The ID of the [Booking](#type-booking) object representing the to-be-cancelled booking. |
308
+
|`booking_id`|`string`| Template, Required | The ID of the [Booking](/doc/models/booking.md) object representing the to-be-cancelled booking. |
309
309
|`body`|[`Cancel Booking Request`](/doc/models/cancel-booking-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
__Important:__ ListCatalog does not return deleted catalog items. To retrieve
433
-
deleted catalog items, use [SearchCatalogObjects](#endpoint-Catalog-SearchCatalogObjects)
433
+
deleted catalog items, use [SearchCatalogObjects](/doc/api/catalog.md#search-catalog-objects)
434
434
and set the `include_deleted_objects` attribute value to `true`.
435
435
436
436
```python
@@ -446,7 +446,7 @@ def list_catalog(self,
446
446
| --- | --- | --- | --- |
447
447
|`cursor`|`string`| Query, Optional | The pagination cursor returned in the previous response. Leave unset for an initial request.<br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
448
448
|`types`|`string`| Query, Optional | An optional case-insensitive, comma-separated list of object types to retrieve, for example<br>`ITEM,ITEM_VARIATION,CATEGORY,IMAGE`.<br><br>The legal values are taken from the CatalogObjectType enum:<br>`ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,<br>`MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. |
449
-
|`catalog_version`| `long|int` | Query, Optional | The specific version of the catalog objects to be included in the response.<br>This allows you to retrieve historical<br>versions of objects. The specified version value is matched against<br>the [CatalogObject](#type-catalogobject)s' `version` attribute. |
449
+
|`catalog_version`| `long|int` | Query, Optional | The specific version of the catalog objects to be included in the response.<br>This allows you to retrieve historical<br>versions of objects. The specified version value is matched against<br>the [CatalogObject](/doc/models/catalog-object.md)s' `version` attribute. |
450
450
451
451
## Response Type
452
452
@@ -470,7 +470,7 @@ elif result.is_error():
470
470
471
471
# Upsert Catalog Object
472
472
473
-
Creates or updates the target [CatalogObject](#type-catalogobject).
473
+
Creates or updates the target [CatalogObject](/doc/models/catalog-object.md).
474
474
475
475
```python
476
476
defupsert_catalog_object(self,
@@ -531,12 +531,12 @@ elif result.is_error():
531
531
532
532
# Delete Catalog Object
533
533
534
-
Deletes a single [CatalogObject](#type-catalogobject) based on the
534
+
Deletes a single [CatalogObject](/doc/models/catalog-object.md) based on the
535
535
provided ID and returns the set of successfully deleted IDs in the response.
536
536
Deletion is a cascading event such that all children of the targeted object
537
-
are also deleted. For example, deleting a [CatalogItem](#type-catalogitem)
537
+
are also deleted. For example, deleting a [CatalogItem](/doc/models/catalog-item.md)
|`object_id`|`string`| Template, Required | The object ID of any type of catalog objects to be retrieved. |
592
592
|`include_related_objects`|`bool`| Query, Optional | If `true`, the response will include additional objects that are related to the<br>requested object, as follows:<br><br>If the `object` field of the response contains a `CatalogItem`, its associated<br>`CatalogCategory`, `CatalogTax`, `CatalogImage` and `CatalogModifierList` objects will<br>be returned in the `related_objects` field of the response. If the `object` field of<br>the response contains a `CatalogItemVariation`, its parent `CatalogItem` will be returned<br>in the `related_objects` field of the response.<br><br>Default value: `false`<br>**Default**: `False`|
593
-
|`catalog_version`| `long|int` | Query, Optional | Requests objects as of a specific version of the catalog. This allows you to retrieve historical<br>versions of objects. The value to retrieve a specific version of an object can be found<br>in the version field of [CatalogObject](#type-catalogobject)s. |
593
+
|`catalog_version`| `long|int` | Query, Optional | Requests objects as of a specific version of the catalog. This allows you to retrieve historical<br>versions of objects. The value to retrieve a specific version of an object can be found<br>in the version field of [CatalogObject](/doc/models/catalog-object.md)s. |
594
594
595
595
## Response Type
596
596
@@ -614,10 +614,10 @@ elif result.is_error():
614
614
615
615
# Search Catalog Objects
616
616
617
-
Searches for [CatalogObject](#type-CatalogObject) of any type by matching supported search attribute values,
617
+
Searches for [CatalogObject](/doc/models/catalog-object.md) of any type by matching supported search attribute values,
618
618
excluding custom attribute values on items or item variations, against one or more of the specified query expressions.
619
619
620
-
This (`SearchCatalogObjects`) endpoint differs from the [SearchCatalogItems](#endpoint-Catalog-SearchCatalogItems)
620
+
This (`SearchCatalogObjects`) endpoint differs from the [SearchCatalogItems](/doc/api/catalog.md#search-catalog-items)
621
621
endpoint in the following aspects:
622
622
623
623
-`SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects.
@@ -683,7 +683,7 @@ elif result.is_error():
683
683
Searches for catalog items or item variations by matching supported search attribute values, including
684
684
custom attribute values, against one or more of the specified query expressions.
685
685
686
-
This (`SearchCatalogItems`) endpoint differs from the [SearchCatalogObjects](#endpoint-Catalog-SearchCatalogObjects)
686
+
This (`SearchCatalogItems`) endpoint differs from the [SearchCatalogObjects](/doc/api/catalog.md#search-catalog-objects)
687
687
endpoint in the following aspects:
688
688
689
689
-`SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects.
@@ -769,8 +769,8 @@ elif result.is_error():
769
769
770
770
# Update Item Modifier Lists
771
771
772
-
Updates the [CatalogModifierList](#type-catalogmodifierlist) objects
773
-
that apply to the targeted [CatalogItem](#type-catalogitem) without having
772
+
Updates the [CatalogModifierList](/doc/models/catalog-modifier-list.md) objects
773
+
that apply to the targeted [CatalogItem](/doc/models/catalog-item.md) without having
774
774
to perform an upsert on the entire item.
775
775
776
776
```python
@@ -807,8 +807,8 @@ elif result.is_error():
807
807
808
808
# Update Item Taxes
809
809
810
-
Updates the [CatalogTax](#type-catalogtax) objects that apply to the
811
-
targeted [CatalogItem](#type-catalogitem) without having to perform an
810
+
Updates the [CatalogTax](/doc/models/catalog-tax.md) objects that apply to the
811
+
targeted [CatalogItem](/doc/models/catalog-item.md) without having to perform an
Copy file name to clipboardExpand all lines: doc/api/customer-groups.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ def list_customer_groups(self,
30
30
31
31
| Parameter | Type | Tags | Description |
32
32
| --- | --- | --- | --- |
33
-
|`cursor`|`string`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for your original query.<br><br>See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. |
33
+
|`cursor`|`string`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this cursor to retrieve the next set of results for your original query.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
|`cursor`|`string`| Query, Optional | A pagination cursor returned by previous calls to __ListCustomerSegments__.<br>Used to retrieve the next set of query results.<br><br>See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. |
30
+
|`cursor`|`string`| Query, Optional | A pagination cursor returned by previous calls to `ListCustomerSegments`.<br>This cursor is used to retrieve the next set of query results.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
0 commit comments