php Mozu-Api-MozuUrl类(方法)实例源码

下面列出了php Mozu-Api-MozuUrl 类(方法)源码代码实例,从而了解它的用法。

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for UpdateOrderHandlingFee
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function updateOrderHandlingFeeUrl($responseFields)
 {
     $url = "/api/commerce/settings/shipping/orderhandlingfee?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for DeleteEntityList
  * @param string $entityListFullName The full name of the EntityList including namespace in name@nameSpace format
  * @return string Resource Url
  */
 public static function deleteEntityListUrl($entityListFullName)
 {
     $url = "/api/platform/entitylists/{entityListFullName}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("entityListFullName", $entityListFullName);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for Delete
  * @param string $cardId Unique identifier of the card associated with the customer account billing contact.
  * @return string Resource Url
  */
 public static function deleteUrl($cardId)
 {
     $url = "/payments/commerce/payments/cards/{cardId}";
     $mozuUrl = new MozuUrl($url, UrlLocation::PCI_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("cardId", $cardId);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for DeleteInStockNotificationSubscription
  * @param int $id Unique identifier of the customer segment to retrieve.
  * @return string Resource Url
  */
 public static function deleteInStockNotificationSubscriptionUrl($id)
 {
     $url = "/api/commerce/instocknotifications/{id}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("id", $id);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for ThirdPartyUpdateApplication
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function thirdPartyUpdateApplicationUrl($responseFields)
 {
     $url = "/api/commerce/settings/applications/?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for UpdateSettings
  * @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
  * @return string Resource Url
  */
 public static function updateSettingsUrl($responseFields)
 {
     $url = "/api/commerce/catalog/admin/search/settings?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for DeleteUserAuthTicket
  * @param string $refreshToken Alphanumeric string used for access tokens. This token refreshes access for accounts by generating a new developer or application account authentication ticket after an access token expires.
  * @return string Resource Url
  */
 public static function deleteUserAuthTicketUrl($refreshToken)
 {
     $url = "/api/platform/adminuser/authtickets/?refreshToken={refreshToken}";
     $mozuUrl = new MozuUrl($url, UrlLocation::HOME_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("refreshToken", $refreshToken);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for DeleteAttribute
  * @param string $attributeFQN The fully qualified name of the attribute, which is a user defined attribute identifier.
  * @return string Resource Url
  */
 public static function deleteAttributeUrl($attributeFQN)
 {
     $url = "/api/commerce/catalog/admin/attributedefinition/attributes/{attributeFQN}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("attributeFQN", $attributeFQN);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for DeleteDocumentList
  * @param string $documentListName Name of content documentListName to delete
  * @return string Resource Url
  */
 public static function deleteDocumentListUrl($documentListName)
 {
     $url = "/api/content/documentlists/{documentListName}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("documentListName", $documentListName);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for UpdateGeneralSettings
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function updateGeneralSettingsUrl($responseFields)
 {
     $url = "/api/commerce/settings/general/?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for GetRates
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function getRatesUrl($responseFields)
 {
     $url = "/api/commerce/catalog/storefront/shipping/request-rates?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "POST", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for PublishDocuments
  * @param string $documentLists List of document lists that contain documents to delete.
  * @return string Resource Url
  */
 public static function publishDocumentsUrl($documentLists)
 {
     $url = "/api/content/documentpublishing/active?documentLists={documentLists}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("documentLists", $documentLists);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for GetCategoryTree
  * @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
  * @return string Resource Url
  */
 public static function getCategoryTreeUrl($responseFields)
 {
     $url = "/api/commerce/catalog/storefront/categories/tree?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "GET", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for RemoveMessage
  * @param string $messageId Identifier of the message to remove from the cart.
  * @return string Resource Url
  */
 public static function removeMessageUrl($messageId)
 {
     $url = "/api/commerce/carts/current/messages/{messageId}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("messageId", $messageId);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for ValidateAddress
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function validateAddressUrl($responseFields)
 {
     $url = "/api/commerce/customer/addressvalidation/?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "POST", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }

作者:echidna-moz    项目:mozu-php-sd   
/**
  * Get Resource Url for DeleteExtendedProperty
  * @param string $key 
  * @return string Resource Url
  */
 public static function deleteExtendedPropertyUrl($key)
 {
     $url = "/api/commerce/carts/current/extendedproperties/{key}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("key", $key);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for DeleteFacetById
  * @param int $facetId Unique identifier of the facet to retrieve.
  * @return string Resource Url
  */
 public static function deleteFacetByIdUrl($facetId)
 {
     $url = "/api/commerce/catalog/admin/facets/{facetId}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("facetId", $facetId);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for DeleteLocationType
  * @param string $locationTypeCode The user-defined code that identifies the location type.
  * @return string Resource Url
  */
 public static function deleteLocationTypeUrl($locationTypeCode)
 {
     $url = "/api/commerce/admin/locationtypes/{locationTypeCode}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("locationTypeCode", $locationTypeCode);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for DeletePropertyType
  * @param string $propertyTypeName The name of the property type.
  * @return string Resource Url
  */
 public static function deletePropertyTypeUrl($propertyTypeName)
 {
     $url = "/api/content/propertytypes/{propertyTypeName}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("propertyTypeName", $propertyTypeName);
     return $mozuUrl;
 }

作者:sgorma    项目:mozu-php-sd   
/**
  * Get Resource Url for AddTaxableTerritory
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function addTaxableTerritoryUrl($responseFields)
 {
     $url = "/api/commerce/settings/general/taxableterritories?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "POST", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }


问题


面经


文章

微信
公众号

扫码关注公众号