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

Commit 22e732b

Browse files
Merge pull request #135 from square/release/2.22.1
Release 2.22.1
2 parents 44a3d13 + aabafd4 commit 22e732b

10 files changed

+16
-45
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ install:
1212

1313
script:
1414
- export frameworkVersion=netstandard2.0
15-
- export releaseVersion="2.22.0"
15+
- export releaseVersion="2.22.1"
1616
- /bin/sh ./mono_nunit_test.sh
1717

1818
after_success:

CHANGES.md

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

3+
## Version 2.22.1 (2018-08-16)
4+
5+
* **Bug fix**: Removed a currently unsupported API object type
36
## Version 2.22.0 (2019-08-15)
47

58
* **New functionality**: All SDKs have been updated to support the Sandbox v2 BETA release

docs/BatchRetrieveOrdersResponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Defines the fields that are included in the response body of a request to the Ba
88

99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**Orders** | [**List<Order>**](Order.md) | The requested orders. This will omit any requested orders that do not exist or are not charged. | [optional]
11+
**Orders** | [**List<Order>**](Order.md) | The requested orders. This will omit any requested orders that do not exist. | [optional]
1212
**Errors** | [**List<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
1313

1414

docs/MeasurementUnit.md

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
1414
**VolumeUnit** | **string** | Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values | [optional]
1515
**WeightUnit** | **string** | Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values | [optional]
1616
**GenericUnit** | **string** | Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values | [optional]
17-
**TimeUnit** | **string** | Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values | [optional]
1817
**Type** | **string** | Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values | [optional]
1918

2019

docs/MeasurementUnitTime.md

-15
This file was deleted.

src/Square.Connect/Client/Configuration.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Configuration(ApiClient apiClient = null,
4646
string tempFolderPath = null,
4747
string dateTimeFormat = null,
4848
int timeout = 100000,
49-
string userAgent = "Square-Connect-CSharp/2.20190814.0"
49+
string userAgent = "Square-Connect-CSharp/2.20190814.1"
5050
)
5151
{
5252
setApiClientUsingDefault(apiClient);
@@ -81,7 +81,7 @@ public Configuration(ApiClient apiClient)
8181
/// Version of the package.
8282
/// </summary>
8383
/// <value>Version of the package.</value>
84-
public const string Version = "2.22.0";
84+
public const string Version = "2.22.1";
8585

8686
/// <summary>
8787
/// Gets or sets the default Configuration.
@@ -318,7 +318,7 @@ public static String ToDebugReport()
318318
.GetReferencedAssemblies()
319319
.Where(x => x.Name == "System.Core").First().Version.ToString() + "\n";
320320
report += " Version of the API: 2.0\n";
321-
report += " SDK Package Version: 2.22.0\n";
321+
report += " SDK Package Version: 2.22.1\n";
322322

323323
return report;
324324
}

src/Square.Connect/Model/BatchRetrieveOrdersResponse.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public partial class BatchRetrieveOrdersResponse : IEquatable<BatchRetrieveOrde
3232
/// <summary>
3333
/// Initializes a new instance of the <see cref="BatchRetrieveOrdersResponse" /> class.
3434
/// </summary>
35-
/// <param name="Orders">The requested orders. This will omit any requested orders that do not exist or are not charged..</param>
35+
/// <param name="Orders">The requested orders. This will omit any requested orders that do not exist..</param>
3636
/// <param name="Errors">Any errors that occurred during the request..</param>
3737
public BatchRetrieveOrdersResponse(List<Order> Orders = default(List<Order>), List<Error> Errors = default(List<Error>))
3838
{
@@ -41,9 +41,9 @@ public partial class BatchRetrieveOrdersResponse : IEquatable<BatchRetrieveOrde
4141
}
4242

4343
/// <summary>
44-
/// The requested orders. This will omit any requested orders that do not exist or are not charged.
44+
/// The requested orders. This will omit any requested orders that do not exist.
4545
/// </summary>
46-
/// <value>The requested orders. This will omit any requested orders that do not exist or are not charged.</value>
46+
/// <value>The requested orders. This will omit any requested orders that do not exist.</value>
4747
[DataMember(Name="orders", EmitDefaultValue=false)]
4848
public List<Order> Orders { get; set; }
4949
/// <summary>

src/Square.Connect/Model/MeasurementUnit.cs

+1-17
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,15 @@ public partial class MeasurementUnit : IEquatable<MeasurementUnit>, IValidatabl
3838
/// <param name="VolumeUnit">Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values.</param>
3939
/// <param name="WeightUnit">Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values.</param>
4040
/// <param name="GenericUnit">Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values.</param>
41-
/// <param name="TimeUnit">Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values.</param>
4241
/// <param name="Type">Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values.</param>
43-
public MeasurementUnit(MeasurementUnitCustom CustomUnit = default(MeasurementUnitCustom), string AreaUnit = default(string), string LengthUnit = default(string), string VolumeUnit = default(string), string WeightUnit = default(string), string GenericUnit = default(string), string TimeUnit = default(string), string Type = default(string))
42+
public MeasurementUnit(MeasurementUnitCustom CustomUnit = default(MeasurementUnitCustom), string AreaUnit = default(string), string LengthUnit = default(string), string VolumeUnit = default(string), string WeightUnit = default(string), string GenericUnit = default(string), string Type = default(string))
4443
{
4544
this.CustomUnit = CustomUnit;
4645
this.AreaUnit = AreaUnit;
4746
this.LengthUnit = LengthUnit;
4847
this.VolumeUnit = VolumeUnit;
4948
this.WeightUnit = WeightUnit;
5049
this.GenericUnit = GenericUnit;
51-
this.TimeUnit = TimeUnit;
5250
this.Type = Type;
5351
}
5452

@@ -89,12 +87,6 @@ public partial class MeasurementUnit : IEquatable<MeasurementUnit>, IValidatabl
8987
[DataMember(Name="generic_unit", EmitDefaultValue=false)]
9088
public string GenericUnit { get; set; }
9189
/// <summary>
92-
/// Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values
93-
/// </summary>
94-
/// <value>Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values</value>
95-
[DataMember(Name="time_unit", EmitDefaultValue=false)]
96-
public string TimeUnit { get; set; }
97-
/// <summary>
9890
/// Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values
9991
/// </summary>
10092
/// <value>Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values</value>
@@ -114,7 +106,6 @@ public override string ToString()
114106
sb.Append(" VolumeUnit: ").Append(VolumeUnit).Append("\n");
115107
sb.Append(" WeightUnit: ").Append(WeightUnit).Append("\n");
116108
sb.Append(" GenericUnit: ").Append(GenericUnit).Append("\n");
117-
sb.Append(" TimeUnit: ").Append(TimeUnit).Append("\n");
118109
sb.Append(" Type: ").Append(Type).Append("\n");
119110
sb.Append("}\n");
120111
return sb.ToString();
@@ -182,11 +173,6 @@ public bool Equals(MeasurementUnit other)
182173
this.GenericUnit != null &&
183174
this.GenericUnit.Equals(other.GenericUnit)
184175
) &&
185-
(
186-
this.TimeUnit == other.TimeUnit ||
187-
this.TimeUnit != null &&
188-
this.TimeUnit.Equals(other.TimeUnit)
189-
) &&
190176
(
191177
this.Type == other.Type ||
192178
this.Type != null &&
@@ -217,8 +203,6 @@ public override int GetHashCode()
217203
hash = hash * 59 + this.WeightUnit.GetHashCode();
218204
if (this.GenericUnit != null)
219205
hash = hash * 59 + this.GenericUnit.GetHashCode();
220-
if (this.TimeUnit != null)
221-
hash = hash * 59 + this.TimeUnit.GetHashCode();
222206
if (this.Type != null)
223207
hash = hash * 59 + this.Type.GetHashCode();
224208
return hash;

src/Square.Connect/Properties/AssemblyInfo.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
// You can specify all the values or you can default the Build and Revision Numbers
2929
// by using the '*' as shown below:
3030
// [assembly: AssemblyVersion("1.0.*")]
31-
[assembly: AssemblyVersion("2.22.0")]
32-
[assembly: AssemblyFileVersion("2.22.0")]
33-
[assembly: AssemblyInformationalVersion("Square-Connect-CSharp/2.20190814.0")]
31+
[assembly: AssemblyVersion("2.22.1")]
32+
[assembly: AssemblyFileVersion("2.22.1")]
33+
[assembly: AssemblyInformationalVersion("Square-Connect-CSharp/2.20190814.1")]

src/Square.Connect/Square.Connect.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Square.Connect</title>
77

88
<!-- The package version number that is used when resolving dependencies -->
9-
<version>2.22.0</version>
9+
<version>2.22.1</version>
1010

1111
<!-- Authors contain text that appears directly on the gallery -->
1212
<authors>Square</authors>

0 commit comments

Comments
 (0)