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

Commit

Permalink
Release 2.20181212.0 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssung88 authored Dec 12, 2018
1 parent 8691afa commit 3ae682c
Show file tree
Hide file tree
Showing 16 changed files with 57 additions and 51 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## Version 2.20181212.0 (2018-12-12)

## Improvement: ListCustomers return set expanded

Requests to the ListCustomers endpoint now returns all available customer profiles. Previously, ListCustomers only returned customer profiles explicitly created through the Customers API or Square Point of Sale.

## Version 2.20181205.0 (2018-12-05)

## New feature: Idempotent customer profile creation in Connect v2
Expand Down
2 changes: 1 addition & 1 deletion docs/CustomersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Method | HTTP request | Description
CreateCustomer

Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number` This endpoint does not accept an idempotency key. If you accidentally create a duplicate customer, you can delete it with the [DeleteCustomer](#endpoint-deletecustomer) endpoint.
Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number`

### Example
```javascript
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.20181205.0",
"version": "2.20181212.0",
"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.20181205.0
* @version 2.20181212.0
*/

/**
Expand Down Expand Up @@ -48,7 +48,7 @@ var exports = function() {
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'Square-Connect-Javascript/2.20181205.0'
'User-Agent': 'Square-Connect-Javascript/2.20181212.0'
};
/**
* 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 @@ -53,7 +53,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
22 changes: 11 additions & 11 deletions src/api/CatalogApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -121,7 +121,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -173,7 +173,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -219,7 +219,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -271,7 +271,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -323,7 +323,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -382,7 +382,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -436,7 +436,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -488,7 +488,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -540,7 +540,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -592,7 +592,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
2 changes: 1 addition & 1 deletion src/api/CheckoutApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
20 changes: 10 additions & 10 deletions src/api/CustomersApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = function(apiClient) {

/**
* CreateCustomer
* Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number` This endpoint does not accept an idempotency key. If you accidentally create a duplicate customer, you can delete it with the [DeleteCustomer](#endpoint-deletecustomer) endpoint.
* Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number`
* @param {module:model/CreateCustomerRequest} 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/CreateCustomerResponse} and HTTP response
*/
Expand All @@ -63,7 +63,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand All @@ -82,7 +82,7 @@ module.exports = function(apiClient) {

/**
* CreateCustomer
* Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number` This endpoint does not accept an idempotency key. If you accidentally create a duplicate customer, you can delete it with the [DeleteCustomer](#endpoint-deletecustomer) endpoint.
* Creates a new customer for a business, which can have associated cards on file. You must provide __at least one__ of the following values in your request to this endpoint: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number`
* @param {module:model/CreateCustomerRequest} 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/CreateCustomerResponse}
*/
Expand Down Expand Up @@ -122,7 +122,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -176,7 +176,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -236,7 +236,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -291,7 +291,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -347,7 +347,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -399,7 +399,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -458,7 +458,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
14 changes: 7 additions & 7 deletions src/api/InventoryApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -113,7 +113,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -165,7 +165,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -218,7 +218,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -277,7 +277,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -339,7 +339,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -395,7 +395,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
2 changes: 1 addition & 1 deletion src/api/LocationsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
2 changes: 1 addition & 1 deletion src/api/MobileAuthorizationApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
6 changes: 3 additions & 3 deletions src/api/OAuthApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -116,7 +116,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -169,7 +169,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
4 changes: 2 additions & 2 deletions src/api/OrdersApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -122,7 +122,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
4 changes: 2 additions & 2 deletions src/api/ReportingApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down Expand Up @@ -132,7 +132,7 @@ module.exports = function(apiClient) {
};
var headerParams = {
};
headerParams['Square-Version'] = '2018-12-05';
headerParams['Square-Version'] = '2018-12-12';

var formParams = {
};
Expand Down
Loading

0 comments on commit 3ae682c

Please sign in to comment.