• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python mozuurl.MozuUrl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mozurestsdk.mozuurl.MozuUrl的典型用法代码示例。如果您正苦于以下问题:Python MozuUrl类的具体用法?Python MozuUrl怎么用?Python MozuUrl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: updateCouponSet

    def updateCouponSet(self, couponSet, couponSetCode, responseFields=None):
        """ 
		
		Args:
			| couponSet(couponSet) - 
			| couponSetCode (string) - 
			| responseFields (string) - 
		
		Returns:
			| CouponSet 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/catalog/admin/couponsets/{couponSetCode}?responseFields={responseFields}",
            "PUT",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("couponSetCode", couponSetCode)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).withBody(couponSet).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:26,代码来源:couponset.py


示例2: getCouponSet

    def getCouponSet(self, couponSetCode, includeCounts=False, responseFields=None):
        """ 
		
		Args:
			| couponSetCode (string) - 
			| includeCounts (bool) - 
			| responseFields (string) - 
		
		Returns:
			| CouponSet 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/catalog/admin/couponsets/{couponSetCode}?includeCounts={includeCounts}&responseFields={responseFields}",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("couponSetCode", couponSetCode)
        url.formatUrl("includeCounts", includeCounts)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:27,代码来源:couponset.py


示例3: updateMasterCatalog

    def updateMasterCatalog(self, masterCatalog, masterCatalogId, responseFields=None):
        """ Updates the product publishing mode for the master catalog specified in the request.
		
		Args:
			| masterCatalog(masterCatalog) - Properties of a master product catalog defined for a tenant. All catalogs and sites associated with a master catalog share product definitions.
			| masterCatalogId (int) - 
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| MasterCatalog 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/catalog/admin/mastercatalogs/{masterCatalogId}?responseFields={responseFields}",
            "PUT",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("masterCatalogId", masterCatalogId)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).withBody(masterCatalog).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:26,代码来源:mastercatalog.py


示例4: addItemToWishlist

    def addItemToWishlist(self, wishlistItem, wishlistId, responseFields=None):
        """ Adds a product in a site's catalog as an item in a shopper wish list.
		
		Args:
			| wishlistItem(wishlistItem) - Properties of an item in a shopper wish list.
			| wishlistId (string) - Unique identifier of the wish list.
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| WishlistItem 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/wishlists/{wishlistId}/items?responseFields={responseFields}",
            "POST",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("responseFields", responseFields)
        url.formatUrl("wishlistId", wishlistId)
        self.client.withResourceUrl(url).withBody(wishlistItem).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:26,代码来源:wishlistitem.py


示例5: getCartItem

    def getCartItem(self, cartItemId, responseFields=None):
        """ Retrieves a particular cart item by providing the cart item ID.
		
		Args:
			| cartItemId (string) - Identifier of the cart item to delete.
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| CartItem 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/carts/current/items/{cartItemId}?responseFields={responseFields}",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("cartItemId", cartItemId)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:25,代码来源:cartitem.py


示例6: getTreeDocumentContent

    def getTreeDocumentContent(self, documentListName, documentName):
        """ Retrieve the content associated with the document, such as a product image or PDF specifications file.
		
		Args:
			| documentListName (string) - Name of content documentListName to delete
			| documentName (string) - The name of the document in the site.
		
		Returns:
			| Stream 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/content/documentlists/{documentListName}/documentTree/{documentName}/content",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("documentListName", documentListName)
        url.formatUrl("documentName", documentName)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:25,代码来源:documenttree.py


示例7: updateCartItem

    def updateCartItem(self, cartItem, cartItemId, responseFields=None):
        """ Update the product or product quantity of an item in the current shopper's cart.
		
		Args:
			| cartItem(cartItem) - Properties of an item added to an active shopping cart.
			| cartItemId (string) - Identifier of the cart item to delete.
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| CartItem 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/carts/current/items/{cartItemId}?responseFields={responseFields}",
            "PUT",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("cartItemId", cartItemId)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).withBody(cartItem).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:26,代码来源:cartitem.py


示例8: getInStockNotificationSubscription

    def getInStockNotificationSubscription(self, id, responseFields=None):
        """ Retrieves the details of a subscription that sends a push notification when a product is available in a site's active stock.
		
		Args:
			| id (int) - Unique identifier of the customer segment to retrieve.
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| InStockNotificationSubscription 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/instocknotifications/{id}?responseFields={responseFields}",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("id", id)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:25,代码来源:instocknotificationsubscription.py


示例9: getMasterCatalog

    def getMasterCatalog(self, masterCatalogId, responseFields=None):
        """ Retrieve the details of the master catalog specified in the request.
		
		Args:
			| masterCatalogId (int) - The unique identifier of the master catalog associated with the entity.
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| MasterCatalog 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/catalog/admin/mastercatalogs/{masterCatalogId}?responseFields={responseFields}",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("masterCatalogId", masterCatalogId)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:25,代码来源:mastercatalog.py


示例10: getSearchTuningRule

    def getSearchTuningRule(self, searchTuningRuleCode, responseFields=None):
        """ admin-search Get GetSearchTuningRule description DOCUMENT_HERE 
		
		Args:
			| searchTuningRuleCode (string) - 
			| responseFields (string) - 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.
		
		Returns:
			| SearchTuningRule 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/catalog/admin/search/searchtuningrules/{searchTuningRuleCode}?responseFields={responseFields}",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("responseFields", responseFields)
        url.formatUrl("searchTuningRuleCode", searchTuningRuleCode)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:25,代码来源:search.py


示例11: getUserCartSummary

    def getUserCartSummary(self, userId, responseFields=None):
        """ Retrieves summary information associated with the cart of user specified in the request, including the number of items in the cart, the current total, and whether the cart has expired. All anonymous idle carts that do not proceed to checkout expire after 14 days.
		
		Args:
			| userId (string) - Unique identifier of the user whose tenant scopes you want to retrieve.
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| CartSummary 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/carts/user/{userId}/summary?responseFields={responseFields}",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("responseFields", responseFields)
        url.formatUrl("userId", userId)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:25,代码来源:cart.py


示例12: updateDocumentListType

    def updateDocumentListType(self, list, documentListTypeFQN, responseFields=None):
        """ Updates a DocumentListType
		
		Args:
			| list(list) - Properties for the document list type. Document lists contain documents with an associated document type, such as web pages.
			| documentListTypeFQN (string) - 
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| DocumentListType 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/content/documentlistTypes/{documentListTypeFQN}?responseFields={responseFields}",
            "PUT",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("documentListTypeFQN", documentListTypeFQN)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).withBody(list).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:26,代码来源:documentlisttype.py


示例13: updateWishlistItemQuantity

    def updateWishlistItemQuantity(self, wishlistId, wishlistItemId, quantity, responseFields=None):
        """ Updates the quantity of an item in a shopper wish list.
		
		Args:
			| wishlistId (string) - Unique identifier of the wish list.
			| wishlistItemId (string) - Unique identifier of the item to remove from the shopper wish list.
			| quantity (int) - The number of cart items in the shopper's active cart.
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| WishlistItem 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}",
            "PUT",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("quantity", quantity)
        url.formatUrl("responseFields", responseFields)
        url.formatUrl("wishlistId", wishlistId)
        url.formatUrl("wishlistItemId", wishlistItemId)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:29,代码来源:wishlistitem.py


示例14: getTreeDocument

    def getTreeDocument(self, documentListName, documentName, includeInactive=False, responseFields=None):
        """ Retrieves a document based on its document list and folder path in the document hierarchy.
		
		Args:
			| documentListName (string) - Name of content documentListName to delete
			| documentName (string) - The name of the document in the site.
			| includeInactive (bool) - 
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| Document 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/content/documentlists/{documentListName}/documentTree/{documentName}?includeInactive={includeInactive}&responseFields={responseFields}",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("documentListName", documentListName)
        url.formatUrl("documentName", documentName)
        url.formatUrl("includeInactive", includeInactive)
        url.formatUrl("responseFields", responseFields)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:29,代码来源:documenttree.py


示例15: updateExtendedProperties

	def updateExtendedProperties(self,extendedProperties, orderId, updateMode = None, version = None, upsert = False):
		""" Updates one or more extended properties.
		
		Args:
			| extendedProperties(array|extendedProperties) - Mozu.CommerceRuntime.Contracts.Commerce.ExtendedProperty ApiType DOCUMENT_HERE 
			| orderId (string) - Unique identifier of the order.
			| updateMode (string) - 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."
			| version (string) - Determines whether or not to check versioning of items for concurrency purposes.
			| upsert (bool) - Inserts and updates the extended property.
        
		
		Returns:
			| array of ExtendedProperty 
		
		Raises:
			| ApiException
		
		"""

		url = MozuUrl("/api/commerce/orders/{orderId}/extendedproperties?updatemode={updateMode}&version={version}&upsert={upsert}", "PUT", UrlLocation.TenantPod, False);
		url.formatUrl("orderId", orderId);
		url.formatUrl("updateMode", updateMode);
		url.formatUrl("upsert", upsert);
		url.formatUrl("version", version);
		self.client.withResourceUrl(url).withBody(extendedProperties).execute();
		return self.client.result();
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:26,代码来源:extendedproperty.py


示例16: addPropertyValueLocalizedContent

	def addPropertyValueLocalizedContent(self,localizedContent, productCode, attributeFQN, value, responseFields = None):
		""" Adds a property value for localized content. This content is set by the locale code. 
		
		Args:
			| localizedContent(localizedContent) - Use this field to include those fields which are not included by default.
			| productCode (string) - The unique, user-defined product code of a product, used throughout Mozu to reference and associate to a product.
			| attributeFQN (string) - Fully qualified name for an attribute.
			| value (string) - The value string to create.
			| responseFields (string) - Use this field to include those fields which are not included by default.
		
		Returns:
			| ProductPropertyValueLocalizedContent 
		
		Raises:
			| ApiException
		
		"""

		url = MozuUrl("/api/commerce/catalog/admin/products/{productCode}/Properties/{attributeFQN}/values/{value}/LocalizedContent?responseFields={responseFields}", "POST", UrlLocation.TenantPod, False);
		url.formatUrl("attributeFQN", attributeFQN);
		url.formatUrl("productCode", productCode);
		url.formatUrl("responseFields", responseFields);
		url.formatUrl("value", value);
		self.client.withResourceUrl(url).withBody(localizedContent).execute();
		return self.client.result();
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:25,代码来源:productproperty.py


示例17: upsertPackageFile

	def upsertPackageFile(self,stream, applicationKey, filepath, lastModifiedTime = None, responseFields = None, contentType = None):
		""" platform-developer Post UpsertPackageFile description DOCUMENT_HERE 
		
		Args:
			| stream(stream) - Data stream that delivers information. Used to input and output data.
			| applicationKey (string) - 
			| filepath (string) - 
			| lastModifiedTime (string) - 
			| responseFields (string) - 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.
			| contentType (string) - set content type of the data uploaded|
		
		Returns:
			| FileMetadata 
		
		Raises:
			| ApiException
		
		"""

		url = MozuUrl("/api/platform/developer/packages/{applicationKey}/files/{filepath}?lastModifiedTime={lastModifiedTime}&responseFields={responseFields}", "POST", UrlLocation.HomePod, False);
		url.formatUrl("applicationKey", applicationKey);
		url.formatUrl("filepath", filepath);
		url.formatUrl("lastModifiedTime", lastModifiedTime);
		url.formatUrl("responseFields", responseFields);
		self.client.withResourceUrl(url).withBody(stream).withContentType(contentType).execute();
		return self.client.result();
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:26,代码来源:application.py


示例18: getPublishSetItems

    def getPublishSetItems(self, code, pageSize=None, startIndex=None, responseFields=None):
        """ Retrieve a paged collection of publish set Items.
		
		Args:
			| code (string) - User-defined code that uniqely identifies the channel group.
			| pageSize (int) - 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.
			| startIndex (int) - 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 .
			| responseFields (string) - 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.
		
		Returns:
			| DocumentDraftSummaryPagedCollection 
		
		Raises:
			| ApiException
		
		"""

        url = MozuUrl(
            "/api/content/publishsets/{code}/items?pageSize={pageSize}&startIndex={startIndex}&responseFields={responseFields}",
            "GET",
            UrlLocation.TenantPod,
            False,
        )
        url.formatUrl("code", code)
        url.formatUrl("pageSize", pageSize)
        url.formatUrl("responseFields", responseFields)
        url.formatUrl("startIndex", startIndex)
        self.client.withResourceUrl(url).execute()
        return self.client.result()
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:29,代码来源:publishsetsummary.py


示例19: changeOrderPriceList

	def changeOrderPriceList(self,priceListCode, orderId, updateMode = None, version = None, responseFields = None):
		""" Changes the price list associated with an order. The desired price list code should be specified in the ApiContext.
		
		Args:
			| priceListCode(priceListCode) - The unique price list code.
			| orderId (string) - Unique identifier of the order.
			| updateMode (string) - 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."
			| version (string) - Determines whether or not to check versioning of items for concurrency purposes.
			| responseFields (string) - 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.
		
		Returns:
			| Order 
		
		Raises:
			| ApiException
		
		"""

		url = MozuUrl("/api/commerce/orders/{orderId}/priceList?updatemode={updateMode}&version={version}&responseFields={responseFields}", "PUT", UrlLocation.TenantPod, False);
		url.formatUrl("orderId", orderId);
		url.formatUrl("responseFields", responseFields);
		url.formatUrl("updateMode", updateMode);
		url.formatUrl("version", version);
		self.client.withResourceUrl(url).withBody(priceListCode).execute();
		return self.client.result();
开发者ID:Mozu,项目名称:mozu-python-sdk,代码行数:25,代码来源:order.py


示例20: configuredProduct

	def configuredProduct(self,productOptionSelections, productCode, includeOptionDetails = False, skipInventoryCheck = False, responseFields = None):
		""" Creates a new product configuration each time a shopper selects a product option value. After the shopper defines values for all required product options, the shopper can add the product configuration to a cart.
		
		Args:
			| productOptionSelections(productOptionSelections) - For a product with shopper-configurable options, the properties of the product options selected by the shopper.
			| productCode (string) - Merchant-created code that uniquely identifies the product such as a SKU or item number. Once created, the product code is read-only.
			| includeOptionDetails (bool) - If true, the response returns details about the product. If false, returns a product summary such as the product name, price, and sale price.
			| skipInventoryCheck (bool) - If true, skip the process to validate inventory when creating this product reservation.
			| responseFields (string) - 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.
		
		Returns:
			| ConfiguredProduct 
		
		Raises:
			| ApiException
		
		"""

		url = MozuUrl("/api/commerce/catalog/storefront/products/{productCode}/configure?includeOptionDetails={includeOptionDetails}&skipInventoryCheck={skipInventoryCheck}&responseFields={responseFields}", "POST", UrlLocation.TenantPod, False);
		url.formatUrl("includeOptionDetails", includeOptionDetails);
		url.formatUrl("productCode", productCode);
		url.formatUrl("responseFields", responseFields);
		url.formatUrl("skipInventoryCheck", skipInventoryCheck);
		self.client.withResourceUrl(url).withBody(productOptionSelections).execute();
		return self.client.result();
开发者ID:sanjaymandadi,项目名称:mozu-python-sdk,代码行数:25,代码来源:product.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python mozversion.get_version函数代码示例发布时间:2022-05-27
下一篇:
Python mozuclient.default_client函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap