Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 3ca78ae

Browse files
authored
Release/2.0.2 (#12)
* Pushed by Travis CI from connect-api-specification. Commit: ceb6d9c80f8e37813aa2b034b4756001f7e58852 * Pushed by Travis CI from connect-api-specification. Commit: cf43840c4589a7b7de99cdaf91dd226fa67c22a4 * Pushed by Travis CI from connect-api-specification. Commit: 3c8271912b5af9c242f3469af3c90f0e772e4293 * Pushed by Travis CI from connect-api-specification. Commit: 48fd7880f0d249d63ca8759f2e243b92ab528f70 * add tests * Pushed by Travis CI from connect-api-specification. Commit: 4e5125bbe36b2ec4fcf808fe6e106a75d818561d * Add location API test. * Pushed by Travis CI from connect-api-specification. Commit: 051f95877b2750fb1808f8a988135b11150b93aa * Pushed by Travis CI from connect-api-specification. Commit: 08196a58d8e9d353b7438cf8f6b662a8bafaa94b * Pushed by Travis CI from connect-api-specification. Commit: 9975b42234ced0699e71ddd4b5da703050c4cb31 * From connect-api-specification: Feature/oauth security definitions (#40) * Add OAuth security definitions. * [Ruby] Add an extra line break before the infoUrl. * [Python] Add Authorization section to the README template. * [CSharp] Add Authorization section to README template. * Fix the authorization url in OAuth definition. * Unescape the auhtorizationUrl in README.
1 parent 7d628b3 commit 3ca78ae

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,32 @@ Class | Method | HTTP request
180180
- [TransactionProduct](docs/TransactionProduct.md)
181181

182182

183+
## Documentation For Authorization
184+
185+
186+
## oauth2
187+
188+
- **Type**: OAuth
189+
- **Flow**: accessCode
190+
- **Authorization URL**: `https://connect.squareup.com/oauth2/authorize?<PARAMETERS>`
191+
- **Scopes**:
192+
- **MERCHANT_PROFILE_READ**: GET endpoints related to a merchant's business and location entities. Almost all Connect API applications need this permission in order to obtain a merchant's location IDs
193+
- **PAYMENTS_READ**: GET endpoints related to transactions and refunds
194+
- **PAYMENTS_WRITE**: POST, PUT, and DELETE endpoints related to transactions and refunds. E-commerce applications must request this permission
195+
- **CUSTOMERS_READ**: GET endpoints related to customer management
196+
- **CUSTOMERS_WRITE**: POST, PUT, and DELETE endpoints related to customer management
197+
- **SETTLEMENTS_READ**: GET endpoints related to settlements (deposits)
198+
- **BANK_ACCOUNTS_READ**: GET endpoints related to a merchant's bank accounts
199+
- **ITEMS_READ**: GET endpoints related to a merchant's item library
200+
- **ITEMS_WRITE**: POST, PUT, and DELETE endpoints related to a merchant's item library
201+
- **ORDERS_READ**: GET endpoints related to a merchant's Square online store.
202+
- **ORDERS_WRITE**: POST, PUT, and DELETE endpoints related to a merchant's Square online store
203+
- **EMPLOYEES_READ**: GET endpoints related to employee management
204+
- **EMPLOYEES_WRITE**: POST, PUT, and DELETE endpoints related to employee management
205+
- **TIMECARDS_READ**: GET endpoints related to employee timecards
206+
- **TIMECARDS_WRITE**: POST, PUT, and DELETE endpoints related to employee timecards
207+
208+
183209
## Contributing
184210

185211
Send bug reports, feature requests, and code contributions to the [API

docs/ErrorCode.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Name | Type
6868
**PAYMENT_NOT_REFUNDABLE** | string
6969
**INVALID_CARD_DATA** | string
7070
**IDEMPOTENCY_KEY_REUSED** | string
71+
**UNEXPECTED_VALUE** | string
7172
**CARD_DECLINED** | string
7273
**VERIFY_CVV_FAILURE** | string
7374
**VERIFY_AVS_FAILURE** | string

squareconnect/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ def __init__(self):
7171
# Password for HTTP basic authentication
7272
self.password = ""
7373

74+
# access token for OAuth
75+
self.access_token = ""
76+
7477

7578
# Logging Settings
7679
self.logger = {}

0 commit comments

Comments
 (0)