Skip to content

Commit 9912351

Browse files
update SDK 1.1937 for slingshot
1 parent 28f3768 commit 9912351

File tree

1,119 files changed

+30459
-22518
lines changed

Some content is hidden

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

1,119 files changed

+30459
-22518
lines changed

src/Clients/Commerce/Admin/LocationClient.php

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
class LocationClient {
2323

2424
/**
25-
* Retrieves a list of all locations associated with a tenant, according to any filter and sort criteria specified in the request.
25+
*
2626
*
27-
* @param string $filter A set of expressions that consist of a field, operator, and value and represent search parameter syntax when filtering results of a query. Valid operators include equals (eq), does not equal (ne), greater than (gt), less than (lt), greater than or equal to (ge), less than or equal to (le), starts with (sw), or contains (cont). For example - "filter=IsDisplayed+eq+true"
28-
* @param int $pageSize The number of results to display on each page when creating paged results from a query. The maximum value is 200.
29-
* @param string $responseFields Use this field to include those fields which are not included by default.
30-
* @param string $sortBy The property by which to sort results and whether the results appear in ascending (a-z) order, represented by ASC or in descending (z-a) order, represented by DESC. The sortBy parameter follows an available property. For example: "sortBy=productCode+asc"
31-
* @param int $startIndex When creating paged results from a query, this value indicates the zero-based offset in the complete result set where the returned entities begin. For example, with a PageSize of 25, to get the 51st through the 75th items, use startIndex=3.
27+
* @param string $filter
28+
* @param int $pageSize
29+
* @param string $responseFields
30+
* @param string $sortBy
31+
* @param int $startIndex
3232
* @return MozuClient
3333
*/
3434
public static function getLocationsClient($startIndex = null, $pageSize = null, $sortBy = null, $filter = null, $responseFields = null)
@@ -41,10 +41,10 @@ public static function getLocationsClient($startIndex = null, $pageSize = null
4141
}
4242

4343
/**
44-
* Retrieves the details of the location specified in the request by location code.
44+
*
4545
*
46-
* @param string $locationCode The unique, user-defined code that identifies a location.
47-
* @param string $responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss.
46+
* @param string $locationCode The merchant-defined code of the location to retrieve.
47+
* @param string $responseFields
4848
* @return MozuClient
4949
*/
5050
public static function getLocationClient($locationCode, $responseFields = null)
@@ -57,10 +57,10 @@ public static function getLocationClient($locationCode, $responseFields = null)
5757
}
5858

5959
/**
60-
* Creates a new physical location for the tenant specified in the request header.
60+
*
6161
*
62-
* @param string $responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss.
63-
* @param Location $location Properties of a physical location a tenant uses to manage inventory and fulfills orders, provide store finder functionality, or both.
62+
* @param string $responseFields
63+
* @param Location $location Properties of the location to create.
6464
* @return MozuClient
6565
*/
6666
public static function addLocationClient($location, $responseFields = null)
@@ -73,11 +73,11 @@ public static function addLocationClient($location, $responseFields = null)
7373
}
7474

7575
/**
76-
* Updates one or more details of a the location specified in the request by location code.
76+
*
7777
*
78-
* @param string $locationCode The unique, user-defined code that identifies a location.
79-
* @param string $responseFields Use this field to include those fields which are not included by default.
80-
* @param Location $location Properties of a physical location a tenant uses to manage inventory and fulfills orders, provide store finder functionality, or both.
78+
* @param string $locationCode The merchant-defined code associated with the location to update.
79+
* @param string $responseFields
80+
* @param Location $location Properties of the location to update.
8181
* @return MozuClient
8282
*/
8383
public static function updateLocationClient($location, $locationCode, $responseFields = null)
@@ -90,9 +90,10 @@ public static function updateLocationClient($location, $locationCode, $responseF
9090
}
9191

9292
/**
93-
* Deletes the location specified in the request.
93+
*
9494
*
95-
* @param string $locationCode The unique, user-defined code that identifies a location.
95+
* @param string $locationCode The merchant-defined code of the location to delete.
96+
* @return MozuClient
9697
*/
9798
public static function deleteLocationClient($locationCode)
9899
{
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?php
2+
3+
4+
/**
5+
* <auto-generated>
6+
* This code was generated by Codezu.
7+
*
8+
* Changes to this file may cause incorrect behavior and will be lost if
9+
* the code is regenerated.
10+
* </auto-generated>
11+
*/
12+
13+
namespace Mozu\Api\Clients\Commerce\Admin;
14+
15+
use Mozu\Api\MozuClient;
16+
use Mozu\Api\Urls\Commerce\Admin\LocationGroupUrl;
17+
18+
19+
/**
20+
*
21+
*/
22+
class LocationGroupClient {
23+
24+
/**
25+
*
26+
*
27+
* @param string $filter
28+
* @param int $pageSize
29+
* @param string $responseFields
30+
* @param string $sortBy
31+
* @param int $startIndex
32+
* @return MozuClient
33+
*/
34+
public static function getLocationGroupsClient($startIndex = null, $pageSize = null, $sortBy = null, $filter = null, $responseFields = null)
35+
{
36+
$url = LocationGroupUrl::getLocationGroupsUrl($filter, $pageSize, $responseFields, $sortBy, $startIndex);
37+
$mozuClient = new MozuClient();
38+
$mozuClient->withResourceUrl($url);
39+
return $mozuClient;
40+
41+
}
42+
43+
/**
44+
*
45+
*
46+
* @param int $groupId
47+
* @param string $responseFields
48+
* @return MozuClient
49+
*/
50+
public static function getLocationGroupClient($groupId, $responseFields = null)
51+
{
52+
$url = LocationGroupUrl::getLocationGroupUrl($groupId, $responseFields);
53+
$mozuClient = new MozuClient();
54+
$mozuClient->withResourceUrl($url);
55+
return $mozuClient;
56+
57+
}
58+
59+
/**
60+
*
61+
*
62+
* @param string $responseFields
63+
* @param LocationGroup $group
64+
* @return MozuClient
65+
*/
66+
public static function addLocationGroupClient($group, $responseFields = null)
67+
{
68+
$url = LocationGroupUrl::addLocationGroupUrl($responseFields);
69+
$mozuClient = new MozuClient();
70+
$mozuClient->withResourceUrl($url)->withBody($group);
71+
return $mozuClient;
72+
73+
}
74+
75+
/**
76+
*
77+
*
78+
* @param int $groupId
79+
* @param string $responseFields
80+
* @param LocationGroup $group
81+
* @return MozuClient
82+
*/
83+
public static function updateLocationGroupClient($group, $groupId, $responseFields = null)
84+
{
85+
$url = LocationGroupUrl::updateLocationGroupUrl($groupId, $responseFields);
86+
$mozuClient = new MozuClient();
87+
$mozuClient->withResourceUrl($url)->withBody($group);
88+
return $mozuClient;
89+
90+
}
91+
92+
/**
93+
*
94+
*
95+
* @param int $groupId
96+
* @return MozuClient
97+
*/
98+
public static function deleteLocationGroupClient($groupId)
99+
{
100+
$url = LocationGroupUrl::deleteLocationGroupUrl($groupId);
101+
$mozuClient = new MozuClient();
102+
$mozuClient->withResourceUrl($url);
103+
return $mozuClient;
104+
105+
}
106+
107+
108+
}
109+
110+
?>
111+
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?php
2+
3+
4+
/**
5+
* <auto-generated>
6+
* This code was generated by Codezu.
7+
*
8+
* Changes to this file may cause incorrect behavior and will be lost if
9+
* the code is regenerated.
10+
* </auto-generated>
11+
*/
12+
13+
namespace Mozu\Api\Clients\Commerce\Admin;
14+
15+
use Mozu\Api\MozuClient;
16+
use Mozu\Api\Urls\Commerce\Admin\LocationGroupConfigurationUrl;
17+
18+
19+
/**
20+
*
21+
*/
22+
class LocationGroupConfigurationClient {
23+
24+
/**
25+
*
26+
*
27+
* @param int $locationGroupId
28+
* @param string $responseFields
29+
* @return MozuClient
30+
*/
31+
public static function getLocationGroupConfigurationClient($locationGroupId, $responseFields = null)
32+
{
33+
$url = LocationGroupConfigurationUrl::getLocationGroupConfigurationUrl($locationGroupId, $responseFields);
34+
$mozuClient = new MozuClient();
35+
$mozuClient->withResourceUrl($url);
36+
return $mozuClient;
37+
38+
}
39+
40+
/**
41+
*
42+
*
43+
* @param string $locationCode
44+
* @param string $responseFields
45+
* @return MozuClient
46+
*/
47+
public static function getLocationGroupConfigurationByLocationCodeClient($locationCode, $responseFields = null)
48+
{
49+
$url = LocationGroupConfigurationUrl::getLocationGroupConfigurationByLocationCodeUrl($locationCode, $responseFields);
50+
$mozuClient = new MozuClient();
51+
$mozuClient->withResourceUrl($url);
52+
return $mozuClient;
53+
54+
}
55+
56+
/**
57+
*
58+
*
59+
* @param int $locationGroupId
60+
* @param string $responseFields
61+
* @param LocationGroupConfiguration $configuration
62+
* @return MozuClient
63+
*/
64+
public static function setLocationGroupConfigurationClient($configuration, $locationGroupId, $responseFields = null)
65+
{
66+
$url = LocationGroupConfigurationUrl::setLocationGroupConfigurationUrl($locationGroupId, $responseFields);
67+
$mozuClient = new MozuClient();
68+
$mozuClient->withResourceUrl($url)->withBody($configuration);
69+
return $mozuClient;
70+
71+
}
72+
73+
74+
}
75+
76+
?>
77+

src/Clients/Commerce/Admin/LocationTypeClient.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class LocationTypeClient {
2323

2424
/**
25-
* Retrieve a list of all location types defined for the tenant.
25+
*
2626
*
2727
* @return MozuClient
2828
*/
@@ -36,10 +36,10 @@ public static function getLocationTypesClient()
3636
}
3737

3838
/**
39-
* Retrieves the details of the location type specified in the request.
39+
*
4040
*
4141
* @param string $locationTypeCode The user-defined code that identifies the location type.
42-
* @param string $responseFields Use this field to include those fields which are not included by default.
42+
* @param string $responseFields
4343
* @return MozuClient
4444
*/
4545
public static function getLocationTypeClient($locationTypeCode, $responseFields = null)
@@ -52,10 +52,10 @@ public static function getLocationTypeClient($locationTypeCode, $responseFields
5252
}
5353

5454
/**
55-
* Creates a new location type based on the information specified in the request.
55+
*
5656
*
57-
* @param string $responseFields Use this field to include those fields which are not included by default.
58-
* @param LocationType $locationType Properties of a type of physical location, such as warehouse or kiosk. Location types enable tenants to group similar locations for filtering and location usage type definition.
57+
* @param string $responseFields
58+
* @param LocationType $locationType Properties of the location type to create.
5959
* @return MozuClient
6060
*/
6161
public static function addLocationTypeClient($locationType, $responseFields = null)
@@ -68,11 +68,11 @@ public static function addLocationTypeClient($locationType, $responseFields = n
6868
}
6969

7070
/**
71-
* Updates the name of a defined location type.
71+
*
7272
*
7373
* @param string $locationTypeCode The user-defined code that identifies the location type.
74-
* @param string $responseFields Use this field to include those fields which are not included by default.
75-
* @param LocationType $locationType Properties of a type of physical location, such as warehouse or kiosk. Location types enable tenants to group similar locations for filtering and location usage type definition.
74+
* @param string $responseFields
75+
* @param LocationType $locationType Properties of the location type to update.
7676
* @return MozuClient
7777
*/
7878
public static function updateLocationTypeClient($locationType, $locationTypeCode, $responseFields = null)
@@ -85,9 +85,10 @@ public static function updateLocationTypeClient($locationType, $locationTypeCode
8585
}
8686

8787
/**
88-
* Deletes the location type specified in the request.
88+
*
8989
*
90-
* @param string $locationTypeCode The user-defined code that identifies the location type.
90+
* @param string $locationTypeCode User-defined code used to identify the location type.
91+
* @return MozuClient
9192
*/
9293
public static function deleteLocationTypeClient($locationTypeCode)
9394
{

0 commit comments

Comments
 (0)