/// <summary>
 /// Get Resource Url for DeleteWishlist
 /// </summary>
 /// <param name="wishlistId">Unique identifier of the wish list to delete.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl DeleteWishlistUrl(string wishlistId)
 {
     var url = "/api/commerce/wishlists/{wishlistId}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "wishlistId", wishlistId);
     return mozuUrl;
 }
		/// <summary>
        /// Get Resource Url for GenerateRandomCoupon
        /// </summary>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GenerateRandomCouponUrl(string responseFields =  null)
		{
			var url = "/api/commerce/catalog/admin/discounts/generate-random-coupon?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
 /// <summary>
 /// Get Resource Url for AddLoginToExistingCustomer
 /// </summary>
 /// <param name="accountId"></param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl AddLoginToExistingCustomerUrl(int accountId)
 {
     var url = "/api/commerce/customer/accounts/{accountId}/Create-Login";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "accountId", accountId);
     return mozuUrl;
 }
 /// <summary>
 /// Get Resource Url for RefreshUserAuthTicket
 /// </summary>
 /// <param name="refreshToken"></param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl RefreshUserAuthTicketUrl(string refreshToken)
 {
     var url = "/api/commerce/customer/authtickets/refresh?refreshToken={refreshToken}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "refreshToken", refreshToken);
     return mozuUrl;
 }
				/// <summary>
        /// Get Resource Url for AssignDiscount
        /// </summary>
        /// <param name="couponSetCode">The unique identifier of the coupon set.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl AssignDiscountUrl(string couponSetCode)
		{
			var url = "/api/commerce/catalog/admin/couponsets/{couponSetCode}/assigneddiscounts";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "couponSetCode", couponSetCode);
			return mozuUrl;
		}
		/// <summary>
        /// Get Resource Url for Search
        /// </summary>
        /// <param name="cursorMark"></param>
        /// <param name="enableSearchTuningRules">Enables search tuning rules on your site.</param>
        /// <param name="facet">Individually list the facet fields you want to display in a web storefront product search.</param>
        /// <param name="facetFieldRangeQuery">Display a range facet not specified in a template in a web storefront product search by listing the facet field and the range to display.</param>
        /// <param name="facetHierDepth">If filtering using category facets in a hierarchy, the number of category hierarchy levels to return for the facet. This option is only available for category facets.</param>
        /// <param name="facetHierPrefix">If filtering using category facets in a hierarchy, the parent categories you want to skip in the storefront product search. This parameter is only available for category facets.</param>
        /// <param name="facetHierValue">If filtering using category facets in a hierarchy, the category in the hierarchy to begin faceting on. This parameter is only available for category facets.</param>
        /// <param name="facetPageSize">The number of facet values to return for one or more facets.</param>
        /// <param name="facetPrefix">Use this parameter to filter facet values that are returned by an associated search result by a prefix.For example, to filter on colors that start with b, such as blue, black, or brown you can specify the following:</param>
        /// <param name="facetSettings">Settings reserved for future facet search functionality on a web storefront product search.</param>
        /// <param name="facetStartIndex">When paging through multiple facets, the startIndex value for each facet.</param>
        /// <param name="facetTemplate">The facet template to use on the storefront. A template displays all facets associated with the template on the web storefront product search. Currently, only category-level facet templates are available.</param>
        /// <param name="facetTemplateExclude">A comma-separated list of the facets to exclude from the facetTemplate.        </param>
        /// <param name="facetTemplateSubset">Display a subset of the facets defined in the template specified in facetTemplate parameter.</param>
        /// <param name="facetValueFilter">The facet values to apply to the filter.</param>
        /// <param name="filter">A set of filter expressions representing the search parameters for a query. This parameter is optional. Refer to [Sorting and Filtering](../../../../Developer/applications/sorting-filtering.htm) for a list of supported filters.</param>
        /// <param name="pageSize">The number of results to display on each page when creating paged results from a query. The maximum value is 200.</param>
        /// <param name="query">Properties for the product location inventory provided for queries to locate products by their location.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <param name="responseOptions"></param>
        /// <param name="searchSettings">The settings to control product search and indexing behavior.</param>
        /// <param name="searchTuningRuleCode">The unique identifier of the search tuning rule.</param>
        /// <param name="searchTuningRuleContext">The category ID that the search tuning rule applies to.</param>
        /// <param name="sortBy"></param>
        /// <param name="startIndex"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl SearchUrl(string query =  null, string filter =  null, string facetTemplate =  null, string facetTemplateSubset =  null, string facet =  null, string facetFieldRangeQuery =  null, string facetHierPrefix =  null, string facetHierValue =  null, string facetHierDepth =  null, string facetStartIndex =  null, string facetPageSize =  null, string facetSettings =  null, string facetValueFilter =  null, string sortBy =  null, int? pageSize =  null, int? startIndex =  null, string searchSettings =  null, bool? enableSearchTuningRules =  null, string searchTuningRuleContext =  null, string searchTuningRuleCode =  null, string facetTemplateExclude =  null, string facetPrefix =  null, string responseOptions =  null, string cursorMark =  null, string responseFields =  null)
		{
			var url = "/api/commerce/catalog/storefront/productsearch/search/?query={query}&filter={filter}&facetTemplate={facetTemplate}&facetTemplateSubset={facetTemplateSubset}&facet={facet}&facetFieldRangeQuery={facetFieldRangeQuery}&facetHierPrefix={facetHierPrefix}&facetHierValue={facetHierValue}&facetHierDepth={facetHierDepth}&facetStartIndex={facetStartIndex}&facetPageSize={facetPageSize}&facetSettings={facetSettings}&facetValueFilter={facetValueFilter}&sortBy={sortBy}&pageSize={pageSize}&startIndex={startIndex}&searchSettings={searchSettings}&enableSearchTuningRules={enableSearchTuningRules}&searchTuningRuleContext={searchTuningRuleContext}&searchTuningRuleCode={searchTuningRuleCode}&facetTemplateExclude={facetTemplateExclude}&facetPrefix={facetPrefix}&responseOptions={responseOptions}&cursorMark={cursorMark}&responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "cursorMark", cursorMark);
			mozuUrl.FormatUrl( "enableSearchTuningRules", enableSearchTuningRules);
			mozuUrl.FormatUrl( "facet", facet);
			mozuUrl.FormatUrl( "facetFieldRangeQuery", facetFieldRangeQuery);
			mozuUrl.FormatUrl( "facetHierDepth", facetHierDepth);
			mozuUrl.FormatUrl( "facetHierPrefix", facetHierPrefix);
			mozuUrl.FormatUrl( "facetHierValue", facetHierValue);
			mozuUrl.FormatUrl( "facetPageSize", facetPageSize);
			mozuUrl.FormatUrl( "facetPrefix", facetPrefix);
			mozuUrl.FormatUrl( "facetSettings", facetSettings);
			mozuUrl.FormatUrl( "facetStartIndex", facetStartIndex);
			mozuUrl.FormatUrl( "facetTemplate", facetTemplate);
			mozuUrl.FormatUrl( "facetTemplateExclude", facetTemplateExclude);
			mozuUrl.FormatUrl( "facetTemplateSubset", facetTemplateSubset);
			mozuUrl.FormatUrl( "facetValueFilter", facetValueFilter);
			mozuUrl.FormatUrl( "filter", filter);
			mozuUrl.FormatUrl( "pageSize", pageSize);
			mozuUrl.FormatUrl( "query", query);
			mozuUrl.FormatUrl( "responseFields", responseFields);
			mozuUrl.FormatUrl( "responseOptions", responseOptions);
			mozuUrl.FormatUrl( "searchSettings", searchSettings);
			mozuUrl.FormatUrl( "searchTuningRuleCode", searchTuningRuleCode);
			mozuUrl.FormatUrl( "searchTuningRuleContext", searchTuningRuleContext);
			mozuUrl.FormatUrl( "sortBy", sortBy);
			mozuUrl.FormatUrl( "startIndex", startIndex);
			return mozuUrl;
		}
 /// <summary>
 /// Get Resource Url for GetEvent
 /// </summary>
 /// <param name="eventId">The unique identifier of the event being retrieved. An event is a notification about a create, read, update, or delete on an order, product, discount or category.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl GetEventUrl(string eventId)
 {
     var url = "/api/event/pull/{eventId}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.HOME_POD, false) ;
     mozuUrl.FormatUrl( "eventId", eventId);
     return mozuUrl;
 }
				/// <summary>
        /// Get Resource Url for UpdateCustomRouteSettings
        /// </summary>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateCustomRouteSettingsUrl(string responseFields =  null)
		{
			var url = "/api/commerce/settings/general/customroutes?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
				/// <summary>
        /// Get Resource Url for CreateDocumentList
        /// </summary>
        /// <param name="responseFields"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl CreateDocumentListUrl(string responseFields =  null)
		{
			var url = "/api/content/documentlists/?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
 /// <summary>
 /// Get Resource Url for GetInStorePickupLocation
 /// </summary>
 /// <param name="code"></param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl GetInStorePickupLocationUrl(string code)
 {
     var url = "/api/commerce/storefront/locationUsageTypes/SP/locations/{code}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "code", code);
     return mozuUrl;
 }
		/// <summary>
        /// Get Resource Url for GetProperties
        /// </summary>
        /// <param name="productTypeId">Identifier of the product type.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetPropertiesUrl(int productTypeId)
		{
			var url = "/api/commerce/catalog/admin/attributedefinition/producttypes/{productTypeId}/Properties";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "productTypeId", productTypeId);
			return mozuUrl;
		}
		/// <summary>
        /// Get Resource Url for GetExtras
        /// </summary>
        /// <param name="productCode">Merchant-created code that uniquely identifies the product such as a SKU or item number. Once created, the product code is read-only.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetExtrasUrl(string productCode)
		{
			var url = "/api/commerce/catalog/admin/products/{productCode}/Extras";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "productCode", productCode);
			return mozuUrl;
		}
 /// <summary>
 /// Get Resource Url for UpdateDBValue
 /// </summary>
 /// <param name="dbEntryQuery">The database entry query string used to update the record information.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl UpdateDBValueUrl(string dbEntryQuery)
 {
     var url = "/api/platform/tenantdata/{*dbEntryQuery}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "dbEntryQuery", dbEntryQuery);
     return mozuUrl;
 }
Exemple #14
0
 /// <summary>
 /// Get Resource Url for AssociateCreditToShopper
 /// </summary>
 /// <param name="code"></param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl AssociateCreditToShopperUrl(string code)
 {
     var url = "/api/commerce/customer/credits/{code}/associate-to-shopper";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "code", code);
     return mozuUrl;
 }
Exemple #15
0
 /// <summary>
 /// Get Resource Url for DeleteCredit
 /// </summary>
 /// <param name="code">User-defined code of the store credit to delete.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl DeleteCreditUrl(string code)
 {
     var url = "/api/commerce/customer/credits/{code}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "code", code);
     return mozuUrl;
 }
		/// <summary>
        /// Get Resource Url for GetAddressSchemas
        /// </summary>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetAddressSchemasUrl(string responseFields =  null)
		{
			var url = "/api/platform/reference/addressschemas?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.HOME_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
				/// <summary>
        /// Get Resource Url for AddProductType
        /// </summary>
        /// <param name="responseFields"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl AddProductTypeUrl(string responseFields =  null)
		{
			var url = "/api/commerce/catalog/admin/attributedefinition/producttypes/?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
		/// <summary>
        /// Get Resource Url for GetValidationResults
        /// </summary>
        /// <param name="orderId"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetValidationResultsUrl(string orderId)
		{
			var url = "/api/commerce/orders/{orderId}/validationresults";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "orderId", orderId);
			return mozuUrl;
		}
Exemple #19
0
 /// <summary>
 /// Get Resource Url for GetChannel
 /// </summary>
 /// <param name="code">User-defined code that identifies the channel to retrieve.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl GetChannelUrl(string code)
 {
     var url = "/api/commerce/channels/{code}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "code", code);
     return mozuUrl;
 }
Exemple #20
0
		/// <summary>
        /// Get Resource Url for GetUniqueCouponSetCode
        /// </summary>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetUniqueCouponSetCodeUrl(string responseFields =  null)
		{
			var url = "/api/commerce/catalog/admin/couponsets/unique-code?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
Exemple #21
0
		/// <summary>
        /// Get Resource Url for GetCategoryTree
        /// </summary>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetCategoryTreeUrl(string responseFields =  null)
		{
			var url = "/api/commerce/catalog/storefront/categories/tree?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
 /// <summary>
 /// Get Resource Url for GetLocation
 /// </summary>
 /// <param name="locationCode"></param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl GetLocationUrl(string locationCode)
 {
     var url = "/api/commerce/admin/locations/{locationCode}";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "locationCode", locationCode);
     return mozuUrl;
 }
		/// <summary>
        /// Get Resource Url for GetAttributeVocabularyValues
        /// </summary>
        /// <param name="attributeFQN">The fully qualified name of the attribute, which is a user defined attribute identifier.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetAttributeVocabularyValuesUrl(string attributeFQN)
		{
			var url = "/api/commerce/orders/attributedefinition/attributes/{attributeFQN}/VocabularyValues";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "attributeFQN", attributeFQN);
			return mozuUrl;
		}
				/// <summary>
        /// Get Resource Url for CreateEntityList
        /// </summary>
        /// <param name="responseFields"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl CreateEntityListUrl(string responseFields =  null)
		{
			var url = "/api/platform/entitylists/?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
		/// <summary>
        /// Get Resource Url for GetCheckoutSettings
        /// </summary>
        /// <param name="responseFields"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetCheckoutSettingsUrl(string responseFields =  null)
		{
			var url = "/api/commerce/settings/checkout/?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
						/// <summary>
        /// Get Resource Url for UpdateStates
        /// </summary>
        /// <param name="profilecode">The unique, user-defined code of the profile with which the shipping state is associated.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateStatesUrl(string profilecode)
		{
			var url = "/api/commerce/shipping/admin/profiles/{profilecode}/shippingstates";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "profilecode", profilecode);
			return mozuUrl;
		}
Exemple #27
0
				/// <summary>
        /// Get Resource Url for AddLocation
        /// </summary>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl AddLocationUrl(string responseFields =  null)
		{
			var url = "/api/commerce/admin/locations/?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
		/// <summary>
        /// Get Resource Url for GetPublishSets
        /// </summary>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetPublishSetsUrl(string responseFields =  null)
		{
			var url = "/api/commerce/catalog/admin/publishing/publishsets?responseFields={responseFields}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "responseFields", responseFields);
			return mozuUrl;
		}
				/// <summary>
        /// Get Resource Url for DeleteThirdPartyPaymentWorkflow
        /// </summary>
        /// <param name="fullyQualifiedName"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl DeleteThirdPartyPaymentWorkflowUrl(string fullyQualifiedName)
		{
			var url = "/api/commerce/settings/checkout/paymentsettings/thirdpartyworkflows/{fullyQualifiedName}";
			var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
			mozuUrl.FormatUrl( "fullyQualifiedName", fullyQualifiedName);
			return mozuUrl;
		}
 /// <summary>
 /// Get Resource Url for AddAccountNote
 /// </summary>
 /// <param name="accountId">Unique identifier of the customer account for which to create the note.</param>
 /// <returns>
 /// String - Resource Url
 /// </returns>
 public static MozuUrl AddAccountNoteUrl(int accountId)
 {
     var url = "/api/commerce/customer/accounts/{accountId}/notes";
     var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false) ;
     mozuUrl.FormatUrl( "accountId", accountId);
     return mozuUrl;
 }
Exemple #31
0
        /// <summary>
        /// Get Resource Url for UpdateExtraValueLocalizedDeltaPrices
        /// </summary>
        /// <param name="attributeFQN">Fully qualified name for an attribute.</param>
        /// <param name="productCode">The unique, user-defined product code of a product, used throughout Mozu to reference and associate to a product.</param>
        /// <param name="value">The value string to create.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateExtraValueLocalizedDeltaPricesUrl(string productCode, string attributeFQN, string value)
        {
            var url     = "/api/commerce/catalog/admin/products/{productCode}/Extras/{attributeFQN}/Values/{value}/localizedDeltaPrice";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("attributeFQN", attributeFQN);
            mozuUrl.FormatUrl("productCode", productCode);
            mozuUrl.FormatUrl("value", value);
            return(mozuUrl);
        }
Exemple #32
0
        /// <summary>
        /// Get Resource Url for UpdateCartItemQuantity
        /// </summary>
        /// <param name="cartItemId">Identifier of the cart item to delete.</param>
        /// <param name="quantity">The number of cart items in the shopper's active cart.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateCartItemQuantityUrl(string cartItemId, int quantity, string responseFields = null)
        {
            var url     = "/api/commerce/carts/current/items/{cartItemId}/{quantity}?responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("cartItemId", cartItemId);
            mozuUrl.FormatUrl("quantity", quantity);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for GetDeliveryAttemptSummary
        /// </summary>
        /// <param name="id">Unique identifier of the customer segment to retrieve.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <param name="subscriptionId">Unique identifier for a subscription, such as subscribing tenants for an event or to receive a notification.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetDeliveryAttemptSummaryUrl(string subscriptionId, int?id = null, string responseFields = null)
        {
            var url     = "/api/event/push/subscriptions/{subscriptionId}/deliveryattempts/{id}?responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("id", id);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("subscriptionId", subscriptionId);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for RemoveCoupons
        /// </summary>
        /// <param name="orderId">Unique identifier of the order.</param>
        /// <param name="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>
        /// <param name="version">Determines whether or not to check versioning of items for concurrency purposes.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl RemoveCouponsUrl(string orderId, string updateMode = null, string version = null)
        {
            var url     = "/api/commerce/orders/{orderId}/coupons?updatemode={updateMode}&version={version}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("orderId", orderId);
            mozuUrl.FormatUrl("updateMode", updateMode);
            mozuUrl.FormatUrl("version", version);
            return(mozuUrl);
        }
Exemple #35
0
        /// <summary>
        /// Get Resource Url for GetProductForIndexing
        /// </summary>
        /// <param name="lastModifiedDate">The date when the product was last updated.</param>
        /// <param name="productCode">The unique, user-defined product code of a product, used throughout  to reference and associate to a product.</param>
        /// <param name="productVersion">The product version.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetProductForIndexingUrl(string productCode, long?productVersion = null, DateTime?lastModifiedDate = null, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/storefront/products/indexing/{productCode}?productVersion={productVersion}&lastModifiedDate={lastModifiedDate}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("lastModifiedDate", lastModifiedDate);
            mozuUrl.FormatUrl("productCode", productCode);
            mozuUrl.FormatUrl("productVersion", productVersion);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for DeletePriceListEntry
        /// </summary>
        /// <param name="currencyCode">The three character ISO currency code, such as USD for US Dollars.</param>
        /// <param name="priceListCode">The code of the specified price list associated with the price list entry.</param>
        /// <param name="productCode">The unique, user-defined product code of a product, used throughout  to reference and associate to a product.</param>
        /// <param name="startDate">The start date of the price list entry.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl DeletePriceListEntryUrl(string priceListCode, string productCode, string currencyCode, DateTime?startDate = null)
        {
            var url     = "/api/commerce/catalog/admin/pricelists/{priceListCode}/entries/{productCode}/{currencyCode}?startDate={startDate}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("currencyCode", currencyCode);
            mozuUrl.FormatUrl("priceListCode", priceListCode);
            mozuUrl.FormatUrl("productCode", productCode);
            mozuUrl.FormatUrl("startDate", startDate);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for GetDocument
        /// </summary>
        /// <param name="documentId">Unique identifier for a document, used by content and document calls. Document IDs are associated with document types, document type lists, sites, and tenants.</param>
        /// <param name="documentListName">Name of content documentListName to delete</param>
        /// <param name="includeInactive"></param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetDocumentUrl(string documentListName, string documentId, bool?includeInactive = null, string responseFields = null)
        {
            var url     = "/api/content/documentlists/{documentListName}/documents/{documentId}?includeInactive={includeInactive}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("documentId", documentId);
            mozuUrl.FormatUrl("documentListName", documentListName);
            mozuUrl.FormatUrl("includeInactive", includeInactive);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
Exemple #38
0
        /// <summary>
        /// Get Resource Url for GetCoupon
        /// </summary>
        /// <param name="couponCode">Code associated with the coupon to remove from the cart.</param>
        /// <param name="couponSetCode">The unique identifier of the coupon set that the coupon belongs to.</param>
        /// <param name="includeCounts">Specifies whether to return the redemptionCount property in the response body object.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetCouponUrl(string couponSetCode, string couponCode, bool?includeCounts = null, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/admin/couponsets/{couponSetCode}/couponcodes/{couponCode}?includeCounts={includeCounts}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("couponCode", couponCode);
            mozuUrl.FormatUrl("couponSetCode", couponSetCode);
            mozuUrl.FormatUrl("includeCounts", includeCounts);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
Exemple #39
0
        /// <summary>
        /// Get Resource Url for UpdateOrder
        /// </summary>
        /// <param name="orderId">Unique identifier of the order.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <param name="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>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateOrderUrl(string orderId, string updateMode = null, string version = null, string responseFields = null)
        {
            var url     = "/api/commerce/orders/{orderId}?updatemode={updateMode}&version={version}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("orderId", orderId);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("updateMode", updateMode);
            mozuUrl.FormatUrl("version", version);
            return(mozuUrl);
        }
Exemple #40
0
        /// <summary>
        /// Get Resource Url for UpdateItemDestination
        /// </summary>
        /// <param name="checkoutId">The unique identifier of the checkout.</param>
        /// <param name="destinationId">The unique identifier of the destination.</param>
        /// <param name="itemId">The unique identifier of the item.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateItemDestinationUrl(string checkoutId, string itemId, string destinationId, string responseFields = null)
        {
            var url     = "/api/commerce/checkouts/{checkoutId}/items/{itemId}/destination/{destinationId}?responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("checkoutId", checkoutId);
            mozuUrl.FormatUrl("destinationId", destinationId);
            mozuUrl.FormatUrl("itemId", itemId);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for ListDocumentDraftSummaries
        /// </summary>
        /// <param name="documentLists">List of document lists that contain documents to delete.</param>
        /// <param name="pageSize">The number of results to display on each page when creating paged results from a query. The maximum value is 200.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl ListDocumentDraftSummariesUrl(int?pageSize = null, int?startIndex = null, string documentLists = null, string responseFields = null)
        {
            var url     = "/api/content/documentpublishing/draft?pageSize={pageSize}&startIndex={startIndex}&documentLists={documentLists}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("documentLists", documentLists);
            mozuUrl.FormatUrl("pageSize", pageSize);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("startIndex", startIndex);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for DeleteExtendedProperty
        /// </summary>
        /// <param name="key">The extended property key.</param>
        /// <param name="orderId">Unique identifier of the order.</param>
        /// <param name="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>
        /// <param name="version">Determines whether or not to check versioning of items for concurrency purposes.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl DeleteExtendedPropertyUrl(string orderId, string key, string updateMode = null, string version = null)
        {
            var url     = "/api/commerce/orders/{orderId}/extendedproperties/{key}?updatemode={updateMode}&version={version}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("key", key);
            mozuUrl.FormatUrl("orderId", orderId);
            mozuUrl.FormatUrl("updateMode", updateMode);
            mozuUrl.FormatUrl("version", version);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for ConfiguredProduct
        /// </summary>
        /// <param name="includeOptionDetails">If true, the response returns details about the product. If false, returns a product summary such as the product name, price, and sale price.</param>
        /// <param name="productCode">Merchant-created code that uniquely identifies the product such as a SKU or item number. Once created, the product code is read-only.</param>
        /// <param name="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.</param>
        /// <param name="skipInventoryCheck">If true, skip the process to validate inventory when creating this product reservation.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl ConfiguredProductUrl(string productCode, bool?includeOptionDetails = null, bool?skipInventoryCheck = null, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/storefront/products/{productCode}/configure?includeOptionDetails={includeOptionDetails}&skipInventoryCheck={skipInventoryCheck}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("includeOptionDetails", includeOptionDetails);
            mozuUrl.FormatUrl("productCode", productCode);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("skipInventoryCheck", skipInventoryCheck);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for Suggest
        /// </summary>
        /// <param name="groups">Specifies the group that you want this operation to return in the response. This parameter accepts one or more values, separated by comma.For example, if you set this parameter to , then this operation returns a  object that contains suggestions for products that match the user entered characters in the search field.The valid values for this parameter are the following:*  — Indicates that products should be matched against and returned in the response. The search  value is compared against product name and code. The response contains a  with a name of  and a collection of . Each collection item has a  of Product and contains a  equal to a complete product object.*  — Indicates that categories should be matched against and returned in the response. The search  value is compared to category name.  The response contains a  with a name of  and a collection of . Each collection item has a  of Category and contains a  equal to a complete category object.*  — Indicates that previously used search terms (keywords) should be matched against and returned in the response, sorted by frequency of use. Keep in mind that it is not currently possible to edit or remove search terms that may be considered undesirable via the  API. The response contains a  with a name of  and a collection of . Each collection item has a  of Term and contains a  equal to a string value of the matched search term.The default value is ; however, the  Core Theme only integrates  and ignores the  group.This operation only returns data that is then made available to your theme. If you set this paramter to multiple values,  returns multiple  in the response. Depending on your requirements, you can then customize your theme to display the groups together or as separate lists in the displayed search suggestions.</param>
        /// <param name="pageSize">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 this parameter set to 25, to get the 51st through the 75th items, set startIndex to 50.</param>
        /// <param name="query">Properties for the product location inventory provided for queries to locate products by their location.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl SuggestUrl(string query = null, string groups = null, int?pageSize = null, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/storefront/productsearch/suggest?query={query}&groups={groups}&pageSize={pageSize}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("groups", groups);
            mozuUrl.FormatUrl("pageSize", pageSize);
            mozuUrl.FormatUrl("query", query);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for GetRandomAccessCursor
        /// </summary>
        /// <param name="filter">A set of filter expressions representing the search parameters for a query. This parameter is optional. Refer to [Sorting and Filtering](../../../../Developer/api-guides/sorting-filtering.htm) for a list of supported filters.</param>
        /// <param name="pageSize">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 this parameter set to 25, to get the 51st through the 75th items, set startIndex to 50.</param>
        /// <param name="query">Properties for the product location inventory provided for queries to locate products by their location.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetRandomAccessCursorUrl(string query = null, string filter = null, int?pageSize = null, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/storefront/productsearch/randomAccessCursor/?query={query}&filter={filter}&pageSize={pageSize}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("filter", filter);
            mozuUrl.FormatUrl("pageSize", pageSize);
            mozuUrl.FormatUrl("query", query);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
Exemple #46
0
        /// <summary>
        /// Get Resource Url for GetViewEntityContainer
        /// </summary>
        /// <param name="entityId">Unique identifier for an entity, which defines the schema, rules, and formats for JSON entities within the MZDB ( Mongo DB).</param>
        /// <param name="entityListFullName">The full name of the EntityList including namespace in name@nameSpace format</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <param name="viewName">The name for a view. Views are used to render data in , such as document and entity lists. Each view includes a schema, format, name, ID, and associated data types to render.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetViewEntityContainerUrl(string entityListFullName, string viewName, string entityId, string responseFields = null)
        {
            var url     = "/api/platform/entitylists/{entityListFullName}/views/{viewName}/entityContainers/{entityId}?responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("entityId", entityId);
            mozuUrl.FormatUrl("entityListFullName", entityListFullName);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("viewName", viewName);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for UpsertPackageFile
        /// </summary>
        /// <param name="applicationKey"></param>
        /// <param name="filepath"></param>
        /// <param name="lastModifiedTime"></param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpsertPackageFileUrl(string applicationKey, string filepath, string lastModifiedTime = null, string responseFields = null)
        {
            var url     = "/api/platform/developer/packages/{applicationKey}/files/{filepath}?lastModifiedTime={lastModifiedTime}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.HOME_POD, false);

            mozuUrl.FormatUrl("applicationKey", applicationKey);
            mozuUrl.FormatUrl("filepath", filepath);
            mozuUrl.FormatUrl("lastModifiedTime", lastModifiedTime);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
Exemple #48
0
        /// <summary>
        /// Get Resource Url for GetProductVariationLocalizedPrice
        /// </summary>
        /// <param name="currencyCode">The three character ISO currency code, such as USD for US Dollars.</param>
        /// <param name="productCode">The unique, user-defined product code of a product, used throughout  to reference and associate to a product.</param>
        /// <param name="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.</param>
        /// <param name="variationKey">System-generated key that represents the attribute values that uniquely identify a specific product variation.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetProductVariationLocalizedPriceUrl(string productCode, string variationKey, string currencyCode, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/admin/products/{productCode}/variations/{variationKey}/localizedPrice/{currencyCode}?responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("currencyCode", currencyCode);
            mozuUrl.FormatUrl("productCode", productCode);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("variationKey", variationKey);
            return(mozuUrl);
        }
Exemple #49
0
        /// <summary>
        /// Get Resource Url for DeleteCategoryById
        /// </summary>
        /// <param name="cascadeDelete">Specifies whether to also delete all subcategories associated with the specified category.If you set this value is false, only the specified category is deleted.The default value is false.</param>
        /// <param name="categoryId">Unique identifier of the category to modify.</param>
        /// <param name="forceDelete">Specifies whether the category, and any associated subcategories, are deleted even if there are products that reference them. The default value is false.</param>
        /// <param name="reassignToParent">Specifies whether any subcategories of the specified category are reassigned to the parent of the specified category.This field only applies if the cascadeDelete parameter is false.The default value is false.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl DeleteCategoryByIdUrl(int categoryId, bool?cascadeDelete = null, bool?forceDelete = null, bool?reassignToParent = null)
        {
            var url     = "/api/commerce/catalog/admin/categories/{categoryId}/?cascadeDelete={cascadeDelete}&forceDelete={forceDelete}&reassignToParent={reassignToParent}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("cascadeDelete", cascadeDelete);
            mozuUrl.FormatUrl("categoryId", categoryId);
            mozuUrl.FormatUrl("forceDelete", forceDelete);
            mozuUrl.FormatUrl("reassignToParent", reassignToParent);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for UpdateExtendedProperties
        /// </summary>
        /// <param name="orderId">Unique identifier of the order.</param>
        /// <param name="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>
        /// <param name="upsert">Inserts and updates the extended property.        </param>
        /// <param name="version">Determines whether or not to check versioning of items for concurrency purposes.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateExtendedPropertiesUrl(string orderId, string updateMode = null, string version = null, bool?upsert = null)
        {
            var url     = "/api/commerce/orders/{orderId}/extendedproperties?updatemode={updateMode}&version={version}&upsert={upsert}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("orderId", orderId);
            mozuUrl.FormatUrl("updateMode", updateMode);
            mozuUrl.FormatUrl("upsert", upsert);
            mozuUrl.FormatUrl("version", version);
            return(mozuUrl);
        }
Exemple #51
0
        /// <summary>
        /// Get Resource Url for DeletePropertyValueLocalizedContent
        /// </summary>
        /// <param name="attributeFQN">Fully qualified name for an attribute.</param>
        /// <param name="localeCode">Language used for the entity. Currently, only "en-US" is supported.</param>
        /// <param name="productCode">The unique, user-defined product code of a product, used throughout Mozu to reference and associate to a product.</param>
        /// <param name="value">The value string to create.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl DeletePropertyValueLocalizedContentUrl(string productCode, string attributeFQN, string value, string localeCode)
        {
            var url     = "/api/commerce/catalog/admin/products/{productCode}/Properties/{attributeFQN}/values/{value}/LocalizedContent/{localeCode}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("attributeFQN", attributeFQN);
            mozuUrl.FormatUrl("localeCode", localeCode);
            mozuUrl.FormatUrl("productCode", productCode);
            mozuUrl.FormatUrl("value", value);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for GetCustomerSets
        /// </summary>
        /// <param name="pageSize">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 this parameter set to 25, to get the 51st through the 75th items, set startIndex to 50.</param>
        /// <param name="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.</param>
        /// <param name="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. Refer to [Sorting and Filtering](../../../../Developer/api-guides/sorting-filtering.htm) for more information.</param>
        /// <param name="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 pageSize set to 25, to get the 51st through the 75th items, set this parameter to 50.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetCustomerSetsUrl(int?startIndex = null, int?pageSize = null, string sortBy = null, string responseFields = null)
        {
            var url     = "/api/commerce/customer/customerSets/?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("pageSize", pageSize);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("sortBy", sortBy);
            mozuUrl.FormatUrl("startIndex", startIndex);
            return(mozuUrl);
        }
Exemple #53
0
        /// <summary>
        /// Get Resource Url for SplitItem
        /// </summary>
        /// <param name="checkoutId">The unique identifier of the checkout.</param>
        /// <param name="itemId">The unique identifier of the item.</param>
        /// <param name="quantity">The number of cart items in the shopper's active cart.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl SplitItemUrl(string checkoutId, string itemId, int?quantity = null, string responseFields = null)
        {
            var url     = "/api/commerce/checkouts/{checkoutId}/items/{itemId}/split?quantity={quantity}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("checkoutId", checkoutId);
            mozuUrl.FormatUrl("itemId", itemId);
            mozuUrl.FormatUrl("quantity", quantity);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for GetAttributeVocabularyValueLocalizedContent
        /// </summary>
        /// <param name="attributeFQN">Fully qualified name for an attribute.</param>
        /// <param name="localeCode">The two character country code that sets the locale, such as US for United States. Sites, tenants, and catalogs use locale codes for localizing content, such as translated product text per supported country.</param>
        /// <param name="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.</param>
        /// <param name="value">The value string to create.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetAttributeVocabularyValueLocalizedContentUrl(string attributeFQN, string value, string localeCode, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/admin/attributedefinition/attributes/{attributeFQN}/VocabularyValues/{value}/LocalizedContent/{localeCode}?responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("attributeFQN", attributeFQN);
            mozuUrl.FormatUrl("localeCode", localeCode);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("value", value);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for GetPackage
        /// </summary>
        /// <param name="applicationKey"></param>
        /// <param name="includeChildren"></param>
        /// <param name="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.</param>
        /// <param name="skipDevAccountCheck"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetPackageUrl(string applicationKey, bool?includeChildren = null, bool?skipDevAccountCheck = null, string responseFields = null)
        {
            var url     = "/api/platform/appdev/apppackages/{applicationKey}/?includeChildren={includeChildren}&skipDevAccountCheck={skipDevAccountCheck}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("applicationKey", applicationKey);
            mozuUrl.FormatUrl("includeChildren", includeChildren);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("skipDevAccountCheck", skipDevAccountCheck);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for AddExtraValueLocalizedDeltaPrice
        /// </summary>
        /// <param name="attributeFQN">Fully qualified name for an attribute.</param>
        /// <param name="productCode">The unique, user-defined product code of a product, used throughout  to reference and associate to a product.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <param name="value">The value string to create.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl AddExtraValueLocalizedDeltaPriceUrl(string productCode, string attributeFQN, string value, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/admin/products/{productCode}/Extras/{attributeFQN}/Values/{value}/localizedDeltaPrice?responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("attributeFQN", attributeFQN);
            mozuUrl.FormatUrl("productCode", productCode);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("value", value);
            return(mozuUrl);
        }
Exemple #57
0
        /// <summary>
        /// Get Resource Url for UpdateAccountAttribute
        /// </summary>
        /// <param name="accountId">Unique identifier of the customer account.</param>
        /// <param name="attributeFQN">Fully qualified name for an attribute.</param>
        /// <param name="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.</param>
        /// <param name="userId"></param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl UpdateAccountAttributeUrl(int accountId, string attributeFQN, string userId = null, string responseFields = null)
        {
            var url     = "/api/commerce/customer/accounts/{accountId}/attributes/{attributeFQN}?userId={userId}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("accountId", accountId);
            mozuUrl.FormatUrl("attributeFQN", attributeFQN);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("userId", userId);
            return(mozuUrl);
        }
Exemple #58
0
        /// <summary>
        /// Get Resource Url for GetOrderItemViaLineId
        /// </summary>
        /// <param name="draft">If true, retrieve the draft version of the order, which might include uncommitted changes to the order or its components.</param>
        /// <param name="lineId">The specific line id that's associated with the order item.</param>
        /// <param name="orderId">Unique identifier of the order.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetOrderItemViaLineIdUrl(string orderId, int lineId, bool?draft = null, string responseFields = null)
        {
            var url     = "/api/commerce/orders/{orderId}/items/{lineId}?draft={draft}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("draft", draft);
            mozuUrl.FormatUrl("lineId", lineId);
            mozuUrl.FormatUrl("orderId", orderId);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }
Exemple #59
0
        /// <summary>
        /// Get Resource Url for GetFacetCategoryList
        /// </summary>
        /// <param name="categoryId">Unique identifier of the category to modify.</param>
        /// <param name="includeAvailable">If true, returns a list of the attributes and categories associated with a product type that have not been defined as a facet for the category.</param>
        /// <param name="responseFields">Use this field to include those fields which are not included by default.</param>
        /// <param name="validate">Validates that the product category associated with a facet is active. System-supplied and read only.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetFacetCategoryListUrl(int categoryId, bool?includeAvailable = null, bool?validate = null, string responseFields = null)
        {
            var url     = "/api/commerce/catalog/admin/facets/category/{categoryId}?includeAvailable={includeAvailable}&validate={validate}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("categoryId", categoryId);
            mozuUrl.FormatUrl("includeAvailable", includeAvailable);
            mozuUrl.FormatUrl("responseFields", responseFields);
            mozuUrl.FormatUrl("validate", validate);
            return(mozuUrl);
        }
        /// <summary>
        /// Get Resource Url for GetOrder
        /// </summary>
        /// <param name="draft">If true, retrieve the draft version of the order, which might include uncommitted changes to the order or its components.</param>
        /// <param name="includeBin"></param>
        /// <param name="orderId">Unique identifier of the order.</param>
        /// <param name="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.</param>
        /// <returns>
        /// String - Resource Url
        /// </returns>
        public static MozuUrl GetOrderUrl(string orderId, bool?draft = null, bool?includeBin = null, string responseFields = null)
        {
            var url     = "/api/commerce/orders/{orderId}?draft={draft}&includeBin={includeBin}&responseFields={responseFields}";
            var mozuUrl = new MozuUrl(url, MozuUrl.UrlLocation.TENANT_POD, false);

            mozuUrl.FormatUrl("draft", draft);
            mozuUrl.FormatUrl("includeBin", includeBin);
            mozuUrl.FormatUrl("orderId", orderId);
            mozuUrl.FormatUrl("responseFields", responseFields);
            return(mozuUrl);
        }