Skip to content

Commit 28f3768

Browse files
author
Sanjay Mandadi
committed
Update SDK with Latest API Changes
1 parent 549a132 commit 28f3768

File tree

30 files changed

+1722
-1
lines changed

30 files changed

+1722
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-master": "1.20.x-dev"
30+
"dev-master": "1.21.x-dev"
3131
}
3232
}
3333
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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\Catalog\Storefront;
14+
15+
use Mozu\Api\MozuClient;
16+
use Mozu\Api\Urls\Commerce\Catalog\Storefront\OrderTaxContextUrl;
17+
18+
19+
/**
20+
* Use the Storefront Tax resource to retrieve tax information from the storefront.
21+
*/
22+
class OrderTaxContextClient {
23+
24+
/**
25+
* Retrieves tax information applicable to the site.
26+
*
27+
* @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.
28+
* @param TaxableOrder $taxableOrder
29+
* @return MozuClient
30+
*/
31+
public static function estimateTaxesClient($taxableOrder, $responseFields = null)
32+
{
33+
$url = OrderTaxContextUrl::estimateTaxesUrl($responseFields);
34+
$mozuClient = new MozuClient();
35+
$mozuClient->withResourceUrl($url)->withBody($taxableOrder);
36+
return $mozuClient;
37+
38+
}
39+
40+
41+
}
42+
43+
?>
44+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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\Orders;
14+
15+
use Mozu\Api\MozuClient;
16+
use Mozu\Api\Urls\Commerce\Orders\OrderReturnableItemUrl;
17+
18+
19+
/**
20+
* Use this subresource to view which order items are eligible for return.
21+
*/
22+
class OrderReturnableItemClient {
23+
24+
/**
25+
* Retrieves information about which items are eligible for return on an order.Each item displays the following information:
26+
* One entry that represents the entire order item, whether this is a single product, a bundle, or a product or bundle with extras. (ParentProductCode == null, ExcludeProductExtras == false)
27+
28+
* (If the item contains product extras)
29+
* One entry that represents the parent product without product extras (ParentProductCode == null, ExcludeProductExtras == true)
30+
31+
* One entry for each extra (ParentProductCode != null, OrderItemOptionAttributeFQN != null)
32+
33+
34+
* (If the parent item is a bundle)
35+
* One entry for each item within the bundle (ParentProductCode != null, OrderItemOptionAttributeFQN == null)
36+
37+
38+
*
39+
* @param string $orderId Unique identifier of the order.
40+
* @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.
41+
* @return MozuClient
42+
*/
43+
public static function getOrderReturnableItemsClient($orderId, $responseFields = null)
44+
{
45+
$url = OrderReturnableItemUrl::getOrderReturnableItemsUrl($orderId, $responseFields);
46+
$mozuClient = new MozuClient();
47+
$mozuClient->withResourceUrl($url);
48+
return $mozuClient;
49+
50+
}
51+
52+
53+
}
54+
55+
?>
56+
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
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\Returns;
14+
15+
use Mozu\Api\MozuClient;
16+
use Mozu\Api\Urls\Commerce\Returns\OrderNoteUrl;
17+
18+
19+
/**
20+
* Use the Return Notes resource to access and modify internal notes associated with returns. These notes can be useful to customer service representatives viewing them in .
21+
*/
22+
class OrderNoteClient {
23+
24+
/**
25+
* Retrieves all internal notes associated with a return.
26+
*
27+
* @param string $returnId Unique identifier of the return whose items you want to get.
28+
* @return MozuClient
29+
*/
30+
public static function getReturnNotesClient($returnId)
31+
{
32+
$url = OrderNoteUrl::getReturnNotesUrl($returnId);
33+
$mozuClient = new MozuClient();
34+
$mozuClient->withResourceUrl($url);
35+
return $mozuClient;
36+
37+
}
38+
39+
/**
40+
* Retrieves a specific internal note from a return.
41+
*
42+
* @param string $noteId Unique identifier of a particular note to retrieve.
43+
* @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.
44+
* @param string $returnId Unique identifier of the return whose items you want to get.
45+
* @return MozuClient
46+
*/
47+
public static function getReturnNoteClient($returnId, $noteId, $responseFields = null)
48+
{
49+
$url = OrderNoteUrl::getReturnNoteUrl($noteId, $responseFields, $returnId);
50+
$mozuClient = new MozuClient();
51+
$mozuClient->withResourceUrl($url);
52+
return $mozuClient;
53+
54+
}
55+
56+
/**
57+
* Creates an internal note on a given return. This note is visible in for customer service representatives to see.
58+
*
59+
* @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.
60+
* @param string $returnId Unique identifier of the return whose items you want to get.
61+
* @param OrderNote $returnNote
62+
* @return MozuClient
63+
*/
64+
public static function createReturnNoteClient($returnNote, $returnId, $responseFields = null)
65+
{
66+
$url = OrderNoteUrl::createReturnNoteUrl($responseFields, $returnId);
67+
$mozuClient = new MozuClient();
68+
$mozuClient->withResourceUrl($url)->withBody($returnNote);
69+
return $mozuClient;
70+
71+
}
72+
73+
/**
74+
* Updates an internal note on a given return. This note is visible in for customer service representatives to see.
75+
*
76+
* @param string $noteId Unique identifier of a particular note to retrieve.
77+
* @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.
78+
* @param string $returnId Unique identifier of the return whose items you want to get.
79+
* @param OrderNote $returnNote
80+
* @return MozuClient
81+
*/
82+
public static function updateReturnNoteClient($returnNote, $returnId, $noteId, $responseFields = null)
83+
{
84+
$url = OrderNoteUrl::updateReturnNoteUrl($noteId, $responseFields, $returnId);
85+
$mozuClient = new MozuClient();
86+
$mozuClient->withResourceUrl($url)->withBody($returnNote);
87+
return $mozuClient;
88+
89+
}
90+
91+
/**
92+
* Deletes an internal note from a given return.
93+
*
94+
* @param string $noteId Unique identifier of a particular note to retrieve.
95+
* @param string $returnId Unique identifier of the return whose items you want to get.
96+
*/
97+
public static function deleteReturnNoteClient($returnId, $noteId)
98+
{
99+
$url = OrderNoteUrl::deleteReturnNoteUrl($noteId, $returnId);
100+
$mozuClient = new MozuClient();
101+
$mozuClient->withResourceUrl($url);
102+
return $mozuClient;
103+
104+
}
105+
106+
107+
}
108+
109+
?>
110+
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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\Settings;
14+
15+
use Mozu\Api\MozuClient;
16+
use Mozu\Api\Urls\Commerce\Settings\CartSettingsUrl;
17+
18+
19+
/**
20+
* Use the cart subresource to manage settings for the cart, such as whether to include handling fees in the cost calculations.
21+
*/
22+
class CartSettingsClient {
23+
24+
/**
25+
* Retrieves cart settings.
26+
*
27+
* @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.
28+
* @return MozuClient
29+
*/
30+
public static function getCartSettingsClient($responseFields = null)
31+
{
32+
$url = CartSettingsUrl::getCartSettingsUrl($responseFields);
33+
$mozuClient = new MozuClient();
34+
$mozuClient->withResourceUrl($url);
35+
return $mozuClient;
36+
37+
}
38+
39+
/**
40+
* Creates cart settings.
41+
*
42+
* @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.
43+
* @param CartSettings $cartSettings
44+
* @return MozuClient
45+
*/
46+
public static function createCartSettingsClient($cartSettings, $responseFields = null)
47+
{
48+
$url = CartSettingsUrl::createCartSettingsUrl($responseFields);
49+
$mozuClient = new MozuClient();
50+
$mozuClient->withResourceUrl($url)->withBody($cartSettings);
51+
return $mozuClient;
52+
53+
}
54+
55+
/**
56+
* Updates cart settings.
57+
*
58+
* @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.
59+
* @param CartSettings $cartSettings
60+
* @return MozuClient
61+
*/
62+
public static function updateCartSettingsClient($cartSettings, $responseFields = null)
63+
{
64+
$url = CartSettingsUrl::updateCartSettingsUrl($responseFields);
65+
$mozuClient = new MozuClient();
66+
$mozuClient->withResourceUrl($url)->withBody($cartSettings);
67+
return $mozuClient;
68+
69+
}
70+
71+
72+
}
73+
74+
?>
75+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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\Platform\Extensions;
14+
15+
use Mozu\Api\MozuClient;
16+
use Mozu\Api\Urls\Platform\Extensions\CredentialStoreEntryUrl;
17+
18+
19+
/**
20+
* The CredentialStore resource allows you to encrypt and store sensitive data on your tenant. You can then decrypt and access that data using an Arc.js application, as described in the Arc.js [Programming Patterns](https://www.mozu.com/docs/developer/arcjs-guides/programming-patterns.htm#securely_store_and_access_sensitive_data) topic.
21+
*/
22+
class CredentialStoreEntryClient {
23+
24+
/**
25+
* Encrypts and stores data contained in the JSON object. You can decrypt and access the secured data using an Arc.js application, as described in the Arc.js [Programming Patterns](https://www.mozu.com/docs/developer/arcjs-guides/programming-patterns.htm#securely_store_and_access_sensitive_data) topic.
26+
*
27+
* @param CredentialStoreEntry $credentials
28+
*/
29+
public static function storeCredentialsClient($credentials)
30+
{
31+
$url = CredentialStoreEntryUrl::storeCredentialsUrl();
32+
$mozuClient = new MozuClient();
33+
$mozuClient->withResourceUrl($url)->withBody($credentials);
34+
return $mozuClient;
35+
36+
}
37+
38+
39+
}
40+
41+
?>
42+

0 commit comments

Comments
 (0)