Skip to content

Commit

Permalink
Merge pull request #32 from square/release/7.0.0.20201118
Browse files Browse the repository at this point in the history
Generated PR for Release: 7.0.0.20201118
  • Loading branch information
jessdelacruzsantos committed Nov 18, 2020
2 parents f2d0363 + 6124ff5 commit 4a16584
Show file tree
Hide file tree
Showing 755 changed files with 16,311 additions and 6,097 deletions.
35 changes: 31 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Change Log

## Version 7.0.0.20201118 (2020-11-18T00:00)
## New API releases

* **Bookings API** (beta). This API enables you, as an application developer, to create applications to set up and manage bookings for appointments of fixed duration in which selected staff members of a Square seller provide specified services in supported locations for particular customers.
* For an overview, see [Manage Bookings for Square Sellers](https://developer.squareup.com/docs/bookings-api/what-it-is).
* For technical reference, see [Bookings API](https://developer.squareup.com/reference/square_2020-11-18/bookings-api).

## Existing API updates

* **Payments API:**
* [Payment.](https://developer.squareup.com/reference/square_2020-11-18/objects/Payment) The object now includes the `risk_evaluation` field to identify the Square-assigned risk level associated with the payment. Sellers can use this information to provide the goods and services or refund the payment.

## New SDK release
* **New Square Node.js SDK (beta)**

The new [Square Node.js SDK](https://github.com/square/square-nodejs-sdk) is available in beta and will eventually replace the deprecated Connect Node.js SDK. For migration information, see the [Connect SDK README.](https://github.com/square/connect-nodejs-sdk/blob/master/README.md) The following topics are updated to use the new SDK:
* [Walkthrough: Integrate Square Payments in a Website](https://developer.squareup.com/docs/payment-form/payment-form-walkthrough)
* [Verify the Buyer When Using a Nonce for an Online Payment](https://developer.squareup.com/docs/payment-form/cookbook/verify-buyer-on-card-charge)
* [Create a Gift Card Payment Endpoint](https://developer.squareup.com/docs/payment-form/gift-cards/part-2)


## Documentation Updates

* The **Testing** topics are moved from the end of the table of contents to the top, in the **Home** section under [Testing your App](https://developer.squareup.com/docs/testing-your-app).
* [Pay for orders.]](https://developer.squareup.com/docs/orders-api/pay-for-order) Topic revised to add clarity when to use Payments API and Orders API to pay for an order. The [Orders Integration]](https://developer.squareup.com/docs/payments-api/take-payments?preview=true#orders-integration) topic in Payments API simplified accordingly.


## Version 6.5.0.20201028 (2020-10-28T00:00)

## Existing API updates
Expand All @@ -23,7 +50,7 @@

* **Locations API:**
* [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.
* [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.
* [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.

* **Orders API:**
* [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.
Expand Down Expand Up @@ -212,7 +239,7 @@ Bug fixes:
* For technical reference, see [Customer Segments]( https://developer.squareup.com/reference/square/customer-segments-api).


* **New webhooks.** v2 Webhooks (beta) now supports webhooks for the following APIs:
* **New webhooks** v2 Webhooks (beta) now supports webhooks for the following APIs:
* Orders API. `order.created`, `order.updated`, and `order.fulfillment.updated`
* Terminal API. `terminal.checkout.created` and `terminal.checkout.updated`
* Devices API. `device.code.paired`
Expand Down Expand Up @@ -250,8 +277,8 @@ Bug fixes:

## Version 5.1.0.20200325 (2020-03-25)
## Existing API updates
* **[Payments API](https://developer.squareup.com/reference/square/payments-api).** In support of the existing [Delayed capture](payments-api/take-payments) for payments, the following fields are added to the [Payment](https://developer.squareup.com/reference/square/objects/Payment) type:
* `delay_duration`. In a [CreatePayment](https://developer.squareup.com/reference/square/payments-api/create-payment) request, you can set `autocomplete` to false to get payment approval but not charge the payment source. You can now add this field to specify a time period to complete (or cancel) the payment. For more information, see [Delay capture](payments-api/take-payments).
* **[Payments API](https://developer.squareup.com/reference/square/payments-api).** In support of the existing [Delayed capture]](https://developer.squareup.com/docs/payments-api/take-payments) for payments, the following fields are added to the [Payment](https://developer.squareup.com/reference/square/objects/Payment) type:
* `delay_duration`. In a [CreatePayment](https://developer.squareup.com/reference/square/payments-api/create-payment) request, you can set `autocomplete` to false to get payment approval but not charge the payment source. You can now add this field to specify a time period to complete (or cancel) the payment. For more information, see [Delay capture]](https://developer.squareup.com/docs/payments-api/take-payments).
* `delay_action`. Defines the action that Square takes on the payment when the `delay_duration` elapses. In this release, the API supports only the cancel payment action.
* `delayed_until`. Provides the date and time on Square servers when Square applies `delay_action` on the payment.

Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Install the client dynamically by adding a dependency to the POM for your projec
<dependency>
<groupId>com.squareup</groupId>
<artifactId>square</artifactId>
<version>6.5.0.20201028</version>
<version>7.0.0.20201118</version>
</dependency>
```

Expand All @@ -42,7 +42,7 @@ Install the client dynamically by adding a dependency to the POM for your projec
Install the client by adding the following dependency to the build file for your project:

```
implementation "com.squareup:square:6.5.0.20201028"
implementation "com.squareup:square:7.0.0.20201118"
```

## API documentation
Expand Down Expand Up @@ -76,6 +76,9 @@ implementation "com.squareup:square:6.5.0.20201028"
### Loyalty
* [Loyalty]

### Bookings
* [Bookings]

### Business
* [Merchants]
* [Locations]
Expand Down Expand Up @@ -316,6 +319,7 @@ You can also use the Square API to create applications or services that work wit
[Inventory]: doc/api/inventory.md
[Labor]: doc/api/labor.md
[Loyalty]: doc/api/loyalty.md
[Bookings]: doc/api/bookings.md
[Locations]: doc/api/locations.md
[Merchants]: doc/api/merchants.md
[Orders]: doc/api/orders.md
Expand Down
1 change: 1 addition & 0 deletions doc/api-exception.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ This is the base class for all exceptions that represent an error response from
| `getResponseCode()` | The HTTP response code from the API request | `int` |
| `getHeaders()` | The HTTP response body from the API request. | `Headers` |
| `getErrors()` | A list of errors. | `List<Error>` |
| `getData()` | Returns data about the steps that completed successfully before an error was raised. This field is currently only populated for the PaymentsApi.CreatePayment endpoint. | `Object` |

2 changes: 1 addition & 1 deletion doc/api/apple-pay.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This endpoint provides an easy way for platform developers to bulk activate
Web Apple Pay with Square for merchants using their platform.

To learn more about Apple Pay on Web see the Apple Pay section in the
[Square Payment Form Walkthrough](https://developer.squareup.com/docs/docs/payment-form/payment-form-walkthrough).
[Square Payment Form Walkthrough](https://developer.squareup.com/docs/payment-form/payment-form-walkthrough).

```java
CompletableFuture<RegisterDomainResponse> registerDomainAsync(
Expand Down
4 changes: 2 additions & 2 deletions doc/api/bank-accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CompletableFuture<ListBankAccountsResponse> listBankAccountsAsync(

| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `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. |
| `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/working-with-apis/pagination) guide for more information. |
| `limit` | `Integer` | 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. |
| `locationId` | `String` | Query, Optional | Location ID. You can specify this optional filter<br>to retrieve only the linked bank accounts belonging to a specific location. |

Expand Down Expand Up @@ -67,7 +67,7 @@ CompletableFuture<GetBankAccountByV1IdResponse> getBankAccountByV1IdAsync(

| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `v1BankAccountId` | `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). |
| `v1BankAccountId` | `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/bank-accounts-api#retrieve-a-bank-account-by-using-an-id-issued-by-v1-bank-accounts-api). |

## Response Type

Expand Down
Loading

0 comments on commit 4a16584

Please sign in to comment.