当前位置: 首页>>代码示例>>PHP>>正文


PHP MozuClient::withResourceUrl方法代码示例

本文整理汇总了PHP中Mozu\Api\MozuClient::withResourceUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP MozuClient::withResourceUrl方法的具体用法?PHP MozuClient::withResourceUrl怎么用?PHP MozuClient::withResourceUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mozu\Api\MozuClient的用法示例。


在下文中一共展示了MozuClient::withResourceUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: removeTransactionClient

 /**
  * Deletes a transaction from the customer account specified in the request.
  *
  * @param int $accountId Unique identifier of the customer account.
  * @param string $transactionId Unique identifier of the transaction to delete.
  */
 public static function removeTransactionClient($accountId, $transactionId)
 {
     $url = TransactionUrl::removeTransactionUrl($accountId, $transactionId);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:13,代码来源:TransactionClient.php

示例2: deleteLocationTypeClient

 /**
  * Deletes the location type specified in the request.
  *
  * @param string $locationTypeCode The user-defined code that identifies the location type.
  */
 public static function deleteLocationTypeClient($locationTypeCode)
 {
     $url = LocationTypeUrl::deleteLocationTypeUrl($locationTypeCode);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:12,代码来源:LocationTypeClient.php

示例3: getEntityContainersClient

 /**
  * Retrieves a collection of entity containers. Each container holds a set of entities per ID. 
  *
  * @param string $entityListFullName The full name of the EntityList including namespace in name@nameSpace format
  * @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"
  * @param int $pageSize The number of results to display on each page when creating paged results from a query. The amount is divided and displayed on the `pageCount `amount of pages. The default is 20 and maximum value is 200 per page.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param string $sortBy The element to sort the results by and the channel in which the results appear. Either ascending (a-z) or descending (z-a) channel. Optional.
  * @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`.
  * @return MozuClient
  */
 public static function getEntityContainersClient($entityListFullName, $pageSize = null, $startIndex = null, $filter = null, $sortBy = null, $responseFields = null)
 {
     $url = EntityContainerUrl::getEntityContainersUrl($entityListFullName, $filter, $pageSize, $responseFields, $sortBy, $startIndex);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:18,代码来源:EntityContainerClient.php

示例4: updateDiscountTargetClient

 /**
  * Modifies properties of the discount target, for example, the dollar amount, or precentage off the price.
  *
  * @param int $discountId Unique identifier of the discount. System-supplied and read only.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param DiscountTarget $discountTarget Properties of the target to which the discount applies, such as the type of discount and which products, categories, or shipping methods are eligible for the discount and the properties of this discount target.
  * @return MozuClient
  */
 public static function updateDiscountTargetClient($discountTarget, $discountId, $responseFields = null)
 {
     $url = DiscountTargetUrl::updateDiscountTargetUrl($discountId, $responseFields);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($discountTarget);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:15,代码来源:DiscountTargetClient.php

示例5: suggestClient

 /**
  * Suggests possible search terms as the shopper enters search text.
  *
  * @param string $groups 
  * @param int $pageSize The number of results to display on each page when creating paged results from a query. The maximum value is 200.
  * @param string $query A query entered for searches and facet range.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return MozuClient
  */
 public static function suggestClient($query = null, $groups = null, $pageSize = null, $responseFields = null)
 {
     $url = ProductSearchResultUrl::suggestUrl($groups, $pageSize, $query, $responseFields);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:echidna-mozu,项目名称:mozu-php-sdk,代码行数:16,代码来源:ProductSearchResultClient.php

示例6: thirdPartyUpdateApplicationClient

 /**
  * Initializes an application with the necessary configured settings.
  *
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param Application $application Properties of an application installed in a tenant.
  * @return MozuClient
  */
 public static function thirdPartyUpdateApplicationClient($application, $responseFields = null)
 {
     $url = ApplicationUrl::thirdPartyUpdateApplicationUrl($responseFields);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($application);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:ApplicationClient.php

示例7: deleteShipmentClient

 /**
  * Deletes a shipment for a return replacement.
  *
  * @param string $returnId Unique identifier of the return whose items you want to get.
  * @param string $shipmentId Unique identifier of the shipment to retrieve.
  */
 public static function deleteShipmentClient($returnId, $shipmentId)
 {
     $url = ShipmentUrl::deleteShipmentUrl($returnId, $shipmentId);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:13,代码来源:ShipmentClient.php

示例8: updateLocationUsageClient

 /**
  * Updates the location usage for the site based on the location usage code specified in the request.
  *
  * @param string $code User-defined code that uniqely identifies the channel group.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param LocationUsage $usage Configuration properties of a location usage type for a specified site. The direct ship location usage type consists of a single location that represents location that supports direct ship (DS) fulfillment. The in-store pickup location usage type consists of a list of location types that represent locations that support in-store pickup (SP) fulfillment. The store finder location usage type consists of a list of location codes, location types, or both.
  * @return MozuClient
  */
 public static function updateLocationUsageClient($usage, $code, $responseFields = null)
 {
     $url = LocationUsageUrl::updateLocationUsageUrl($code, $responseFields);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($usage);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:15,代码来源:LocationUsageClient.php

示例9: updateTaxableTerritoriesClient

 /**
  * Updates one or more taxable territories configured for a site.
  *
  * @param array|TaxableTerritory $taxableterritories Properties of the territory which is subject to sales tax.
  * @return MozuClient
  */
 public static function updateTaxableTerritoriesClient($taxableterritories)
 {
     $url = TaxableTerritoryUrl::updateTaxableTerritoriesUrl();
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($taxableterritories);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:13,代码来源:TaxableTerritoryClient.php

示例10: updateGeneralSettingsClient

 /**
  * Updates a site's general global settings.
  *
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param GeneralSettings $generalSettings General settings used on the storefront site.
  * @return MozuClient
  */
 public static function updateGeneralSettingsClient($generalSettings, $responseFields = null)
 {
     $url = GeneralSettingsUrl::updateGeneralSettingsUrl($responseFields);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($generalSettings);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:GeneralSettingsClient.php

示例11: removeMessageClient

 /**
  * Removes a single message associated with the cart of the current shopper.
  *
  * @param string $messageId Identifier of the message to remove from the cart.
  */
 public static function removeMessageClient($messageId)
 {
     $url = ChangeMessageUrl::removeMessageUrl($messageId);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:12,代码来源:ChangeMessageClient.php

示例12: updateDocumentListTypeClient

 /**
  * Updates a DocumentListType
  *
  * @param string $documentListTypeFQN 
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param DocumentListType $list Properties for the document list type. Document lists contain documents with an associated document type, such as web pages.
  * @return MozuClient
  */
 public static function updateDocumentListTypeClient($list, $documentListTypeFQN, $responseFields = null)
 {
     $url = DocumentListTypeUrl::updateDocumentListTypeUrl($documentListTypeFQN, $responseFields);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($list);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:15,代码来源:DocumentListTypeClient.php

示例13: getTenantClient

 /**
  * Retrieve details about a specific tenant by providing the tenant ID.
  *
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param int $tenantId Unique identifier of the Mozu tenant.
  * @return MozuClient
  */
 public static function getTenantClient($tenantId, $responseFields = null)
 {
     $url = TenantUrl::getTenantUrl($responseFields, $tenantId);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:TenantClient.php

示例14: getAttributeTypeRulesClient

 /**
  * Retrieves a list of attribute type rules according to optional filter criteria and sort options. Attribute type rules help drive the behavior of attributes on a storefront page.
  *
  * @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"
  * @param int $pageSize The number of results to display on each page when creating paged results from a query. The maximum value is 200.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param string $sortBy 
  * @param int $startIndex 
  * @return MozuClient
  */
 public static function getAttributeTypeRulesClient($startIndex = null, $pageSize = null, $sortBy = null, $filter = null, $responseFields = null)
 {
     $url = AttributeTypeRuleUrl::getAttributeTypeRulesUrl($filter, $pageSize, $responseFields, $sortBy, $startIndex);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:17,代码来源:AttributeTypeRuleClient.php

示例15: removeAdjustmentClient

 /**
  * Removes a price adjustment from the specified order.
  *
  * @param string $orderId Unique identifier of the order.
  * @param string $updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit."
  * @param string $version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one.
  * @return MozuClient
  */
 public static function removeAdjustmentClient($orderId, $updateMode = null, $version = null)
 {
     $url = AdjustmentUrl::removeAdjustmentUrl($orderId, $updateMode, $version);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:15,代码来源:AdjustmentClient.php


注:本文中的Mozu\Api\MozuClient::withResourceUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。