Skip to content

Commit

Permalink
Merge pull request #54 from square/release/9.0.0.20210226
Browse files Browse the repository at this point in the history
Generated PR for Release: 9.0.0.20210226
  • Loading branch information
deanpapastrat authored Feb 26, 2021
2 parents ba74639 + ff90f10 commit 503b7ed
Show file tree
Hide file tree
Showing 239 changed files with 755 additions and 7,768 deletions.
270 changes: 198 additions & 72 deletions CHANGELOG.md

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,22 @@ client = Client(

To access production resources, set environment to production:

```ruby
```python
client = Client(
access_token='{{REPLACE_ACCESS_TOKEN}}',
environment='production',
)
```

To set a custom environment provide a `custom_url`, and set the environment to `custom`:

```python
client = Client(
access_token='{{REPLACE_ACCESS_TOKEN}}',
environment='custom',
custom_url='https://your.customdomain.com'
)
```

### Get an Instance of an API object and call its methods

Expand Down
1 change: 0 additions & 1 deletion doc/api/checkout.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ body['order']['order']['discounts'][0]['amount_money']['amount'] = 100
body['order']['order']['discounts'][0]['amount_money']['currency'] = 'USD'
body['order']['order']['discounts'][0]['scope'] = 'LINE_ITEM'

body['order']['location_id'] = 'location_id4'
body['order']['idempotency_key'] = '12ae1696-z1e3-4328-af6d-f1e04d947gd4'
body['ask_for_shipping_address'] = True
body['merchant_support_email'] = '[email protected]'
Expand Down
1 change: 0 additions & 1 deletion doc/api/orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ body['order']['discounts'][2]['amount_money']['amount'] = 100
body['order']['discounts'][2]['amount_money']['currency'] = 'USD'
body['order']['discounts'][2]['scope'] = 'LINE_ITEM'

body['location_id'] = 'location_id0'
body['idempotency_key'] = '8193148c-9586-11e6-99f9-28cfe92138cf'

result = orders_api.create_order(body)
Expand Down
Loading

0 comments on commit 503b7ed

Please sign in to comment.