From 1a593ab7a02a01b95c4200c42ac8553c8fca1124 Mon Sep 17 00:00:00 2001 From: Connect API Specification Generator Date: Fri, 16 Aug 2019 21:55:15 +0000 Subject: [PATCH] Release 2.20190814.1 --- CHANGES.md | 3 +++ README.md | 7 +++--- build.gradle | 2 +- docs/BatchRetrieveOrdersResponse.md | 2 +- docs/MeasurementUnit.md | 1 - docs/MeasurementUnitTime.md | 16 ------------ docs/MeasurementUnitUnitType.md | 2 -- pom.xml | 2 +- .../java/com/squareup/connect/ApiClient.java | 2 +- .../models/BatchRetrieveOrdersResponse.java | 4 +-- .../connect/models/MeasurementUnit.java | 25 +------------------ 11 files changed, 13 insertions(+), 53 deletions(-) delete mode 100644 docs/MeasurementUnitTime.md diff --git a/CHANGES.md b/CHANGES.md index bf82c1c..0b892db 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Change Log +## Version 2.20190814.1 (2018-08-16) + +* **Bug fix**: Removed a currently unsupported API object type ## Version 2.20190814.0 (2019-08-15) * **New functionality**: All SDKs have been updated to support the Sandbox v2 BETA release diff --git a/README.md b/README.md index b2fa7bf..7ac26b0 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add this dependency to your project's POM: com.squareup connect - 2.20190814.0 + 2.20190814.1 compile ``` @@ -36,7 +36,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.squareup:connect:2.20190814.0" +compile "com.squareup:connect:2.20190814.1" ``` ### Option 3: Build and Install locally @@ -78,7 +78,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* target/connect-2.20190814.0.jar +* target/connect-2.20190814.1.jar * target/lib/*.jar ## Getting Started @@ -486,7 +486,6 @@ Class | Method | HTTP request | Description - [MeasurementUnitCustom](docs/MeasurementUnitCustom.md) - [MeasurementUnitGeneric](docs/MeasurementUnitGeneric.md) - [MeasurementUnitLength](docs/MeasurementUnitLength.md) - - [MeasurementUnitTime](docs/MeasurementUnitTime.md) - [MeasurementUnitUnitType](docs/MeasurementUnitUnitType.md) - [MeasurementUnitVolume](docs/MeasurementUnitVolume.md) - [MeasurementUnitWeight](docs/MeasurementUnitWeight.md) diff --git a/build.gradle b/build.gradle index 1cff575..fcabaf8 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.squareup' -version = '2.20190814.0' +version = '2.20190814.1' buildscript { repositories { diff --git a/docs/BatchRetrieveOrdersResponse.md b/docs/BatchRetrieveOrdersResponse.md index de1e30b..6cbd157 100644 --- a/docs/BatchRetrieveOrdersResponse.md +++ b/docs/BatchRetrieveOrdersResponse.md @@ -8,7 +8,7 @@ Defines the fields that are included in the response body of a request to the Ba ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**orders** | [**List<Order>**](Order.md) | The requested orders. This will omit any requested orders that do not exist or are not charged. | [optional] +**orders** | [**List<Order>**](Order.md) | The requested orders. This will omit any requested orders that do not exist. | [optional] **errors** | [**List<Error>**](Error.md) | Any errors that occurred during the request. | [optional] diff --git a/docs/MeasurementUnit.md b/docs/MeasurementUnit.md index 33c2e31..ee0e99e 100644 --- a/docs/MeasurementUnit.md +++ b/docs/MeasurementUnit.md @@ -14,7 +14,6 @@ Name | Type | Description | Notes **volumeUnit** | **String** | Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values | [optional] **weightUnit** | **String** | Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values | [optional] **genericUnit** | **String** | Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values | [optional] -**timeUnit** | **String** | Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values | [optional] **type** | **String** | Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values | [optional] diff --git a/docs/MeasurementUnitTime.md b/docs/MeasurementUnitTime.md deleted file mode 100644 index add42b6..0000000 --- a/docs/MeasurementUnitTime.md +++ /dev/null @@ -1,16 +0,0 @@ - -# MeasurementUnitTime - - -* `"GENERIC_MILLISECOND"` - -* `"GENERIC_SECOND"` - -* `"GENERIC_MINUTE"` - -* `"GENERIC_HOUR"` - -* `"GENERIC_DAY"` - - - diff --git a/docs/MeasurementUnitUnitType.md b/docs/MeasurementUnitUnitType.md index d73f0a8..8d1d3d0 100644 --- a/docs/MeasurementUnitUnitType.md +++ b/docs/MeasurementUnitUnitType.md @@ -12,8 +12,6 @@ * `"TYPE_WEIGHT"` -* `"TYPE_TIME"` - * `"TYPE_GENERIC"` diff --git a/pom.xml b/pom.xml index 02b36c9..6d9856e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ connect jar connect - 2.20190814.0 + 2.20190814.1 https://github.com/square/connect-java-sdk/ Java client library for the Square Connect API diff --git a/src/main/java/com/squareup/connect/ApiClient.java b/src/main/java/com/squareup/connect/ApiClient.java index d0f2027..3199ed9 100644 --- a/src/main/java/com/squareup/connect/ApiClient.java +++ b/src/main/java/com/squareup/connect/ApiClient.java @@ -73,7 +73,7 @@ public ApiClient() { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("Square-Connect-Java/2.20190814.0"); + setUserAgent("Square-Connect-Java/2.20190814.1"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/src/main/java/com/squareup/connect/models/BatchRetrieveOrdersResponse.java b/src/main/java/com/squareup/connect/models/BatchRetrieveOrdersResponse.java index ce2a821..0c5c9a7 100644 --- a/src/main/java/com/squareup/connect/models/BatchRetrieveOrdersResponse.java +++ b/src/main/java/com/squareup/connect/models/BatchRetrieveOrdersResponse.java @@ -47,10 +47,10 @@ public BatchRetrieveOrdersResponse addOrdersItem(Order ordersItem) { } /** - * The requested orders. This will omit any requested orders that do not exist or are not charged. + * The requested orders. This will omit any requested orders that do not exist. * @return orders **/ - @ApiModelProperty(value = "The requested orders. This will omit any requested orders that do not exist or are not charged.") + @ApiModelProperty(value = "The requested orders. This will omit any requested orders that do not exist.") public List getOrders() { return orders; } diff --git a/src/main/java/com/squareup/connect/models/MeasurementUnit.java b/src/main/java/com/squareup/connect/models/MeasurementUnit.java index 55d4779..5c645b5 100644 --- a/src/main/java/com/squareup/connect/models/MeasurementUnit.java +++ b/src/main/java/com/squareup/connect/models/MeasurementUnit.java @@ -45,9 +45,6 @@ public class MeasurementUnit { @JsonProperty("generic_unit") private String genericUnit = null; - @JsonProperty("time_unit") - private String timeUnit = null; - @JsonProperty("type") private String type = null; @@ -159,24 +156,6 @@ public void setGenericUnit(String genericUnit) { this.genericUnit = genericUnit; } - public MeasurementUnit timeUnit(String timeUnit) { - this.timeUnit = timeUnit; - return this; - } - - /** - * Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values - * @return timeUnit - **/ - @ApiModelProperty(value = "Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values") - public String getTimeUnit() { - return timeUnit; - } - - public void setTimeUnit(String timeUnit) { - this.timeUnit = timeUnit; - } - public MeasurementUnit type(String type) { this.type = type; return this; @@ -211,13 +190,12 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.volumeUnit, measurementUnit.volumeUnit) && Objects.equals(this.weightUnit, measurementUnit.weightUnit) && Objects.equals(this.genericUnit, measurementUnit.genericUnit) && - Objects.equals(this.timeUnit, measurementUnit.timeUnit) && Objects.equals(this.type, measurementUnit.type); } @Override public int hashCode() { - return Objects.hash(customUnit, areaUnit, lengthUnit, volumeUnit, weightUnit, genericUnit, timeUnit, type); + return Objects.hash(customUnit, areaUnit, lengthUnit, volumeUnit, weightUnit, genericUnit, type); } @@ -232,7 +210,6 @@ public String toString() { sb.append(" volumeUnit: ").append(toIndentedString(volumeUnit)).append("\n"); sb.append(" weightUnit: ").append(toIndentedString(weightUnit)).append("\n"); sb.append(" genericUnit: ").append(toIndentedString(genericUnit)).append("\n"); - sb.append(" timeUnit: ").append(toIndentedString(timeUnit)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString();