diff --git a/README.md b/README.md
index 85c1a3c9..14cd84e0 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ of your imagination.
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
- API version: 1.0
-- Package version: 3.2.3
+- Package version: 3.3.3
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
For more information, please visit [https://documentation.ordercloud.io](https://documentation.ordercloud.io/platform-guides/getting-started/introduction-to-ordercloud)
diff --git a/dist/ordercloud-javascript-sdk.js b/dist/ordercloud-javascript-sdk.js
index 3fcb1e22..c06fead2 100644
--- a/dist/ordercloud-javascript-sdk.js
+++ b/dist/ordercloud-javascript-sdk.js
@@ -4332,46 +4332,23 @@ exports.cleanHeader = function(header, changesOrigin){
/**
* Applies authentication headers to the request.
* @param {Object} request The request object created by a superagent()
call.
- * @param {Array.} authNames An array of authentication method names.
+ * @param {String} accessToken An alternative token to the one stored in the sdk instance (useful for impersonation)
*/
- exports.prototype.applyAuthToRequest = function(request, authNames) {
+ exports.prototype.applyAuthToRequest = function(request, accessToken) {
var _this = this;
- authNames.forEach(function(authName) {
- var auth = _this.authentications[authName];
- switch (auth.type) {
- case 'basic':
- if (auth.username || auth.password) {
- request.auth(auth.username || '', auth.password || '');
- }
- break;
- case 'apiKey':
- if (auth.apiKey) {
- var data = {};
- if (auth.apiKeyPrefix) {
- data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;
- } else {
- data[auth.name] = auth.apiKey;
- }
- if (auth['in'] === 'header') {
- request.set(data);
- } else {
- request.query(data);
- }
- }
- break;
- case 'oauth2':
- if (auth.accessToken) {
- if (!_this.impersonation) {
- request.set({'Authorization': 'Bearer ' + auth.accessToken});
- } else {
- request.set({'Authorization': 'Bearer ' + auth.impersonationToken});
- }
- }
- break;
- default:
- throw new Error('Unknown authentication type: ' + auth.type);
- }
- });
+ var auth = _this.authentications['oauth2'];
+ var token;
+
+ if(accessToken) {
+ token = accessToken;
+ } else if(_this.impersonation) {
+ token = auth.impersonationToken;
+ } else {
+ token = auth.accessToken;
+ }
+
+ _this.impersonation = false; // reset impersonation boolean
+ request.set({'Authorization': 'Bearer ' + token});
};
/**
@@ -4406,23 +4383,23 @@ exports.cleanHeader = function(header, changesOrigin){
* @param {Object.} headerParams A map of header parameters and their values.
* @param {Object.} formParams A map of form parameters and their values.
* @param {Object} bodyParam The value to pass as the request body.
- * @param {Array.} authNames An array of authentication type names.
* @param {Array.} contentTypes An array of request MIME types.
* @param {Array.} accepts An array of acceptable response MIME types.
* @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the
* constructor for a complex type.
+ * @param {String} accessToken An alternative token to the one stored in the sdk instance (useful for impersonation)
* @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.
*/
exports.prototype.callApi = function callApi(path, httpMethod, pathParams,
- queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
- returnType) {
+ queryParams, headerParams, formParams, bodyParam, contentTypes, accepts,
+ returnType, accessToken) {
var _this = this;
var url = this.buildUrl(path, pathParams);
var request = superagent(httpMethod, url);
// apply authentications
- this.applyAuthToRequest(request, authNames);
+ this.applyAuthToRequest(request, accessToken);
// set query parameters
request.query(this.normalizeParams(queryParams));
@@ -4475,13 +4452,9 @@ exports.cleanHeader = function(header, changesOrigin){
return new Promise(function(resolve, reject) {
request.end(function(error, response) {
if (error) {
- // reset impersonation boolean
- _this.impersonation = false;
reject(error);
} else {
var data = _this.deserialize(response, returnType);
- // reset impersonation boolean
- _this.impersonation = false;
resolve(data);
}
});
@@ -4489,7 +4462,7 @@ exports.cleanHeader = function(header, changesOrigin){
};
exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
- queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
+ queryParams, headerParams, formParams, bodyParam, contentTypes, accepts,
returnType) {
var _this = this;
@@ -4707,7 +4680,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Create = function(buyerID, address) {
+ this.Create = function(buyerID, address, accessToken ) {
var postBody = address;
// verify the required parameter 'buyerID' is set
@@ -4731,7 +4704,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -4739,7 +4711,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -4749,7 +4721,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} addressID ID of the address.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(buyerID, addressID) {
+ this.Delete = function(buyerID, addressID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -4774,7 +4746,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -4782,7 +4753,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses/{addressID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -4795,7 +4766,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(buyerID, addressID, opts) {
+ this.DeleteAssignment = function(buyerID, addressID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -4823,7 +4794,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -4831,7 +4801,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses/{addressID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -4841,7 +4811,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} addressID ID of the address.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Get = function(buyerID, addressID) {
+ this.Get = function(buyerID, addressID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -4866,7 +4836,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -4874,7 +4843,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses/{addressID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -4890,7 +4859,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddress}
*/
- this.List = function(buyerID, opts) {
+ this.List = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -4916,7 +4885,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListAddress;
@@ -4924,7 +4892,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -4942,7 +4910,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddressAssignment}
*/
- this.ListAssignments = function(buyerID, opts) {
+ this.ListAssignments = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -4970,7 +4938,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListAddressAssignment;
@@ -4978,7 +4945,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -4989,7 +4956,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} partialAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Patch = function(buyerID, addressID, partialAddress) {
+ this.Patch = function(buyerID, addressID, partialAddress, accessToken ) {
var postBody = partialAddress;
// verify the required parameter 'buyerID' is set
@@ -5019,7 +4986,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -5027,7 +4993,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses/{addressID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5038,7 +5004,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Save = function(buyerID, addressID, address) {
+ this.Save = function(buyerID, addressID, address, accessToken ) {
var postBody = address;
// verify the required parameter 'buyerID' is set
@@ -5068,7 +5034,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -5076,7 +5041,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses/{addressID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5086,7 +5051,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/AddressAssignment} addressAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(buyerID, addressAssignment) {
+ this.SaveAssignment = function(buyerID, addressAssignment, accessToken ) {
var postBody = addressAssignment;
// verify the required parameter 'buyerID' is set
@@ -5110,7 +5075,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -5118,7 +5082,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/addresses/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -5178,7 +5142,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Create = function(address) {
+ this.Create = function(address, accessToken ) {
var postBody = address;
// verify the required parameter 'address' is set
@@ -5196,7 +5160,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -5204,7 +5167,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/addresses', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5213,7 +5176,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} addressID ID of the address.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(addressID) {
+ this.Delete = function(addressID, accessToken ) {
var postBody = null;
// verify the required parameter 'addressID' is set
@@ -5232,7 +5195,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -5240,7 +5202,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/addresses/{addressID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5249,7 +5211,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} addressID ID of the address.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Get = function(addressID) {
+ this.Get = function(addressID, accessToken ) {
var postBody = null;
// verify the required parameter 'addressID' is set
@@ -5268,7 +5230,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -5276,7 +5237,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/addresses/{addressID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5291,7 +5252,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddress}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -5311,7 +5272,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListAddress;
@@ -5319,7 +5279,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/addresses', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5329,7 +5289,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} partialAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Patch = function(addressID, partialAddress) {
+ this.Patch = function(addressID, partialAddress, accessToken ) {
var postBody = partialAddress;
// verify the required parameter 'addressID' is set
@@ -5353,7 +5313,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -5361,7 +5320,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/addresses/{addressID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5371,7 +5330,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Save = function(addressID, address) {
+ this.Save = function(addressID, address, accessToken ) {
var postBody = address;
// verify the required parameter 'addressID' is set
@@ -5395,7 +5354,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -5403,7 +5361,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/addresses/{addressID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -5463,7 +5421,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} userGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Create = function(userGroup) {
+ this.Create = function(userGroup, accessToken ) {
var postBody = userGroup;
// verify the required parameter 'userGroup' is set
@@ -5481,7 +5439,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -5489,7 +5446,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5498,7 +5455,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(userGroupID) {
+ this.Delete = function(userGroupID, accessToken ) {
var postBody = null;
// verify the required parameter 'userGroupID' is set
@@ -5517,7 +5474,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -5525,7 +5481,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups/{userGroupID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5535,7 +5491,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteUserAssignment = function(userGroupID, userID) {
+ this.DeleteUserAssignment = function(userGroupID, userID, accessToken ) {
var postBody = null;
// verify the required parameter 'userGroupID' is set
@@ -5560,7 +5516,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -5568,7 +5523,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups/{userGroupID}/assignments/{userID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5577,7 +5532,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Get = function(userGroupID) {
+ this.Get = function(userGroupID, accessToken ) {
var postBody = null;
// verify the required parameter 'userGroupID' is set
@@ -5596,7 +5551,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -5604,7 +5558,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups/{userGroupID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5619,7 +5573,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUserGroup}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -5639,7 +5593,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUserGroup;
@@ -5647,7 +5600,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5660,7 +5613,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUserGroupAssignment}
*/
- this.ListUserAssignments = function(opts) {
+ this.ListUserAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -5678,7 +5631,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUserGroupAssignment;
@@ -5686,7 +5638,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5696,7 +5648,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} partialUserGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Patch = function(userGroupID, partialUserGroup) {
+ this.Patch = function(userGroupID, partialUserGroup, accessToken ) {
var postBody = partialUserGroup;
// verify the required parameter 'userGroupID' is set
@@ -5720,7 +5672,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -5728,7 +5679,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups/{userGroupID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5738,7 +5689,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} userGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Save = function(userGroupID, userGroup) {
+ this.Save = function(userGroupID, userGroup, accessToken ) {
var postBody = userGroup;
// verify the required parameter 'userGroupID' is set
@@ -5762,7 +5713,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -5770,7 +5720,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups/{userGroupID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5779,7 +5729,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroupAssignment} userGroupAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveUserAssignment = function(userGroupAssignment) {
+ this.SaveUserAssignment = function(userGroupAssignment, accessToken ) {
var postBody = userGroupAssignment;
// verify the required parameter 'userGroupAssignment' is set
@@ -5797,7 +5747,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -5805,7 +5754,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/usergroups/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -5865,7 +5814,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} user
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Create = function(user) {
+ this.Create = function(user, accessToken ) {
var postBody = user;
// verify the required parameter 'user' is set
@@ -5883,7 +5832,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -5891,7 +5839,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/adminusers', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5900,7 +5848,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(userID) {
+ this.Delete = function(userID, accessToken ) {
var postBody = null;
// verify the required parameter 'userID' is set
@@ -5919,7 +5867,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -5927,7 +5874,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/adminusers/{userID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5936,7 +5883,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Get = function(userID) {
+ this.Get = function(userID, accessToken ) {
var postBody = null;
// verify the required parameter 'userID' is set
@@ -5955,7 +5902,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -5963,7 +5909,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/adminusers/{userID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -5978,7 +5924,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUser}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -5998,7 +5944,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUser;
@@ -6006,7 +5951,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/adminusers', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6016,7 +5961,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} partialUser
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Patch = function(userID, partialUser) {
+ this.Patch = function(userID, partialUser, accessToken ) {
var postBody = partialUser;
// verify the required parameter 'userID' is set
@@ -6040,7 +5985,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -6048,7 +5992,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/adminusers/{userID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6058,7 +6002,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} user
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Save = function(userID, user) {
+ this.Save = function(userID, user, accessToken ) {
var postBody = user;
// verify the required parameter 'userID' is set
@@ -6082,7 +6026,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -6090,7 +6033,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/adminusers/{userID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -6150,7 +6093,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ApiClient} apiClient
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApiClient}
*/
- this.Create = function(apiClient) {
+ this.Create = function(apiClient, accessToken ) {
var postBody = apiClient;
// verify the required parameter 'apiClient' is set
@@ -6168,7 +6111,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ApiClient;
@@ -6176,7 +6118,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/apiclients', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6185,7 +6127,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} apiClientID ID of the api client.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(apiClientID) {
+ this.Delete = function(apiClientID, accessToken ) {
var postBody = null;
// verify the required parameter 'apiClientID' is set
@@ -6204,7 +6146,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -6212,7 +6153,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/apiclients/{apiClientID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6222,7 +6163,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} buyerID ID of the buyer.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteBuyerAssignment = function(apiClientID, buyerID) {
+ this.DeleteBuyerAssignment = function(apiClientID, buyerID, accessToken ) {
var postBody = null;
// verify the required parameter 'apiClientID' is set
@@ -6247,7 +6188,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -6255,7 +6195,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/ApiClients/Assignments/{apiClientID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6265,7 +6205,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} supplierID ID of the supplier.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteSupplierAssignment = function(apiClientID, supplierID) {
+ this.DeleteSupplierAssignment = function(apiClientID, supplierID, accessToken ) {
var postBody = null;
// verify the required parameter 'apiClientID' is set
@@ -6290,7 +6230,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -6298,7 +6237,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/ApiClients/Assignments/{apiClientID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6307,7 +6246,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} apiClientID ID of the api client.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApiClient}
*/
- this.Get = function(apiClientID) {
+ this.Get = function(apiClientID, accessToken ) {
var postBody = null;
// verify the required parameter 'apiClientID' is set
@@ -6326,7 +6265,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ApiClient;
@@ -6334,7 +6272,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/apiclients/{apiClientID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6349,7 +6287,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListApiClient}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -6369,7 +6307,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListApiClient;
@@ -6377,7 +6314,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/apiclients', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6391,7 +6328,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListApiClientAssignment}
*/
- this.ListAssignments = function(opts) {
+ this.ListAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -6410,7 +6347,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListApiClientAssignment;
@@ -6418,7 +6354,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/apiclients/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6428,7 +6364,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ApiClient} partialApiClient
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApiClient}
*/
- this.Patch = function(apiClientID, partialApiClient) {
+ this.Patch = function(apiClientID, partialApiClient, accessToken ) {
var postBody = partialApiClient;
// verify the required parameter 'apiClientID' is set
@@ -6452,7 +6388,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ApiClient;
@@ -6460,7 +6395,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/apiclients/{apiClientID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6470,7 +6405,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ApiClient} apiClient
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApiClient}
*/
- this.Save = function(apiClientID, apiClient) {
+ this.Save = function(apiClientID, apiClient, accessToken ) {
var postBody = apiClient;
// verify the required parameter 'apiClientID' is set
@@ -6494,7 +6429,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ApiClient;
@@ -6502,7 +6436,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/apiclients/{apiClientID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6511,7 +6445,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ApiClientAssignment} apiClientAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(apiClientAssignment) {
+ this.SaveAssignment = function(apiClientAssignment, accessToken ) {
var postBody = apiClientAssignment;
// verify the required parameter 'apiClientAssignment' is set
@@ -6529,7 +6463,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -6537,7 +6470,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/apiclients/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -6598,7 +6531,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ApprovalRule} approvalRule
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApprovalRule}
*/
- this.Create = function(buyerID, approvalRule) {
+ this.Create = function(buyerID, approvalRule, accessToken ) {
var postBody = approvalRule;
// verify the required parameter 'buyerID' is set
@@ -6622,7 +6555,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ApprovalRule;
@@ -6630,7 +6562,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/approvalrules', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6640,7 +6572,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} approvalRuleID ID of the approval rule.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(buyerID, approvalRuleID) {
+ this.Delete = function(buyerID, approvalRuleID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -6665,7 +6597,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -6673,7 +6604,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/approvalrules/{approvalRuleID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6683,7 +6614,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} approvalRuleID ID of the approval rule.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApprovalRule}
*/
- this.Get = function(buyerID, approvalRuleID) {
+ this.Get = function(buyerID, approvalRuleID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -6708,7 +6639,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ApprovalRule;
@@ -6716,7 +6646,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/approvalrules/{approvalRuleID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6732,7 +6662,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListApprovalRule}
*/
- this.List = function(buyerID, opts) {
+ this.List = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -6758,7 +6688,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListApprovalRule;
@@ -6766,7 +6695,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/approvalrules', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6777,7 +6706,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ApprovalRule} partialApprovalRule
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApprovalRule}
*/
- this.Patch = function(buyerID, approvalRuleID, partialApprovalRule) {
+ this.Patch = function(buyerID, approvalRuleID, partialApprovalRule, accessToken ) {
var postBody = partialApprovalRule;
// verify the required parameter 'buyerID' is set
@@ -6807,7 +6736,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ApprovalRule;
@@ -6815,7 +6743,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/approvalrules/{approvalRuleID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -6826,7 +6754,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ApprovalRule} approvalRule
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApprovalRule}
*/
- this.Save = function(buyerID, approvalRuleID, approvalRule) {
+ this.Save = function(buyerID, approvalRuleID, approvalRule, accessToken ) {
var postBody = approvalRule;
// verify the required parameter 'buyerID' is set
@@ -6856,7 +6784,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ApprovalRule;
@@ -6864,7 +6791,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/approvalrules/{approvalRuleID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -6949,7 +6876,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var headerParams = {};
var formParams = {};
- var authNames = null;
var contentTypes = ['application/x-www-form-urlencoded'];
var accepts = ['application/json'];
var returnType = AccessToken;
@@ -6957,7 +6883,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callAuth(
'/oauth/token', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType
);
}
@@ -6996,7 +6922,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var headerParams = {};
var formParams = {};
- var authNames = null;
var contentTypes = ['application/x-www-form-urlencoded'];
var accepts = ['application/json'];
var returnType = AccessToken;
@@ -7004,7 +6929,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callAuth(
'/oauth/token', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType
);
}
@@ -7033,7 +6958,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var headerParams = {};
var formParams = {};
- var authNames = null;
var contentTypes = ['application/x-www-form-urlencoded'];
var accepts = ['application/json'];
var returnType = AccessToken;
@@ -7041,7 +6965,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callAuth(
'/oauth/token', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType
);
}
@@ -7070,7 +6994,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var headerParams = {};
var formParams = {};
- var authNames = null;
var contentTypes = ['application/x-www-form-urlencoded'];
var accepts = ['application/json'];
var returnType = AccessToken;
@@ -7078,7 +7001,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callAuth(
'/oauth/token', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType
);
}
@@ -7102,7 +7025,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var headerParams = {};
var formParams = {};
- var authNames = null;
var contentTypes = ['application/x-www-form-urlencoded'];
var accepts = ['application/json'];
var returnType = AccessToken;
@@ -7110,7 +7032,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callAuth(
'/oauth/token', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType
);
}
};
@@ -7169,7 +7091,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Buyer} buyer
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Buyer}
*/
- this.Create = function(buyer) {
+ this.Create = function(buyer, accessToken ) {
var postBody = buyer;
// verify the required parameter 'buyer' is set
@@ -7187,7 +7109,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Buyer;
@@ -7195,7 +7116,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7204,7 +7125,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} buyerID ID of the buyer.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(buyerID) {
+ this.Delete = function(buyerID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -7223,7 +7144,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -7231,7 +7151,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7240,7 +7160,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} buyerID ID of the buyer.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Buyer}
*/
- this.Get = function(buyerID) {
+ this.Get = function(buyerID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -7259,7 +7179,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Buyer;
@@ -7267,7 +7186,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7282,7 +7201,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBuyer}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -7302,7 +7221,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListBuyer;
@@ -7310,7 +7228,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7320,7 +7238,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Buyer} partialBuyer
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Buyer}
*/
- this.Patch = function(buyerID, partialBuyer) {
+ this.Patch = function(buyerID, partialBuyer, accessToken ) {
var postBody = partialBuyer;
// verify the required parameter 'buyerID' is set
@@ -7344,7 +7262,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Buyer;
@@ -7352,7 +7269,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7362,7 +7279,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Buyer} buyer
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Buyer}
*/
- this.Save = function(buyerID, buyer) {
+ this.Save = function(buyerID, buyer, accessToken ) {
var postBody = buyer;
// verify the required parameter 'buyerID' is set
@@ -7386,7 +7303,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Buyer;
@@ -7394,7 +7310,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -7454,7 +7370,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Catalog} catalog
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Catalog}
*/
- this.Create = function(catalog) {
+ this.Create = function(catalog, accessToken ) {
var postBody = catalog;
// verify the required parameter 'catalog' is set
@@ -7472,7 +7388,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Catalog;
@@ -7480,7 +7395,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7489,7 +7404,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} catalogID ID of the catalog.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(catalogID) {
+ this.Delete = function(catalogID, accessToken ) {
var postBody = null;
// verify the required parameter 'catalogID' is set
@@ -7508,7 +7423,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -7516,7 +7430,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7526,7 +7440,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} buyerID ID of the buyer.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(catalogID, buyerID) {
+ this.DeleteAssignment = function(catalogID, buyerID, accessToken ) {
var postBody = null;
// verify the required parameter 'catalogID' is set
@@ -7551,7 +7465,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -7559,7 +7472,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7569,7 +7482,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} productID ID of the product.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteProductAssignment = function(catalogID, productID) {
+ this.DeleteProductAssignment = function(catalogID, productID, accessToken ) {
var postBody = null;
// verify the required parameter 'catalogID' is set
@@ -7594,7 +7507,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -7602,7 +7514,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/productassignments/{productID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7611,7 +7523,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} catalogID ID of the catalog.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Catalog}
*/
- this.Get = function(catalogID) {
+ this.Get = function(catalogID, accessToken ) {
var postBody = null;
// verify the required parameter 'catalogID' is set
@@ -7630,7 +7542,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Catalog;
@@ -7638,7 +7549,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7653,7 +7564,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCatalog}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -7673,7 +7584,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCatalog;
@@ -7681,7 +7591,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7694,7 +7604,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCatalogAssignment}
*/
- this.ListAssignments = function(opts) {
+ this.ListAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -7712,7 +7622,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCatalogAssignment;
@@ -7720,7 +7629,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7733,7 +7642,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListProductCatalogAssignment}
*/
- this.ListProductAssignments = function(opts) {
+ this.ListProductAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -7751,7 +7660,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListProductCatalogAssignment;
@@ -7759,7 +7667,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/productassignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7769,7 +7677,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Catalog} partialCatalog
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Catalog}
*/
- this.Patch = function(catalogID, partialCatalog) {
+ this.Patch = function(catalogID, partialCatalog, accessToken ) {
var postBody = partialCatalog;
// verify the required parameter 'catalogID' is set
@@ -7793,7 +7701,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Catalog;
@@ -7801,7 +7708,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7811,7 +7718,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Catalog} catalog
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Catalog}
*/
- this.Save = function(catalogID, catalog) {
+ this.Save = function(catalogID, catalog, accessToken ) {
var postBody = catalog;
// verify the required parameter 'catalogID' is set
@@ -7835,7 +7742,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Catalog;
@@ -7843,7 +7749,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7852,7 +7758,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CatalogAssignment} catalogAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(catalogAssignment) {
+ this.SaveAssignment = function(catalogAssignment, accessToken ) {
var postBody = catalogAssignment;
// verify the required parameter 'catalogAssignment' is set
@@ -7870,7 +7776,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -7878,7 +7783,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -7887,7 +7792,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ProductCatalogAssignment} productCatalogAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveProductAssignment = function(productCatalogAssignment) {
+ this.SaveProductAssignment = function(productCatalogAssignment, accessToken ) {
var postBody = productCatalogAssignment;
// verify the required parameter 'productCatalogAssignment' is set
@@ -7905,7 +7810,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -7913,7 +7817,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/productassignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -7974,7 +7878,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Category} category
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Category}
*/
- this.Create = function(catalogID, category) {
+ this.Create = function(catalogID, category, accessToken ) {
var postBody = category;
// verify the required parameter 'catalogID' is set
@@ -7998,7 +7902,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Category;
@@ -8006,7 +7909,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8016,7 +7919,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} categoryID ID of the category.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(catalogID, categoryID) {
+ this.Delete = function(catalogID, categoryID, accessToken ) {
var postBody = null;
// verify the required parameter 'catalogID' is set
@@ -8041,7 +7944,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -8049,7 +7951,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/{categoryID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8063,7 +7965,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(catalogID, categoryID, buyerID, opts) {
+ this.DeleteAssignment = function(catalogID, categoryID, buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -8097,7 +7999,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -8105,7 +8006,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/{categoryID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8116,7 +8017,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} productID ID of the product.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteProductAssignment = function(catalogID, categoryID, productID) {
+ this.DeleteProductAssignment = function(catalogID, categoryID, productID, accessToken ) {
var postBody = null;
// verify the required parameter 'catalogID' is set
@@ -8147,7 +8048,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -8155,7 +8055,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/{categoryID}/productassignments/{productID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8165,7 +8065,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} categoryID ID of the category.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Category}
*/
- this.Get = function(catalogID, categoryID) {
+ this.Get = function(catalogID, categoryID, accessToken ) {
var postBody = null;
// verify the required parameter 'catalogID' is set
@@ -8190,7 +8090,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Category;
@@ -8198,7 +8097,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/{categoryID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8215,7 +8114,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCategory}
*/
- this.List = function(catalogID, opts) {
+ this.List = function(catalogID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -8242,7 +8141,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCategory;
@@ -8250,7 +8148,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8267,7 +8165,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCategoryAssignment}
*/
- this.ListAssignments = function(catalogID, opts) {
+ this.ListAssignments = function(catalogID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -8294,7 +8192,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCategoryAssignment;
@@ -8302,7 +8199,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8316,7 +8213,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCategoryProductAssignment}
*/
- this.ListProductAssignments = function(catalogID, opts) {
+ this.ListProductAssignments = function(catalogID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -8340,7 +8237,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCategoryProductAssignment;
@@ -8348,7 +8244,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/productassignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8359,7 +8255,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Category} partialCategory
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Category}
*/
- this.Patch = function(catalogID, categoryID, partialCategory) {
+ this.Patch = function(catalogID, categoryID, partialCategory, accessToken ) {
var postBody = partialCategory;
// verify the required parameter 'catalogID' is set
@@ -8389,7 +8285,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Category;
@@ -8397,7 +8292,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/{categoryID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8408,7 +8303,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Category} category
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Category}
*/
- this.Save = function(catalogID, categoryID, category) {
+ this.Save = function(catalogID, categoryID, category, accessToken ) {
var postBody = category;
// verify the required parameter 'catalogID' is set
@@ -8438,7 +8333,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Category;
@@ -8446,7 +8340,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/{categoryID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8456,7 +8350,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CategoryAssignment} categoryAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(catalogID, categoryAssignment) {
+ this.SaveAssignment = function(catalogID, categoryAssignment, accessToken ) {
var postBody = categoryAssignment;
// verify the required parameter 'catalogID' is set
@@ -8480,7 +8374,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -8488,7 +8381,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8498,7 +8391,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CategoryProductAssignment} categoryProductAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveProductAssignment = function(catalogID, categoryProductAssignment) {
+ this.SaveProductAssignment = function(catalogID, categoryProductAssignment, accessToken ) {
var postBody = categoryProductAssignment;
// verify the required parameter 'catalogID' is set
@@ -8522,7 +8415,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -8530,7 +8422,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/catalogs/{catalogID}/categories/productassignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -8591,7 +8483,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CostCenter} costCenter
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CostCenter}
*/
- this.Create = function(buyerID, costCenter) {
+ this.Create = function(buyerID, costCenter, accessToken ) {
var postBody = costCenter;
// verify the required parameter 'buyerID' is set
@@ -8615,7 +8507,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = CostCenter;
@@ -8623,7 +8514,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8633,7 +8524,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} costCenterID ID of the cost center.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(buyerID, costCenterID) {
+ this.Delete = function(buyerID, costCenterID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -8658,7 +8549,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -8666,7 +8556,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters/{costCenterID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8679,7 +8569,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(buyerID, costCenterID, opts) {
+ this.DeleteAssignment = function(buyerID, costCenterID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -8707,7 +8597,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -8715,7 +8604,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters/{costCenterID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8725,7 +8614,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} costCenterID ID of the cost center.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CostCenter}
*/
- this.Get = function(buyerID, costCenterID) {
+ this.Get = function(buyerID, costCenterID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -8750,7 +8639,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = CostCenter;
@@ -8758,7 +8646,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters/{costCenterID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8774,7 +8662,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCostCenter}
*/
- this.List = function(buyerID, opts) {
+ this.List = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -8800,7 +8688,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCostCenter;
@@ -8808,7 +8695,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8824,7 +8711,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCostCenterAssignment}
*/
- this.ListAssignments = function(buyerID, opts) {
+ this.ListAssignments = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -8850,7 +8737,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCostCenterAssignment;
@@ -8858,7 +8744,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8869,7 +8755,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CostCenter} partialCostCenter
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CostCenter}
*/
- this.Patch = function(buyerID, costCenterID, partialCostCenter) {
+ this.Patch = function(buyerID, costCenterID, partialCostCenter, accessToken ) {
var postBody = partialCostCenter;
// verify the required parameter 'buyerID' is set
@@ -8899,7 +8785,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = CostCenter;
@@ -8907,7 +8792,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters/{costCenterID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8918,7 +8803,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CostCenter} costCenter
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CostCenter}
*/
- this.Save = function(buyerID, costCenterID, costCenter) {
+ this.Save = function(buyerID, costCenterID, costCenter, accessToken ) {
var postBody = costCenter;
// verify the required parameter 'buyerID' is set
@@ -8948,7 +8833,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = CostCenter;
@@ -8956,7 +8840,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters/{costCenterID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -8966,7 +8850,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CostCenterAssignment} costCenterAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(buyerID, costCenterAssignment) {
+ this.SaveAssignment = function(buyerID, costCenterAssignment, accessToken ) {
var postBody = costCenterAssignment;
// verify the required parameter 'buyerID' is set
@@ -8990,7 +8874,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -8998,7 +8881,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/costcenters/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -9059,7 +8942,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CreditCard} creditCard
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreditCard}
*/
- this.Create = function(buyerID, creditCard) {
+ this.Create = function(buyerID, creditCard, accessToken ) {
var postBody = creditCard;
// verify the required parameter 'buyerID' is set
@@ -9083,7 +8966,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = CreditCard;
@@ -9091,7 +8973,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9101,7 +8983,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} creditCardID ID of the credit card.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(buyerID, creditCardID) {
+ this.Delete = function(buyerID, creditCardID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -9126,7 +9008,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -9134,7 +9015,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards/{creditCardID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9147,7 +9028,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(buyerID, creditCardID, opts) {
+ this.DeleteAssignment = function(buyerID, creditCardID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -9175,7 +9056,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -9183,7 +9063,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards/{creditCardID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9193,7 +9073,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} creditCardID ID of the credit card.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreditCard}
*/
- this.Get = function(buyerID, creditCardID) {
+ this.Get = function(buyerID, creditCardID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -9218,7 +9098,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = CreditCard;
@@ -9226,7 +9105,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards/{creditCardID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9242,7 +9121,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCreditCard}
*/
- this.List = function(buyerID, opts) {
+ this.List = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -9268,7 +9147,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCreditCard;
@@ -9276,7 +9154,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9292,7 +9170,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCreditCardAssignment}
*/
- this.ListAssignments = function(buyerID, opts) {
+ this.ListAssignments = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -9318,7 +9196,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCreditCardAssignment;
@@ -9326,7 +9203,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9337,7 +9214,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CreditCard} partialCreditCard
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreditCard}
*/
- this.Patch = function(buyerID, creditCardID, partialCreditCard) {
+ this.Patch = function(buyerID, creditCardID, partialCreditCard, accessToken ) {
var postBody = partialCreditCard;
// verify the required parameter 'buyerID' is set
@@ -9367,7 +9244,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = CreditCard;
@@ -9375,7 +9251,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards/{creditCardID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9386,7 +9262,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CreditCard} creditCard
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreditCard}
*/
- this.Save = function(buyerID, creditCardID, creditCard) {
+ this.Save = function(buyerID, creditCardID, creditCard, accessToken ) {
var postBody = creditCard;
// verify the required parameter 'buyerID' is set
@@ -9416,7 +9292,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = CreditCard;
@@ -9424,7 +9299,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards/{creditCardID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9434,7 +9309,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/CreditCardAssignment} creditCardAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(buyerID, creditCardAssignment) {
+ this.SaveAssignment = function(buyerID, creditCardAssignment, accessToken ) {
var postBody = creditCardAssignment;
// verify the required parameter 'buyerID' is set
@@ -9458,7 +9333,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -9466,7 +9340,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/creditcards/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -9526,7 +9400,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ImpersonationConfig} impersonationConfig
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ImpersonationConfig}
*/
- this.Create = function(impersonationConfig) {
+ this.Create = function(impersonationConfig, accessToken ) {
var postBody = impersonationConfig;
// verify the required parameter 'impersonationConfig' is set
@@ -9544,7 +9418,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ImpersonationConfig;
@@ -9552,7 +9425,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/impersonationconfig', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9561,7 +9434,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} impersonationConfigID ID of the impersonation config.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(impersonationConfigID) {
+ this.Delete = function(impersonationConfigID, accessToken ) {
var postBody = null;
// verify the required parameter 'impersonationConfigID' is set
@@ -9580,7 +9453,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -9588,7 +9460,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/impersonationconfig/{impersonationConfigID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9597,7 +9469,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} impersonationConfigID ID of the impersonation config.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ImpersonationConfig}
*/
- this.Get = function(impersonationConfigID) {
+ this.Get = function(impersonationConfigID, accessToken ) {
var postBody = null;
// verify the required parameter 'impersonationConfigID' is set
@@ -9616,7 +9488,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ImpersonationConfig;
@@ -9624,7 +9495,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/impersonationconfig/{impersonationConfigID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9639,7 +9510,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListImpersonationConfig}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -9659,7 +9530,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListImpersonationConfig;
@@ -9667,7 +9537,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/impersonationconfig', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9677,7 +9547,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ImpersonationConfig} partialImpersonationConfig
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ImpersonationConfig}
*/
- this.Patch = function(impersonationConfigID, partialImpersonationConfig) {
+ this.Patch = function(impersonationConfigID, partialImpersonationConfig, accessToken ) {
var postBody = partialImpersonationConfig;
// verify the required parameter 'impersonationConfigID' is set
@@ -9701,7 +9571,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ImpersonationConfig;
@@ -9709,7 +9578,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/impersonationconfig/{impersonationConfigID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9719,7 +9588,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ImpersonationConfig} impersonationConfig
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ImpersonationConfig}
*/
- this.Save = function(impersonationConfigID, impersonationConfig) {
+ this.Save = function(impersonationConfigID, impersonationConfig, accessToken ) {
var postBody = impersonationConfig;
// verify the required parameter 'impersonationConfigID' is set
@@ -9743,7 +9612,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ImpersonationConfig;
@@ -9751,7 +9619,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/impersonationconfig/{impersonationConfigID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -9811,7 +9679,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Incrementor} incrementor
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Incrementor}
*/
- this.Create = function(incrementor) {
+ this.Create = function(incrementor, accessToken ) {
var postBody = incrementor;
// verify the required parameter 'incrementor' is set
@@ -9829,7 +9697,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Incrementor;
@@ -9837,7 +9704,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/incrementors', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9846,7 +9713,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} incrementorID ID of the incrementor.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(incrementorID) {
+ this.Delete = function(incrementorID, accessToken ) {
var postBody = null;
// verify the required parameter 'incrementorID' is set
@@ -9865,7 +9732,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -9873,7 +9739,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/incrementors/{incrementorID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9882,7 +9748,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} incrementorID ID of the incrementor.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Incrementor}
*/
- this.Get = function(incrementorID) {
+ this.Get = function(incrementorID, accessToken ) {
var postBody = null;
// verify the required parameter 'incrementorID' is set
@@ -9901,7 +9767,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Incrementor;
@@ -9909,7 +9774,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/incrementors/{incrementorID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9924,7 +9789,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListIncrementor}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -9944,7 +9809,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListIncrementor;
@@ -9952,7 +9816,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/incrementors', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -9962,7 +9826,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Incrementor} partialIncrementor
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Incrementor}
*/
- this.Patch = function(incrementorID, partialIncrementor) {
+ this.Patch = function(incrementorID, partialIncrementor, accessToken ) {
var postBody = partialIncrementor;
// verify the required parameter 'incrementorID' is set
@@ -9986,7 +9850,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Incrementor;
@@ -9994,7 +9857,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/incrementors/{incrementorID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10004,7 +9867,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Incrementor} incrementor
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Incrementor}
*/
- this.Save = function(incrementorID, incrementor) {
+ this.Save = function(incrementorID, incrementor, accessToken ) {
var postBody = incrementor;
// verify the required parameter 'incrementorID' is set
@@ -10028,7 +9891,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Incrementor;
@@ -10036,7 +9898,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/incrementors/{incrementorID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -10098,7 +9960,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/LineItem} lineItem
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LineItem}
*/
- this.Create = function(direction, orderID, lineItem) {
+ this.Create = function(direction, orderID, lineItem, accessToken ) {
var postBody = lineItem;
// verify the required parameter 'direction' is set
@@ -10128,7 +9990,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = LineItem;
@@ -10136,7 +9997,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/lineitems', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10147,7 +10008,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} lineItemID ID of the line item.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(direction, orderID, lineItemID) {
+ this.Delete = function(direction, orderID, lineItemID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -10178,7 +10039,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -10186,7 +10046,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/lineitems/{lineItemID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10197,7 +10057,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} lineItemID ID of the line item.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LineItem}
*/
- this.Get = function(direction, orderID, lineItemID) {
+ this.Get = function(direction, orderID, lineItemID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -10228,7 +10088,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = LineItem;
@@ -10236,7 +10095,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/lineitems/{lineItemID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10253,7 +10112,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListLineItem}
*/
- this.List = function(direction, orderID, opts) {
+ this.List = function(direction, orderID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -10285,7 +10144,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListLineItem;
@@ -10293,7 +10151,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/lineitems', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10305,7 +10163,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/LineItem} partialLineItem
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LineItem}
*/
- this.Patch = function(direction, orderID, lineItemID, partialLineItem) {
+ this.Patch = function(direction, orderID, lineItemID, partialLineItem, accessToken ) {
var postBody = partialLineItem;
// verify the required parameter 'direction' is set
@@ -10341,7 +10199,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = LineItem;
@@ -10349,7 +10206,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/lineitems/{lineItemID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10361,7 +10218,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} partialAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LineItem}
*/
- this.PatchShippingAddress = function(direction, orderID, lineItemID, partialAddress) {
+ this.PatchShippingAddress = function(direction, orderID, lineItemID, partialAddress, accessToken ) {
var postBody = partialAddress;
// verify the required parameter 'direction' is set
@@ -10397,7 +10254,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = LineItem;
@@ -10405,7 +10261,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/lineitems/{lineItemID}/shipto', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10417,7 +10273,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/LineItem} lineItem
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LineItem}
*/
- this.Save = function(direction, orderID, lineItemID, lineItem) {
+ this.Save = function(direction, orderID, lineItemID, lineItem, accessToken ) {
var postBody = lineItem;
// verify the required parameter 'direction' is set
@@ -10453,7 +10309,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = LineItem;
@@ -10461,7 +10316,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/lineitems/{lineItemID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10473,7 +10328,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LineItem}
*/
- this.SetShippingAddress = function(direction, orderID, lineItemID, address) {
+ this.SetShippingAddress = function(direction, orderID, lineItemID, address, accessToken ) {
var postBody = address;
// verify the required parameter 'direction' is set
@@ -10509,7 +10364,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = LineItem;
@@ -10517,7 +10371,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/lineitems/{lineItemID}/shipto', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -10577,7 +10431,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/BuyerAddress} buyerAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BuyerAddress}
*/
- this.CreateAddress = function(buyerAddress) {
+ this.CreateAddress = function(buyerAddress, accessToken ) {
var postBody = buyerAddress;
// verify the required parameter 'buyerAddress' is set
@@ -10595,7 +10449,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = BuyerAddress;
@@ -10603,7 +10456,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/addresses', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10612,7 +10465,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/BuyerCreditCard} buyerCreditCard
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BuyerCreditCard}
*/
- this.CreateCreditCard = function(buyerCreditCard) {
+ this.CreateCreditCard = function(buyerCreditCard, accessToken ) {
var postBody = buyerCreditCard;
// verify the required parameter 'buyerCreditCard' is set
@@ -10630,7 +10483,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = BuyerCreditCard;
@@ -10638,7 +10490,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/creditcards', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10647,7 +10499,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} addressID ID of the address.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAddress = function(addressID) {
+ this.DeleteAddress = function(addressID, accessToken ) {
var postBody = null;
// verify the required parameter 'addressID' is set
@@ -10666,7 +10518,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -10674,7 +10525,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/addresses/{addressID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10683,7 +10534,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} creditcardID ID of the creditcard.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteCreditCard = function(creditcardID) {
+ this.DeleteCreditCard = function(creditcardID, accessToken ) {
var postBody = null;
// verify the required parameter 'creditcardID' is set
@@ -10702,7 +10553,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -10710,7 +10560,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/creditcards/{creditcardID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10718,7 +10568,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
/**
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MeUser}
*/
- this.Get = function() {
+ this.Get = function( accessToken ) {
var postBody = null;
@@ -10731,7 +10581,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = MeUser;
@@ -10739,7 +10588,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10748,7 +10597,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} addressID ID of the address.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BuyerAddress}
*/
- this.GetAddress = function(addressID) {
+ this.GetAddress = function(addressID, accessToken ) {
var postBody = null;
// verify the required parameter 'addressID' is set
@@ -10767,7 +10616,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = BuyerAddress;
@@ -10775,7 +10623,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/addresses/{addressID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10784,7 +10632,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} catalogID ID of the catalog.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Catalog}
*/
- this.GetCatalog = function(catalogID) {
+ this.GetCatalog = function(catalogID, accessToken ) {
var postBody = null;
// verify the required parameter 'catalogID' is set
@@ -10803,7 +10651,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Catalog;
@@ -10811,7 +10658,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/catalogs/{catalogID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10821,7 +10668,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} catalogID ID of the catalog.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Category}
*/
- this.GetCategory = function(categoryID, catalogID) {
+ this.GetCategory = function(categoryID, catalogID, accessToken ) {
var postBody = null;
// verify the required parameter 'categoryID' is set
@@ -10846,7 +10693,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Category;
@@ -10854,7 +10700,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/categories/{categoryID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10863,7 +10709,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} creditcardID ID of the creditcard.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BuyerCreditCard}
*/
- this.GetCreditCard = function(creditcardID) {
+ this.GetCreditCard = function(creditcardID, accessToken ) {
var postBody = null;
// verify the required parameter 'creditcardID' is set
@@ -10882,7 +10728,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = BuyerCreditCard;
@@ -10890,7 +10735,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/creditcards/{creditcardID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10899,7 +10744,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} productID ID of the product.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BuyerProduct}
*/
- this.GetProduct = function(productID) {
+ this.GetProduct = function(productID, accessToken ) {
var postBody = null;
// verify the required parameter 'productID' is set
@@ -10918,7 +10763,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = BuyerProduct;
@@ -10926,7 +10770,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/products/{productID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10935,7 +10779,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} promotionID ID of the promotion.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Promotion}
*/
- this.GetPromotion = function(promotionID) {
+ this.GetPromotion = function(promotionID, accessToken ) {
var postBody = null;
// verify the required parameter 'promotionID' is set
@@ -10954,7 +10798,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Promotion;
@@ -10962,7 +10805,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/promotions/{promotionID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -10971,7 +10814,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} shipmentID ID of the shipment.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Shipment}
*/
- this.GetShipment = function(shipmentID) {
+ this.GetShipment = function(shipmentID, accessToken ) {
var postBody = null;
// verify the required parameter 'shipmentID' is set
@@ -10990,7 +10833,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Shipment;
@@ -10998,7 +10840,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/shipments/{shipmentID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11010,7 +10852,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.catalogID ID of the catalog.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BuyerSpec}
*/
- this.GetSpec = function(productID, specID, opts) {
+ this.GetSpec = function(productID, specID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11037,7 +10879,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = BuyerSpec;
@@ -11045,7 +10886,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/products/{productID}/specs/{specID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11054,7 +10895,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} spendingAccountID ID of the spending account.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpendingAccount}
*/
- this.GetSpendingAccount = function(spendingAccountID) {
+ this.GetSpendingAccount = function(spendingAccountID, accessToken ) {
var postBody = null;
// verify the required parameter 'spendingAccountID' is set
@@ -11073,7 +10914,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpendingAccount;
@@ -11081,7 +10921,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/spendingaccounts/{spendingAccountID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11096,7 +10936,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBuyerAddress}
*/
- this.ListAddresses = function(opts) {
+ this.ListAddresses = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11116,7 +10956,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListBuyerAddress;
@@ -11124,7 +10963,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/addresses', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11141,7 +10980,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOrder}
*/
- this.ListApprovableOrders = function(opts) {
+ this.ListApprovableOrders = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11163,7 +11002,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListOrder;
@@ -11171,7 +11009,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/orders/approvable', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11186,7 +11024,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCatalog}
*/
- this.ListCatalogs = function(opts) {
+ this.ListCatalogs = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11206,7 +11044,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCatalog;
@@ -11214,7 +11051,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/catalogs', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11232,7 +11069,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCategory}
*/
- this.ListCategories = function(opts) {
+ this.ListCategories = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11255,7 +11092,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCategory;
@@ -11263,7 +11099,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/categories', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11278,7 +11114,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCostCenter}
*/
- this.ListCostCenters = function(opts) {
+ this.ListCostCenters = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11298,7 +11134,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListCostCenter;
@@ -11306,7 +11141,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/costcenters', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11321,7 +11156,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBuyerCreditCard}
*/
- this.ListCreditCards = function(opts) {
+ this.ListCreditCards = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11341,7 +11176,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListBuyerCreditCard;
@@ -11349,7 +11183,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/creditcards', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11366,7 +11200,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOrder}
*/
- this.ListOrders = function(opts) {
+ this.ListOrders = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11388,7 +11222,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListOrder;
@@ -11396,7 +11229,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/orders', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11414,7 +11247,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBuyerProduct}
*/
- this.ListProducts = function(opts) {
+ this.ListProducts = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11437,7 +11270,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListBuyerProduct;
@@ -11445,7 +11277,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/products', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11460,7 +11292,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPromotion}
*/
- this.ListPromotions = function(opts) {
+ this.ListPromotions = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11480,7 +11312,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListPromotion;
@@ -11488,7 +11319,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/promotions', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11505,7 +11336,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListShipmentItem}
*/
- this.ListShipmentItems = function(shipmentID, opts) {
+ this.ListShipmentItems = function(shipmentID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11532,7 +11363,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListShipmentItem;
@@ -11540,7 +11370,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/shipments/{shipmentID}/items', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11556,7 +11386,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListShipment}
*/
- this.ListShipments = function(opts) {
+ this.ListShipments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11577,7 +11407,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListShipment;
@@ -11585,7 +11414,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/shipments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11602,7 +11431,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBuyerSpec}
*/
- this.ListSpecs = function(productID, opts) {
+ this.ListSpecs = function(productID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11629,7 +11458,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListBuyerSpec;
@@ -11637,7 +11465,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/products/{productID}/specs', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11652,7 +11480,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSpendingAccount}
*/
- this.ListSpendingAccounts = function(opts) {
+ this.ListSpendingAccounts = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11672,7 +11500,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSpendingAccount;
@@ -11680,7 +11507,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/spendingAccounts', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11695,7 +11522,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUserGroup}
*/
- this.ListUserGroups = function(opts) {
+ this.ListUserGroups = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -11715,7 +11542,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUserGroup;
@@ -11723,7 +11549,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/usergroups', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11732,7 +11558,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/MeUser} partialMeUser
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MeUser}
*/
- this.Patch = function(partialMeUser) {
+ this.Patch = function(partialMeUser, accessToken ) {
var postBody = partialMeUser;
// verify the required parameter 'partialMeUser' is set
@@ -11750,7 +11576,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = MeUser;
@@ -11758,7 +11583,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11768,7 +11593,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/BuyerAddress} partialBuyerAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.PatchAddress = function(addressID, partialBuyerAddress) {
+ this.PatchAddress = function(addressID, partialBuyerAddress, accessToken ) {
var postBody = partialBuyerAddress;
// verify the required parameter 'addressID' is set
@@ -11792,7 +11617,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -11800,7 +11624,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/addresses/{addressID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11810,7 +11634,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/BuyerCreditCard} partialBuyerCreditCard
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.PatchCreditCard = function(creditcardID, partialBuyerCreditCard) {
+ this.PatchCreditCard = function(creditcardID, partialBuyerCreditCard, accessToken ) {
var postBody = partialBuyerCreditCard;
// verify the required parameter 'creditcardID' is set
@@ -11834,7 +11658,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -11842,7 +11665,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/creditcards/{creditcardID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11852,7 +11675,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/MeUser} meUser
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
*/
- this.Register = function(anonUserToken, meUser) {
+ this.Register = function(anonUserToken, meUser, accessToken ) {
var postBody = meUser;
// verify the required parameter 'anonUserToken' is set
@@ -11876,7 +11699,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Object;
@@ -11884,7 +11706,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/register', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11893,7 +11715,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/TokenPasswordReset} tokenPasswordReset
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.ResetPasswordByToken = function(tokenPasswordReset) {
+ this.ResetPasswordByToken = function(tokenPasswordReset, accessToken ) {
var postBody = tokenPasswordReset;
// verify the required parameter 'tokenPasswordReset' is set
@@ -11911,7 +11733,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -11919,7 +11740,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/password', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11928,7 +11749,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/MeUser} meUser
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MeUser}
*/
- this.Save = function(meUser) {
+ this.Save = function(meUser, accessToken ) {
var postBody = meUser;
// verify the required parameter 'meUser' is set
@@ -11946,7 +11767,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = MeUser;
@@ -11954,7 +11774,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -11964,7 +11784,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/BuyerAddress} buyerAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BuyerAddress}
*/
- this.SaveAddress = function(addressID, buyerAddress) {
+ this.SaveAddress = function(addressID, buyerAddress, accessToken ) {
var postBody = buyerAddress;
// verify the required parameter 'addressID' is set
@@ -11988,7 +11808,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = BuyerAddress;
@@ -11996,7 +11815,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/addresses/{addressID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12006,7 +11825,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/BuyerCreditCard} buyerCreditCard
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BuyerCreditCard}
*/
- this.SaveCreditCard = function(creditcardID, buyerCreditCard) {
+ this.SaveCreditCard = function(creditcardID, buyerCreditCard, accessToken ) {
var postBody = buyerCreditCard;
// verify the required parameter 'creditcardID' is set
@@ -12030,7 +11849,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = BuyerCreditCard;
@@ -12038,7 +11856,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/creditcards/{creditcardID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12047,7 +11865,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} anonUserToken Anon user token of the me.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.TransferAnonUserOrder = function(anonUserToken) {
+ this.TransferAnonUserOrder = function(anonUserToken, accessToken ) {
var postBody = null;
// verify the required parameter 'anonUserToken' is set
@@ -12066,7 +11884,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -12074,7 +11891,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/me/orders', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -12134,7 +11951,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/MessageSender} messageSender
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MessageSender}
*/
- this.Create = function(messageSender) {
+ this.Create = function(messageSender, accessToken ) {
var postBody = messageSender;
// verify the required parameter 'messageSender' is set
@@ -12152,7 +11969,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = MessageSender;
@@ -12160,7 +11976,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12169,7 +11985,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} messageSenderID ID of the message sender.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(messageSenderID) {
+ this.Delete = function(messageSenderID, accessToken ) {
var postBody = null;
// verify the required parameter 'messageSenderID' is set
@@ -12188,7 +12004,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -12196,7 +12011,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/{messageSenderID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12210,7 +12025,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.supplierID ID of the supplier.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(messageSenderID, opts) {
+ this.DeleteAssignment = function(messageSenderID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -12234,7 +12049,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -12242,7 +12056,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/{messageSenderID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12251,7 +12065,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} messageSenderID ID of the message sender.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MessageSender}
*/
- this.Get = function(messageSenderID) {
+ this.Get = function(messageSenderID, accessToken ) {
var postBody = null;
// verify the required parameter 'messageSenderID' is set
@@ -12270,7 +12084,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = MessageSender;
@@ -12278,7 +12091,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/{messageSenderID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12293,7 +12106,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMessageSender}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -12313,7 +12126,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListMessageSender;
@@ -12321,7 +12133,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12338,7 +12150,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.supplierID ID of the supplier.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMessageSenderAssignment}
*/
- this.ListAssignments = function(opts) {
+ this.ListAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -12360,7 +12172,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListMessageSenderAssignment;
@@ -12368,7 +12179,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12383,7 +12194,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMessageCCListenerAssignment}
*/
- this.ListCCListenerAssignments = function(opts) {
+ this.ListCCListenerAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -12403,7 +12214,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListMessageCCListenerAssignment;
@@ -12411,7 +12221,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/CCListenerAssignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12421,7 +12231,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/MessageSender} partialMessageSender
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MessageSender}
*/
- this.Patch = function(messageSenderID, partialMessageSender) {
+ this.Patch = function(messageSenderID, partialMessageSender, accessToken ) {
var postBody = partialMessageSender;
// verify the required parameter 'messageSenderID' is set
@@ -12445,7 +12255,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = MessageSender;
@@ -12453,7 +12262,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/{messageSenderID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12463,7 +12272,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/MessageSender} messageSender
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MessageSender}
*/
- this.Save = function(messageSenderID, messageSender) {
+ this.Save = function(messageSenderID, messageSender, accessToken ) {
var postBody = messageSender;
// verify the required parameter 'messageSenderID' is set
@@ -12487,7 +12296,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = MessageSender;
@@ -12495,7 +12303,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/{messageSenderID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12504,7 +12312,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/MessageSenderAssignment} messageSenderAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(messageSenderAssignment) {
+ this.SaveAssignment = function(messageSenderAssignment, accessToken ) {
var postBody = messageSenderAssignment;
// verify the required parameter 'messageSenderAssignment' is set
@@ -12522,7 +12330,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -12530,7 +12337,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12539,7 +12346,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/MessageCCListenerAssignment} messageCCListenerAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveCCListenerAssignment = function(messageCCListenerAssignment) {
+ this.SaveCCListenerAssignment = function(messageCCListenerAssignment, accessToken ) {
var postBody = messageCCListenerAssignment;
// verify the required parameter 'messageCCListenerAssignment' is set
@@ -12557,7 +12364,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -12565,7 +12371,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/messagesenders/CCListenerAssignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -12625,7 +12431,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/OpenIdConnect} openIdConnect
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OpenIdConnect}
*/
- this.Create = function(openIdConnect) {
+ this.Create = function(openIdConnect, accessToken ) {
var postBody = openIdConnect;
// verify the required parameter 'openIdConnect' is set
@@ -12643,7 +12449,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = OpenIdConnect;
@@ -12651,7 +12456,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/openidconnects', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12660,7 +12465,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} openidconnectID ID of the openidconnect.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(openidconnectID) {
+ this.Delete = function(openidconnectID, accessToken ) {
var postBody = null;
// verify the required parameter 'openidconnectID' is set
@@ -12679,7 +12484,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -12687,7 +12491,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/openidconnects/{openidconnectID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12696,7 +12500,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} openidconnectID ID of the openidconnect.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OpenIdConnect}
*/
- this.Get = function(openidconnectID) {
+ this.Get = function(openidconnectID, accessToken ) {
var postBody = null;
// verify the required parameter 'openidconnectID' is set
@@ -12715,7 +12519,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = OpenIdConnect;
@@ -12723,7 +12526,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/openidconnects/{openidconnectID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12738,7 +12541,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOpenIdConnect}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -12758,7 +12561,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListOpenIdConnect;
@@ -12766,7 +12568,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/openidconnects', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12776,7 +12578,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/OpenIdConnect} partialOpenIdConnect
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OpenIdConnect}
*/
- this.Patch = function(openidconnectID, partialOpenIdConnect) {
+ this.Patch = function(openidconnectID, partialOpenIdConnect, accessToken ) {
var postBody = partialOpenIdConnect;
// verify the required parameter 'openidconnectID' is set
@@ -12800,7 +12602,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = OpenIdConnect;
@@ -12808,7 +12609,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/openidconnects/{openidconnectID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12818,7 +12619,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/OpenIdConnect} openIdConnect
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OpenIdConnect}
*/
- this.Save = function(openidconnectID, openIdConnect) {
+ this.Save = function(openidconnectID, openIdConnect, accessToken ) {
var postBody = openIdConnect;
// verify the required parameter 'openidconnectID' is set
@@ -12842,7 +12643,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = OpenIdConnect;
@@ -12850,7 +12650,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/openidconnects/{openidconnectID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -12912,7 +12712,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} promoCode Promo code of the order promotion.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrderPromotion}
*/
- this.AddPromotion = function(direction, orderID, promoCode) {
+ this.AddPromotion = function(direction, orderID, promoCode, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -12943,7 +12743,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = OrderPromotion;
@@ -12951,7 +12750,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/promotions/{promoCode}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -12962,7 +12761,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/OrderApprovalInfo} orderApprovalInfo
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Approve = function(direction, orderID, orderApprovalInfo) {
+ this.Approve = function(direction, orderID, orderApprovalInfo, accessToken ) {
var postBody = orderApprovalInfo;
// verify the required parameter 'direction' is set
@@ -12992,7 +12791,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13000,7 +12798,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/approve', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13010,7 +12808,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} orderID ID of the order.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Cancel = function(direction, orderID) {
+ this.Cancel = function(direction, orderID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -13035,7 +12833,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13043,7 +12840,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/cancel', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13053,7 +12850,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Order} order
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Create = function(direction, order) {
+ this.Create = function(direction, order, accessToken ) {
var postBody = order;
// verify the required parameter 'direction' is set
@@ -13077,7 +12874,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13085,7 +12881,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13096,7 +12892,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/OrderApprovalInfo} orderApprovalInfo
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Decline = function(direction, orderID, orderApprovalInfo) {
+ this.Decline = function(direction, orderID, orderApprovalInfo, accessToken ) {
var postBody = orderApprovalInfo;
// verify the required parameter 'direction' is set
@@ -13126,7 +12922,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13134,7 +12929,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/decline', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13144,7 +12939,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} orderID ID of the order.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(direction, orderID) {
+ this.Delete = function(direction, orderID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -13169,7 +12964,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -13177,7 +12971,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13187,7 +12981,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} orderID ID of the order.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Get = function(direction, orderID) {
+ this.Get = function(direction, orderID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -13212,7 +13006,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13220,7 +13013,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13240,7 +13033,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOrder}
*/
- this.List = function(direction, opts) {
+ this.List = function(direction, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -13270,7 +13063,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListOrder;
@@ -13278,7 +13070,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13295,7 +13087,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOrderApproval}
*/
- this.ListApprovals = function(direction, orderID, opts) {
+ this.ListApprovals = function(direction, orderID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -13327,7 +13119,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListOrderApproval;
@@ -13335,7 +13126,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/approvals', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13352,7 +13143,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUser}
*/
- this.ListEligibleApprovers = function(direction, orderID, opts) {
+ this.ListEligibleApprovers = function(direction, orderID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -13384,7 +13175,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUser;
@@ -13392,7 +13182,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/eligibleapprovers', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13409,7 +13199,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOrderPromotion}
*/
- this.ListPromotions = function(direction, orderID, opts) {
+ this.ListPromotions = function(direction, orderID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -13441,7 +13231,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListOrderPromotion;
@@ -13449,7 +13238,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/promotions', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13460,7 +13249,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Order} partialOrder
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Patch = function(direction, orderID, partialOrder) {
+ this.Patch = function(direction, orderID, partialOrder, accessToken ) {
var postBody = partialOrder;
// verify the required parameter 'direction' is set
@@ -13490,7 +13279,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13498,7 +13286,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13509,7 +13297,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} partialAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.PatchBillingAddress = function(direction, orderID, partialAddress) {
+ this.PatchBillingAddress = function(direction, orderID, partialAddress, accessToken ) {
var postBody = partialAddress;
// verify the required parameter 'direction' is set
@@ -13539,7 +13327,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13547,7 +13334,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/billto', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13558,7 +13345,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} partialUser
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.PatchFromUser = function(direction, orderID, partialUser) {
+ this.PatchFromUser = function(direction, orderID, partialUser, accessToken ) {
var postBody = partialUser;
// verify the required parameter 'direction' is set
@@ -13588,7 +13375,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13596,7 +13382,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/fromuser', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13607,7 +13393,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} partialAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.PatchShippingAddress = function(direction, orderID, partialAddress) {
+ this.PatchShippingAddress = function(direction, orderID, partialAddress, accessToken ) {
var postBody = partialAddress;
// verify the required parameter 'direction' is set
@@ -13637,7 +13423,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13645,7 +13430,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/shipto', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13656,7 +13441,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} promoCode Promo code of the order.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.RemovePromotion = function(direction, orderID, promoCode) {
+ this.RemovePromotion = function(direction, orderID, promoCode, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -13687,7 +13472,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13695,7 +13479,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/promotions/{promoCode}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13706,7 +13490,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Order} order
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Save = function(direction, orderID, order) {
+ this.Save = function(direction, orderID, order, accessToken ) {
var postBody = order;
// verify the required parameter 'direction' is set
@@ -13736,7 +13520,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13744,7 +13527,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13755,7 +13538,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.SetBillingAddress = function(direction, orderID, address) {
+ this.SetBillingAddress = function(direction, orderID, address, accessToken ) {
var postBody = address;
// verify the required parameter 'direction' is set
@@ -13785,7 +13568,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13793,7 +13575,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/billto', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13804,7 +13586,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.SetShippingAddress = function(direction, orderID, address) {
+ this.SetShippingAddress = function(direction, orderID, address, accessToken ) {
var postBody = address;
// verify the required parameter 'direction' is set
@@ -13834,7 +13616,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13842,7 +13623,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/shipto', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13853,7 +13634,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Shipment} shipment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Ship = function(direction, orderID, shipment) {
+ this.Ship = function(direction, orderID, shipment, accessToken ) {
var postBody = shipment;
// verify the required parameter 'direction' is set
@@ -13883,7 +13664,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13891,7 +13671,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/ship', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -13901,7 +13681,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} orderID ID of the order.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.Submit = function(direction, orderID) {
+ this.Submit = function(direction, orderID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -13926,7 +13706,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Order;
@@ -13934,7 +13713,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/submit', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -13995,7 +13774,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/PasswordReset} passwordReset
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.ResetPasswordByVerificationCode = function(verificationCode, passwordReset) {
+ this.ResetPasswordByVerificationCode = function(verificationCode, passwordReset, accessToken ) {
var postBody = passwordReset;
// verify the required parameter 'verificationCode' is set
@@ -14019,7 +13798,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -14027,7 +13805,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/password/reset/{verificationCode}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14036,7 +13814,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/PasswordResetRequest} passwordResetRequest
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SendVerificationCode = function(passwordResetRequest) {
+ this.SendVerificationCode = function(passwordResetRequest, accessToken ) {
var postBody = passwordResetRequest;
// verify the required parameter 'passwordResetRequest' is set
@@ -14054,7 +13832,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -14062,7 +13839,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/password/reset', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -14124,7 +13901,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Payment} payment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Payment}
*/
- this.Create = function(direction, orderID, payment) {
+ this.Create = function(direction, orderID, payment, accessToken ) {
var postBody = payment;
// verify the required parameter 'direction' is set
@@ -14154,7 +13931,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Payment;
@@ -14162,7 +13938,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/payments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14174,7 +13950,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/PaymentTransaction} paymentTransaction
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Payment}
*/
- this.CreateTransaction = function(direction, orderID, paymentID, paymentTransaction) {
+ this.CreateTransaction = function(direction, orderID, paymentID, paymentTransaction, accessToken ) {
var postBody = paymentTransaction;
// verify the required parameter 'direction' is set
@@ -14210,7 +13986,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Payment;
@@ -14218,7 +13993,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/payments/{paymentID}/transactions', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14229,7 +14004,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} paymentID ID of the payment.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(direction, orderID, paymentID) {
+ this.Delete = function(direction, orderID, paymentID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -14260,7 +14035,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -14268,7 +14042,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/payments/{paymentID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14280,7 +14054,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} transactionID ID of the transaction.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteTransaction = function(direction, orderID, paymentID, transactionID) {
+ this.DeleteTransaction = function(direction, orderID, paymentID, transactionID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -14317,7 +14091,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -14325,7 +14098,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/payments/{paymentID}/transactions/{transactionID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14336,7 +14109,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} paymentID ID of the payment.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Payment}
*/
- this.Get = function(direction, orderID, paymentID) {
+ this.Get = function(direction, orderID, paymentID, accessToken ) {
var postBody = null;
// verify the required parameter 'direction' is set
@@ -14367,7 +14140,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Payment;
@@ -14375,7 +14147,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/payments/{paymentID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14392,7 +14164,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPayment}
*/
- this.List = function(direction, orderID, opts) {
+ this.List = function(direction, orderID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -14424,7 +14196,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListPayment;
@@ -14432,7 +14203,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/payments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14444,7 +14215,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Payment} partialPayment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Payment}
*/
- this.Patch = function(direction, orderID, paymentID, partialPayment) {
+ this.Patch = function(direction, orderID, paymentID, partialPayment, accessToken ) {
var postBody = partialPayment;
// verify the required parameter 'direction' is set
@@ -14480,7 +14251,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Payment;
@@ -14488,7 +14258,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/orders/{direction}/{orderID}/payments/{paymentID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -14548,7 +14318,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/PriceSchedule} priceSchedule
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PriceSchedule}
*/
- this.Create = function(priceSchedule) {
+ this.Create = function(priceSchedule, accessToken ) {
var postBody = priceSchedule;
// verify the required parameter 'priceSchedule' is set
@@ -14566,7 +14336,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = PriceSchedule;
@@ -14574,7 +14343,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/priceschedules', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14583,7 +14352,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} priceScheduleID ID of the price schedule.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(priceScheduleID) {
+ this.Delete = function(priceScheduleID, accessToken ) {
var postBody = null;
// verify the required parameter 'priceScheduleID' is set
@@ -14602,7 +14371,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -14610,7 +14378,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/priceschedules/{priceScheduleID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14620,7 +14388,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} quantity Quantity of the price schedule.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeletePriceBreak = function(priceScheduleID, quantity) {
+ this.DeletePriceBreak = function(priceScheduleID, quantity, accessToken ) {
var postBody = null;
// verify the required parameter 'priceScheduleID' is set
@@ -14645,7 +14413,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -14653,7 +14420,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/priceschedules/{priceScheduleID}/PriceBreaks', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14662,7 +14429,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} priceScheduleID ID of the price schedule.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PriceSchedule}
*/
- this.Get = function(priceScheduleID) {
+ this.Get = function(priceScheduleID, accessToken ) {
var postBody = null;
// verify the required parameter 'priceScheduleID' is set
@@ -14681,7 +14448,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = PriceSchedule;
@@ -14689,7 +14455,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/priceschedules/{priceScheduleID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14704,7 +14470,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPriceSchedule}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -14724,7 +14490,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListPriceSchedule;
@@ -14732,7 +14497,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/priceschedules', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14742,7 +14507,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/PriceSchedule} partialPriceSchedule
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PriceSchedule}
*/
- this.Patch = function(priceScheduleID, partialPriceSchedule) {
+ this.Patch = function(priceScheduleID, partialPriceSchedule, accessToken ) {
var postBody = partialPriceSchedule;
// verify the required parameter 'priceScheduleID' is set
@@ -14766,7 +14531,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = PriceSchedule;
@@ -14774,7 +14538,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/priceschedules/{priceScheduleID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14784,7 +14548,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/PriceSchedule} priceSchedule
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PriceSchedule}
*/
- this.Save = function(priceScheduleID, priceSchedule) {
+ this.Save = function(priceScheduleID, priceSchedule, accessToken ) {
var postBody = priceSchedule;
// verify the required parameter 'priceScheduleID' is set
@@ -14808,7 +14572,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = PriceSchedule;
@@ -14816,7 +14579,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/priceschedules/{priceScheduleID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14826,7 +14589,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/PriceBreak} priceBreak
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PriceSchedule}
*/
- this.SavePriceBreak = function(priceScheduleID, priceBreak) {
+ this.SavePriceBreak = function(priceScheduleID, priceBreak, accessToken ) {
var postBody = priceBreak;
// verify the required parameter 'priceScheduleID' is set
@@ -14850,7 +14613,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = PriceSchedule;
@@ -14858,7 +14620,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/priceschedules/{priceScheduleID}/PriceBreaks', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -14918,7 +14680,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ProductFacet} productFacet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProductFacet}
*/
- this.Create = function(productFacet) {
+ this.Create = function(productFacet, accessToken ) {
var postBody = productFacet;
// verify the required parameter 'productFacet' is set
@@ -14936,7 +14698,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ProductFacet;
@@ -14944,7 +14705,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/productfacets', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14953,7 +14714,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} productFacetID ID of the product facet.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(productFacetID) {
+ this.Delete = function(productFacetID, accessToken ) {
var postBody = null;
// verify the required parameter 'productFacetID' is set
@@ -14972,7 +14733,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -14980,7 +14740,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/productfacets/{productFacetID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -14989,7 +14749,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} productFacetID ID of the product facet.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProductFacet}
*/
- this.Get = function(productFacetID) {
+ this.Get = function(productFacetID, accessToken ) {
var postBody = null;
// verify the required parameter 'productFacetID' is set
@@ -15008,7 +14768,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ProductFacet;
@@ -15016,7 +14775,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/productfacets/{productFacetID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15031,7 +14790,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListProductFacet}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -15051,7 +14810,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListProductFacet;
@@ -15059,7 +14817,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/productfacets', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15069,7 +14827,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ProductFacet} partialProductFacet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProductFacet}
*/
- this.Patch = function(productFacetID, partialProductFacet) {
+ this.Patch = function(productFacetID, partialProductFacet, accessToken ) {
var postBody = partialProductFacet;
// verify the required parameter 'productFacetID' is set
@@ -15093,7 +14851,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ProductFacet;
@@ -15101,7 +14858,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/productfacets/{productFacetID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15111,7 +14868,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ProductFacet} productFacet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProductFacet}
*/
- this.Save = function(productFacetID, productFacet) {
+ this.Save = function(productFacetID, productFacet, accessToken ) {
var postBody = productFacet;
// verify the required parameter 'productFacetID' is set
@@ -15135,7 +14892,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ProductFacet;
@@ -15143,7 +14899,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/productfacets/{productFacetID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -15203,7 +14959,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Product} product
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
*/
- this.Create = function(product) {
+ this.Create = function(product, accessToken ) {
var postBody = product;
// verify the required parameter 'product' is set
@@ -15221,7 +14977,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Product;
@@ -15229,7 +14984,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15238,7 +14993,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} productID ID of the product.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(productID) {
+ this.Delete = function(productID, accessToken ) {
var postBody = null;
// verify the required parameter 'productID' is set
@@ -15257,7 +15012,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -15265,7 +15019,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15278,7 +15032,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(productID, buyerID, opts) {
+ this.DeleteAssignment = function(productID, buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -15306,7 +15060,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -15314,7 +15067,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/assignments/{buyerID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15325,7 +15078,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Boolean} opts.overwriteExisting Overwrite existing of the product.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
*/
- this.GenerateVariants = function(productID, opts) {
+ this.GenerateVariants = function(productID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -15346,7 +15099,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Product;
@@ -15354,7 +15106,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/variants/generate', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15363,7 +15115,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} productID ID of the product.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
*/
- this.Get = function(productID) {
+ this.Get = function(productID, accessToken ) {
var postBody = null;
// verify the required parameter 'productID' is set
@@ -15382,7 +15134,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Product;
@@ -15390,7 +15141,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15400,7 +15151,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} variantID ID of the variant.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Variant}
*/
- this.GetVariant = function(productID, variantID) {
+ this.GetVariant = function(productID, variantID, accessToken ) {
var postBody = null;
// verify the required parameter 'productID' is set
@@ -15425,7 +15176,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Variant;
@@ -15433,7 +15183,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/variants/{variantID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15451,7 +15201,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListProduct}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -15474,7 +15224,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListProduct;
@@ -15482,7 +15231,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15499,7 +15248,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListProductAssignment}
*/
- this.ListAssignments = function(opts) {
+ this.ListAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -15521,7 +15270,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListProductAssignment;
@@ -15529,7 +15277,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15545,7 +15293,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSupplier}
*/
- this.ListSuppliers = function(productID, opts) {
+ this.ListSuppliers = function(productID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -15571,7 +15319,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSupplier;
@@ -15579,7 +15326,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/suppliers', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15595,7 +15342,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListVariant}
*/
- this.ListVariants = function(productID, opts) {
+ this.ListVariants = function(productID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -15621,7 +15368,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListVariant;
@@ -15629,7 +15375,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/variants', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15639,7 +15385,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Product} partialProduct
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
*/
- this.Patch = function(productID, partialProduct) {
+ this.Patch = function(productID, partialProduct, accessToken ) {
var postBody = partialProduct;
// verify the required parameter 'productID' is set
@@ -15663,7 +15409,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Product;
@@ -15671,7 +15416,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15682,7 +15427,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Variant} partialVariant
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Variant}
*/
- this.PatchVariant = function(productID, variantID, partialVariant) {
+ this.PatchVariant = function(productID, variantID, partialVariant, accessToken ) {
var postBody = partialVariant;
// verify the required parameter 'productID' is set
@@ -15712,7 +15457,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Variant;
@@ -15720,7 +15464,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/variants/{variantID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15730,7 +15474,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} supplierID ID of the supplier.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.RemoveSupplier = function(productID, supplierID) {
+ this.RemoveSupplier = function(productID, supplierID, accessToken ) {
var postBody = null;
// verify the required parameter 'productID' is set
@@ -15755,7 +15499,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -15763,7 +15506,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/suppliers/{supplierID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15773,7 +15516,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Product} product
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
*/
- this.Save = function(productID, product) {
+ this.Save = function(productID, product, accessToken ) {
var postBody = product;
// verify the required parameter 'productID' is set
@@ -15797,7 +15540,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Product;
@@ -15805,7 +15547,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15814,7 +15556,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ProductAssignment} productAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(productAssignment) {
+ this.SaveAssignment = function(productAssignment, accessToken ) {
var postBody = productAssignment;
// verify the required parameter 'productAssignment' is set
@@ -15832,7 +15574,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -15840,7 +15581,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15850,7 +15591,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} supplierID ID of the supplier.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveSupplier = function(productID, supplierID) {
+ this.SaveSupplier = function(productID, supplierID, accessToken ) {
var postBody = null;
// verify the required parameter 'productID' is set
@@ -15875,7 +15616,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -15883,7 +15623,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/suppliers/{supplierID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -15894,7 +15634,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Variant} variant
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Variant}
*/
- this.SaveVariant = function(productID, variantID, variant) {
+ this.SaveVariant = function(productID, variantID, variant, accessToken ) {
var postBody = variant;
// verify the required parameter 'productID' is set
@@ -15924,7 +15664,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Variant;
@@ -15932,7 +15671,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/products/{productID}/variants/{variantID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -15992,7 +15731,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Promotion} promotion
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Promotion}
*/
- this.Create = function(promotion) {
+ this.Create = function(promotion, accessToken ) {
var postBody = promotion;
// verify the required parameter 'promotion' is set
@@ -16010,7 +15749,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Promotion;
@@ -16018,7 +15756,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16027,7 +15765,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} promotionID ID of the promotion.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(promotionID) {
+ this.Delete = function(promotionID, accessToken ) {
var postBody = null;
// verify the required parameter 'promotionID' is set
@@ -16046,7 +15784,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -16054,7 +15791,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions/{promotionID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16067,7 +15804,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(promotionID, buyerID, opts) {
+ this.DeleteAssignment = function(promotionID, buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -16095,7 +15832,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -16103,7 +15839,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions/{promotionID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16112,7 +15848,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} promotionID ID of the promotion.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Promotion}
*/
- this.Get = function(promotionID) {
+ this.Get = function(promotionID, accessToken ) {
var postBody = null;
// verify the required parameter 'promotionID' is set
@@ -16131,7 +15867,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Promotion;
@@ -16139,7 +15874,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions/{promotionID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16154,7 +15889,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPromotion}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -16174,7 +15909,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListPromotion;
@@ -16182,7 +15916,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16198,7 +15932,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPromotionAssignment}
*/
- this.ListAssignments = function(opts) {
+ this.ListAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -16219,7 +15953,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListPromotionAssignment;
@@ -16227,7 +15960,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16237,7 +15970,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Promotion} partialPromotion
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Promotion}
*/
- this.Patch = function(promotionID, partialPromotion) {
+ this.Patch = function(promotionID, partialPromotion, accessToken ) {
var postBody = partialPromotion;
// verify the required parameter 'promotionID' is set
@@ -16261,7 +15994,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Promotion;
@@ -16269,7 +16001,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions/{promotionID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16279,7 +16011,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Promotion} promotion
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Promotion}
*/
- this.Save = function(promotionID, promotion) {
+ this.Save = function(promotionID, promotion, accessToken ) {
var postBody = promotion;
// verify the required parameter 'promotionID' is set
@@ -16303,7 +16035,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Promotion;
@@ -16311,7 +16042,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions/{promotionID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16320,7 +16051,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/PromotionAssignment} promotionAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(promotionAssignment) {
+ this.SaveAssignment = function(promotionAssignment, accessToken ) {
var postBody = promotionAssignment;
// verify the required parameter 'promotionAssignment' is set
@@ -16338,7 +16069,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -16346,7 +16076,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/promotions/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -16411,7 +16141,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.supplierID ID of the supplier.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(securityProfileID, opts) {
+ this.DeleteAssignment = function(securityProfileID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -16435,7 +16165,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -16443,7 +16172,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/securityprofiles/{securityProfileID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16452,7 +16181,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} securityProfileID ID of the security profile.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SecurityProfile}
*/
- this.Get = function(securityProfileID) {
+ this.Get = function(securityProfileID, accessToken ) {
var postBody = null;
// verify the required parameter 'securityProfileID' is set
@@ -16471,7 +16200,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SecurityProfile;
@@ -16479,7 +16207,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/securityprofiles/{securityProfileID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16494,7 +16222,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSecurityProfile}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -16514,7 +16242,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSecurityProfile;
@@ -16522,7 +16249,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/securityprofiles', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16540,7 +16267,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSecurityProfileAssignment}
*/
- this.ListAssignments = function(opts) {
+ this.ListAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -16563,7 +16290,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSecurityProfileAssignment;
@@ -16571,7 +16297,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/securityprofiles/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16580,7 +16306,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SecurityProfileAssignment} securityProfileAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(securityProfileAssignment) {
+ this.SaveAssignment = function(securityProfileAssignment, accessToken ) {
var postBody = securityProfileAssignment;
// verify the required parameter 'securityProfileAssignment' is set
@@ -16598,7 +16324,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -16606,7 +16331,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/securityprofiles/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -16666,7 +16391,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Shipment} shipment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Shipment}
*/
- this.Create = function(shipment) {
+ this.Create = function(shipment, accessToken ) {
var postBody = shipment;
// verify the required parameter 'shipment' is set
@@ -16684,7 +16409,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Shipment;
@@ -16692,7 +16416,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16701,7 +16425,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} shipmentID ID of the shipment.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(shipmentID) {
+ this.Delete = function(shipmentID, accessToken ) {
var postBody = null;
// verify the required parameter 'shipmentID' is set
@@ -16720,7 +16444,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -16728,7 +16451,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments/{shipmentID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16739,7 +16462,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} lineItemID ID of the line item.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteItem = function(shipmentID, orderID, lineItemID) {
+ this.DeleteItem = function(shipmentID, orderID, lineItemID, accessToken ) {
var postBody = null;
// verify the required parameter 'shipmentID' is set
@@ -16770,7 +16493,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -16778,7 +16500,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments/{shipmentID}/items/{orderID}/{lineItemID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16787,7 +16509,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} shipmentID ID of the shipment.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Shipment}
*/
- this.Get = function(shipmentID) {
+ this.Get = function(shipmentID, accessToken ) {
var postBody = null;
// verify the required parameter 'shipmentID' is set
@@ -16806,7 +16528,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Shipment;
@@ -16814,7 +16535,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments/{shipmentID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16825,7 +16546,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} lineItemID ID of the line item.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ShipmentItem}
*/
- this.GetItem = function(shipmentID, orderID, lineItemID) {
+ this.GetItem = function(shipmentID, orderID, lineItemID, accessToken ) {
var postBody = null;
// verify the required parameter 'shipmentID' is set
@@ -16856,7 +16577,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ShipmentItem;
@@ -16864,7 +16584,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments/{shipmentID}/items/{orderID}/{lineItemID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16880,7 +16600,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListShipment}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -16901,7 +16621,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListShipment;
@@ -16909,7 +16628,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16925,7 +16644,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListShipmentItem}
*/
- this.ListItems = function(shipmentID, opts) {
+ this.ListItems = function(shipmentID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -16951,7 +16670,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListShipmentItem;
@@ -16959,7 +16677,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments/{shipmentID}/items', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -16969,7 +16687,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Shipment} partialShipment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Shipment}
*/
- this.Patch = function(shipmentID, partialShipment) {
+ this.Patch = function(shipmentID, partialShipment, accessToken ) {
var postBody = partialShipment;
// verify the required parameter 'shipmentID' is set
@@ -16993,7 +16711,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Shipment;
@@ -17001,7 +16718,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments/{shipmentID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17011,7 +16728,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Shipment} shipment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Shipment}
*/
- this.Save = function(shipmentID, shipment) {
+ this.Save = function(shipmentID, shipment, accessToken ) {
var postBody = shipment;
// verify the required parameter 'shipmentID' is set
@@ -17035,7 +16752,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Shipment;
@@ -17043,7 +16759,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments/{shipmentID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17053,7 +16769,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ShipmentItem} shipmentItem
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ShipmentItem}
*/
- this.SaveItem = function(shipmentID, shipmentItem) {
+ this.SaveItem = function(shipmentID, shipmentItem, accessToken ) {
var postBody = shipmentItem;
// verify the required parameter 'shipmentID' is set
@@ -17077,7 +16793,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ShipmentItem;
@@ -17085,7 +16800,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/shipments/{shipmentID}/items', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -17145,7 +16860,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Spec} spec
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Spec}
*/
- this.Create = function(spec) {
+ this.Create = function(spec, accessToken ) {
var postBody = spec;
// verify the required parameter 'spec' is set
@@ -17163,7 +16878,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Spec;
@@ -17171,7 +16885,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17181,7 +16895,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SpecOption} specOption
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpecOption}
*/
- this.CreateOption = function(specID, specOption) {
+ this.CreateOption = function(specID, specOption, accessToken ) {
var postBody = specOption;
// verify the required parameter 'specID' is set
@@ -17205,7 +16919,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpecOption;
@@ -17213,7 +16926,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}/options', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17222,7 +16935,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} specID ID of the spec.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(specID) {
+ this.Delete = function(specID, accessToken ) {
var postBody = null;
// verify the required parameter 'specID' is set
@@ -17241,7 +16954,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -17249,7 +16961,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17259,7 +16971,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} optionID ID of the option.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteOption = function(specID, optionID) {
+ this.DeleteOption = function(specID, optionID, accessToken ) {
var postBody = null;
// verify the required parameter 'specID' is set
@@ -17284,7 +16996,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -17292,7 +17003,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}/options/{optionID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17302,7 +17013,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} productID ID of the product.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteProductAssignment = function(specID, productID) {
+ this.DeleteProductAssignment = function(specID, productID, accessToken ) {
var postBody = null;
// verify the required parameter 'specID' is set
@@ -17327,7 +17038,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -17335,7 +17045,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}/productassignments/{productID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17344,7 +17054,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} specID ID of the spec.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Spec}
*/
- this.Get = function(specID) {
+ this.Get = function(specID, accessToken ) {
var postBody = null;
// verify the required parameter 'specID' is set
@@ -17363,7 +17073,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Spec;
@@ -17371,7 +17080,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17381,7 +17090,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} optionID ID of the option.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpecOption}
*/
- this.GetOption = function(specID, optionID) {
+ this.GetOption = function(specID, optionID, accessToken ) {
var postBody = null;
// verify the required parameter 'specID' is set
@@ -17406,7 +17115,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpecOption;
@@ -17414,7 +17122,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}/options/{optionID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17429,7 +17137,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSpec}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -17449,7 +17157,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSpec;
@@ -17457,7 +17164,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17473,7 +17180,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSpecOption}
*/
- this.ListOptions = function(specID, opts) {
+ this.ListOptions = function(specID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -17499,7 +17206,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSpecOption;
@@ -17507,7 +17213,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}/options', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17522,7 +17228,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSpecProductAssignment}
*/
- this.ListProductAssignments = function(opts) {
+ this.ListProductAssignments = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -17542,7 +17248,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSpecProductAssignment;
@@ -17550,7 +17255,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/productassignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17560,7 +17265,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Spec} partialSpec
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Spec}
*/
- this.Patch = function(specID, partialSpec) {
+ this.Patch = function(specID, partialSpec, accessToken ) {
var postBody = partialSpec;
// verify the required parameter 'specID' is set
@@ -17584,7 +17289,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Spec;
@@ -17592,7 +17296,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17603,7 +17307,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SpecOption} partialSpecOption
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpecOption}
*/
- this.PatchOption = function(specID, optionID, partialSpecOption) {
+ this.PatchOption = function(specID, optionID, partialSpecOption, accessToken ) {
var postBody = partialSpecOption;
// verify the required parameter 'specID' is set
@@ -17633,7 +17337,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpecOption;
@@ -17641,7 +17344,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}/options/{optionID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17651,7 +17354,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Spec} spec
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Spec}
*/
- this.Save = function(specID, spec) {
+ this.Save = function(specID, spec, accessToken ) {
var postBody = spec;
// verify the required parameter 'specID' is set
@@ -17675,7 +17378,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Spec;
@@ -17683,7 +17385,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17694,7 +17396,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SpecOption} specOption
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpecOption}
*/
- this.SaveOption = function(specID, optionID, specOption) {
+ this.SaveOption = function(specID, optionID, specOption, accessToken ) {
var postBody = specOption;
// verify the required parameter 'specID' is set
@@ -17724,7 +17426,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpecOption;
@@ -17732,7 +17433,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/{specID}/options/{optionID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17741,7 +17442,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SpecProductAssignment} specProductAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveProductAssignment = function(specProductAssignment) {
+ this.SaveProductAssignment = function(specProductAssignment, accessToken ) {
var postBody = specProductAssignment;
// verify the required parameter 'specProductAssignment' is set
@@ -17759,7 +17460,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -17767,7 +17467,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/specs/productassignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -17828,7 +17528,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SpendingAccount} spendingAccount
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpendingAccount}
*/
- this.Create = function(buyerID, spendingAccount) {
+ this.Create = function(buyerID, spendingAccount, accessToken ) {
var postBody = spendingAccount;
// verify the required parameter 'buyerID' is set
@@ -17852,7 +17552,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpendingAccount;
@@ -17860,7 +17559,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17870,7 +17569,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} spendingAccountID ID of the spending account.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(buyerID, spendingAccountID) {
+ this.Delete = function(buyerID, spendingAccountID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -17895,7 +17594,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -17903,7 +17601,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts/{spendingAccountID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17916,7 +17614,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} opts.userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteAssignment = function(buyerID, spendingAccountID, opts) {
+ this.DeleteAssignment = function(buyerID, spendingAccountID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -17944,7 +17642,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -17952,7 +17649,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts/{spendingAccountID}/assignments', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -17962,7 +17659,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} spendingAccountID ID of the spending account.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpendingAccount}
*/
- this.Get = function(buyerID, spendingAccountID) {
+ this.Get = function(buyerID, spendingAccountID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -17987,7 +17684,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpendingAccount;
@@ -17995,7 +17691,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts/{spendingAccountID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18011,7 +17707,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSpendingAccount}
*/
- this.List = function(buyerID, opts) {
+ this.List = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -18037,7 +17733,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSpendingAccount;
@@ -18045,7 +17740,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18061,7 +17756,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSpendingAccountAssignment}
*/
- this.ListAssignments = function(buyerID, opts) {
+ this.ListAssignments = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -18087,7 +17782,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSpendingAccountAssignment;
@@ -18095,7 +17789,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18106,7 +17800,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SpendingAccount} partialSpendingAccount
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpendingAccount}
*/
- this.Patch = function(buyerID, spendingAccountID, partialSpendingAccount) {
+ this.Patch = function(buyerID, spendingAccountID, partialSpendingAccount, accessToken ) {
var postBody = partialSpendingAccount;
// verify the required parameter 'buyerID' is set
@@ -18136,7 +17830,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpendingAccount;
@@ -18144,7 +17837,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts/{spendingAccountID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18155,7 +17848,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SpendingAccount} spendingAccount
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SpendingAccount}
*/
- this.Save = function(buyerID, spendingAccountID, spendingAccount) {
+ this.Save = function(buyerID, spendingAccountID, spendingAccount, accessToken ) {
var postBody = spendingAccount;
// verify the required parameter 'buyerID' is set
@@ -18185,7 +17878,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = SpendingAccount;
@@ -18193,7 +17885,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts/{spendingAccountID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18203,7 +17895,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/SpendingAccountAssignment} spendingAccountAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveAssignment = function(buyerID, spendingAccountAssignment) {
+ this.SaveAssignment = function(buyerID, spendingAccountAssignment, accessToken ) {
var postBody = spendingAccountAssignment;
// verify the required parameter 'buyerID' is set
@@ -18227,7 +17919,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -18235,7 +17926,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/spendingaccounts/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -18296,7 +17987,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Create = function(supplierID, address) {
+ this.Create = function(supplierID, address, accessToken ) {
var postBody = address;
// verify the required parameter 'supplierID' is set
@@ -18320,7 +18011,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -18328,7 +18018,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/addresses', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18338,7 +18028,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} addressID ID of the address.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(supplierID, addressID) {
+ this.Delete = function(supplierID, addressID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -18363,7 +18053,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -18371,7 +18060,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/addresses/{addressID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18381,7 +18070,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} addressID ID of the address.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Get = function(supplierID, addressID) {
+ this.Get = function(supplierID, addressID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -18406,7 +18095,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -18414,7 +18102,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/addresses/{addressID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18430,7 +18118,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddress}
*/
- this.List = function(supplierID, opts) {
+ this.List = function(supplierID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -18456,7 +18144,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListAddress;
@@ -18464,7 +18151,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/addresses', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18475,7 +18162,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} partialAddress
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Patch = function(supplierID, addressID, partialAddress) {
+ this.Patch = function(supplierID, addressID, partialAddress, accessToken ) {
var postBody = partialAddress;
// verify the required parameter 'supplierID' is set
@@ -18505,7 +18192,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -18513,7 +18199,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/addresses/{addressID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18524,7 +18210,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Address} address
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Address}
*/
- this.Save = function(supplierID, addressID, address) {
+ this.Save = function(supplierID, addressID, address, accessToken ) {
var postBody = address;
// verify the required parameter 'supplierID' is set
@@ -18554,7 +18240,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Address;
@@ -18562,7 +18247,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/addresses/{addressID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -18623,7 +18308,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} userGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Create = function(supplierID, userGroup) {
+ this.Create = function(supplierID, userGroup, accessToken ) {
var postBody = userGroup;
// verify the required parameter 'supplierID' is set
@@ -18647,7 +18332,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -18655,7 +18339,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18665,7 +18349,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(supplierID, userGroupID) {
+ this.Delete = function(supplierID, userGroupID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -18690,7 +18374,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -18698,7 +18381,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups/{userGroupID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18709,7 +18392,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteUserAssignment = function(supplierID, userGroupID, userID) {
+ this.DeleteUserAssignment = function(supplierID, userGroupID, userID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -18740,7 +18423,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -18748,7 +18430,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups/{userGroupID}/assignments/{userID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18758,7 +18440,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Get = function(supplierID, userGroupID) {
+ this.Get = function(supplierID, userGroupID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -18783,7 +18465,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -18791,7 +18472,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups/{userGroupID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18807,7 +18488,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUserGroup}
*/
- this.List = function(supplierID, opts) {
+ this.List = function(supplierID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -18833,7 +18514,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUserGroup;
@@ -18841,7 +18521,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18855,7 +18535,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUserGroupAssignment}
*/
- this.ListUserAssignments = function(supplierID, opts) {
+ this.ListUserAssignments = function(supplierID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -18879,7 +18559,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUserGroupAssignment;
@@ -18887,7 +18566,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18898,7 +18577,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} partialUserGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Patch = function(supplierID, userGroupID, partialUserGroup) {
+ this.Patch = function(supplierID, userGroupID, partialUserGroup, accessToken ) {
var postBody = partialUserGroup;
// verify the required parameter 'supplierID' is set
@@ -18928,7 +18607,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -18936,7 +18614,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups/{userGroupID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18947,7 +18625,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} userGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Save = function(supplierID, userGroupID, userGroup) {
+ this.Save = function(supplierID, userGroupID, userGroup, accessToken ) {
var postBody = userGroup;
// verify the required parameter 'supplierID' is set
@@ -18977,7 +18655,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -18985,7 +18662,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups/{userGroupID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -18995,7 +18672,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroupAssignment} userGroupAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveUserAssignment = function(supplierID, userGroupAssignment) {
+ this.SaveUserAssignment = function(supplierID, userGroupAssignment, accessToken ) {
var postBody = userGroupAssignment;
// verify the required parameter 'supplierID' is set
@@ -19019,7 +18696,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -19027,7 +18703,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/usergroups/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -19088,7 +18764,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} user
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Create = function(supplierID, user) {
+ this.Create = function(supplierID, user, accessToken ) {
var postBody = user;
// verify the required parameter 'supplierID' is set
@@ -19112,7 +18788,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -19120,7 +18795,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/users', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19130,7 +18805,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(supplierID, userID) {
+ this.Delete = function(supplierID, userID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -19155,7 +18830,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -19163,7 +18837,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/users/{userID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19173,7 +18847,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Get = function(supplierID, userID) {
+ this.Get = function(supplierID, userID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -19198,7 +18872,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -19206,7 +18879,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/users/{userID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19217,7 +18890,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ImpersonateTokenRequest} impersonateTokenRequest
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AccessToken}
*/
- this.GetAccessToken = function(supplierID, userID, impersonateTokenRequest) {
+ this.GetAccessToken = function(supplierID, userID, impersonateTokenRequest, accessToken ) {
var postBody = impersonateTokenRequest;
// verify the required parameter 'supplierID' is set
@@ -19247,7 +18920,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = AccessToken;
@@ -19255,7 +18927,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/users/{userID}/accesstoken', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19272,7 +18944,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUser}
*/
- this.List = function(supplierID, opts) {
+ this.List = function(supplierID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -19299,7 +18971,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUser;
@@ -19307,7 +18978,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/users', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19318,7 +18989,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} partialUser
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Patch = function(supplierID, userID, partialUser) {
+ this.Patch = function(supplierID, userID, partialUser, accessToken ) {
var postBody = partialUser;
// verify the required parameter 'supplierID' is set
@@ -19348,7 +19019,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -19356,7 +19026,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/users/{userID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19367,7 +19037,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} user
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Save = function(supplierID, userID, user) {
+ this.Save = function(supplierID, userID, user, accessToken ) {
var postBody = user;
// verify the required parameter 'supplierID' is set
@@ -19397,7 +19067,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -19405,7 +19074,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}/users/{userID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -19465,7 +19134,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Supplier} supplier
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Supplier}
*/
- this.Create = function(supplier) {
+ this.Create = function(supplier, accessToken ) {
var postBody = supplier;
// verify the required parameter 'supplier' is set
@@ -19483,7 +19152,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Supplier;
@@ -19491,7 +19159,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19500,7 +19168,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} supplierID ID of the supplier.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(supplierID) {
+ this.Delete = function(supplierID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -19519,7 +19187,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -19527,7 +19194,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19536,7 +19203,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} supplierID ID of the supplier.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Supplier}
*/
- this.Get = function(supplierID) {
+ this.Get = function(supplierID, accessToken ) {
var postBody = null;
// verify the required parameter 'supplierID' is set
@@ -19555,7 +19222,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Supplier;
@@ -19563,7 +19229,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19578,7 +19244,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSupplier}
*/
- this.List = function(opts) {
+ this.List = function(opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -19598,7 +19264,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListSupplier;
@@ -19606,7 +19271,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19616,7 +19281,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Supplier} partialSupplier
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Supplier}
*/
- this.Patch = function(supplierID, partialSupplier) {
+ this.Patch = function(supplierID, partialSupplier, accessToken ) {
var postBody = partialSupplier;
// verify the required parameter 'supplierID' is set
@@ -19640,7 +19305,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Supplier;
@@ -19648,7 +19312,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19658,7 +19322,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/Supplier} supplier
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Supplier}
*/
- this.Save = function(supplierID, supplier) {
+ this.Save = function(supplierID, supplier, accessToken ) {
var postBody = supplier;
// verify the required parameter 'supplierID' is set
@@ -19682,7 +19346,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = Supplier;
@@ -19690,7 +19353,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/suppliers/{supplierID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -19751,7 +19414,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} userGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Create = function(buyerID, userGroup) {
+ this.Create = function(buyerID, userGroup, accessToken ) {
var postBody = userGroup;
// verify the required parameter 'buyerID' is set
@@ -19775,7 +19438,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -19783,7 +19445,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19793,7 +19455,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(buyerID, userGroupID) {
+ this.Delete = function(buyerID, userGroupID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -19818,7 +19480,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -19826,7 +19487,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups/{userGroupID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19837,7 +19498,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.DeleteUserAssignment = function(buyerID, userGroupID, userID) {
+ this.DeleteUserAssignment = function(buyerID, userGroupID, userID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -19868,7 +19529,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -19876,7 +19536,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups/{userGroupID}/assignments/{userID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19886,7 +19546,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userGroupID ID of the user group.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Get = function(buyerID, userGroupID) {
+ this.Get = function(buyerID, userGroupID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -19911,7 +19571,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -19919,7 +19578,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups/{userGroupID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19935,7 +19594,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUserGroup}
*/
- this.List = function(buyerID, opts) {
+ this.List = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -19961,7 +19620,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUserGroup;
@@ -19969,7 +19627,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -19983,7 +19641,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Number} opts.pageSize Number of results to return per page. Default: 20, max: 100.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUserGroupAssignment}
*/
- this.ListUserAssignments = function(buyerID, opts) {
+ this.ListUserAssignments = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -20007,7 +19665,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUserGroupAssignment;
@@ -20015,7 +19672,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups/assignments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20026,7 +19683,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} partialUserGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Patch = function(buyerID, userGroupID, partialUserGroup) {
+ this.Patch = function(buyerID, userGroupID, partialUserGroup, accessToken ) {
var postBody = partialUserGroup;
// verify the required parameter 'buyerID' is set
@@ -20056,7 +19713,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -20064,7 +19720,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups/{userGroupID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20075,7 +19731,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroup} userGroup
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserGroup}
*/
- this.Save = function(buyerID, userGroupID, userGroup) {
+ this.Save = function(buyerID, userGroupID, userGroup, accessToken ) {
var postBody = userGroup;
// verify the required parameter 'buyerID' is set
@@ -20105,7 +19761,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = UserGroup;
@@ -20113,7 +19768,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups/{userGroupID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20123,7 +19778,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/UserGroupAssignment} userGroupAssignment
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.SaveUserAssignment = function(buyerID, userGroupAssignment) {
+ this.SaveUserAssignment = function(buyerID, userGroupAssignment, accessToken ) {
var postBody = userGroupAssignment;
// verify the required parameter 'buyerID' is set
@@ -20147,7 +19802,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -20155,7 +19809,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/usergroups/assignments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -20216,7 +19870,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} user
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Create = function(buyerID, user) {
+ this.Create = function(buyerID, user, accessToken ) {
var postBody = user;
// verify the required parameter 'buyerID' is set
@@ -20240,7 +19894,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -20248,7 +19901,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/users', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20258,7 +19911,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.Delete = function(buyerID, userID) {
+ this.Delete = function(buyerID, userID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -20283,7 +19936,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = null;
@@ -20291,7 +19943,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/users/{userID}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20301,7 +19953,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} userID ID of the user.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Get = function(buyerID, userID) {
+ this.Get = function(buyerID, userID, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -20326,7 +19978,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -20334,7 +19985,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/users/{userID}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20345,7 +19996,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/ImpersonateTokenRequest} impersonateTokenRequest
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AccessToken}
*/
- this.GetAccessToken = function(buyerID, userID, impersonateTokenRequest) {
+ this.GetAccessToken = function(buyerID, userID, impersonateTokenRequest, accessToken ) {
var postBody = impersonateTokenRequest;
// verify the required parameter 'buyerID' is set
@@ -20375,7 +20026,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = AccessToken;
@@ -20383,7 +20033,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/users/{userID}/accesstoken', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20400,7 +20050,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {Object.} opts.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUser}
*/
- this.List = function(buyerID, opts) {
+ this.List = function(buyerID, opts, accessToken ) {
opts = opts || {};
var postBody = null;
@@ -20427,7 +20077,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = ListUser;
@@ -20435,7 +20084,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/users', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20447,7 +20096,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {String} orders Orders of the user. Possible values: None, Unsubmitted, All.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Move = function(buyerID, userID, newBuyerID, orders) {
+ this.Move = function(buyerID, userID, newBuyerID, orders, accessToken ) {
var postBody = null;
// verify the required parameter 'buyerID' is set
@@ -20484,7 +20133,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -20492,7 +20140,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/users/{userID}/moveto/{newBuyerID}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20503,7 +20151,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} partialUser
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Patch = function(buyerID, userID, partialUser) {
+ this.Patch = function(buyerID, userID, partialUser, accessToken ) {
var postBody = partialUser;
// verify the required parameter 'buyerID' is set
@@ -20533,7 +20181,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -20541,7 +20188,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/users/{userID}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
@@ -20552,7 +20199,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @param {module:model/User} user
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
- this.Save = function(buyerID, userID, user) {
+ this.Save = function(buyerID, userID, user, accessToken ) {
var postBody = user;
// verify the required parameter 'buyerID' is set
@@ -20582,7 +20229,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
var formParams = {
};
- var authNames = ['oauth2'];
var contentTypes = ['application/json', 'text/plain; charset=utf-8'];
var accepts = ['application/json'];
var returnType = User;
@@ -20590,7 +20236,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return this.sdk.callApi(
'/buyers/{buyerID}/users/{userID}', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType
+ contentTypes, accepts, returnType, accessToken
);
}
};
@@ -20652,7 +20298,7 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
*
*
* @module index
- * @version 3.2.3
+ * @version 3.3.3
*/
var exports = {
/**
@@ -21831,12 +21477,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data) {
obj = obj || new exports();
- if (data.hasOwnProperty('AddressName')) {
- obj['AddressName'] = Sdk.convertToType(data['AddressName'], 'String');
- }
- if (data.hasOwnProperty('City')) {
- obj['City'] = Sdk.convertToType(data['City'], 'String');
- }
if (data.hasOwnProperty('ID')) {
obj['ID'] = Sdk.convertToType(data['ID'], 'String');
}
@@ -21858,6 +21498,9 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data.hasOwnProperty('Street2')) {
obj['Street2'] = Sdk.convertToType(data['Street2'], 'String');
}
+ if (data.hasOwnProperty('City')) {
+ obj['City'] = Sdk.convertToType(data['City'], 'String');
+ }
if (data.hasOwnProperty('State')) {
obj['State'] = Sdk.convertToType(data['State'], 'String');
}
@@ -21870,6 +21513,9 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data.hasOwnProperty('Phone')) {
obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
}
+ if (data.hasOwnProperty('AddressName')) {
+ obj['AddressName'] = Sdk.convertToType(data['AddressName'], 'String');
+ }
if (data.hasOwnProperty('xp')) {
obj['xp'] = Sdk.convertToType(data['xp'], Object);
}
@@ -21877,14 +21523,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return obj;
}
- /**
- * @member {String} AddressName
- */
- exports.prototype['AddressName'] = undefined;
- /**
- * @member {String} City
- */
- exports.prototype['City'] = undefined;
/**
* @member {String} ID
*/
@@ -21913,6 +21551,10 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @member {String} Street2
*/
exports.prototype['Street2'] = undefined;
+ /**
+ * @member {String} City
+ */
+ exports.prototype['City'] = undefined;
/**
* @member {String} State
*/
@@ -21929,6 +21571,10 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @member {String} Phone
*/
exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} AddressName
+ */
+ exports.prototype['AddressName'] = undefined;
/**
* @member {Object} xp
*/
@@ -31847,12 +31493,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data) {
obj = obj || new exports();
- if (data.hasOwnProperty('AddressName')) {
- obj['AddressName'] = Sdk.convertToType(data['AddressName'], 'String');
- }
- if (data.hasOwnProperty('City')) {
- obj['City'] = Sdk.convertToType(data['City'], 'String');
- }
if (data.hasOwnProperty('ID')) {
obj['ID'] = Sdk.convertToType(data['ID'], 'String');
}
@@ -31874,6 +31514,9 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data.hasOwnProperty('Street2')) {
obj['Street2'] = Sdk.convertToType(data['Street2'], 'String');
}
+ if (data.hasOwnProperty('City')) {
+ obj['City'] = Sdk.convertToType(data['City'], 'String');
+ }
if (data.hasOwnProperty('State')) {
obj['State'] = Sdk.convertToType(data['State'], 'String');
}
@@ -31886,6 +31529,9 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data.hasOwnProperty('Phone')) {
obj['Phone'] = Sdk.convertToType(data['Phone'], 'String');
}
+ if (data.hasOwnProperty('AddressName')) {
+ obj['AddressName'] = Sdk.convertToType(data['AddressName'], 'String');
+ }
if (data.hasOwnProperty('xp')) {
obj['xp'] = Sdk.convertToType(data['xp'], Object);
}
@@ -31893,14 +31539,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return obj;
}
- /**
- * @member {String} AddressName
- */
- exports.prototype['AddressName'] = undefined;
- /**
- * @member {String} City
- */
- exports.prototype['City'] = undefined;
/**
* @member {String} ID
*/
@@ -31929,6 +31567,10 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @member {String} Street2
*/
exports.prototype['Street2'] = undefined;
+ /**
+ * @member {String} City
+ */
+ exports.prototype['City'] = undefined;
/**
* @member {String} State
*/
@@ -31945,6 +31587,10 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @member {String} Phone
*/
exports.prototype['Phone'] = undefined;
+ /**
+ * @member {String} AddressName
+ */
+ exports.prototype['AddressName'] = undefined;
/**
* @member {Object} xp
*/
@@ -35665,9 +35311,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data) {
obj = obj || new exports();
- if (data.hasOwnProperty('Description')) {
- obj['Description'] = Sdk.convertToType(data['Description'], 'String');
- }
if (data.hasOwnProperty('DefaultPriceScheduleID')) {
obj['DefaultPriceScheduleID'] = Sdk.convertToType(data['DefaultPriceScheduleID'], 'String');
}
@@ -35677,6 +35320,9 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data.hasOwnProperty('Name')) {
obj['Name'] = Sdk.convertToType(data['Name'], 'String');
}
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
if (data.hasOwnProperty('QuantityMultiplier')) {
obj['QuantityMultiplier'] = Sdk.convertToType(data['QuantityMultiplier'], 'Number');
}
@@ -35717,10 +35363,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return obj;
}
- /**
- * @member {String} Description
- */
- exports.prototype['Description'] = undefined;
/**
* @member {String} DefaultPriceScheduleID
*/
@@ -35733,6 +35375,10 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @member {String} Name
*/
exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
/**
* @member {Number} QuantityMultiplier
*/
@@ -38097,9 +37743,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data) {
obj = obj || new exports();
- if (data.hasOwnProperty('Description')) {
- obj['Description'] = Sdk.convertToType(data['Description'], 'String');
- }
if (data.hasOwnProperty('DefaultPriceScheduleID')) {
obj['DefaultPriceScheduleID'] = Sdk.convertToType(data['DefaultPriceScheduleID'], 'String');
}
@@ -38109,6 +37752,9 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
if (data.hasOwnProperty('Name')) {
obj['Name'] = Sdk.convertToType(data['Name'], 'String');
}
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = Sdk.convertToType(data['Description'], 'String');
+ }
if (data.hasOwnProperty('QuantityMultiplier')) {
obj['QuantityMultiplier'] = Sdk.convertToType(data['QuantityMultiplier'], 'Number');
}
@@ -38149,10 +37795,6 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
return obj;
}
- /**
- * @member {String} Description
- */
- exports.prototype['Description'] = undefined;
/**
* @member {String} DefaultPriceScheduleID
*/
@@ -38165,6 +37807,10 @@ exports.prototype.callAuth = function callApi(path, httpMethod, pathParams,
* @member {String} Name
*/
exports.prototype['Name'] = undefined;
+ /**
+ * @member {String} Description
+ */
+ exports.prototype['Description'] = undefined;
/**
* @member {Number} QuantityMultiplier
*/
diff --git a/dist/ordercloud-javascript-sdk.min.js b/dist/ordercloud-javascript-sdk.min.js
index 8ea8839a..7ddbc056 100644
--- a/dist/ordercloud-javascript-sdk.min.js
+++ b/dist/ordercloud-javascript-sdk.min.js
@@ -1,14 +1,13 @@
-!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.OrderCloudSDK=e()}}(function(){var e,t,r;return function(){function e(t,r,o){function n(s,a){if(!r[s]){if(!t[s]){var p="function"==typeof require&&require;if(!a&&p)return p(s,!0);if(i)return i(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){var r=t[s][1][e];return n(r||e)},u,u.exports,e,t,r,o)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function n(e){var t=o(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function i(e,t,r){return 3*(t+r)/4-r}function s(e){for(var t,r=o(e),n=r[0],s=r[1],a=new c(i(e,n,s)),p=0,d=s>0?n-4:n,u=0;u>16&255,a[p++]=t>>8&255,a[p++]=255&t;return 2===s&&(t=l[e.charCodeAt(u)]<<2|l[e.charCodeAt(u+1)]>>4,a[p++]=255&t),1===s&&(t=l[e.charCodeAt(u)]<<10|l[e.charCodeAt(u+1)]<<4|l[e.charCodeAt(u+2)]>>2,a[p++]=t>>8&255,a[p++]=255&t),a}function a(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function p(e,t,r){for(var o,n=[],i=t;ia?a:s+i));return 1===o?(t=e[r-1],n.push(u[t>>2]+u[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],n.push(u[t>>10]+u[t>>4&63]+u[t<<2&63]+"=")),n.join("")}r.byteLength=n,r.toByteArray=s,r.fromByteArray=d;for(var u=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,m=h.length;yZ)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=i.prototype,t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return u(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return c(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return i.from(o,t,r);var n=h(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,r){return a(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)}function d(e){return a(e),n(e<0?0:0|y(e))}function u(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|f(e,t),o=n(r),s=o.write(e,t);return s!==r&&(o=o.slice(0,s)),o}function l(e){for(var t=e.length<0?0:0|y(e.length),r=n(t),o=0;o=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function f(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return o?-1:R(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return x(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function w(e,t,r,o,n){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,W(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=i.from(t,o)),i.isBuffer(t))return 0===t.length?-1:S(e,t,r,o,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,o,n);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,o,n){function i(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,p=t.length;if(void 0!==o&&(o=String(o).toLowerCase(),"ucs2"===o||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;s=2,a/=2,p/=2,r/=2}var d;if(n){var u=-1;for(d=r;da&&(r=a-p),d=r;d>=0;d--){for(var l=!0,c=0;cn&&(o=n)):o=n;var i=t.length;o>i/2&&(o=i/2);for(var s=0;s239?4:i>223?3:i>191?2:1;if(n+a<=r){var p,d,u,l;switch(a){case 1:i<128&&(s=i);break;case 2:p=e[n+1],128===(192&p)&&(l=(31&i)<<6|63&p,l>127&&(s=l));break;case 3:p=e[n+1],d=e[n+2],128===(192&p)&&128===(192&d)&&(l=(15&i)<<12|(63&p)<<6|63&d,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:p=e[n+1],d=e[n+2],u=e[n+3],128===(192&p)&&128===(192&d)&&128===(192&u)&&(l=(15&i)<<18|(63&p)<<12|(63&d)<<6|63&u,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,o.push(s>>>10&1023|55296),s=56320|1023&s),o.push(s),n+=a}return b(o)}function b(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",o=0;oo)&&(r=o);for(var n="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,r,o,n,s){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function B(e,t,r,o,n,i){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,r,o,23,4),r+4}function N(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,r,o,52,8),r+8}function G(e){if(e=e.split("=")[0],e=e.trim().replace(J,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function R(e,t){t=t||1/0;for(var r,o=e.length,n=null,i=[],s=0;s55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===o){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function _(e){for(var t=[],r=0;r>8,n=r%256,i.push(n),i.push(o);return i}function z(e){return X.toByteArray(G(e))}function H(e,t,r,o){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!==e}var X=e("base64-js"),K=e("ieee754");r.Buffer=i,r.SlowBuffer=m,r.INSPECT_MAX_BYTES=50;var Z=2147483647;r.kMaxLength=Z,i.TYPED_ARRAY_SUPPORT=o(),i.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(e,t,r){return s(e,t,r)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(e,t,r){return p(e,t,r)},i.allocUnsafe=function(e){return d(e)},i.allocUnsafeSlow=function(e){return d(e)},i.isBuffer=function e(t){return null!=t&&t._isBuffer===!0&&t!==i.prototype},i.compare=function e(t,r){if(Q(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),Q(r,Uint8Array)&&(r=i.from(r,r.offset,r.byteLength)),!i.isBuffer(t)||!i.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,n=r.length,s=0,a=Math.min(o,n);so&&(t+=" ... "),""},i.prototype.compare=function e(t,r,o,n,s){if(Q(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===o&&(o=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),r<0||o>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&r>=o)return 0;if(n>=s)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,n>>>=0,s>>>=0,this===t)return 0;for(var a=s-n,p=o-r,d=Math.min(a,p),u=this.slice(n,s),l=t.slice(r,o),c=0;c>>=0,isFinite(o)?(o>>>=0,void 0===n&&(n="utf8")):(n=o,o=void 0)}var i=this.length-r;if((void 0===o||o>i)&&(o=i),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return O(this,t,r,o);case"utf8":case"utf-8":return D(this,t,r,o);case"ascii":return I(this,t,r,o);case"latin1":case"binary":return C(this,t,r,o);case"base64":return T(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r,o);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},i.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;i.prototype.slice=function e(t,r){var o=this.length;t=~~t,r=void 0===r?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r>>=0,r>>>=0,o||L(t,r,this.length);for(var n=this[t],i=1,s=0;++s>>=0,r>>>=0,o||L(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},i.prototype.readUInt8=function e(t,r){return t>>>=0,r||L(t,1,this.length),this[t]},i.prototype.readUInt16LE=function e(t,r){return t>>>=0,r||L(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function e(t,r){return t>>>=0,r||L(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function e(t,r){return t>>>=0,r||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function e(t,r){return t>>>=0,r||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function e(t,r,o){t>>>=0,r>>>=0,o||L(t,r,this.length);for(var n=this[t],i=1,s=0;++s=i&&(n-=Math.pow(2,8*r)),n},i.prototype.readIntBE=function e(t,r,o){t>>>=0,r>>>=0,o||L(t,r,this.length);for(var n=r,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s},i.prototype.readInt8=function e(t,r){return t>>>=0,r||L(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},i.prototype.readInt16LE=function e(t,r){t>>>=0,r||L(t,2,this.length);var o=this[t]|this[t+1]<<8;return 32768&o?4294901760|o:o},i.prototype.readInt16BE=function e(t,r){t>>>=0,r||L(t,2,this.length);var o=this[t+1]|this[t]<<8;return 32768&o?4294901760|o:o},i.prototype.readInt32LE=function e(t,r){return t>>>=0,r||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function e(t,r){return t>>>=0,r||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function e(t,r){return t>>>=0,r||L(t,4,this.length),K.read(this,t,!0,23,4)},i.prototype.readFloatBE=function e(t,r){return t>>>=0,r||L(t,4,this.length),K.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function e(t,r){return t>>>=0,r||L(t,8,this.length),K.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function e(t,r){return t>>>=0,r||L(t,8,this.length),K.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function e(t,r,o,n){if(t=+t,r>>>=0,o>>>=0,!n){var i=Math.pow(2,8*o)-1;q(this,t,r,o,i,0)}var s=1,a=0;for(this[r]=255&t;++a>>=0,o>>>=0,!n){var i=Math.pow(2,8*o)-1;q(this,t,r,o,i,0)}var s=o-1,a=1;for(this[r+s]=255&t;--s>=0&&(a*=256);)this[r+s]=t/a&255;return r+o},i.prototype.writeUInt8=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,1,255,0),this[r]=255&t,r+1},i.prototype.writeUInt16LE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},i.prototype.writeUInt16BE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},i.prototype.writeUInt32LE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},i.prototype.writeUInt32BE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},i.prototype.writeIntLE=function e(t,r,o,n){if(t=+t,r>>>=0,!n){var i=Math.pow(2,8*o-1);q(this,t,r,o,i-1,-i)}var s=0,a=1,p=0;for(this[r]=255&t;++s>0)-p&255;return r+o},i.prototype.writeIntBE=function e(t,r,o,n){if(t=+t,r>>>=0,!n){var i=Math.pow(2,8*o-1);q(this,t,r,o,i-1,-i)}var s=o-1,a=1,p=0;for(this[r+s]=255&t;--s>=0&&(a*=256);)t<0&&0===p&&0!==this[r+s+1]&&(p=1),this[r+s]=(t/a>>0)-p&255;return r+o},i.prototype.writeInt8=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},i.prototype.writeInt16LE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},i.prototype.writeInt16BE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},i.prototype.writeInt32LE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},i.prototype.writeInt32BE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},i.prototype.writeFloatLE=function e(t,r,o){return U(this,t,r,!0,o)},i.prototype.writeFloatBE=function e(t,r,o){return U(this,t,r,!1,o)},i.prototype.writeDoubleLE=function e(t,r,o){return N(this,t,r,!0,o)},i.prototype.writeDoubleBE=function e(t,r,o){return N(this,t,r,!1,o)},i.prototype.copy=function e(t,r,o,n){if(!i.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--a)t[a+r]=this[a+o];else Uint8Array.prototype.set.call(t,this.subarray(o,n),r);return s},i.prototype.fill=function e(t,r,o,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,o=this.length):"string"==typeof o&&(n=o,o=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var s=t.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(t=s)}}else"number"==typeof t&&(t&=255);if(r<0||this.length>>=0,o=void 0===o?this.length:o>>>0,t||(t=0);var a;if("number"==typeof t)for(a=r;a>1,u=-7,l=r?n-1:0,c=r?-1:1,h=e[t+l];for(l+=c,i=h&(1<<-u)-1,h>>=-u,u+=a;u>0;i=256*i+e[t+l],l+=c,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=o;u>0;s=256*s+e[t+l],l+=c,u-=8);if(0===i)i=1-d;else{if(i===p)return s?NaN:(h?-1:1)*(1/0);s+=Math.pow(2,o),i-=d}return(h?-1:1)*s*Math.pow(2,i-o)},r.write=function(e,t,r,o,n,i){var s,a,p,d=8*i-n-1,u=(1<>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:i-1,y=o?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-s))<1&&(s--,p*=2),t+=s+l>=1?c/p:c*Math.pow(2,1-l),t*p>=2&&(s++,p/=2),s+l>=u?(a=0,s=u):s+l>=1?(a=(t*p-1)*Math.pow(2,n),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,n),s=0));n>=8;e[r+h]=255&a,h+=y,a/=256,n-=8);for(s=s<0;e[r+h]=255&s,h+=y,s/=256,d-=8);e[r+h-y]|=128*m}},{}],5:[function(e,t,r){function o(e){if(e)return n(e)}function n(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}"undefined"!=typeof t&&(t.exports=o),o.prototype.on=o.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},o.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o,n=0;n=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==r){var o;try{o=t.status}catch(e){o=0}if(!o){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var o=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{t.onprogress=o.bind(null,"download"),t.upload&&(t.upload.onprogress=o.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0);
-}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var n=this._header["content-type"],i=this._serializer||g.serialize[n?n.split(";")[0]:""];!i&&p(n)&&(i=g.serialize["application/json"]),i&&(r=i(r))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&t.setRequestHeader(s,this.header[s]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send("undefined"!=typeof r?r:null),this},g.agent=function(){return new v},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){v.prototype[e.toLowerCase()]=function(t,r){var o=new g.Request(e,t);return this._setDefaults(o),r&&o.end(r),o}}),v.prototype.del=v.prototype.delete,g.get=function(e,t,r){var o=g("GET",e);return"function"==typeof t&&(r=t,t=null),t&&o.query(t),r&&o.end(r),o},g.head=function(e,t,r){var o=g("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&o.query(t),r&&o.end(r),o},g.options=function(e,t,r){var o=g("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},g.del=l,g.delete=l,g.patch=function(e,t,r){var o=g("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},g.post=function(e,t,r){var o=g("POST",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},g.put=function(e,t,r){var o=g("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o}},{"./agent-base":6,"./is-object":8,"./request-base":9,"./response-base":10,"component-emitter":5}],8:[function(e,t,r){"use strict";function o(e){return null!==e&&"object"==typeof e}t.exports=o},{}],9:[function(e,t,r){"use strict";function o(e){if(e)return n(e)}function n(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}var i=e("./is-object");t.exports=o,o.prototype.clearTimeout=function e(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},o.prototype.parse=function e(t){return this._parser=t,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function e(t){return this._serializer=t,this},o.prototype.timeout=function e(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this;for(var r in t)switch(r){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;default:console.warn("Unknown timeout option",r)}return this},o.prototype.retry=function e(t,r){return 0!==arguments.length&&t!==!0||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=r,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(e,t);if(r===!0)return!0;if(r===!1)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~s.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function e(t,r){if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){o.end(function(r,o){r?t(r):e(o)})})}return this._fullfilledPromise.then(t,r)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function e(t){return t(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(i(e)){for(var r in e)this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null===e||void 0===e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),i(e)){for(var r in e)this.field(r,e[r]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null===t||void 0===t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},o.prototype._auth=function(e,t,r,o){switch(r.type){case"basic":this.set("Authorization","Basic "+o(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return void 0==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=i(e),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&i(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],"application/x-www-form-urlencoded"==r?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(r||this.type("json"),this)},o.prototype.sortQuery=function(e){return this._sort="undefined"==typeof e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var r=this.url.substring(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,t)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,r){if(!this._aborted){var o=new Error(e+t+"ms exceeded");o.timeout=t,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.abort(),this.callback(o)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},{"./is-object":8}],10:[function(e,t,r){"use strict";function o(e){if(e)return n(e)}function n(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}var i=e("./utils");t.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=i.type(t);var r=i.params(t);for(var o in r)this[o]=r[o];this.links={};try{e.link&&(this.links=i.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e}},{"./utils":11}],11:[function(e,t,r){"use strict";r.type=function(e){return e.split(/ *; */).shift()},r.params=function(e){return e.split(/ *; */).reduce(function(e,t){var r=t.split(/ *= */),o=r.shift(),n=r.shift();return o&&n&&(e[o]=n),e},{})},r.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var r=t.split(/ *; */),o=r[0].slice(1,-1),n=r[1].split(/ *= */)[1].slice(1,-1);return e[n]=o,e},{})},r.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},{}],12:[function(t,r,o){(function(o){!function(o,n){"function"==typeof e&&e.amd?e(["superagent"],n):"object"==typeof r&&r.exports?r.exports=n(t("superagent")):(o.OrderCloud||(o.OrderCloud={}),o.OrderCloud.Sdk=n(o.superagent))}(this,function(e){"use strict";var r=function(){this.baseApiPath="https://api.ordercloud.io/v1".replace(/\/+$/,""),this.baseAuthPath="https://auth.ordercloud.io".replace(/\/+$/,""),this.authentications={oauth2:{type:"oauth2"}},this.defaultHeaders={},this.timeout=6e4};return r.prototype.paramToString=function(e){return void 0==e||null==e?"":e instanceof Date?e.toJSON():e.toString()},r.prototype.buildUrl=function(e,t){e.match(/^\//)||(e="/"+e);var r=this,o=r.baseApiPath+e;return o=o.replace(/\{([\w-]+)\}/g,function(e,o){var n;return n=t.hasOwnProperty(o)?r.paramToString(t[o]):e,encodeURIComponent(n)})},r.prototype.isJsonMime=function(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))},r.prototype.jsonPreferredMime=function(e){for(var t=0;t0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function n(e){var t=o(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function i(e,t,r){return 3*(t+r)/4-r}function s(e){for(var t,r=o(e),n=r[0],s=r[1],a=new c(i(e,n,s)),p=0,d=s>0?n-4:n,l=0;l>16&255,a[p++]=t>>8&255,a[p++]=255&t;return 2===s&&(t=u[e.charCodeAt(l)]<<2|u[e.charCodeAt(l+1)]>>4,a[p++]=255&t),1===s&&(t=u[e.charCodeAt(l)]<<10|u[e.charCodeAt(l+1)]<<4|u[e.charCodeAt(l+2)]>>2,a[p++]=t>>8&255,a[p++]=255&t),a}function a(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function p(e,t,r){for(var o,n=[],i=t;ia?a:s+i));return 1===o?(t=e[r-1],n.push(l[t>>2]+l[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],n.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),n.join("")}r.byteLength=n,r.toByteArray=s,r.fromByteArray=d;for(var l=[],u=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,m=h.length;yK)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=i.prototype,t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return l(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return c(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return i.from(o,t,r);var n=h(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,r){return a(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)}function d(e){return a(e),n(e<0?0:0|y(e))}function l(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|f(e,t),o=n(r),s=o.write(e,t);return s!==r&&(o=o.slice(0,s)),o}function u(e){for(var t=e.length<0?0:0|y(e.length),r=n(t),o=0;o=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function f(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return o?-1:R(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return x(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function w(e,t,r,o,n){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,W(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=i.from(t,o)),i.isBuffer(t))return 0===t.length?-1:S(e,t,r,o,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,o,n);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,o,n){function i(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,p=t.length;if(void 0!==o&&(o=String(o).toLowerCase(),"ucs2"===o||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;s=2,a/=2,p/=2,r/=2}var d;if(n){var l=-1;for(d=r;da&&(r=a-p),d=r;d>=0;d--){for(var u=!0,c=0;cn&&(o=n)):o=n;var i=t.length;o>i/2&&(o=i/2);for(var s=0;s239?4:i>223?3:i>191?2:1;if(n+a<=r){var p,d,l,u;switch(a){case 1:i<128&&(s=i);break;case 2:p=e[n+1],128===(192&p)&&(u=(31&i)<<6|63&p,u>127&&(s=u));break;case 3:p=e[n+1],d=e[n+2],128===(192&p)&&128===(192&d)&&(u=(15&i)<<12|(63&p)<<6|63&d,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:p=e[n+1],d=e[n+2],l=e[n+3],128===(192&p)&&128===(192&d)&&128===(192&l)&&(u=(15&i)<<18|(63&p)<<12|(63&d)<<6|63&l,u>65535&&u<1114112&&(s=u))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,o.push(s>>>10&1023|55296),s=56320|1023&s),o.push(s),n+=a}return b(o)}function b(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",o=0;oo)&&(r=o);for(var n="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,r,o,n,s){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function B(e,t,r,o,n,i){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,r,o,23,4),r+4}function N(e,t,r,o,n){return t=+t,r>>>=0,n||B(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,r,o,52,8),r+8}function G(e){if(e=e.split("=")[0],e=e.trim().replace(J,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function R(e,t){t=t||1/0;for(var r,o=e.length,n=null,i=[],s=0;s55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===o){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function _(e){for(var t=[],r=0;r>8,n=r%256,i.push(n),i.push(o);return i}function z(e){return X.toByteArray(G(e))}function H(e,t,r,o){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!==e}var X=e("base64-js"),Z=e("ieee754");r.Buffer=i,r.SlowBuffer=m,r.INSPECT_MAX_BYTES=50;var K=2147483647;r.kMaxLength=K,i.TYPED_ARRAY_SUPPORT=o(),i.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(e,t,r){return s(e,t,r)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(e,t,r){return p(e,t,r)},i.allocUnsafe=function(e){return d(e)},i.allocUnsafeSlow=function(e){return d(e)},i.isBuffer=function e(t){return null!=t&&t._isBuffer===!0&&t!==i.prototype},i.compare=function e(t,r){if(Q(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),Q(r,Uint8Array)&&(r=i.from(r,r.offset,r.byteLength)),!i.isBuffer(t)||!i.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,n=r.length,s=0,a=Math.min(o,n);so&&(t+=" ... "),""},i.prototype.compare=function e(t,r,o,n,s){if(Q(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===o&&(o=t?t.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),r<0||o>t.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&r>=o)return 0;if(n>=s)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,n>>>=0,s>>>=0,this===t)return 0;for(var a=s-n,p=o-r,d=Math.min(a,p),l=this.slice(n,s),u=t.slice(r,o),c=0;c>>=0,isFinite(o)?(o>>>=0,void 0===n&&(n="utf8")):(n=o,o=void 0)}var i=this.length-r;if((void 0===o||o>i)&&(o=i),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return O(this,t,r,o);case"utf8":case"utf-8":return D(this,t,r,o);case"ascii":return I(this,t,r,o);case"latin1":case"binary":return C(this,t,r,o);case"base64":return T(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r,o);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},i.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;i.prototype.slice=function e(t,r){var o=this.length;t=~~t,r=void 0===r?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r>>=0,r>>>=0,o||L(t,r,this.length);for(var n=this[t],i=1,s=0;++s>>=0,r>>>=0,o||L(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},i.prototype.readUInt8=function e(t,r){return t>>>=0,r||L(t,1,this.length),this[t]},i.prototype.readUInt16LE=function e(t,r){return t>>>=0,r||L(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function e(t,r){return t>>>=0,r||L(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function e(t,r){return t>>>=0,r||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function e(t,r){return t>>>=0,r||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function e(t,r,o){t>>>=0,r>>>=0,o||L(t,r,this.length);for(var n=this[t],i=1,s=0;++s=i&&(n-=Math.pow(2,8*r)),n},i.prototype.readIntBE=function e(t,r,o){t>>>=0,r>>>=0,o||L(t,r,this.length);for(var n=r,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s},i.prototype.readInt8=function e(t,r){return t>>>=0,r||L(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},i.prototype.readInt16LE=function e(t,r){t>>>=0,r||L(t,2,this.length);var o=this[t]|this[t+1]<<8;return 32768&o?4294901760|o:o},i.prototype.readInt16BE=function e(t,r){t>>>=0,r||L(t,2,this.length);var o=this[t+1]|this[t]<<8;return 32768&o?4294901760|o:o},i.prototype.readInt32LE=function e(t,r){return t>>>=0,r||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function e(t,r){return t>>>=0,r||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function e(t,r){return t>>>=0,r||L(t,4,this.length),Z.read(this,t,!0,23,4)},i.prototype.readFloatBE=function e(t,r){return t>>>=0,r||L(t,4,this.length),Z.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function e(t,r){return t>>>=0,r||L(t,8,this.length),Z.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function e(t,r){return t>>>=0,r||L(t,8,this.length),Z.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function e(t,r,o,n){if(t=+t,r>>>=0,o>>>=0,!n){var i=Math.pow(2,8*o)-1;q(this,t,r,o,i,0)}var s=1,a=0;for(this[r]=255&t;++a>>=0,o>>>=0,!n){var i=Math.pow(2,8*o)-1;q(this,t,r,o,i,0)}var s=o-1,a=1;for(this[r+s]=255&t;--s>=0&&(a*=256);)this[r+s]=t/a&255;return r+o},i.prototype.writeUInt8=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,1,255,0),this[r]=255&t,r+1},i.prototype.writeUInt16LE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},i.prototype.writeUInt16BE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},i.prototype.writeUInt32LE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},i.prototype.writeUInt32BE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},i.prototype.writeIntLE=function e(t,r,o,n){if(t=+t,r>>>=0,!n){var i=Math.pow(2,8*o-1);q(this,t,r,o,i-1,-i)}var s=0,a=1,p=0;for(this[r]=255&t;++s>0)-p&255;return r+o},i.prototype.writeIntBE=function e(t,r,o,n){if(t=+t,r>>>=0,!n){var i=Math.pow(2,8*o-1);q(this,t,r,o,i-1,-i)}var s=o-1,a=1,p=0;for(this[r+s]=255&t;--s>=0&&(a*=256);)t<0&&0===p&&0!==this[r+s+1]&&(p=1),this[r+s]=(t/a>>0)-p&255;return r+o},i.prototype.writeInt8=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},i.prototype.writeInt16LE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},i.prototype.writeInt16BE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},i.prototype.writeInt32LE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},i.prototype.writeInt32BE=function e(t,r,o){return t=+t,r>>>=0,o||q(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},i.prototype.writeFloatLE=function e(t,r,o){return U(this,t,r,!0,o)},i.prototype.writeFloatBE=function e(t,r,o){return U(this,t,r,!1,o)},i.prototype.writeDoubleLE=function e(t,r,o){return N(this,t,r,!0,o)},i.prototype.writeDoubleBE=function e(t,r,o){return N(this,t,r,!1,o)},i.prototype.copy=function e(t,r,o,n){if(!i.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--a)t[a+r]=this[a+o];else Uint8Array.prototype.set.call(t,this.subarray(o,n),r);return s},i.prototype.fill=function e(t,r,o,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,o=this.length):"string"==typeof o&&(n=o,o=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var s=t.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(t=s)}}else"number"==typeof t&&(t&=255);if(r<0||this.length>>=0,o=void 0===o?this.length:o>>>0,t||(t=0);var a;if("number"==typeof t)for(a=r;a>1,l=-7,u=r?n-1:0,c=r?-1:1,h=e[t+u];for(u+=c,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+e[t+u],u+=c,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=o;l>0;s=256*s+e[t+u],u+=c,l-=8);if(0===i)i=1-d;else{if(i===p)return s?NaN:(h?-1:1)*(1/0);s+=Math.pow(2,o),i-=d}return(h?-1:1)*s*Math.pow(2,i-o)},r.write=function(e,t,r,o,n,i){var s,a,p,d=8*i-n-1,l=(1<>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:i-1,y=o?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-s))<1&&(s--,p*=2),t+=s+u>=1?c/p:c*Math.pow(2,1-u),t*p>=2&&(s++,p/=2),s+u>=l?(a=0,s=l):s+u>=1?(a=(t*p-1)*Math.pow(2,n),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,n),s=0));n>=8;e[r+h]=255&a,h+=y,a/=256,n-=8);for(s=s<0;e[r+h]=255&s,h+=y,s/=256,d-=8);e[r+h-y]|=128*m}},{}],5:[function(e,t,r){function o(e){if(e)return n(e)}function n(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}"undefined"!=typeof t&&(t.exports=o),o.prototype.on=o.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},o.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o,n=0;n=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==r){var o;try{o=t.status}catch(e){o=0}if(!o){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var o=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{t.onprogress=o.bind(null,"download"),t.upload&&(t.upload.onprogress=o.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0);
+}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var n=this._header["content-type"],i=this._serializer||g.serialize[n?n.split(";")[0]:""];!i&&p(n)&&(i=g.serialize["application/json"]),i&&(r=i(r))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&t.setRequestHeader(s,this.header[s]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send("undefined"!=typeof r?r:null),this},g.agent=function(){return new v},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){v.prototype[e.toLowerCase()]=function(t,r){var o=new g.Request(e,t);return this._setDefaults(o),r&&o.end(r),o}}),v.prototype.del=v.prototype.delete,g.get=function(e,t,r){var o=g("GET",e);return"function"==typeof t&&(r=t,t=null),t&&o.query(t),r&&o.end(r),o},g.head=function(e,t,r){var o=g("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&o.query(t),r&&o.end(r),o},g.options=function(e,t,r){var o=g("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},g.del=u,g.delete=u,g.patch=function(e,t,r){var o=g("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},g.post=function(e,t,r){var o=g("POST",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o},g.put=function(e,t,r){var o=g("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&o.send(t),r&&o.end(r),o}},{"./agent-base":6,"./is-object":8,"./request-base":9,"./response-base":10,"component-emitter":5}],8:[function(e,t,r){"use strict";function o(e){return null!==e&&"object"==typeof e}t.exports=o},{}],9:[function(e,t,r){"use strict";function o(e){if(e)return n(e)}function n(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}var i=e("./is-object");t.exports=o,o.prototype.clearTimeout=function e(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},o.prototype.parse=function e(t){return this._parser=t,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function e(t){return this._serializer=t,this},o.prototype.timeout=function e(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this;for(var r in t)switch(r){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;default:console.warn("Unknown timeout option",r)}return this},o.prototype.retry=function e(t,r){return 0!==arguments.length&&t!==!0||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=r,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(e,t);if(r===!0)return!0;if(r===!1)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~s.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function e(t,r){if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){o.end(function(r,o){r?t(r):e(o)})})}return this._fullfilledPromise.then(t,r)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function e(t){return t(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(i(e)){for(var r in e)this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null===e||void 0===e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),i(e)){for(var r in e)this.field(r,e[r]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null===t||void 0===t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},o.prototype._auth=function(e,t,r,o){switch(r.type){case"basic":this.set("Authorization","Basic "+o(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return void 0==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=i(e),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&i(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],"application/x-www-form-urlencoded"==r?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(r||this.type("json"),this)},o.prototype.sortQuery=function(e){return this._sort="undefined"==typeof e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var r=this.url.substring(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,t)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,r){if(!this._aborted){var o=new Error(e+t+"ms exceeded");o.timeout=t,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.abort(),this.callback(o)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},{"./is-object":8}],10:[function(e,t,r){"use strict";function o(e){if(e)return n(e)}function n(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}var i=e("./utils");t.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=i.type(t);var r=i.params(t);for(var o in r)this[o]=r[o];this.links={};try{e.link&&(this.links=i.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e}},{"./utils":11}],11:[function(e,t,r){"use strict";r.type=function(e){return e.split(/ *; */).shift()},r.params=function(e){return e.split(/ *; */).reduce(function(e,t){var r=t.split(/ *= */),o=r.shift(),n=r.shift();return o&&n&&(e[o]=n),e},{})},r.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var r=t.split(/ *; */),o=r[0].slice(1,-1),n=r[1].split(/ *= */)[1].slice(1,-1);return e[n]=o,e},{})},r.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},{}],12:[function(t,r,o){(function(o){!function(o,n){"function"==typeof e&&e.amd?e(["superagent"],n):"object"==typeof r&&r.exports?r.exports=n(t("superagent")):(o.OrderCloud||(o.OrderCloud={}),o.OrderCloud.Sdk=n(o.superagent))}(this,function(e){"use strict";var r=function(){this.baseApiPath="https://api.ordercloud.io/v1".replace(/\/+$/,""),this.baseAuthPath="https://auth.ordercloud.io".replace(/\/+$/,""),this.authentications={oauth2:{type:"oauth2"}},this.defaultHeaders={},this.timeout=6e4};return r.prototype.paramToString=function(e){return void 0==e||null==e?"":e instanceof Date?e.toJSON():e.toString()},r.prototype.buildUrl=function(e,t){e.match(/^\//)||(e="/"+e);var r=this,o=r.baseApiPath+e;return o=o.replace(/\{([\w-]+)\}/g,function(e,o){var n;return n=t.hasOwnProperty(o)?r.paramToString(t[o]):e,encodeURIComponent(n)})},r.prototype.isJsonMime=function(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))},r.prototype.jsonPreferredMime=function(e){for(var t=0;t",
"license": "MIT",
diff --git a/src/index.js b/src/index.js
index c37c70ad..386c21d3 100644
--- a/src/index.js
+++ b/src/index.js
@@ -51,7 +51,7 @@
*
*
* @module index
- * @version 3.2.3
+ * @version 3.3.3
*/
var exports = {
/**