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

Commit 34abc22

Browse files
authored
Release 2.20190710.0 (#72)
* Release 2.20190710.0
1 parent 2afb4c6 commit 34abc22

File tree

387 files changed

+1848
-17826
lines changed

Some content is hidden

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

387 files changed

+1848
-17826
lines changed

CHANGES.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## Version 2.20190710.0 (2019-07-10)
4+
5+
* **Breaking change** — As of 2019-07-10 Java Connect SDK does not support explicit `ENUM` types. Instead, the SDKs pass `ENUM` values as static `Strings`. Developer code can now choose to ignore unexpected `String` values when Square APIs return new values instead of being forced to throw runtime errors due to unexpected types. Additional information, including migration help, is available in the README.
6+
7+
* **Retired functionality** — The `CatalogItem.image_url` field (deprecated under `Square-Version` YYYYMMDD) is retired and no longer included in Connect SDKs.
8+
39
## Version 2.20190612.1 (2019-06-26)
410

511
* **Bug fix**: `Transaction.Charge` and `Customers.CreateCustomerCard` request objects — now include the `verification_token` required for [Strong Customer Authentication](https://developer.squareup.com/docs/sca-overview).

README.md

+24-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
**If you have feedback about the new SDKs, or just want to talk to other Square Developers, request an invite to the new [slack community for Square Developers](https://squ.re/2GB8GHk)**
44

5+
## ENUM to String Migration
6+
The Java SDK no longer treats enums as explicit types. Instead, all enums are handled as static strings.
7+
Previously, you would use an enum constant to represent the related string value. For example:
8+
```java
9+
Money money = new Money();
10+
money.setCurrency(Money.CurrencyEnum.USD);
11+
```
12+
13+
As of version 2.20190710.0, you would work with the static string value directly. For example:
14+
```java
15+
Money money = new Money();
16+
money.setCurrency("USD");
17+
```
18+
19+
But, as a best practice, we recommend representing enum strings as constants for easier reuse. For example:
20+
```java
21+
String MONEY_USD = "USD";
22+
Money money = new Money();
23+
money.setCurrency(MONEY_USD);
24+
```
25+
526
## Requirements
627

728
Java 8
@@ -18,7 +39,7 @@ Add this dependency to your project's POM:
1839
<dependency>
1940
<groupId>com.squareup</groupId>
2041
<artifactId>connect</artifactId>
21-
<version>2.20190612.1</version>
42+
<version>2.20190710.0</version>
2243
<scope>compile</scope>
2344
</dependency>
2445
```
@@ -28,7 +49,7 @@ Add this dependency to your project's POM:
2849
Add this dependency to your project's build file:
2950

3051
```groovy
31-
compile "com.squareup:connect:2.20190612.1"
52+
compile "com.squareup:connect:2.20190710.0"
3253
```
3354

3455
### Option 3: Build and Install locally
@@ -70,7 +91,7 @@ At first generate the JAR by executing:
7091

7192
Then manually install the following JARs:
7293

73-
* target/connect-2.20190612.1.jar
94+
* target/connect-2.20190710.0.jar
7495
* target/lib/*.jar
7596

7697
## Getting Started
@@ -84,7 +105,6 @@ import com.squareup.connect.Configuration;
84105
import com.squareup.connect.api.LocationsApi;
85106
import com.squareup.connect.auth.OAuth;
86107
import com.squareup.connect.models.Location;
87-
import com.squareup.connect.models.Location.CapabilitiesEnum;
88108

89109
import java.io.File;
90110
import java.util.*;
@@ -257,7 +277,6 @@ Class | Method | HTTP request | Description
257277
- [AdditionalRecipientReceivable](docs/AdditionalRecipientReceivable.md)
258278
- [AdditionalRecipientReceivableRefund](docs/AdditionalRecipientReceivableRefund.md)
259279
- [Address](docs/Address.md)
260-
- [AggregationStrategy](docs/AggregationStrategy.md)
261280
- [BatchChangeInventoryRequest](docs/BatchChangeInventoryRequest.md)
262281
- [BatchChangeInventoryResponse](docs/BatchChangeInventoryResponse.md)
263282
- [BatchDeleteCatalogObjectsRequest](docs/BatchDeleteCatalogObjectsRequest.md)

build.gradle

+1-1
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.20190612.1'
5+
version = '2.20190710.0'
66

77
buildscript {
88
repositories {

docs/Address.md

+1-257
Original file line numberDiff line numberDiff line change
@@ -19,266 +19,10 @@ Name | Type | Description | Notes
1919
**administrativeDistrictLevel2** | **String** | A civil entity within the address&#39;s &#x60;administrative_district_level_1&#x60;. In the US, this is the county. | [optional]
2020
**administrativeDistrictLevel3** | **String** | A civil entity within the address&#39;s &#x60;administrative_district_level_2&#x60;, if any. | [optional]
2121
**postalCode** | **String** | The address&#39;s postal code. | [optional]
22-
**country** | [**CountryEnum**](#CountryEnum) | The address&#39;s country, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values | [optional]
22+
**country** | **String** | The address&#39;s country, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values | [optional]
2323
**firstName** | **String** | Optional first name when it&#39;s representing recipient. | [optional]
2424
**lastName** | **String** | Optional last name when it&#39;s representing recipient. | [optional]
2525
**organization** | **String** | Optional organization name when it&#39;s representing recipient. | [optional]
2626

2727

28-
<a name="CountryEnum"></a>
29-
## Enum: CountryEnum
30-
Name | Value
31-
---- | -----
32-
ZZ | &quot;ZZ&quot;
33-
AD | &quot;AD&quot;
34-
AE | &quot;AE&quot;
35-
AF | &quot;AF&quot;
36-
AG | &quot;AG&quot;
37-
AI | &quot;AI&quot;
38-
AL | &quot;AL&quot;
39-
AM | &quot;AM&quot;
40-
AO | &quot;AO&quot;
41-
AQ | &quot;AQ&quot;
42-
AR | &quot;AR&quot;
43-
AS | &quot;AS&quot;
44-
AT | &quot;AT&quot;
45-
AU | &quot;AU&quot;
46-
AW | &quot;AW&quot;
47-
AX | &quot;AX&quot;
48-
AZ | &quot;AZ&quot;
49-
BA | &quot;BA&quot;
50-
BB | &quot;BB&quot;
51-
BD | &quot;BD&quot;
52-
BE | &quot;BE&quot;
53-
BF | &quot;BF&quot;
54-
BG | &quot;BG&quot;
55-
BH | &quot;BH&quot;
56-
BI | &quot;BI&quot;
57-
BJ | &quot;BJ&quot;
58-
BL | &quot;BL&quot;
59-
BM | &quot;BM&quot;
60-
BN | &quot;BN&quot;
61-
BO | &quot;BO&quot;
62-
BQ | &quot;BQ&quot;
63-
BR | &quot;BR&quot;
64-
BS | &quot;BS&quot;
65-
BT | &quot;BT&quot;
66-
BV | &quot;BV&quot;
67-
BW | &quot;BW&quot;
68-
BY | &quot;BY&quot;
69-
BZ | &quot;BZ&quot;
70-
CA | &quot;CA&quot;
71-
CC | &quot;CC&quot;
72-
CD | &quot;CD&quot;
73-
CF | &quot;CF&quot;
74-
CG | &quot;CG&quot;
75-
CH | &quot;CH&quot;
76-
CI | &quot;CI&quot;
77-
CK | &quot;CK&quot;
78-
CL | &quot;CL&quot;
79-
CM | &quot;CM&quot;
80-
CN | &quot;CN&quot;
81-
CO | &quot;CO&quot;
82-
CR | &quot;CR&quot;
83-
CU | &quot;CU&quot;
84-
CV | &quot;CV&quot;
85-
CW | &quot;CW&quot;
86-
CX | &quot;CX&quot;
87-
CY | &quot;CY&quot;
88-
CZ | &quot;CZ&quot;
89-
DE | &quot;DE&quot;
90-
DJ | &quot;DJ&quot;
91-
DK | &quot;DK&quot;
92-
DM | &quot;DM&quot;
93-
DO | &quot;DO&quot;
94-
DZ | &quot;DZ&quot;
95-
EC | &quot;EC&quot;
96-
EE | &quot;EE&quot;
97-
EG | &quot;EG&quot;
98-
EH | &quot;EH&quot;
99-
ER | &quot;ER&quot;
100-
ES | &quot;ES&quot;
101-
ET | &quot;ET&quot;
102-
FI | &quot;FI&quot;
103-
FJ | &quot;FJ&quot;
104-
FK | &quot;FK&quot;
105-
FM | &quot;FM&quot;
106-
FO | &quot;FO&quot;
107-
FR | &quot;FR&quot;
108-
GA | &quot;GA&quot;
109-
GB | &quot;GB&quot;
110-
GD | &quot;GD&quot;
111-
GE | &quot;GE&quot;
112-
GF | &quot;GF&quot;
113-
GG | &quot;GG&quot;
114-
GH | &quot;GH&quot;
115-
GI | &quot;GI&quot;
116-
GL | &quot;GL&quot;
117-
GM | &quot;GM&quot;
118-
GN | &quot;GN&quot;
119-
GP | &quot;GP&quot;
120-
GQ | &quot;GQ&quot;
121-
GR | &quot;GR&quot;
122-
GS | &quot;GS&quot;
123-
GT | &quot;GT&quot;
124-
GU | &quot;GU&quot;
125-
GW | &quot;GW&quot;
126-
GY | &quot;GY&quot;
127-
HK | &quot;HK&quot;
128-
HM | &quot;HM&quot;
129-
HN | &quot;HN&quot;
130-
HR | &quot;HR&quot;
131-
HT | &quot;HT&quot;
132-
HU | &quot;HU&quot;
133-
ID | &quot;ID&quot;
134-
IE | &quot;IE&quot;
135-
IL | &quot;IL&quot;
136-
IM | &quot;IM&quot;
137-
IN | &quot;IN&quot;
138-
IO | &quot;IO&quot;
139-
IQ | &quot;IQ&quot;
140-
IR | &quot;IR&quot;
141-
IS | &quot;IS&quot;
142-
IT | &quot;IT&quot;
143-
JE | &quot;JE&quot;
144-
JM | &quot;JM&quot;
145-
JO | &quot;JO&quot;
146-
JP | &quot;JP&quot;
147-
KE | &quot;KE&quot;
148-
KG | &quot;KG&quot;
149-
KH | &quot;KH&quot;
150-
KI | &quot;KI&quot;
151-
KM | &quot;KM&quot;
152-
KN | &quot;KN&quot;
153-
KP | &quot;KP&quot;
154-
KR | &quot;KR&quot;
155-
KW | &quot;KW&quot;
156-
KY | &quot;KY&quot;
157-
KZ | &quot;KZ&quot;
158-
LA | &quot;LA&quot;
159-
LB | &quot;LB&quot;
160-
LC | &quot;LC&quot;
161-
LI | &quot;LI&quot;
162-
LK | &quot;LK&quot;
163-
LR | &quot;LR&quot;
164-
LS | &quot;LS&quot;
165-
LT | &quot;LT&quot;
166-
LU | &quot;LU&quot;
167-
LV | &quot;LV&quot;
168-
LY | &quot;LY&quot;
169-
MA | &quot;MA&quot;
170-
MC | &quot;MC&quot;
171-
MD | &quot;MD&quot;
172-
ME | &quot;ME&quot;
173-
MF | &quot;MF&quot;
174-
MG | &quot;MG&quot;
175-
MH | &quot;MH&quot;
176-
MK | &quot;MK&quot;
177-
ML | &quot;ML&quot;
178-
MM | &quot;MM&quot;
179-
MN | &quot;MN&quot;
180-
MO | &quot;MO&quot;
181-
MP | &quot;MP&quot;
182-
MQ | &quot;MQ&quot;
183-
MR | &quot;MR&quot;
184-
MS | &quot;MS&quot;
185-
MT | &quot;MT&quot;
186-
MU | &quot;MU&quot;
187-
MV | &quot;MV&quot;
188-
MW | &quot;MW&quot;
189-
MX | &quot;MX&quot;
190-
MY | &quot;MY&quot;
191-
MZ | &quot;MZ&quot;
192-
NA | &quot;NA&quot;
193-
NC | &quot;NC&quot;
194-
NE | &quot;NE&quot;
195-
NF | &quot;NF&quot;
196-
NG | &quot;NG&quot;
197-
NI | &quot;NI&quot;
198-
NL | &quot;NL&quot;
199-
NO | &quot;NO&quot;
200-
NP | &quot;NP&quot;
201-
NR | &quot;NR&quot;
202-
NU | &quot;NU&quot;
203-
NZ | &quot;NZ&quot;
204-
OM | &quot;OM&quot;
205-
PA | &quot;PA&quot;
206-
PE | &quot;PE&quot;
207-
PF | &quot;PF&quot;
208-
PG | &quot;PG&quot;
209-
PH | &quot;PH&quot;
210-
PK | &quot;PK&quot;
211-
PL | &quot;PL&quot;
212-
PM | &quot;PM&quot;
213-
PN | &quot;PN&quot;
214-
PR | &quot;PR&quot;
215-
PS | &quot;PS&quot;
216-
PT | &quot;PT&quot;
217-
PW | &quot;PW&quot;
218-
PY | &quot;PY&quot;
219-
QA | &quot;QA&quot;
220-
RE | &quot;RE&quot;
221-
RO | &quot;RO&quot;
222-
RS | &quot;RS&quot;
223-
RU | &quot;RU&quot;
224-
RW | &quot;RW&quot;
225-
SA | &quot;SA&quot;
226-
SB | &quot;SB&quot;
227-
SC | &quot;SC&quot;
228-
SD | &quot;SD&quot;
229-
SE | &quot;SE&quot;
230-
SG | &quot;SG&quot;
231-
SH | &quot;SH&quot;
232-
SI | &quot;SI&quot;
233-
SJ | &quot;SJ&quot;
234-
SK | &quot;SK&quot;
235-
SL | &quot;SL&quot;
236-
SM | &quot;SM&quot;
237-
SN | &quot;SN&quot;
238-
SO | &quot;SO&quot;
239-
SR | &quot;SR&quot;
240-
SS | &quot;SS&quot;
241-
ST | &quot;ST&quot;
242-
SV | &quot;SV&quot;
243-
SX | &quot;SX&quot;
244-
SY | &quot;SY&quot;
245-
SZ | &quot;SZ&quot;
246-
TC | &quot;TC&quot;
247-
TD | &quot;TD&quot;
248-
TF | &quot;TF&quot;
249-
TG | &quot;TG&quot;
250-
TH | &quot;TH&quot;
251-
TJ | &quot;TJ&quot;
252-
TK | &quot;TK&quot;
253-
TL | &quot;TL&quot;
254-
TM | &quot;TM&quot;
255-
TN | &quot;TN&quot;
256-
TO | &quot;TO&quot;
257-
TR | &quot;TR&quot;
258-
TT | &quot;TT&quot;
259-
TV | &quot;TV&quot;
260-
TW | &quot;TW&quot;
261-
TZ | &quot;TZ&quot;
262-
UA | &quot;UA&quot;
263-
UG | &quot;UG&quot;
264-
UM | &quot;UM&quot;
265-
US | &quot;US&quot;
266-
UY | &quot;UY&quot;
267-
UZ | &quot;UZ&quot;
268-
VA | &quot;VA&quot;
269-
VC | &quot;VC&quot;
270-
VE | &quot;VE&quot;
271-
VG | &quot;VG&quot;
272-
VI | &quot;VI&quot;
273-
VN | &quot;VN&quot;
274-
VU | &quot;VU&quot;
275-
WF | &quot;WF&quot;
276-
WS | &quot;WS&quot;
277-
YE | &quot;YE&quot;
278-
YT | &quot;YT&quot;
279-
ZA | &quot;ZA&quot;
280-
ZM | &quot;ZM&quot;
281-
ZW | &quot;ZW&quot;
282-
283-
28428

docs/AggregationStrategy.md

-16
This file was deleted.

0 commit comments

Comments
 (0)