Skip to content

Commit 88f5032

Browse files
author
mirandaposthumus
authored
Merge pull request #17 from crhistianramirez/autogenerate-breakingchanges
breaking changes version 2.0.0
2 parents 8bd4f1e + 430ee44 commit 88f5032

288 files changed

Lines changed: 13213 additions & 2933 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 75 additions & 37 deletions
Large diffs are not rendered by default.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ordercloud-javascript-sdk",
3-
"version": "1.0.59",
3+
"version": "2.0.0",
44
"description": "JavaScript SDK autogenerated from swagger spec using the Swagger-CodeGen project",
55
"main": "dist/ordercloud-javascript-sdk.js",
66
"authors": [

docs/Address.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**ID** | **String** | | [optional]
7+
**dateCreated** | **String** | | [optional]
78
**companyName** | **String** | | [optional]
89
**firstName** | **String** | | [optional]
910
**lastName** | **String** | | [optional]

docs/Addresses.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Method | HTTP request | Description
1111
[**List**](Addresses.md#List) | **GET** /buyers/{buyerID}/addresses |
1212
[**ListAssignments**](Addresses.md#ListAssignments) | **GET** /buyers/{buyerID}/addresses/assignments |
1313
[**Patch**](Addresses.md#Patch) | **PATCH** /buyers/{buyerID}/addresses/{addressID} |
14+
[**Save**](Addresses.md#Save) | **PUT** /buyers/{buyerID}/addresses/{addressID} |
1415
[**SaveAssignment**](Addresses.md#SaveAssignment) | **POST** /buyers/{buyerID}/addresses/assignments |
15-
[**Update**](Addresses.md#Update) | **PUT** /buyers/{buyerID}/addresses/{addressID} |
1616

1717

1818
<a name="Create"></a>
@@ -245,12 +245,12 @@ var apiInstance = new OrderCloud.Addresses();
245245
var buyerID = "buyerID_example"; // String | ID of the buyer.
246246

247247
var opts = {
248-
'search': "search_example", // String | Search of the address.
249-
'searchOn': ["searchOn_example"], // [String] | Search on of the address.
250-
'sortBy': ["sortBy_example"], // [String] | Sort by of the address.
251-
'page': 56, // Number | Page of the address.
252-
'pageSize': 56, // Number | Page size of the address.
253-
'filters': {key: "filters_example"} // {String: String} | Filters of the address.
248+
'search': "search_example", // String | Word or phrase to search for.
249+
'searchOn': "searchOn_example", // String | Comma-delimited list of fields to search on.
250+
'sortBy': "sortBy_example", // String | Comma-delimited list of fields to sort by.
251+
'page': 56, // Number | Page of results to return. Default: 1
252+
'pageSize': 56, // Number | Number of results to return per page. Default: 20, max: 100.
253+
'filters': {key: "filters_example"} // {String: String} | 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.???'
254254
};
255255
apiInstance.List(buyerID, opts).then(function(data) {
256256
console.log('API called successfully. Returned data: ' + data);
@@ -265,12 +265,12 @@ apiInstance.List(buyerID, opts).then(function(data) {
265265
Name | Type | Description | Notes
266266
------------- | ------------- | ------------- | -------------
267267
**buyerID** | **String**| ID of the buyer. |
268-
**search** | **String**| Search of the address. | [optional]
269-
**searchOn** | [**[String]**](String.md)| Search on of the address. | [optional]
270-
**sortBy** | [**[String]**](String.md)| Sort by of the address. | [optional]
271-
**page** | **Number**| Page of the address. | [optional]
272-
**pageSize** | **Number**| Page size of the address. | [optional]
273-
**filters** | [**{String: String}**](String.md)| Filters of the address. | [optional]
268+
**search** | **String**| Word or phrase to search for. | [optional]
269+
**searchOn** | **String**| Comma-delimited list of fields to search on. | [optional]
270+
**sortBy** | **String**| Comma-delimited list of fields to sort by. | [optional]
271+
**page** | **Number**| Page of results to return. Default: 1 | [optional]
272+
**pageSize** | **Number**| Number of results to return per page. Default: 20, max: 100. | [optional]
273+
**filters** | [**{String: String}**](String.md)| 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 &#39;xp.???&#39; | [optional]
274274

275275
### Return type
276276

@@ -310,11 +310,11 @@ var opts = {
310310
'addressID': "addressID_example", // String | ID of the address.
311311
'userID': "userID_example", // String | ID of the user.
312312
'userGroupID': "userGroupID_example", // String | ID of the user group.
313-
'level': "level_example", // String | Level of the address.
314-
'isShipping': true, // Boolean | Is shipping of the address.
315-
'isBilling': true, // Boolean | Is billing of the address.
316-
'page': 56, // Number | Page of the address.
317-
'pageSize': 56 // Number | Page size of the address.
313+
'level': "level_example", // String | Level of the address assignment. Possible values: User, Group, Company.
314+
'isShipping': true, // Boolean | Is shipping of the address assignment.
315+
'isBilling': true, // Boolean | Is billing of the address assignment.
316+
'page': 56, // Number | Page of results to return. Default: 1
317+
'pageSize': 56 // Number | Number of results to return per page. Default: 20, max: 100.
318318
};
319319
apiInstance.ListAssignments(buyerID, opts).then(function(data) {
320320
console.log('API called successfully. Returned data: ' + data);
@@ -332,11 +332,11 @@ Name | Type | Description | Notes
332332
**addressID** | **String**| ID of the address. | [optional]
333333
**userID** | **String**| ID of the user. | [optional]
334334
**userGroupID** | **String**| ID of the user group. | [optional]
335-
**level** | **String**| Level of the address. | [optional]
336-
**isShipping** | **Boolean**| Is shipping of the address. | [optional]
337-
**isBilling** | **Boolean**| Is billing of the address. | [optional]
338-
**page** | **Number**| Page of the address. | [optional]
339-
**pageSize** | **Number**| Page size of the address. | [optional]
335+
**level** | **String**| Level of the address assignment. Possible values: User, Group, Company. | [optional]
336+
**isShipping** | **Boolean**| Is shipping of the address assignment. | [optional]
337+
**isBilling** | **Boolean**| Is billing of the address assignment. | [optional]
338+
**page** | **Number**| Page of results to return. Default: 1 | [optional]
339+
**pageSize** | **Number**| Number of results to return per page. Default: 20, max: 100. | [optional]
340340

341341
### Return type
342342

@@ -355,7 +355,7 @@ Name | Type | Description | Notes
355355

356356
<a name="Patch"></a>
357357
# **Patch**
358-
> Address Patch(buyerID, addressID, address)
358+
> Address Patch(buyerID, addressID, partialAddress)
359359
360360

361361

@@ -374,9 +374,9 @@ var buyerID = "buyerID_example"; // String | ID of the buyer.
374374

375375
var addressID = "addressID_example"; // String | ID of the address.
376376

377-
var address = new OrderCloud.Address(); // Address |
377+
var partialAddress = new OrderCloud.Address(); // Address |
378378

379-
apiInstance.Patch(buyerID, addressID, address).then(function(data) {
379+
apiInstance.Patch(buyerID, addressID, partialAddress).then(function(data) {
380380
console.log('API called successfully. Returned data: ' + data);
381381
}, function(error) {
382382
console.error(error);
@@ -390,7 +390,7 @@ Name | Type | Description | Notes
390390
------------- | ------------- | ------------- | -------------
391391
**buyerID** | **String**| ID of the buyer. |
392392
**addressID** | **String**| ID of the address. |
393-
**address** | [**Address**](Address.md)| |
393+
**partialAddress** | [**Address**](Address.md)| |
394394

395395
### Return type
396396

@@ -407,9 +407,9 @@ Name | Type | Description | Notes
407407
- **Content-Type**: application/json, text/plain; charset=utf-8
408408
- **Accept**: application/json
409409

410-
<a name="SaveAssignment"></a>
411-
# **SaveAssignment**
412-
> SaveAssignment(buyerID, assignment)
410+
<a name="Save"></a>
411+
# **Save**
412+
> Address Save(buyerID, addressID, address)
413413
414414

415415

@@ -426,10 +426,12 @@ var apiInstance = new OrderCloud.Addresses();
426426

427427
var buyerID = "buyerID_example"; // String | ID of the buyer.
428428

429-
var assignment = new OrderCloud.AddressAssignment(); // AddressAssignment |
429+
var addressID = "addressID_example"; // String | ID of the address.
430430

431-
apiInstance.SaveAssignment(buyerID, assignment).then(function() {
432-
console.log('API called successfully.');
431+
var address = new OrderCloud.Address(); // Address |
432+
433+
apiInstance.Save(buyerID, addressID, address).then(function(data) {
434+
console.log('API called successfully. Returned data: ' + data);
433435
}, function(error) {
434436
console.error(error);
435437
});
@@ -441,11 +443,12 @@ apiInstance.SaveAssignment(buyerID, assignment).then(function() {
441443
Name | Type | Description | Notes
442444
------------- | ------------- | ------------- | -------------
443445
**buyerID** | **String**| ID of the buyer. |
444-
**assignment** | [**AddressAssignment**](AddressAssignment.md)| |
446+
**addressID** | **String**| ID of the address. |
447+
**address** | [**Address**](Address.md)| |
445448

446449
### Return type
447450

448-
null (empty response body)
451+
[**Address**](Address.md)
449452

450453
### Authorization
451454

@@ -458,9 +461,9 @@ null (empty response body)
458461
- **Content-Type**: application/json, text/plain; charset=utf-8
459462
- **Accept**: application/json
460463

461-
<a name="Update"></a>
462-
# **Update**
463-
> Address Update(buyerID, addressID, address)
464+
<a name="SaveAssignment"></a>
465+
# **SaveAssignment**
466+
> SaveAssignment(buyerID, addressAssignment)
464467
465468

466469

@@ -477,12 +480,10 @@ var apiInstance = new OrderCloud.Addresses();
477480

478481
var buyerID = "buyerID_example"; // String | ID of the buyer.
479482

480-
var addressID = "addressID_example"; // String | ID of the address.
481-
482-
var address = new OrderCloud.Address(); // Address |
483+
var addressAssignment = new OrderCloud.AddressAssignment(); // AddressAssignment |
483484

484-
apiInstance.Update(buyerID, addressID, address).then(function(data) {
485-
console.log('API called successfully. Returned data: ' + data);
485+
apiInstance.SaveAssignment(buyerID, addressAssignment).then(function() {
486+
console.log('API called successfully.');
486487
}, function(error) {
487488
console.error(error);
488489
});
@@ -494,12 +495,11 @@ apiInstance.Update(buyerID, addressID, address).then(function(data) {
494495
Name | Type | Description | Notes
495496
------------- | ------------- | ------------- | -------------
496497
**buyerID** | **String**| ID of the buyer. |
497-
**addressID** | **String**| ID of the address. |
498-
**address** | [**Address**](Address.md)| |
498+
**addressAssignment** | [**AddressAssignment**](AddressAssignment.md)| |
499499

500500
### Return type
501501

502-
[**Address**](Address.md)
502+
null (empty response body)
503503

504504
### Authorization
505505

docs/AdminAddresses.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99
[**Get**](AdminAddresses.md#Get) | **GET** /addresses/{addressID} |
1010
[**List**](AdminAddresses.md#List) | **GET** /addresses |
1111
[**Patch**](AdminAddresses.md#Patch) | **PATCH** /addresses/{addressID} |
12-
[**Update**](AdminAddresses.md#Update) | **PUT** /addresses/{addressID} |
12+
[**Save**](AdminAddresses.md#Save) | **PUT** /addresses/{addressID} |
1313

1414

1515
<a name="Create"></a>
@@ -174,12 +174,12 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
174174
var apiInstance = new OrderCloud.AdminAddresses();
175175

176176
var opts = {
177-
'search': "search_example", // String | Search of the admin address.
178-
'searchOn': ["searchOn_example"], // [String] | Search on of the admin address.
179-
'sortBy': ["sortBy_example"], // [String] | Sort by of the admin address.
180-
'page': 56, // Number | Page of the admin address.
181-
'pageSize': 56, // Number | Page size of the admin address.
182-
'filters': {key: "filters_example"} // {String: String} | Filters of the admin address.
177+
'search': "search_example", // String | Word or phrase to search for.
178+
'searchOn': "searchOn_example", // String | Comma-delimited list of fields to search on.
179+
'sortBy': "sortBy_example", // String | Comma-delimited list of fields to sort by.
180+
'page': 56, // Number | Page of results to return. Default: 1
181+
'pageSize': 56, // Number | Number of results to return per page. Default: 20, max: 100.
182+
'filters': {key: "filters_example"} // {String: String} | 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.???'
183183
};
184184
apiInstance.List(opts).then(function(data) {
185185
console.log('API called successfully. Returned data: ' + data);
@@ -193,12 +193,12 @@ apiInstance.List(opts).then(function(data) {
193193

194194
Name | Type | Description | Notes
195195
------------- | ------------- | ------------- | -------------
196-
**search** | **String**| Search of the admin address. | [optional]
197-
**searchOn** | [**[String]**](String.md)| Search on of the admin address. | [optional]
198-
**sortBy** | [**[String]**](String.md)| Sort by of the admin address. | [optional]
199-
**page** | **Number**| Page of the admin address. | [optional]
200-
**pageSize** | **Number**| Page size of the admin address. | [optional]
201-
**filters** | [**{String: String}**](String.md)| Filters of the admin address. | [optional]
196+
**search** | **String**| Word or phrase to search for. | [optional]
197+
**searchOn** | **String**| Comma-delimited list of fields to search on. | [optional]
198+
**sortBy** | **String**| Comma-delimited list of fields to sort by. | [optional]
199+
**page** | **Number**| Page of results to return. Default: 1 | [optional]
200+
**pageSize** | **Number**| Number of results to return per page. Default: 20, max: 100. | [optional]
201+
**filters** | [**{String: String}**](String.md)| 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 &#39;xp.???&#39; | [optional]
202202

203203
### Return type
204204

@@ -217,7 +217,7 @@ Name | Type | Description | Notes
217217

218218
<a name="Patch"></a>
219219
# **Patch**
220-
> Address Patch(addressID, address)
220+
> Address Patch(addressID, partialAddress)
221221
222222

223223

@@ -234,9 +234,9 @@ var apiInstance = new OrderCloud.AdminAddresses();
234234

235235
var addressID = "addressID_example"; // String | ID of the address.
236236

237-
var address = new OrderCloud.Address(); // Address |
237+
var partialAddress = new OrderCloud.Address(); // Address |
238238

239-
apiInstance.Patch(addressID, address).then(function(data) {
239+
apiInstance.Patch(addressID, partialAddress).then(function(data) {
240240
console.log('API called successfully. Returned data: ' + data);
241241
}, function(error) {
242242
console.error(error);
@@ -249,7 +249,7 @@ apiInstance.Patch(addressID, address).then(function(data) {
249249
Name | Type | Description | Notes
250250
------------- | ------------- | ------------- | -------------
251251
**addressID** | **String**| ID of the address. |
252-
**address** | [**Address**](Address.md)| |
252+
**partialAddress** | [**Address**](Address.md)| |
253253

254254
### Return type
255255

@@ -266,9 +266,9 @@ Name | Type | Description | Notes
266266
- **Content-Type**: application/json, text/plain; charset=utf-8
267267
- **Accept**: application/json
268268

269-
<a name="Update"></a>
270-
# **Update**
271-
> Address Update(addressID, address)
269+
<a name="Save"></a>
270+
# **Save**
271+
> Address Save(addressID, address)
272272
273273

274274

@@ -287,7 +287,7 @@ var addressID = "addressID_example"; // String | ID of the address.
287287

288288
var address = new OrderCloud.Address(); // Address |
289289

290-
apiInstance.Update(addressID, address).then(function(data) {
290+
apiInstance.Save(addressID, address).then(function(data) {
291291
console.log('API called successfully. Returned data: ' + data);
292292
}, function(error) {
293293
console.error(error);

0 commit comments

Comments
 (0)