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

Commit 6c3f836

Browse files
authored
Release 2.20181212.0 (#51)
1 parent 4d87c88 commit 6c3f836

17 files changed

+59
-53
lines changed

CHANGES.md

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

3+
## Version 2.20181212.0 (2018-12-12)
4+
5+
## Improvement: ListCustomers return set expanded
6+
7+
Requests to the ListCustomers endpoint now returns all available customer profiles. Previously, ListCustomers only returned customer profiles explicitly created through the Customers API or Square Point of Sale.
8+
39
## Version 2.20181205.0 (2018-12-05)
410

511
## New feature: Idempotent customer profile creation in Connect v2

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Add this dependency to your project's POM:
1818
<dependency>
1919
<groupId>com.squareup</groupId>
2020
<artifactId>connect</artifactId>
21-
<version>2.20181205.0</version>
21+
<version>2.20181212.0</version>
2222
<scope>compile</scope>
2323
</dependency>
2424
```
@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
2828
Add this dependency to your project's build file:
2929

3030
```groovy
31-
compile "com.squareup:connect:2.20181205.0"
31+
compile "com.squareup:connect:2.20181212.0"
3232
```
3333

3434
### Build and Install locally
@@ -47,7 +47,7 @@ At first generate the JAR by executing:
4747

4848
Then manually install the following JARs:
4949

50-
* target/connect-2.20181205.0.jar
50+
* target/connect-2.20181212.0.jar
5151
* target/lib/*.jar
5252

5353
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.squareup'
5-
version = '2.20181205.0'
5+
version = '2.20181212.0'
66

77
buildscript {
88
repositories {

docs/CustomersApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Method | HTTP request | Description
2020
2121
CreateCustomer
2222

23-
Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - &#x60;given_name&#x60; - &#x60;family_name&#x60; - &#x60;company_name&#x60; - &#x60;email_address&#x60; - &#x60;phone_number&#x60; This endpoint does not accept an idempotency key. If you accidentally create a duplicate customer, you can delete it with the [DeleteCustomer](#endpoint-deletecustomer) endpoint.
23+
Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - &#x60;given_name&#x60; - &#x60;family_name&#x60; - &#x60;company_name&#x60; - &#x60;email_address&#x60; - &#x60;phone_number&#x60;
2424

2525
### Example
2626
```java

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>connect</artifactId>
66
<packaging>jar</packaging>
77
<name>connect</name>
8-
<version>2.20181205.0</version>
8+
<version>2.20181212.0</version>
99
<url>https://github.com/square/connect-java-sdk/</url>
1010
<description>Java client library for the Square Connect API</description>
1111
<scm>

src/main/java/com/squareup/connect/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public ApiClient() {
7373
this.dateFormat = new RFC3339DateFormat();
7474

7575
// Set default User-Agent.
76-
setUserAgent("Square-Connect-Java/2.20181205.0");
76+
setUserAgent("Square-Connect-Java/2.20181212.0");
7777

7878
// Setup authentications (key: authentication name, value: authentication).
7979
authentications = new HashMap<String, Authentication>();

src/main/java/com/squareup/connect/api/ApplePayApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public RegisterDomainResponse registerDomain(RegisterDomainRequest body) throws
5858
List<Pair> localVarQueryParams = new ArrayList<Pair>();
5959
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
6060
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
61-
localVarHeaderParams.put("Square-Version", "2018-12-05");
61+
localVarHeaderParams.put("Square-Version", "2018-12-12");
6262

6363

6464

src/main/java/com/squareup/connect/api/CatalogApi.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public BatchDeleteCatalogObjectsResponse batchDeleteCatalogObjects(BatchDeleteCa
7474
List<Pair> localVarQueryParams = new ArrayList<Pair>();
7575
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
7676
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
77-
localVarHeaderParams.put("Square-Version", "2018-12-05");
77+
localVarHeaderParams.put("Square-Version", "2018-12-12");
7878

7979

8080

@@ -158,7 +158,7 @@ public BatchRetrieveCatalogObjectsResponse batchRetrieveCatalogObjects(BatchRetr
158158
List<Pair> localVarQueryParams = new ArrayList<Pair>();
159159
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
160160
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
161-
localVarHeaderParams.put("Square-Version", "2018-12-05");
161+
localVarHeaderParams.put("Square-Version", "2018-12-12");
162162

163163

164164

@@ -242,7 +242,7 @@ public BatchUpsertCatalogObjectsResponse batchUpsertCatalogObjects(BatchUpsertCa
242242
List<Pair> localVarQueryParams = new ArrayList<Pair>();
243243
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
244244
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
245-
localVarHeaderParams.put("Square-Version", "2018-12-05");
245+
localVarHeaderParams.put("Square-Version", "2018-12-12");
246246

247247

248248

@@ -320,7 +320,7 @@ public CatalogInfoResponse catalogInfo() throws ApiException {
320320
List<Pair> localVarQueryParams = new ArrayList<Pair>();
321321
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
322322
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
323-
localVarHeaderParams.put("Square-Version", "2018-12-05");
323+
localVarHeaderParams.put("Square-Version", "2018-12-12");
324324

325325

326326

@@ -399,7 +399,7 @@ public DeleteCatalogObjectResponse deleteCatalogObject(String objectId) throws A
399399
List<Pair> localVarQueryParams = new ArrayList<Pair>();
400400
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
401401
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
402-
localVarHeaderParams.put("Square-Version", "2018-12-05");
402+
localVarHeaderParams.put("Square-Version", "2018-12-12");
403403

404404

405405

@@ -480,7 +480,7 @@ public ListCatalogResponse listCatalog(String cursor, String types) throws ApiEx
480480
List<Pair> localVarQueryParams = new ArrayList<Pair>();
481481
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
482482
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
483-
localVarHeaderParams.put("Square-Version", "2018-12-05");
483+
localVarHeaderParams.put("Square-Version", "2018-12-12");
484484
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
485485
localVarQueryParams.addAll(apiClient.parameterToPairs("", "types", types));
486486

@@ -566,7 +566,7 @@ public RetrieveCatalogObjectResponse retrieveCatalogObject(String objectId, Bool
566566
List<Pair> localVarQueryParams = new ArrayList<Pair>();
567567
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
568568
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
569-
localVarHeaderParams.put("Square-Version", "2018-12-05");
569+
localVarHeaderParams.put("Square-Version", "2018-12-12");
570570
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include_related_objects", includeRelatedObjects));
571571

572572

@@ -654,7 +654,7 @@ public SearchCatalogObjectsResponse searchCatalogObjects(SearchCatalogObjectsReq
654654
List<Pair> localVarQueryParams = new ArrayList<Pair>();
655655
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
656656
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
657-
localVarHeaderParams.put("Square-Version", "2018-12-05");
657+
localVarHeaderParams.put("Square-Version", "2018-12-12");
658658

659659

660660

@@ -738,7 +738,7 @@ public UpdateItemModifierListsResponse updateItemModifierLists(UpdateItemModifie
738738
List<Pair> localVarQueryParams = new ArrayList<Pair>();
739739
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
740740
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
741-
localVarHeaderParams.put("Square-Version", "2018-12-05");
741+
localVarHeaderParams.put("Square-Version", "2018-12-12");
742742

743743

744744

@@ -822,7 +822,7 @@ public UpdateItemTaxesResponse updateItemTaxes(UpdateItemTaxesRequest body) thro
822822
List<Pair> localVarQueryParams = new ArrayList<Pair>();
823823
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
824824
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
825-
localVarHeaderParams.put("Square-Version", "2018-12-05");
825+
localVarHeaderParams.put("Square-Version", "2018-12-12");
826826

827827

828828

@@ -906,7 +906,7 @@ public UpsertCatalogObjectResponse upsertCatalogObject(UpsertCatalogObjectReques
906906
List<Pair> localVarQueryParams = new ArrayList<Pair>();
907907
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
908908
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
909-
localVarHeaderParams.put("Square-Version", "2018-12-05");
909+
localVarHeaderParams.put("Square-Version", "2018-12-12");
910910

911911

912912

src/main/java/com/squareup/connect/api/CheckoutApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public CreateCheckoutResponse createCheckout(String locationId, CreateCheckoutRe
6565
List<Pair> localVarQueryParams = new ArrayList<Pair>();
6666
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
6767
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
68-
localVarHeaderParams.put("Square-Version", "2018-12-05");
68+
localVarHeaderParams.put("Square-Version", "2018-12-12");
6969

7070

7171

src/main/java/com/squareup/connect/api/CustomersApi.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void setApiClient(ApiClient apiClient) {
4848

4949
/**
5050
* CreateCustomer
51-
* Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - &#x60;given_name&#x60; - &#x60;family_name&#x60; - &#x60;company_name&#x60; - &#x60;email_address&#x60; - &#x60;phone_number&#x60; This endpoint does not accept an idempotency key. If you accidentally create a duplicate customer, you can delete it with the [DeleteCustomer](#endpoint-deletecustomer) endpoint.
51+
* Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - &#x60;given_name&#x60; - &#x60;family_name&#x60; - &#x60;company_name&#x60; - &#x60;email_address&#x60; - &#x60;phone_number&#x60;
5252
* @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required)
5353
* @return CreateCustomerResponse
5454
* @throws ApiException if fails to make API call
@@ -68,7 +68,7 @@ public CreateCustomerResponse createCustomer(CreateCustomerRequest body) throws
6868
List<Pair> localVarQueryParams = new ArrayList<Pair>();
6969
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
7070
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
71-
localVarHeaderParams.put("Square-Version", "2018-12-05");
71+
localVarHeaderParams.put("Square-Version", "2018-12-12");
7272

7373

7474

@@ -91,7 +91,7 @@ public CreateCustomerResponse createCustomer(CreateCustomerRequest body) throws
9191

9292
/**
9393
* CreateCustomer
94-
* Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - &#x60;given_name&#x60; - &#x60;family_name&#x60; - &#x60;company_name&#x60; - &#x60;email_address&#x60; - &#x60;phone_number&#x60; This endpoint does not accept an idempotency key. If you accidentally create a duplicate customer, you can delete it with the [DeleteCustomer](#endpoint-deletecustomer) endpoint.
94+
* Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - &#x60;given_name&#x60; - &#x60;family_name&#x60; - &#x60;company_name&#x60; - &#x60;email_address&#x60; - &#x60;phone_number&#x60;
9595
* @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required)
9696
* @return CompleteResponse<CreateCustomerResponse>
9797
* @throws ApiException if fails to make API call
@@ -159,7 +159,7 @@ public CreateCustomerCardResponse createCustomerCard(String customerId, CreateCu
159159
List<Pair> localVarQueryParams = new ArrayList<Pair>();
160160
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
161161
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
162-
localVarHeaderParams.put("Square-Version", "2018-12-05");
162+
localVarHeaderParams.put("Square-Version", "2018-12-12");
163163

164164

165165

@@ -251,7 +251,7 @@ public DeleteCustomerResponse deleteCustomer(String customerId) throws ApiExcept
251251
List<Pair> localVarQueryParams = new ArrayList<Pair>();
252252
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
253253
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
254-
localVarHeaderParams.put("Square-Version", "2018-12-05");
254+
localVarHeaderParams.put("Square-Version", "2018-12-12");
255255

256256

257257

@@ -344,7 +344,7 @@ public DeleteCustomerCardResponse deleteCustomerCard(String customerId, String c
344344
List<Pair> localVarQueryParams = new ArrayList<Pair>();
345345
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
346346
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
347-
localVarHeaderParams.put("Square-Version", "2018-12-05");
347+
localVarHeaderParams.put("Square-Version", "2018-12-12");
348348

349349

350350

@@ -433,7 +433,7 @@ public ListCustomersResponse listCustomers(String cursor, String sortField, Stri
433433
List<Pair> localVarQueryParams = new ArrayList<Pair>();
434434
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
435435
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
436-
localVarHeaderParams.put("Square-Version", "2018-12-05");
436+
localVarHeaderParams.put("Square-Version", "2018-12-12");
437437
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
438438
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_field", sortField));
439439
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_order", sortOrder));
@@ -521,7 +521,7 @@ public RetrieveCustomerResponse retrieveCustomer(String customerId) throws ApiEx
521521
List<Pair> localVarQueryParams = new ArrayList<Pair>();
522522
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
523523
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
524-
localVarHeaderParams.put("Square-Version", "2018-12-05");
524+
localVarHeaderParams.put("Square-Version", "2018-12-12");
525525

526526

527527

@@ -606,7 +606,7 @@ public SearchCustomersResponse searchCustomers(SearchCustomersRequest body) thro
606606
List<Pair> localVarQueryParams = new ArrayList<Pair>();
607607
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
608608
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
609-
localVarHeaderParams.put("Square-Version", "2018-12-05");
609+
localVarHeaderParams.put("Square-Version", "2018-12-12");
610610

611611

612612

@@ -697,7 +697,7 @@ public UpdateCustomerResponse updateCustomer(String customerId, UpdateCustomerRe
697697
List<Pair> localVarQueryParams = new ArrayList<Pair>();
698698
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
699699
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
700-
localVarHeaderParams.put("Square-Version", "2018-12-05");
700+
localVarHeaderParams.put("Square-Version", "2018-12-12");
701701

702702

703703

0 commit comments

Comments
 (0)