Skip to content

Commit 654c688

Browse files
committed
Remove more unnecessary inline schemas, create priority order for content type selection
1 parent 7e6d9ca commit 654c688

721 files changed

Lines changed: 1777 additions & 128109 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.

docs/Apis/CP/US/FeedsApi.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ All URIs are relative to http://localhost, except if the operation defines anoth
1212
## `contentProductFeed()`
1313

1414
```php
15-
contentProductFeed($feedType, $file): \Walmart\Models\CP\US\Feeds\ContentProductFeed200Response
15+
contentProductFeed($feedType, $file): \Walmart\Models\CP\US\Feeds\FeedId
1616
```
1717
Content feeds
1818

@@ -55,12 +55,10 @@ try {
5555

5656
### Return type
5757

58-
[**\Walmart\Models\CP\US\Feeds\ContentProductFeed200Response**](../../../Models/CP/US/feeds/ContentProductFeed200Response.md)
58+
[**\Walmart\Models\CP\US\Feeds\FeedId**](../../../Models/CP/US/Feeds/FeedId.md)
5959

6060
### Authorization
6161

62-
63-
6462
This endpoint requires the following authorization methods:
6563

6664
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -121,12 +119,10 @@ try {
121119

122120
### Return type
123121

124-
[**\Walmart\Models\CP\US\Feeds\FeedRecordResponse**](../../../Models/CP/US/feeds/FeedRecordResponse.md)
122+
[**\Walmart\Models\CP\US\Feeds\FeedRecordResponse**](../../../Models/CP/US/Feeds/FeedRecordResponse.md)
125123

126124
### Authorization
127125

128-
129-
130126
This endpoint requires the following authorization methods:
131127

132128
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -189,12 +185,10 @@ try {
189185

190186
### Return type
191187

192-
[**\Walmart\Models\CP\US\Feeds\PartnerFeedResponse**](../../../Models/CP/US/feeds/PartnerFeedResponse.md)
188+
[**\Walmart\Models\CP\US\Feeds\PartnerFeedResponse**](../../../Models/CP/US/Feeds/PartnerFeedResponse.md)
193189

194190
### Authorization
195191

196-
197-
198192
This endpoint requires the following authorization methods:
199193

200194
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -210,7 +204,7 @@ See the [Authorization](../../../../README.md#authorization) section of the READ
210204
## `updateRichMedia()`
211205

212206
```php
213-
updateRichMedia($feedType, $body): \Walmart\Models\CP\US\Feeds\ContentProductFeed200Response
207+
updateRichMedia($feedType, $body): \Walmart\Models\CP\US\Feeds\FeedId
214208
```
215209
Rich Media
216210

@@ -476,12 +470,10 @@ try {
476470

477471
### Return type
478472

479-
[**\Walmart\Models\CP\US\Feeds\ContentProductFeed200Response**](../../../Models/CP/US/feeds/ContentProductFeed200Response.md)
473+
[**\Walmart\Models\CP\US\Feeds\FeedId**](../../../Models/CP/US/Feeds/FeedId.md)
480474

481475
### Authorization
482476

483-
484-
485477
This endpoint requires the following authorization methods:
486478

487479
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.

docs/Apis/DSV/US/CostApi.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,15 @@ try {
4747
| Name | Type | Description | Notes |
4848
| ------------- | ------------- | ------------- | ------------- |
4949
| **feedType** | **string**| Includes details of each entity in the feed. Do not set this parameter to true. | [default to 'cost'] |
50-
| **dsvCostUpdateRequest** | [**\Walmart\Models\DSV\US\Cost\DsvCostUpdateRequest**](../../../Models/DSV/US/cost/DsvCostUpdateRequest.md)| File fields | |
50+
| **dsvCostUpdateRequest** | [**\Walmart\Models\DSV\US\Cost\DsvCostUpdateRequest**](../../../Models/DSV/US/Cost/DsvCostUpdateRequest.md)| File fields | |
5151

5252

5353
### Return type
5454

55-
[**\Walmart\Models\DSV\US\Cost\DsvCostUpdateResponse**](../../../Models/DSV/US/cost/DsvCostUpdateResponse.md)
55+
[**\Walmart\Models\DSV\US\Cost\DsvCostUpdateResponse**](../../../Models/DSV/US/Cost/DsvCostUpdateResponse.md)
5656

5757
### Authorization
5858

59-
60-
6159
This endpoint requires the following authorization methods:
6260

6361
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.

docs/Apis/DSV/US/FeedsApi.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ try {
5555

5656
### Return type
5757

58-
[**\Walmart\Models\DSV\US\Feeds\FeedRecordResponse**](../../../Models/DSV/US/feeds/FeedRecordResponse.md)
58+
[**\Walmart\Models\DSV\US\Feeds\FeedRecordResponse**](../../../Models/DSV/US/Feeds/FeedRecordResponse.md)
5959

6060
### Authorization
6161

62-
63-
6462
This endpoint requires the following authorization methods:
6563

6664
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -123,12 +121,10 @@ try {
123121

124122
### Return type
125123

126-
[**\Walmart\Models\DSV\US\Feeds\PartnerFeedResponse**](../../../Models/DSV/US/feeds/PartnerFeedResponse.md)
124+
[**\Walmart\Models\DSV\US\Feeds\PartnerFeedResponse**](../../../Models/DSV/US/Feeds/PartnerFeedResponse.md)
127125

128126
### Authorization
129127

130-
131-
132128
This endpoint requires the following authorization methods:
133129

134130
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.

docs/Apis/DSV/US/InventoryApi.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ All URIs are relative to https://api-gateway.walmart.com, except if the operatio
1212
## `getInventoryForAnItem()`
1313

1414
```php
15-
getInventoryForAnItem($gtin, $shipNode, $sku): \Walmart\Models\DSV\US\Inventory\GetInventoryForAnItem200Response
15+
getInventoryForAnItem($gtin, $shipNode, $sku): \Walmart\Models\DSV\US\Inventory\InventoryResponse
1616
```
1717
Inventory
1818

@@ -57,12 +57,10 @@ try {
5757

5858
### Return type
5959

60-
[**\Walmart\Models\DSV\US\Inventory\GetInventoryForAnItem200Response**](../../../Models/DSV/US/inventory/GetInventoryForAnItem200Response.md)
60+
[**\Walmart\Models\DSV\US\Inventory\InventoryResponse**](../../../Models/DSV/US/Inventory/InventoryResponse.md)
6161

6262
### Authorization
6363

64-
65-
6664
This endpoint requires the following authorization methods:
6765

6866
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -123,12 +121,10 @@ try {
123121

124122
### Return type
125123

126-
[**\Walmart\Models\DSV\US\Inventory\InventoriesDTO**](../../../Models/DSV/US/inventory/InventoriesDTO.md)
124+
[**\Walmart\Models\DSV\US\Inventory\InventoriesDTO**](../../../Models/DSV/US/Inventory/InventoriesDTO.md)
127125

128126
### Authorization
129127

130-
131-
132128
This endpoint requires the following authorization methods:
133129

134130
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -144,7 +140,7 @@ See the [Authorization](../../../../README.md#authorization) section of the READ
144140
## `updateBulkInventory()`
145141

146142
```php
147-
updateBulkInventory($feedType, $updateBulkInventoryRequest, $shipNode): \Walmart\Models\DSV\US\Inventory\FeedIdInventory
143+
updateBulkInventory($feedType, $inventoryFeedV2, $shipNode): \Walmart\Models\DSV\US\Inventory\FeedIdInventory
148144
```
149145
Bulk Update Inventory
150146

@@ -168,11 +164,11 @@ $config = new Walmart\Configuration('CLIENT_ID', 'CLIENT_SECRET', [
168164
$api = Walmart::dropShipVendor($config)->inventory();
169165

170166
$feedType = 'feedType_example'; // string | Specifies the feed type.
171-
$updateBulkInventoryRequest = {"InventoryHeader":{"version":"1.4"},"Inventory":[{"sku":"CNE498398","availabilityCode":"AC","quantity":{"unit":"EACH","amount":"10"}},{"sku":"ard65005","availabilityCode":"AC","quantity":{"unit":"EACH","availableToSell":"5","orderInProgress":"3"}}]}; // \Walmart\Models\DSV\US\Inventory\UpdateBulkInventoryRequest | File fields
167+
$inventoryFeedV2 = {"InventoryHeader":{"version":"1.4"},"Inventory":[{"sku":"CNE498398","availabilityCode":"AC","quantity":{"unit":"EACH","amount":"10"}},{"sku":"ard65005","availabilityCode":"AC","quantity":{"unit":"EACH","availableToSell":"5","orderInProgress":"3"}}]}; // \Walmart\Models\DSV\US\Inventory\InventoryFeedV2 | File fields
172168
$shipNode = 'shipNode_example'; // string | Specifies the distribution facility distributor identifier. This parameter identifies each facility from which the inventory is requested. The parameter is required for `Inventory` feed type. It is not required for `DSV_INVENTORY` feed type. The identifier is autogenerated during drop ship vendor (DSV) account creation. Every time users add or update a facility in Supplier Center, a new identifier is generated.
173169

174170
try {
175-
$result = $api->updateBulkInventory($feedType, $updateBulkInventoryRequest, $shipNode);
171+
$result = $api->updateBulkInventory($feedType, $inventoryFeedV2, $shipNode);
176172
print_r($result);
177173
} catch (Exception $e) {
178174
echo "Exception when calling InventoryApi->updateBulkInventory: {$e->getMessage()}\n";
@@ -183,18 +179,16 @@ try {
183179
| Name | Type | Description | Notes |
184180
| ------------- | ------------- | ------------- | ------------- |
185181
| **feedType** | **string**| Specifies the feed type. | |
186-
| **updateBulkInventoryRequest** | [**\Walmart\Models\DSV\US\Inventory\UpdateBulkInventoryRequest**](../../../Models/DSV/US/inventory/UpdateBulkInventoryRequest.md)| File fields | |
182+
| **inventoryFeedV2** | [**\Walmart\Models\DSV\US\Inventory\InventoryFeedV2**](../../../Models/DSV/US/Inventory/InventoryFeedV2.md)| File fields | |
187183
| **shipNode** | **string**| Specifies the distribution facility distributor identifier. This parameter identifies each facility from which the inventory is requested. The parameter is required for `Inventory` feed type. It is not required for `DSV_INVENTORY` feed type. The identifier is autogenerated during drop ship vendor (DSV) account creation. Every time users add or update a facility in Supplier Center, a new identifier is generated. | [optional] |
188184

189185

190186
### Return type
191187

192-
[**\Walmart\Models\DSV\US\Inventory\FeedIdInventory**](../../../Models/DSV/US/inventory/FeedIdInventory.md)
188+
[**\Walmart\Models\DSV\US\Inventory\FeedIdInventory**](../../../Models/DSV/US/Inventory/FeedIdInventory.md)
193189

194190
### Authorization
195191

196-
197-
198192
This endpoint requires the following authorization methods:
199193

200194
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -210,7 +204,7 @@ See the [Authorization](../../../../README.md#authorization) section of the READ
210204
## `updateInventoryForAnItem()`
211205

212206
```php
213-
updateInventoryForAnItem($shipNode, $inventory): \Walmart\Models\DSV\US\Inventory\GetInventoryForAnItem200Response
207+
updateInventoryForAnItem($shipNode, $inventory): \Walmart\Models\DSV\US\Inventory\InventoryResponse
214208
```
215209
Update Inventory
216210

@@ -248,17 +242,15 @@ try {
248242
| Name | Type | Description | Notes |
249243
| ------------- | ------------- | ------------- | ------------- |
250244
| **shipNode** | **string**| Specifies the distribution facility distributor identifier. This parameter identifies each facility from which the inventory is requested. The identifier is autogenerated during drop ship vendor (DSV) account creation. Every time users add or update a facility in Supplier Center, a new identifier is generated. | |
251-
| **inventory** | [**\Walmart\Models\DSV\US\Inventory\Inventory**](../../../Models/DSV/US/inventory/Inventory.md)| File fields | |
245+
| **inventory** | [**\Walmart\Models\DSV\US\Inventory\Inventory**](../../../Models/DSV/US/Inventory/Inventory.md)| File fields | |
252246

253247

254248
### Return type
255249

256-
[**\Walmart\Models\DSV\US\Inventory\GetInventoryForAnItem200Response**](../../../Models/DSV/US/inventory/GetInventoryForAnItem200Response.md)
250+
[**\Walmart\Models\DSV\US\Inventory\InventoryResponse**](../../../Models/DSV/US/Inventory/InventoryResponse.md)
257251

258252
### Authorization
259253

260-
261-
262254
This endpoint requires the following authorization methods:
263255

264256
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.

docs/Apis/DSV/US/ItemsApi.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ try {
5555

5656
### Return type
5757

58-
[**\Walmart\Models\DSV\US\Items\ItemResponses**](../../../Models/DSV/US/items/ItemResponses.md)
58+
[**\Walmart\Models\DSV\US\Items\ItemResponses**](../../../Models/DSV/US/Items/ItemResponses.md)
5959

6060
### Authorization
6161

62-
63-
6462
This endpoint requires the following authorization methods:
6563

6664
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -117,12 +115,10 @@ try {
117115

118116
### Return type
119117

120-
[**\Walmart\Models\DSV\US\Items\ItemResponse**](../../../Models/DSV/US/items/ItemResponse.md)
118+
[**\Walmart\Models\DSV\US\Items\ItemResponse**](../../../Models/DSV/US/Items/ItemResponse.md)
121119

122120
### Authorization
123121

124-
125-
126122
This endpoint requires the following authorization methods:
127123

128124
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -138,7 +134,7 @@ See the [Authorization](../../../../README.md#authorization) section of the READ
138134
## `itemBulkUploads()`
139135

140136
```php
141-
itemBulkUploads($feedType, $file): \Walmart\Models\DSV\US\Items\ItemBulkUploads200Response
137+
itemBulkUploads($feedType, $file): \Walmart\Models\DSV\US\Items\FeedId
142138
```
143139
Bulk Item Setup
144140

@@ -181,12 +177,10 @@ try {
181177

182178
### Return type
183179

184-
[**\Walmart\Models\DSV\US\Items\ItemBulkUploads200Response**](../../../Models/DSV/US/items/ItemBulkUploads200Response.md)
180+
[**\Walmart\Models\DSV\US\Items\FeedId**](../../../Models/DSV/US/Items/FeedId.md)
185181

186182
### Authorization
187183

188-
189-
190184
This endpoint requires the following authorization methods:
191185

192186
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.
@@ -202,7 +196,7 @@ See the [Authorization](../../../../README.md#authorization) section of the READ
202196
## `updateRichMediaOfItem()`
203197

204198
```php
205-
updateRichMediaOfItem($feedType, $body): \Walmart\Models\DSV\US\Items\ItemBulkUploads200Response
199+
updateRichMediaOfItem($feedType, $body): \Walmart\Models\DSV\US\Items\FeedId
206200
```
207201
Rich Media
208202

@@ -468,12 +462,10 @@ try {
468462

469463
### Return type
470464

471-
[**\Walmart\Models\DSV\US\Items\ItemBulkUploads200Response**](../../../Models/DSV/US/items/ItemBulkUploads200Response.md)
465+
[**\Walmart\Models\DSV\US\Items\FeedId**](../../../Models/DSV/US/Items/FeedId.md)
472466

473467
### Authorization
474468

475-
476-
477469
This endpoint requires the following authorization methods:
478470

479471
* `signatureScheme`: Request signature authentication. Request signatures are generated using a combination of request info, a timestamp, and your Walmart consumer ID and private key. The signature is passed in the WM_SEC.AUTH_SIGNATURE header. This is always used in tandem with consumer ID authentication (above). When using endpoints that require signature authentication, you must pass the `privateKey` and `consumerId` options to the `Configuration` constructor.

0 commit comments

Comments
 (0)