Skip to content

Commit e6d4f52

Browse files
author
autobot
committed
Generated PR for Release: 6.5.0.20201028
1 parent 2bbc25f commit e6d4f52

764 files changed

Lines changed: 19214 additions & 6662 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Change Log
22

3+
## Version 6.5.0.20201028 (2020-10-28T00:00)
4+
5+
## Existing API updates
6+
7+
* **Terminal API.** New endpoints to enable sellers in Canada refund Interac payments.
8+
* New endpoints:
9+
10+
* [CreateTerminalRefund](https://developer.squareup.com/reference/square_2020-10-28/terminal-api/create-terminal-refund)
11+
* [GetTerminalRefund](https://developer.squareup.com/reference/square_2020-10-28/terminal-api/get-terminal-refund)
12+
* [CancelTerminalRefund](https://developer.squareup.com/reference/square_2020-10-28/terminal-api/cancel-terminal-refund)
13+
* [SearchTerminalRefunds](https://developer.squareup.com/reference/square_2020-10-28/terminal-api/search-terminal-refunds)
14+
15+
* New webhooks:
16+
* `terminal.refund.created`. Notification of a new Terminal refund request.
17+
* `terminal.refund.updated`. Notification that a Terminal refund request state is changed.
18+
19+
* New topic [Refund Interac Payments.](https://developer.squareup.com/docs/terminal-api/square-terminal-refunds). Describes how to refund Interac payments.
20+
21+
* **Loyalty API (beta):**
22+
* [SearchLoyaltyAccounts.](https://developer.squareup.com/reference/square_2020-10-28/loyalty-api/search-loyalty-accounts) The endpoint supports a new query parameter to search by customer ID.
23+
24+
* **Locations API:**
25+
* [Location](https://developer.squareup.com/reference/square_2020-10-28/objects/Location) object. Has a new read-only field,[full_format_logo_url](https://developer.squareup.com/reference/square_2020-10-28/objects/Location#definition__property-full_format_logo_url), which provides URL of a full-format logo image for the location.
26+
* [Webhooks.](https://developer.squareup.com/docs/webhooks-api/subscribe-to-events#locations) The Locations API now supports notifications for when a location is created and when a location is updated.
27+
28+
* **Orders API:**
29+
* [RetrieveOrder](https://developer.squareup.com/reference/square_2020-10-28/orders-api/retrieve-order), new endpoint. For more information, see the [Retrieve Orders](https://developer.squareup.com/docs/orders-api/manage-orders#retrieve-orders) overview.
30+
31+
* **Invoices API (beta):**
32+
* [Invoice](https://developer.squareup.com/reference/square_2020-10-28/objects/Invoice) object. The [payment_requests](https://developer.squareup.com/reference/square_2020-10-28/objects/Invoice#definition__property-payment_requests) field can now contain up to 13 payment requests, with a maximum of 12 `INSTALLMENT` request types. This is a service-level change that applies to all Square API versions. For more information, see [Payment requests.](https://developer.squareup.com/docs/invoices-api/overview#payment-requests)
33+
334
## Version 6.4.0.20200923 (2020-09-23)
435
## Existing API updates
536
* Invoices API (beta)
@@ -167,17 +198,17 @@ Bug fixes:
167198
## Version 5.2.0.20200422 (2020-04-22)
168199
## API releases
169200
* **Terminal API.** The new Terminal API lets a custom third-party POS app integrate with the Square Terminal to send terminal checkout requests to collect payments.
170-
* For an overview, see [Overview](/terminal-api/overview).
201+
* For an overview, see [Overview](https://developer.squareup.com/docs/terminal-api/overview).
171202
* For technical reference, see [Terminal API](https://developer.squareup.com/reference/square/terminal-api).
172203

173204
* **Devices API.** The new Devices API lets a custom third-party POS app generate a code used to sign in to a Square Terminal to create a pairing that lets the POS app send terminal checkout requests. For technical reference, see [Devices API](https://developer.squareup.com/reference/square/devices-api).
174205

175206
* **Customer Groups API (beta).** The new Customer Groups API (Beta) enables full CRUD management of customer groups, including the ability to list, retrieve, create, update, and delete customer groups. Previously, this functionality was only available through the Square dashboard and point-of-sale product interfaces.
176-
* For an overview, see [Overview](/customer-groups-api/what-it-does)
207+
* For an overview, see [Overview](https://developer.squareup.com/docs/customer-groups-api/what-it-does)
177208
* For technical reference, see [Customer Groups](https://developer.squareup.com/reference/square/customer-groups-api).
178209

179210
* **Customer Segments API (beta).** The new Customer Segments API (Beta) lets you list and retrieve customer segment (also called smart groups) information. Coupled with the new `segment_ids` field on the customer resource, this API lets you better understand and track the customer segments to which a customer belongs.
180-
* For an overview, see [Overview](/customer-segmentss-api/what-it-does)
211+
* For an overview, see [Overview](https://developer.squareup.com/docs/customer-segmentss-api/what-it-does)
181212
* For technical reference, see [Customer Segments]( https://developer.squareup.com/reference/square/customer-segments-api).
182213

183214

@@ -215,7 +246,7 @@ Bug fixes:
215246
* [CatalogQuickAmountsSettings](https://developer.squareup.com/reference/square/objects/CatalogQuickAmountsSettings) type. Added to support predefined custom payment amounts in the Square Register checkout dialog box.
216247
* ENUM`CatalogItemProductType`. The ENUM value `GIFT_CARD` is now deprecated.
217248

218-
* **Payments API.** See [Take Payments and Collect Fees](/payments-api/take-payments-and-collect-fees) for updated information about permission requirements, Square reporting of the application fee collected by an app, and how to collect fees internationally.
249+
* **Payments API.** See [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees) for updated information about permission requirements, Square reporting of the application fee collected by an app, and how to collect fees internationally.
219250

220251
## Version 5.1.0.20200325 (2020-03-25)
221252
## Existing API updates
@@ -263,7 +294,7 @@ All SDKs have been updated to support the following changes:
263294

264295
## Version 4.0.0-20191217 (2019-12-17)
265296
!!!important
266-
Square is excited to announce the public release of customized SDKs for [Java](https://github.com/square/square-java-sdk) and [.NET](https://github.com/square/square-dotnet-sdk). For more information, see [Square SDKs](/sdks).
297+
Square is excited to announce the public release of customized SDKs for [Java](https://github.com/square/square-java-sdk) and [.NET](https://github.com/square/square-dotnet-sdk). For more information, see [Square SDKs](https://developer.squareup.com/docs/sdks).
267298
!!!
268299

269300
* __GA release:__ SDKs updated to support new `receipt_url` and `receipt_number` fields added to the [Payment](https://developer.squareup.com/reference/square/objects/Payment) type.
@@ -275,7 +306,7 @@ Square is excited to announce the public release of customized SDKs for [Java](h
275306

276307
## Version 3.20191120.0 (2019-11-20)
277308
!!!important
278-
Square has begun the retirement process for Connect v1 APIs. See the [Connect v1 Retirement](/migrate-from-v1) information page for details.
309+
Square has begun the retirement process for Connect v1 APIs. See the [Connect v1 Retirement](https://developer.squareup.com/docs/migrate-from-v1) information page for details.
279310
!!!
280311

281312
* __GA releases:__ SDKs now support the new `modify_tax_basis` field to Discounts and v2 Sandbox

README.md

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Install the latest SDK using pip:
2222
pip install squareup
2323
```
2424

25-
Alternatively in python 3, you can download or clone the sdk from [Python SDK] and then install the SDK by running Setuptools in the SDK installation directory:
25+
Alternatively in Python 3, you can download or clone the sdk from [Python SDK] and then install the SDK by running Setuptools in the SDK installation directory:
2626

2727
```sh
2828
python setup.py install --user
2929
```
3030

31-
In python 2, you can install via pip:
31+
In Python 2, you can install via pip:
3232

3333
```sh
3434
pip install -r requirement.txt
@@ -351,41 +351,43 @@ The Square Platform is built on the [Square API]. Square has a number of other S
351351

352352
You can also use the Square API to create applications or services that work with payments, orders, inventory, etc. that have been created and managed in Square’s in-person hardware products (Square Point of Sale and Square Register).
353353

354+
355+
[//]: # "Link anchor definitions"
354356
[Square Logo]: https://docs.connect.squareup.com/images/github/github-square-logo.svg
355357
[Developer Dashboard]: https://developer.squareup.com/apps
356358
[Square API]: https://squareup.com/developers
357359
[sign up for a developer account]: https://squareup.com/signup?v=developers
358-
[Client]: https://github.com/square/square-python-sdk/blob/master/doc/client.md
359-
[Devices]: https://github.com/square/square-python-sdk/blob/master/doc/devices.md
360-
[Disputes]: https://github.com/square/square-python-sdk/blob/master/doc/disputes.md
361-
[Terminal]: https://github.com/square/square-python-sdk/blob/master/doc/terminal.md
362-
[Cash Drawers]: https://github.com/square/square-python-sdk/blob/master/doc/cash-drawers.md
363-
[Customer Groups]: https://github.com/square/square-python-sdk/blob/master/doc/customer-groups.md
364-
[Customer Segments]: https://github.com/square/square-python-sdk/blob/master/doc/customer-segments.md
365-
[Bank Accounts]: https://github.com/square/square-python-sdk/blob/master/doc/bank-accounts
366-
[Payments]: https://github.com/square/square-python-sdk/blob/master/doc/payments.md
367-
[Checkout]: https://github.com/square/square-python-sdk/blob/master/doc/checkout.md
368-
[Catalog]: https://github.com/square/square-python-sdk/blob/master/doc/catalog.md
369-
[Customers]: https://github.com/square/square-python-sdk/blob/master/doc/customers.md
370-
[Employees]: https://github.com/square/square-python-sdk/blob/master/doc/employees.md
371-
[Inventory]: https://github.com/square/square-python-sdk/blob/master/doc/inventory.md
372-
[Labor]: https://github.com/square/square-python-sdk/blob/master/doc/labor.md
373-
[Loyalty]: https://github.com/square/square-python-sdk/blob/master/doc/loyalty.md
374-
[Locations]: https://github.com/square/square-python-sdk/blob/master/doc/locations.md
375-
[Merchants]: https://github.com/square/square-python-sdk/blob/master/doc/merchants.md
376-
[Orders]: https://github.com/square/square-python-sdk/blob/master/doc/orders.md
377-
[Invoices]: https://github.com/square/square-python-sdk/blob/master/doc/invoices.md
378-
[Apple Pay]: https://github.com/square/square-python-sdk/blob/master/doc/apple-pay.md
379-
[Refunds]: https://github.com/square/square-python-sdk/blob/master/doc/refunds.md
380-
[Mobile Authorization]: https://github.com/square/square-python-sdk/blob/master/doc/mobile-authorization.md
381-
[O Auth]: https://github.com/square/square-python-sdk/blob/master/doc/o-auth.md
382-
[V1 Locations]: https://github.com/square/square-python-sdk/blob/master/doc/v1-locations.md
383-
[V1 Employees]: https://github.com/square/square-python-sdk/blob/master/doc/v1-employees.md
384-
[V1 Transactions]: https://github.com/square/square-python-sdk/blob/master/doc/v1-transactions.md
385-
[V1 Items]: https://github.com/square/square-python-sdk/blob/master/doc/v1-items.md
386-
[Transactions]: https://github.com/square/square-python-sdk/blob/master/doc/transactions.md
387-
[Team]: https://github.com/square/square-python-sdk/blob/master/doc/team.md
360+
[Client]: doc/client.md
361+
[Devices]: doc/apis/devices.md
362+
[Disputes]: doc/apis/disputes.md
363+
[Terminal]: doc/apis/terminal.md
364+
[Cash Drawers]: doc/apis/cash-drawers.md
365+
[Customer Groups]: doc/apis/customer-groups.md
366+
[Customer Segments]: doc/apis/customer-segments.md
367+
[Bank Accounts]: doc/apis/bank-accounts
368+
[Payments]: doc/apis/payments.md
369+
[Checkout]: doc/apis/checkout.md
370+
[Catalog]: doc/apis/catalog.md
371+
[Customers]: doc/apis/customers.md
372+
[Employees]: doc/apis/employees.md
373+
[Inventory]: doc/apis/inventory.md
374+
[Labor]: doc/apis/labor.md
375+
[Loyalty]: doc/apis/loyalty.md
376+
[Locations]: doc/apis/locations.md
377+
[Merchants]: doc/apis/merchants.md
378+
[Orders]: doc/apis/orders.md
379+
[Invoices]: doc/apis/invoices.md
380+
[Apple Pay]: doc/apis/apple-pay.md
381+
[Refunds]: doc/apis/refunds.md
382+
[Subscriptions]: doc/apis/subscriptions.md
383+
[Mobile Authorization]: doc/apis/mobile-authorization.md
384+
[O Auth]: doc/apis/o-auth.md
385+
[V1 Locations]: doc/apis/v1-locations.md
386+
[V1 Employees]: doc/apis/v1-employees.md
387+
[V1 Transactions]: doc/apis/v1-transactions.md
388+
[V1 Items]: doc/apis/v1-items.md
389+
[Transactions]: doc/apis/transactions.md
390+
[Team]: doc/apis/team.md
388391
[Python SDK]: https://github.com/square/square-python-sdk
389392
[Locations overview]: https://developer.squareup.com/docs/locations-api/what-it-does
390393
[OAuth overview]: https://developer.squareup.com/docs/oauth-api/what-it-does
391-
[Subscriptions]: doc/subscriptions.md

doc/api/apple-pay.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Apple Pay
2+
3+
```python
4+
apple_pay_api = client.apple_pay
5+
```
6+
7+
## Class Name
8+
9+
`ApplePayApi`
10+
11+
12+
# Register Domain
13+
14+
Activates a domain for use with Web Apple Pay and Square. A validation
15+
will be performed on this domain by Apple to ensure is it properly set up as
16+
an Apple Pay enabled domain.
17+
18+
This endpoint provides an easy way for platform developers to bulk activate
19+
Web Apple Pay with Square for merchants using their platform.
20+
21+
To learn more about Apple Pay on Web see the Apple Pay section in the
22+
[Square Payment Form Walkthrough](https://developer.squareup.com/docs/docs/payment-form/payment-form-walkthrough).
23+
24+
```python
25+
def register_domain(self,
26+
body)
27+
```
28+
29+
## Parameters
30+
31+
| Parameter | Type | Tags | Description |
32+
| --- | --- | --- | --- |
33+
| `body` | [`Register Domain Request`](/doc/models/register-domain-request.md) | Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
34+
35+
## Response Type
36+
37+
[`Register Domain Response`](/doc/models/register-domain-response.md)
38+
39+
## Example Usage
40+
41+
```python
42+
body = {}
43+
body['domain_name'] = 'example.com'
44+
45+
result = apple_pay_api.register_domain(body)
46+
47+
if result.is_success():
48+
print(result.body)
49+
elif result.is_error():
50+
print(result.errors)
51+
```
52+

doc/api/bank-accounts.md

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# Bank Accounts
2+
3+
```python
4+
bank_accounts_api = client.bank_accounts
5+
```
6+
7+
## Class Name
8+
9+
`BankAccountsApi`
10+
11+
## Methods
12+
13+
* [List Bank Accounts](/doc/api/bank-accounts.md#list-bank-accounts)
14+
* [Get Bank Account by V1 Id](/doc/api/bank-accounts.md#get-bank-account-by-v1-id)
15+
* [Get Bank Account](/doc/api/bank-accounts.md#get-bank-account)
16+
17+
18+
# List Bank Accounts
19+
20+
Returns a list of [BankAccount](#type-bankaccount) objects linked to a Square account.
21+
22+
```python
23+
def list_bank_accounts(self,
24+
cursor=None,
25+
limit=None,
26+
location_id=None)
27+
```
28+
29+
## Parameters
30+
31+
| Parameter | Type | Tags | Description |
32+
| --- | --- | --- | --- |
33+
| `cursor` | `string` | Query, Optional | The pagination cursor returned by a previous call to this endpoint.<br>Use it in the next `ListBankAccounts` request to retrieve the next set<br>of results.<br><br>See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. |
34+
| `limit` | `int` | Query, Optional | Upper limit on the number of bank accounts to return in the response.<br>Currently, 1000 is the largest supported limit. You can specify a limit<br>of up to 1000 bank accounts. This is also the default limit. |
35+
| `location_id` | `string` | Query, Optional | Location ID. You can specify this optional filter<br>to retrieve only the linked bank accounts belonging to a specific location. |
36+
37+
## Response Type
38+
39+
[`List Bank Accounts Response`](/doc/models/list-bank-accounts-response.md)
40+
41+
## Example Usage
42+
43+
```python
44+
cursor = 'cursor6'
45+
limit = 172
46+
location_id = 'location_id4'
47+
48+
result = bank_accounts_api.list_bank_accounts(cursor, limit, location_id)
49+
50+
if result.is_success():
51+
print(result.body)
52+
elif result.is_error():
53+
print(result.errors)
54+
```
55+
56+
57+
# Get Bank Account by V1 Id
58+
59+
Returns details of a [BankAccount](#type-bankaccount) identified by V1 bank account ID.
60+
61+
```python
62+
def get_bank_account_by_v1_id(self,
63+
v1_bank_account_id)
64+
```
65+
66+
## Parameters
67+
68+
| Parameter | Type | Tags | Description |
69+
| --- | --- | --- | --- |
70+
| `v1_bank_account_id` | `string` | Template, Required | Connect V1 ID of the desired `BankAccount`. For more information, see<br>[Retrieve a bank account by using an ID issued by V1 Bank Accounts API](https://developer.squareup.com/docs/docs/bank-accounts-api#retrieve-a-bank-account-by-using-an-id-issued-by-v1-bank-accounts-api). |
71+
72+
## Response Type
73+
74+
[`Get Bank Account by V1 Id Response`](/doc/models/get-bank-account-by-v1-id-response.md)
75+
76+
## Example Usage
77+
78+
```python
79+
v1_bank_account_id = 'v1_bank_account_id8'
80+
81+
result = bank_accounts_api.get_bank_account_by_v1_id(v1_bank_account_id)
82+
83+
if result.is_success():
84+
print(result.body)
85+
elif result.is_error():
86+
print(result.errors)
87+
```
88+
89+
90+
# Get Bank Account
91+
92+
Returns details of a [BankAccount](#type-bankaccount)
93+
linked to a Square account.
94+
95+
```python
96+
def get_bank_account(self,
97+
bank_account_id)
98+
```
99+
100+
## Parameters
101+
102+
| Parameter | Type | Tags | Description |
103+
| --- | --- | --- | --- |
104+
| `bank_account_id` | `string` | Template, Required | Square-issued ID of the desired `BankAccount`. |
105+
106+
## Response Type
107+
108+
[`Get Bank Account Response`](/doc/models/get-bank-account-response.md)
109+
110+
## Example Usage
111+
112+
```python
113+
bank_account_id = 'bank_account_id0'
114+
115+
result = bank_accounts_api.get_bank_account(bank_account_id)
116+
117+
if result.is_success():
118+
print(result.body)
119+
elif result.is_error():
120+
print(result.errors)
121+
```
122+

0 commit comments

Comments
 (0)