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

Commit

Permalink
Release 2.15.1 (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaofu88 committed Mar 21, 2019
1 parent 3662b11 commit 4325b64
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -12,7 +12,7 @@ install:

script:
- export frameworkVersion=netstandard2.0
- export releaseVersion="2.15.0"
- export releaseVersion="2.15.1"
- /bin/sh ./mono_nunit_test.sh

after_success:
Expand Down
7 changes: 7 additions & 0 deletions CHANGES.md
@@ -1,5 +1,12 @@
# Change Log

## Version 2.15.1 (2019-03-21)

### Bug Fix: Connect v1

* Change `timecard_id` as path parameter for `ListTimecardEvents` endpoint
* Change `ended_at` to string type for `V1CashDrawerShift` type

## Version 2.15.0 (2019-03-13)

## New API: Labor API
Expand Down
2 changes: 1 addition & 1 deletion docs/V1CashDrawerShift.md
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Id** | **string** | The shift's unique ID. | [optional]
**EventType** | **EventTypeEnum** | The shift's current state. See [V1CashDrawerShiftEventType](#type-v1cashdrawershifteventtype) for possible values | [optional]
**OpenedAt** | **string** | The time when the shift began, in ISO 8601 format. | [optional]
**EndedAt** | **bool?** | The time when the shift ended, in ISO 8601 format. | [optional]
**EndedAt** | **string** | The time when the shift ended, in ISO 8601 format. | [optional]
**ClosedAt** | **string** | The time when the shift was closed, in ISO 8601 format. | [optional]
**EmployeeIds** | **List<string>** | The IDs of all employees that were logged into Square Register at some point during the cash drawer shift. | [optional]
**OpeningEmployeeId** | **string** | The ID of the employee that started the cash drawer shift. | [optional]
Expand Down
1 change: 0 additions & 1 deletion docs/V1ListTimecardEventsRequest.md
Expand Up @@ -8,7 +8,6 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TimecardId** | **string** | The ID of the timecard to list events for. |



Expand Down
4 changes: 2 additions & 2 deletions src/Square.Connect/Api/V1EmployeesApi.cs
Expand Up @@ -2115,7 +2115,7 @@ public List<V1TimecardEvent> ListTimecardEvents (string timecardId)
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
localVarHeaderParams.Add("Square-Version", "2019-03-13");
if (timecardId != null) localVarQueryParams.Add("timecard_id", Configuration.ApiClient.ParameterToString(timecardId)); // query parameter
if (timecardId != null) localVarPathParams.Add("timecard_id", Configuration.ApiClient.ParameterToString(timecardId)); // path parameter

// authentication (oauth2) required
// oauth required
Expand Down Expand Up @@ -2190,7 +2190,7 @@ public async System.Threading.Tasks.Task<ApiResponse<List<V1TimecardEvent>>> Lis
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (timecardId != null) localVarQueryParams.Add("timecard_id", Configuration.ApiClient.ParameterToString(timecardId)); // query parameter
if (timecardId != null) localVarPathParams.Add("timecard_id", Configuration.ApiClient.ParameterToString(timecardId)); // path parameter

// authentication (oauth2) required
// oauth required
Expand Down
6 changes: 3 additions & 3 deletions src/Square.Connect/Client/Configuration.cs
Expand Up @@ -46,7 +46,7 @@ public class Configuration
string tempFolderPath = null,
string dateTimeFormat = null,
int timeout = 100000,
string userAgent = "Square-Connect-CSharp/2.20190313.0"
string userAgent = "Square-Connect-CSharp/2.20190313.1"
)
{
setApiClientUsingDefault(apiClient);
Expand Down Expand Up @@ -81,7 +81,7 @@ public Configuration(ApiClient apiClient)
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "2.15.0";
public const string Version = "2.15.1";

/// <summary>
/// Gets or sets the default Configuration.
Expand Down Expand Up @@ -318,7 +318,7 @@ public static String ToDebugReport()
.GetReferencedAssemblies()
.Where(x => x.Name == "System.Core").First().Version.ToString() + "\n";
report += " Version of the API: 2.0\n";
report += " SDK Package Version: 2.15.0\n";
report += " SDK Package Version: 2.15.1\n";

return report;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Square.Connect/Model/V1CashDrawerShift.cs
Expand Up @@ -84,7 +84,7 @@ public enum EventTypeEnum
/// <param name="ClosedCashMoney">The amount of money found in the cash drawer at the end of the shift by an auditing employee..</param>
/// <param name="Device">The device running Square Register that was connected to the cash drawer..</param>
/// <param name="Events">All of the events (payments, refunds, and so on) that involved the cash drawer during the shift..</param>
public V1CashDrawerShift(string Id = default(string), EventTypeEnum? EventType = default(EventTypeEnum?), string OpenedAt = default(string), bool? EndedAt = default(bool?), string ClosedAt = default(string), List<string> EmployeeIds = default(List<string>), string OpeningEmployeeId = default(string), string EndingEmployeeId = default(string), string ClosingEmployeeId = default(string), string Description = default(string), V1Money StartingCashMoney = default(V1Money), V1Money CashPaymentMoney = default(V1Money), V1Money CashRefundsMoney = default(V1Money), V1Money CashPaidInMoney = default(V1Money), V1Money CashPaidOutMoney = default(V1Money), V1Money ExpectedCashMoney = default(V1Money), V1Money ClosedCashMoney = default(V1Money), Device Device = default(Device), List<V1CashDrawerEvent> Events = default(List<V1CashDrawerEvent>))
public V1CashDrawerShift(string Id = default(string), EventTypeEnum? EventType = default(EventTypeEnum?), string OpenedAt = default(string), string EndedAt = default(string), string ClosedAt = default(string), List<string> EmployeeIds = default(List<string>), string OpeningEmployeeId = default(string), string EndingEmployeeId = default(string), string ClosingEmployeeId = default(string), string Description = default(string), V1Money StartingCashMoney = default(V1Money), V1Money CashPaymentMoney = default(V1Money), V1Money CashRefundsMoney = default(V1Money), V1Money CashPaidInMoney = default(V1Money), V1Money CashPaidOutMoney = default(V1Money), V1Money ExpectedCashMoney = default(V1Money), V1Money ClosedCashMoney = default(V1Money), Device Device = default(Device), List<V1CashDrawerEvent> Events = default(List<V1CashDrawerEvent>))
{
this.Id = Id;
this.EventType = EventType;
Expand Down Expand Up @@ -124,7 +124,7 @@ public V1CashDrawerShift(string Id = default(string), EventTypeEnum? EventType =
/// </summary>
/// <value>The time when the shift ended, in ISO 8601 format.</value>
[DataMember(Name="ended_at", EmitDefaultValue=false)]
public bool? EndedAt { get; set; }
public string EndedAt { get; set; }
/// <summary>
/// The time when the shift was closed, in ISO 8601 format.
/// </summary>
Expand Down
32 changes: 2 additions & 30 deletions src/Square.Connect/Model/V1ListTimecardEventsRequest.cs
Expand Up @@ -33,30 +33,10 @@ public partial class V1ListTimecardEventsRequest : IEquatable<V1ListTimecardEve
/// Initializes a new instance of the <see cref="V1ListTimecardEventsRequest" /> class.
/// </summary>
[JsonConstructorAttribute]
protected V1ListTimecardEventsRequest() { }
/// <summary>
/// Initializes a new instance of the <see cref="V1ListTimecardEventsRequest" /> class.
/// </summary>
/// <param name="TimecardId">The ID of the timecard to list events for. (required).</param>
public V1ListTimecardEventsRequest(string TimecardId = default(string))
public V1ListTimecardEventsRequest()
{
// to ensure "TimecardId" is required (not null)
if (TimecardId == null)
{
throw new InvalidDataException("TimecardId is a required property for V1ListTimecardEventsRequest and cannot be null");
}
else
{
this.TimecardId = TimecardId;
}
}

/// <summary>
/// The ID of the timecard to list events for.
/// </summary>
/// <value>The ID of the timecard to list events for.</value>
[DataMember(Name="timecard_id", EmitDefaultValue=false)]
public string TimecardId { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -65,7 +45,6 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class V1ListTimecardEventsRequest {\n");
sb.Append(" TimecardId: ").Append(TimecardId).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -101,12 +80,7 @@ public bool Equals(V1ListTimecardEventsRequest other)
if (other == null)
return false;

return
(
this.TimecardId == other.TimecardId ||
this.TimecardId != null &&
this.TimecardId.Equals(other.TimecardId)
);
return false;
}

/// <summary>
Expand All @@ -120,8 +94,6 @@ public override int GetHashCode()
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.TimecardId != null)
hash = hash * 59 + this.TimecardId.GetHashCode();
return hash;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Square.Connect/Properties/AssemblyInfo.cs
Expand Up @@ -28,6 +28,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.15.0")]
[assembly: AssemblyFileVersion("2.15.0")]
[assembly: AssemblyInformationalVersion("Square-Connect-CSharp/2.20190313.0")]
[assembly: AssemblyVersion("2.15.1")]
[assembly: AssemblyFileVersion("2.15.1")]
[assembly: AssemblyInformationalVersion("Square-Connect-CSharp/2.20190313.1")]
2 changes: 1 addition & 1 deletion src/Square.Connect/Square.Connect.nuspec
Expand Up @@ -6,7 +6,7 @@
<title>Square.Connect</title>

<!-- The package version number that is used when resolving dependencies -->
<version>2.15.0</version>
<version>2.15.1</version>

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

0 comments on commit 4325b64

Please sign in to comment.