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

Commit

Permalink
Release 2.20190313.1 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssung88 authored Mar 21, 2019
1 parent decfb03 commit 0d050f4
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 20 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## Version 2.20190313.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.20190313.0 (2019-03-13)

## New API: Labor API
Expand Down
2 changes: 1 addition & 1 deletion docs/V1CashDrawerShift.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**id** | **String** | The shift's unique ID. | [optional]
**event_type** | **String** | The shift's current state. See [V1CashDrawerShiftEventType](#type-v1cashdrawershifteventtype) for possible values | [optional]
**opened_at** | **String** | The time when the shift began, in ISO 8601 format. | [optional]
**ended_at** | **Boolean** | The time when the shift ended, in ISO 8601 format. | [optional]
**ended_at** | **String** | The time when the shift ended, in ISO 8601 format. | [optional]
**closed_at** | **String** | The time when the shift was closed, in ISO 8601 format. | [optional]
**employee_ids** | **[String]** | The IDs of all employees that were logged into Square Register at some point during the cash drawer shift. | [optional]
**opening_employee_id** | **String** | The ID of the employee that started the cash drawer shift. | [optional]
Expand Down
1 change: 0 additions & 1 deletion docs/V1ListTimecardEventsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**timecard_id** | **String** | The ID of the timecard to list events for. |


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "square-connect",
"version": "2.20190313.0",
"version": "2.20190313.1",
"description": "JavaScript client library for the Square Connect v2 API",
"keywords": [
"square",
Expand Down
4 changes: 2 additions & 2 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var querystring = require('querystring');

/**
* @module ApiClient
* @version 2.20190313.0
* @version 2.20190313.1
*/

/**
Expand Down Expand Up @@ -48,7 +48,7 @@ var exports = function() {
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'Square-Connect-Javascript/2.20190313.0'
'User-Agent': 'Square-Connect-Javascript/2.20190313.1'
};
/**
* The default HTTP timeout for all API calls.
Expand Down
2 changes: 1 addition & 1 deletion src/api/V1EmployeesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,9 @@ module.exports = function(apiClient) {


var pathParams = {
'timecard_id': timecardId
};
var queryParams = {
'timecard_id': timecardId
};
var headerParams = {
};
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ var V1TransactionsApi = require('./api/V1TransactionsApi');
* </pre>
* </p>
* @module index
* @version 2.20190313.0
* @version 2.20190313.1
*/
module.exports = {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/model/V1CashDrawerShift.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exports.constructFromObject = function(data, obj) {
obj['opened_at'] = ApiClient.convertToType(data['opened_at'], 'String');
}
if (data.hasOwnProperty('ended_at')) {
obj['ended_at'] = ApiClient.convertToType(data['ended_at'], 'Boolean');
obj['ended_at'] = ApiClient.convertToType(data['ended_at'], 'String');
}
if (data.hasOwnProperty('closed_at')) {
obj['closed_at'] = ApiClient.convertToType(data['closed_at'], 'String');
Expand Down Expand Up @@ -143,7 +143,7 @@ exports.prototype['event_type'] = undefined;
exports.prototype['opened_at'] = undefined;
/**
* The time when the shift ended, in ISO 8601 format.
* @member {Boolean} ended_at
* @member {String} ended_at
*/
exports.prototype['ended_at'] = undefined;
/**
Expand Down
12 changes: 1 addition & 11 deletions src/model/V1ListTimecardEventsRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ var ApiClient = require('../ApiClient');
*
* @alias module:model/V1ListTimecardEventsRequest
* @class
* @param timecardId {String} The ID of the timecard to list events for.
*/
var exports = function(timecardId) {
var exports = function() {
var _this = this;

_this['timecard_id'] = timecardId;
};

/**
Expand All @@ -45,18 +43,10 @@ exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();

if (data.hasOwnProperty('timecard_id')) {
obj['timecard_id'] = ApiClient.convertToType(data['timecard_id'], 'String');
}
}
return obj;
}

/**
* The ID of the timecard to list events for.
* @member {String} timecard_id
*/
exports.prototype['timecard_id'] = undefined;



Expand Down

0 comments on commit 0d050f4

Please sign in to comment.