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

Commit

Permalink
Merge pull request #13 from square/release/2.6.1
Browse files Browse the repository at this point in the history
Release 2.6.1
  • Loading branch information
Francisco Rojas authored Mar 28, 2018
2 parents d4ccc1c + c3f6118 commit 655f39c
Show file tree
Hide file tree
Showing 172 changed files with 188 additions and 184 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## Version 2.6.1 (2018-03-28)

* Updates user-agent header

## Version 2.6.0 (2018-03-27)

### Improvements: Orders API
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ oauth2.accessToken = "YOUR ACCESS TOKEN";

var api = new SquareConnect.LocationsApi();

api.listLocations.then(function(data) {
api.listLocations().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
Expand Down
2 changes: 1 addition & 1 deletion docs/OrdersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Method | HTTP request | Description
BatchRetrieveOrders

Retrieves a set of [Order](#type-order)s by their IDs. If a provided Order ID does not exist, it is ignored instead of resulting in an error.
Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error.

### Example
```javascript
Expand Down
4 changes: 2 additions & 2 deletions docs/V1SettlementEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Name | Type | Description | Notes

* `SUBSCRIPTION_FEE_REFUND` (value: `"SUBSCRIPTION_FEE_REFUND"`)

* `INCENTED_PAYMENT` (value: `"INCENTED_PAYMENT"`)

* `OTHER` (value: `"OTHER"`)

* `INCENTED_PAYMENT` (value: `"INCENTED_PAYMENT"`)

* `RETURNED_ACH_ENTRY` (value: `"RETURNED_ACH_ENTRY"`)

* `RETURNED_SQUARE_275` (value: `"RETURNED_SQUARE_275"`)
Expand Down
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.6.0",
"version": "2.6.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.6.0
* @version 2.6.1
*/

/**
Expand Down Expand Up @@ -48,7 +48,7 @@ var exports = function() {
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'Square-Connect-Javascript/2.6.0'
'User-Agent': 'Square-Connect-Javascript/2.6.1'
};
/**
* The default HTTP timeout for all API calls.
Expand Down
2 changes: 1 addition & 1 deletion src/api/ApplePayApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var RegisterDomainResponse = require('../model/RegisterDomainResponse');
/**
* ApplePay service.
* @module api/ApplePayApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/CatalogApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var UpsertCatalogObjectResponse = require('../model/UpsertCatalogObjectResponse'
/**
* Catalog service.
* @module api/CatalogApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/CheckoutApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var CreateCheckoutResponse = require('../model/CreateCheckoutResponse');
/**
* Checkout service.
* @module api/CheckoutApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/CustomersApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var UpdateCustomerResponse = require('../model/UpdateCustomerResponse');
/**
* Customers service.
* @module api/CustomersApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/LocationsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var ListLocationsResponse = require('../model/ListLocationsResponse');
/**
* Locations service.
* @module api/LocationsApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
6 changes: 3 additions & 3 deletions src/api/OrdersApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var CreateOrderResponse = require('../model/CreateOrderResponse');
/**
* Orders service.
* @module api/OrdersApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand All @@ -37,7 +37,7 @@ module.exports = function(apiClient) {

/**
* BatchRetrieveOrders
* Retrieves a set of [Order](#type-order)s by their IDs. If a provided Order ID does not exist, it is ignored instead of resulting in an error.
* Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error.
* @param {String} locationId The ID of the orders' associated location.
* @param {module:model/BatchRetrieveOrdersRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchRetrieveOrdersResponse} and HTTP response
Expand Down Expand Up @@ -80,7 +80,7 @@ module.exports = function(apiClient) {

/**
* BatchRetrieveOrders
* Retrieves a set of [Order](#type-order)s by their IDs. If a provided Order ID does not exist, it is ignored instead of resulting in an error.
* Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error.
* @param {String} locationId The ID of the orders' associated location.
* @param {module:model/BatchRetrieveOrdersRequest} body An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchRetrieveOrdersResponse}
Expand Down
2 changes: 1 addition & 1 deletion src/api/ReportingApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var ListAdditionalRecipientReceivablesResponse = require('../model/ListAdditiona
/**
* Reporting service.
* @module api/ReportingApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/TransactionsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var VoidTransactionResponse = require('../model/VoidTransactionResponse');
/**
* Transactions service.
* @module api/TransactionsApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/V1EmployeesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var V1TimecardEvent = require('../model/V1TimecardEvent');
/**
* V1Employees service.
* @module api/V1EmployeesApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/V1ItemsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var V1Variation = require('../model/V1Variation');
/**
* V1Items service.
* @module api/V1ItemsApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/V1LocationsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var V1Merchant = require('../model/V1Merchant');
/**
* V1Locations service.
* @module api/V1LocationsApi
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
8 changes: 4 additions & 4 deletions src/api/V1TransactionsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ var V1UpdateOrderRequest = require('../model/V1UpdateOrderRequest');
/**
* V1Transactions service.
* @module api/V1TransactionsApi
* @version 2.6.0
* @version 2.6.1
*/

/**
* Constructs a new V1TransactionsApi.
* Constructs a new V1TransactionsApi.
* @alias module:api/V1TransactionsApi
* @class
* @param {module:ApiClient} apiClient Optional API client implementation to use,
Expand Down Expand Up @@ -350,7 +350,7 @@ module.exports = function(apiClient) {

/**
* Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
* Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
* Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
* @param {String} locationId The ID of the location to list settlements for. If you specify me, this endpoint returns payments aggregated from all of the business's locations.
* @param {Object} opts Optional parameters
* @param {module:model/String} opts.order TThe order in which payments are listed in the response.
Expand Down Expand Up @@ -401,7 +401,7 @@ module.exports = function(apiClient) {

/**
* Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
* Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
* Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
* @param {String} locationId The ID of the location to list settlements for. If you specify me, this endpoint returns payments aggregated from all of the business's locations.
* @param {Object} opts Optional parameters
* @param {module:model/String} opts.order TThe order in which payments are listed in the response.
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ var V1TransactionsApi = require('./api/V1TransactionsApi');
* </pre>
* </p>
* @module index
* @version 2.6.0
* @version 2.6.1
*/
module.exports = {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/AdditionalRecipient.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Money = require('./Money');
/**
* The AdditionalRecipient model module.
* @module model/AdditionalRecipient
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/AdditionalRecipientReceivable.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var Money = require('./Money');
/**
* The AdditionalRecipientReceivable model module.
* @module model/AdditionalRecipientReceivable
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/AdditionalRecipientReceivableRefund.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Money = require('./Money');
/**
* The AdditionalRecipientReceivableRefund model module.
* @module model/AdditionalRecipientReceivableRefund
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/Address.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ApiClient = require('../ApiClient');
/**
* The Address model module.
* @module model/Address
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/BatchDeleteCatalogObjectsRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ApiClient = require('../ApiClient');
/**
* The BatchDeleteCatalogObjectsRequest model module.
* @module model/BatchDeleteCatalogObjectsRequest
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/BatchDeleteCatalogObjectsResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Error = require('./Error');
/**
* The BatchDeleteCatalogObjectsResponse model module.
* @module model/BatchDeleteCatalogObjectsResponse
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/BatchRetrieveCatalogObjectsRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ApiClient = require('../ApiClient');
/**
* The BatchRetrieveCatalogObjectsRequest model module.
* @module model/BatchRetrieveCatalogObjectsRequest
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/BatchRetrieveCatalogObjectsResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var Error = require('./Error');
/**
* The BatchRetrieveCatalogObjectsResponse model module.
* @module model/BatchRetrieveCatalogObjectsResponse
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/BatchRetrieveOrdersRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ApiClient = require('../ApiClient');
/**
* The BatchRetrieveOrdersRequest model module.
* @module model/BatchRetrieveOrdersRequest
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/BatchRetrieveOrdersResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var Order = require('./Order');
/**
* The BatchRetrieveOrdersResponse model module.
* @module model/BatchRetrieveOrdersResponse
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/BatchUpsertCatalogObjectsRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var CatalogObjectBatch = require('./CatalogObjectBatch');
/**
* The BatchUpsertCatalogObjectsRequest model module.
* @module model/BatchUpsertCatalogObjectsRequest
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/BatchUpsertCatalogObjectsResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var Error = require('./Error');
/**
* The BatchUpsertCatalogObjectsResponse model module.
* @module model/BatchUpsertCatalogObjectsResponse
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/CaptureTransactionRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ApiClient = require('../ApiClient');
/**
* The CaptureTransactionRequest model module.
* @module model/CaptureTransactionRequest
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/CaptureTransactionResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Error = require('./Error');
/**
* The CaptureTransactionResponse model module.
* @module model/CaptureTransactionResponse
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Address = require('./Address');
/**
* The Card model module.
* @module model/Card
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/CatalogCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ApiClient = require('../ApiClient');
/**
* The CatalogCategory model module.
* @module model/CatalogCategory
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/CatalogDiscount.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Money = require('./Money');
/**
* The CatalogDiscount model module.
* @module model/CatalogDiscount
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/CatalogIdMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ApiClient = require('../ApiClient');
/**
* The CatalogIdMapping model module.
* @module model/CatalogIdMapping
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/CatalogInfoRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ApiClient = require('../ApiClient');
/**
* The CatalogInfoRequest model module.
* @module model/CatalogInfoRequest
* @version 2.6.0
* @version 2.6.1
*/

/**
Expand Down
Loading

0 comments on commit 655f39c

Please sign in to comment.