Skip to content

Commit 6b1a8ea

Browse files
author
Connor O'Brien
committed
Adding Me ListShipmentItems
1 parent 88bf6ab commit 6b1a8ea

149 files changed

Lines changed: 474 additions & 306 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger
55
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
66

77
- API version: 1.0
8-
- Package version: 1.0.45
8+
- Package version: 1.0.46
99
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
1010
For more information, please visit [http://ordercloud.io](http://ordercloud.io)
1111

@@ -198,6 +198,7 @@ Class | Method | HTTP request | Description
198198
*OrderCloud.Me* | [**ListOrders**](docs/Me.md#ListOrders) | **GET** /me/orders |
199199
*OrderCloud.Me* | [**ListProducts**](docs/Me.md#ListProducts) | **GET** /me/products |
200200
*OrderCloud.Me* | [**ListPromotions**](docs/Me.md#ListPromotions) | **GET** /me/promotions |
201+
*OrderCloud.Me* | [**ListShipmentItems**](docs/Me.md#ListShipmentItems) | **GET** /me/shipments/{shipmentID}/shipmentitems |
201202
*OrderCloud.Me* | [**ListShipments**](docs/Me.md#ListShipments) | **GET** /me/shipments |
202203
*OrderCloud.Me* | [**ListSpecs**](docs/Me.md#ListSpecs) | **GET** /me/catalogs/{catalogID}/products/{productID}/specs |
203204
*OrderCloud.Me* | [**ListSpendingAccounts**](docs/Me.md#ListSpendingAccounts) | **GET** /me/spendingAccounts |

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.45",
3+
"version": "1.0.46",
44
"description": "JavaScript SDK autogenerated from swagger spec using the Swagger-CodeGen project",
55
"main": "dist/ordercloud-javascript-sdk.js",
66
"authors": [

dist/ordercloud-javascript-sdk.js

Lines changed: 200 additions & 148 deletions
Large diffs are not rendered by default.

dist/ordercloud-javascript-sdk.min.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Me.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Method | HTTP request | Description
2424
[**ListOrders**](Me.md#ListOrders) | **GET** /me/orders |
2525
[**ListProducts**](Me.md#ListProducts) | **GET** /me/products |
2626
[**ListPromotions**](Me.md#ListPromotions) | **GET** /me/promotions |
27+
[**ListShipmentItems**](Me.md#ListShipmentItems) | **GET** /me/shipments/{shipmentID}/shipmentitems |
2728
[**ListShipments**](Me.md#ListShipments) | **GET** /me/shipments |
2829
[**ListSpecs**](Me.md#ListSpecs) | **GET** /me/catalogs/{catalogID}/products/{productID}/specs |
2930
[**ListSpendingAccounts**](Me.md#ListSpendingAccounts) | **GET** /me/spendingAccounts |
@@ -1063,6 +1064,68 @@ Name | Type | Description | Notes
10631064

10641065
[oauth2](../README.md#oauth2)
10651066

1067+
### HTTP request headers
1068+
1069+
- **Content-Type**: application/json, text/plain; charset=utf-8
1070+
- **Accept**: application/json
1071+
1072+
<a name="ListShipmentItems"></a>
1073+
# **ListShipmentItems**
1074+
> ListShipmentItem ListShipmentItems(shipmentID, opts)
1075+
1076+
1077+
1078+
### Example
1079+
```javascript
1080+
var OrderCloud = require('OrderCloud');
1081+
var defaultClient = OrderCloud.ApiClient.default;
1082+
1083+
// Configure OAuth2 access token for authorization: oauth2
1084+
var oauth2 = defaultClient.authentications['oauth2'];
1085+
oauth2.accessToken = 'YOUR ACCESS TOKEN';
1086+
1087+
var apiInstance = new OrderCloud.Me();
1088+
1089+
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
1090+
1091+
var opts = {
1092+
'orderID': "orderID_example", // String | ID of the order.
1093+
'search': "search_example", // String | Word or phrase to search for.
1094+
'searchOn': "searchOn_example", // String | Comma-delimited list of fields to search on.
1095+
'sortBy': "sortBy_example", // String | Comma-delimited list of fields to sort by.
1096+
'page': 56, // Number | Page of results to return. Default: 1
1097+
'pageSize': 56, // Number | Number of results to return per page. Default: 20, max: 100.
1098+
'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.???'
1099+
};
1100+
apiInstance.ListShipmentItems(shipmentID, opts).then(function(data) {
1101+
console.log('API called successfully. Returned data: ' + data);
1102+
}, function(error) {
1103+
console.error(error);
1104+
});
1105+
1106+
```
1107+
1108+
### Parameters
1109+
1110+
Name | Type | Description | Notes
1111+
------------- | ------------- | ------------- | -------------
1112+
**shipmentID** | **String**| ID of the shipment. |
1113+
**orderID** | **String**| ID of the order. | [optional]
1114+
**search** | **String**| Word or phrase to search for. | [optional]
1115+
**searchOn** | **String**| Comma-delimited list of fields to search on. | [optional]
1116+
**sortBy** | **String**| Comma-delimited list of fields to sort by. | [optional]
1117+
**page** | **Number**| Page of results to return. Default: 1 | [optional]
1118+
**pageSize** | **Number**| Number of results to return per page. Default: 20, max: 100. | [optional]
1119+
**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]
1120+
1121+
### Return type
1122+
1123+
[**ListShipmentItem**](ListShipmentItem.md)
1124+
1125+
### Authorization
1126+
1127+
[oauth2](../README.md#oauth2)
1128+
10661129
### HTTP request headers
10671130

10681131
- **Content-Type**: application/json, text/plain; charset=utf-8

package.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.45",
3+
"version": "1.0.46",
44
"description": "JavaScript SDK autogenerated from swagger spec using the Swagger-CodeGen project",
55
"author": "Four51 Inc. <ordercloud@four51.com>",
66
"license": "MIT",

src/ApiClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
/**
3232
* @module ApiClient
33-
* @version 1.0.45
33+
* @version 1.0.46
3434
*/
3535

3636
/**

src/api/Addresses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/**
3232
* Address service.
3333
* @module api/Addresses
34-
* @version 1.0.45
34+
* @version 1.0.46
3535
*/
3636

3737
/**

src/api/AdminAddresses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/**
3232
* AdminAddress service.
3333
* @module api/AdminAddresses
34-
* @version 1.0.45
34+
* @version 1.0.46
3535
*/
3636

3737
/**

src/api/AdminUserGroups.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/**
3232
* AdminUserGroup service.
3333
* @module api/AdminUserGroups
34-
* @version 1.0.45
34+
* @version 1.0.46
3535
*/
3636

3737
/**

0 commit comments

Comments
 (0)