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

Release 2.20190814.1 #77

Merged
merged 1 commit into from
Aug 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.squareup</groupId>
<artifactId>connect</artifactId>
<version>2.20190814.0</version>
<version>2.20190814.1</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.squareup'
version = '2.20190814.0'
version = '2.20190814.1'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion docs/BatchRetrieveOrdersResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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&lt;Order&gt;**](Order.md) | The requested orders. This will omit any requested orders that do not exist or are not charged. | [optional]
**orders** | [**List&lt;Order&gt;**](Order.md) | The requested orders. This will omit any requested orders that do not exist. | [optional]
**errors** | [**List&lt;Error&gt;**](Error.md) | Any errors that occurred during the request. | [optional]


Expand Down
1 change: 0 additions & 1 deletion docs/MeasurementUnit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]


Expand Down
16 changes: 0 additions & 16 deletions docs/MeasurementUnitTime.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/MeasurementUnitUnitType.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

* `"TYPE_WEIGHT"`

* `"TYPE_TIME"`

* `"TYPE_GENERIC"`


Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>connect</artifactId>
<packaging>jar</packaging>
<name>connect</name>
<version>2.20190814.0</version>
<version>2.20190814.1</version>
<url>https://github.com/square/connect-java-sdk/</url>
<description>Java client library for the Square Connect API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/squareup/connect/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Authentication>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Order> getOrders() {
return orders;
}
Expand Down
25 changes: 1 addition & 24 deletions src/main/java/com/squareup/connect/models/MeasurementUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}


Expand All @@ -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();
Expand Down